diff options
| author | 2023-06-01 18:47:01 +0200 | |
|---|---|---|
| committer | 2023-06-02 14:03:50 +0200 | |
| commit | 7ca7ab73e8e1e7ce33b1c608475811967ca4e048 (patch) | |
| tree | 022d2c9f8ba1bb0ded968db9007a2ef146221c4e /libs/hwui/HardwareBitmapUploader.cpp | |
| parent | a9868f633eb64a23de96b216013e8ec275ceecca (diff) | |
Acquire WakeLocks for posting notifications
The WakeLock is acquired by the system (with Binder.clearCallingIdentity()) because packages that post notification may not have (and should not need) the WAKE_LOCK permission, but we use the WorkSource so that the battery impact is counted as coming from them.
Bug: 275044361
Flag: WAKE_LOCK_FOR_POSTING_NOTIFICATION
Test: atest NotificationManagerServiceTest
Change-Id: Ide41df01dec38631bbdacbd268415d471fed6a3d
Diffstat (limited to 'libs/hwui/HardwareBitmapUploader.cpp')
0 files changed, 0 insertions, 0 deletions