summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorKevin <kevhan@google.com>2018-09-27 10:57:35 -0700
committerKevin <kevhan@google.com>2018-10-10 17:34:16 -0700
commitd4660b27bf2abe44e1caf0e8a6a747f0522bd852 (patch)
tree7029e691a969def88c9325844f1a97adc60ba12b /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent20c6621d823a343734332e6adbd8e0ea129ead75 (diff)
Inflate ambient + heads up view as necessary
In order to save memory, this CL introduces API to set a subset of the content views of a notification to inflate instead of all of them. It also changes the default views to inflate to the contracted, expanded, and public views. Heads up and ambient views are only inflated if the respective notification will heads up or pulse. In addition, these views are freed up once the heads up/pulse ends. This saves a significant amount of memory. While 50 notifications would take up around 50 MB before, they take up around 27 MB after this change. Bug: 111809944 Test: runtest systemui, manual Change-Id: I970420943a3ecfac3e53d83a342b29636e32a51d
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions