Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ec5d6741 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Use realtime priority for systemui and recents(home)

Attempt to reduce jank for the process with important UI.

Note that in trace, the UI/render threads priority will be 98
when they are foreground or animating. Otherwise it will be 100.

Besides, when camera is opened by an uid with top priority, the
current processes with FIFO will be restored to OTHER. And back
to FIFO once the top process closes the camera.

Bug: 288140556
Test: atest ActivityManagerServiceTest#testFifoSwitch
Test: pid=`adb shell pidof com.android.systemui`
      adb shell cat /proc/$pid/stat | awk '{print "priority=" $18}'
      When expanding notification, it will be "priority=-2"
      When it is idle, it will be "priority=0"

Change-Id: I9ae286d7a2dcc71b059f4521ded451ec4732af18
parent e0a66e5b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment