summaryrefslogtreecommitdiff
path: root/libs/ultrahdr/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Austin Borger <borgera@google.com> 2023-03-30 17:52:47 -0700
committer Austin Borger <borgera@google.com> 2023-04-21 20:13:23 -0700
commitb557f7b36abd537cb2a8020f00e0fc1f42449c3a (patch)
tree2e52babfbf0ce82dda322172ac9412de68cecbf0 /libs/ultrahdr/jpegencoderhelper.cpp
parenta8827e9c7abb0923f9b7a1de381545ddd2396bc4 (diff)
UidObserver / Camera: Track the OOM adj of a uid via UidObserver.
Previously, onUidProcAdjChanged merely signaled that the OOM adj of a uid changed, but did not provide the actual OOM adj score. Having this information allows the camera service to cut out redundant calls to onCameraAccessPrioritiesChanged and avoid overwhelming apps. The number of calls to onCameraAccessPrioritiesChanged is reduced by only signaling when it's likely the uid owning a camera would lose access to it if another uid tried to open that camera. This is opposed to the status quo, which signals every time a watched uid changes its OOM adj, which is highly inefficient. Bug: 274486653 Test: -- on physical device: -- testCamera2AccessCallbackInSplitMode x10 -- ActivityManagerServiceTest -- ActivityManagerProcessStateTest -- ActivityManagerFgsBgStartTest -- UidObserverControllerTest -- Alternate focus in split screen between Camera2 + GCA x20 Change-Id: Ia8d36e7a49156d537ae4da3540a1046e3200d930
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions