diff options
author | Marco Ballesio <balejs@google.com> | 2020-06-03 08:56:46 -0700 |
---|---|---|
committer | Marco Ballesio <balejs@google.com> | 2020-08-27 16:05:57 -0700 |
commit | 12f3e8d6d4d5858bed9f8dd4b0106573151450d3 (patch) | |
tree | 1b589ddcfd748f79cbbeee5c9661ef9676fb3272 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 6ca459dc17605f94af451d0b038a12f64a4563f6 (diff) |
freezer: reentrant enable/disable method
the app freezer state can be toggled in multiple situations when a
debugging tool like heapdump is invoked, or when system_server dumps its
binder connections. All these uses are potentially concurrent and a
robust method to handle reentrancy is necessary to avoid leaving the
freezer in a state incompatible with a specific operation.
This patch moves freezer enable and disable operations from Process to
CachedAppOptimizer (ActivityManager), introduces a new ActivityManager API
to centralize all freezer state changes to ActivityManager and modifies
client code accordingly.
Bug: 151225245
Test: manually verified that no regression are introduced on freezer
behavior, verified that concurrent behavior is handled properly
Change-Id: I7d588cc6e0499012dce64ed4e42ff2adb336062d
Merged-In: I7d588cc6e0499012dce64ed4e42ff2adb336062d
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions