diff options
author | Riddle Hsu <riddlehsu@google.com> | 2022-03-09 18:36:21 +0800 |
---|---|---|
committer | Riddle Hsu <riddlehsu@google.com> | 2022-03-11 06:49:06 +0000 |
commit | 4d2f0f9178f0fc8de6f47eb772c6bd27003e6988 (patch) | |
tree | 0f317087023c8d4c7b2d7fa4d69da4aba01c4ce2 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 2a9d5a425f9e5662761278b248b85f4ab9eb3b43 (diff) |
Isolate count of visible window from mirror of uid state
The onUidActive/onUidInactive are called from AMS. The timing of
invocation may be somewhat indeterministic with WM.
For example: (it should be extreme corner case)
A process was died and restarted to show a window, but the uid
inactive/active are a bit late to notify. That causes the count
to be cleared.
If the count of visible window is cleared, the caller will be
considered as a background caller and may be unable to start activity.
So this change makes the count only depend on the state of window.
Fix: 222252947
Test: WindowStateTests#testHasActiveVisibleWindow
Change-Id: I2ac3e0ac777145bcf74819be7ffedaec80acb556
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions