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

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

Remove lock for internal isGetTasksAllowed

The method only checks recents and permission. The former is a field
which won't change since boot. The latter doesn't involve any WM
stuffs. Other places also use it without lock.

This avoids unnecessary lock contention when calling ActivityManager#
getRunningAppProcesses, getProcessMemoryInfo, getRunningServices.

Bug: 204870457
Test: Test: CtsWindowManagerDeviceTestCases
Change-Id: Ie1f1d1f58543cf25197f42caa01565039ced4b32
parent 318be1a4
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