summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorMarco Ballesio <balejs@google.com>2020-06-03 08:56:46 -0700
committerMarco Ballesio <balejs@google.com>2020-08-27 15:56:51 -0700
commitdb203fcabfc6e6fb11bbf67258a455a41a0a95da (patch)
treebe40d2a632d88ab8aea356e294ea062c952b2413 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent37ae22f321320ce43452667652b56e8a032948f0 (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
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions