summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Kweku Adams <kwekua@google.com> 2023-11-06 17:28:28 +0000
committer Kweku Adams <kwekua@google.com> 2023-11-06 17:49:50 +0000
commit40f718891338faa5836a439a3dcc10035d0701ad (patch)
treee7c45612779b169b24071cbb019d47f0165851ad /libs/androidfw/FileStream.cpp
parentb1df623732cf5bdd64070c527815d83aae738955 (diff)
Avoid repeated/redundant work.
1. Avoid scheduling the idle alarm if the device is already considered idle. 2. Avoid scheduling the idle alarm again if the currently scheduled alarm is for the same time. Bug: 309292340 Test: atest FrameworksMockingServicesTests:DeviceIdlenessTrackerTest Change-Id: I0cb49041d15e5b2bd880ddc06cb2f1aa95e8c174
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions