commit | d1e76916633c5fc9f05143171eb6be1be1cf32b4 | [log] [tgz] |
---|---|---|
author | Jim Kaye <jameskaye@google.com> | Wed Feb 05 13:05:10 2020 -0800 |
committer | Jim Kaye <jameskaye@google.com> | Thu Feb 06 09:38:08 2020 -0800 |
tree | e409bd00fb5abed956e13950dda4d01c1f4b51d5 | |
parent | 1620447aa4ce36e2b402d0b3488aaf76b33692f2 [diff] |
Make Garage Mode more robust in detecting idle-mode jobs Garage Mode exits when there are no active idle-mode jobs. Some idle-mode activities schedule additional jobs. This may lead to slivers of time when no jobs are active, even though the overall work has not completed. With this CL, when Garage Mode sees no active idle jobs, it checks for scheduled idle jobs. If there are no scheduled idle jobs, Garage Mode exits. If there are scheduled idle jobs, Garage Mode waits 1 second for a job to become active. Bug: 148553850 Test: Verified on bench with 'adb logcat' Change-Id: Ia7712716da27505456fe6daf24b83597c73ddbec
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.