Use top state for ResumeActivityItem

Usually getReportedProcState is the same as TopProcessState,
so there should be no behavior change.

Because WPC#setPendingUiCleanAndForceProcessStateUpTo and
updateProcessInfo are posted to another thread to execute, there
could be a race that getReportedProcState still keeps old value if
the update operation hasn't be scheduled yet.

Bug: 308927629
Test: CtsWindowManagerDeviceWindow
Change-Id: I841963dd135086f599f17e19a3cc1726c656931c
1 file changed