summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2021-07-01 03:05:41 +0800
committerRiddle Hsu <riddlehsu@google.com>2021-07-01 03:31:45 +0800
commit32917d88cd432cb3f3d3bc27bae892f72dd7f6e2 (patch)
tree8e282ad736c274b0972e4597639e68fcd8b5f676 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent6f383b1b8e5d3a4c798e840136e2a59b8483b024 (diff)
Temporarily increase sched policy for dozing
If always-on-display is enabled, there will be an animation for transiting to AOD screen. To prevent the animating process from using lower process scheduling group because of wakefulness, set it as animating to gain top-app group with a short duration. So the animation may be smoother. Though AOD may be disabled or other reasons that there won't be an animation, it should be fine by always setting the state. Because the target process just keeps idle, and the duration is short. Bug: 188253927 Test: Press power key to turn off screen, check: adb shell dumpsys activity o | grep " PERS.*systemui" It will show "T/ /PERU" = SCHED_GROUP_TOP_APP PROCESS_STATE_PERSISTENT_UI After a few seconds it will show "R/ /BFGS" = SCHED_GROUP_RESTRICTED PROCESS_STATE_BOUND_FOREGROUND_SERVICE Change-Id: Ia331a84cf70d28fdbfd4b9b02629c29539197fd5
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions