Add method for updating dalvik process state through VMRuntime.

Used to know when to do trimming and will be used for knowing when
to do compaction.

Bug: 8981901

Change-Id: I0f715f8c9dfc5f7399b54261fe08410449fef10e
2 files changed