Home
last modified time | relevance | path

Searched refs:wakelock (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/tests/utils/SleepUtils/
DREADME4 1) holding wakelock (singleton to this service)
5 2) setting alarm for a specified period and releasing the wakelock; service
6 call will block until alarm has been triggered and the wakelock is held
7 3) releasing the wakelock
12 1) holding wakelock
21 3) releasing wakelock
/frameworks/base/services/backup/java/com/android/server/backup/internal/
DRunInitializeReceiver.java53 PowerManager.WakeLock wakelock = mBackupManagerService.getWakelock(); in onReceive() local
54 wakelock.acquire(); in onReceive()
55 OnTaskFinishedListener listener = caller -> wakelock.release(); in onReceive()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DActiveRestoreSession.java110 PowerManager.WakeLock wakelock = mBackupManagerService.getWakelock(); in getAvailableRestoreSets() local
111 wakelock.acquire(); in getAvailableRestoreSets()
117 wakelock.release(); in getAvailableRestoreSets()
387 PowerManager.WakeLock wakelock = mBackupManagerService.getWakelock(); in sendRestoreToHandlerLocked() local
388 wakelock.acquire(); in sendRestoreToHandlerLocked()
397 wakelock.release(); in sendRestoreToHandlerLocked()
/frameworks/base/core/java/com/android/internal/os/
DWakelockPowerCalculator.java40 final BatteryStats.Uid.Wakelock wakelock = wakelockStats.valueAt(i); in calculateApp() local
44 BatteryStats.Timer timer = wakelock.getWakeTime(BatteryStats.WAKE_TYPE_PARTIAL); in calculateApp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenState.java24 import com.android.systemui.util.wakelock.SettableWakeLock;
25 import com.android.systemui.util.wakelock.WakeLock;
DDozeFactory.java35 import com.android.systemui.util.wakelock.DelayedWakeLock;
36 import com.android.systemui.util.wakelock.WakeLock;
DDozeUi.java33 import com.android.systemui.util.wakelock.WakeLock;
DDozeMachine.java29 import com.android.systemui.util.wakelock.WakeLock;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeTriggersTest.java38 import com.android.systemui.util.wakelock.WakeLock;
39 import com.android.systemui.util.wakelock.WakeLockFake;
DDozeScreenStateTest.java45 import com.android.systemui.util.wakelock.WakeLock;
46 import com.android.systemui.util.wakelock.WakeLockFake;
DDozeHostFake.java22 import com.android.systemui.util.wakelock.WakeLock;
DDozeUiTest.java47 import com.android.systemui.util.wakelock.WakeLockFake;
/frameworks/native/services/inputflinger/host/
Dinputflinger.rc4 group input wakelock
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/wakelock/
DWakeLockFake.java17 package com.android.systemui.util.wakelock;
DKeepAwakeAnimationListenerTest.java17 package com.android.systemui.util.wakelock;
DWakeLockTest.java17 package com.android.systemui.util.wakelock;
DSettableWakeLockTest.java17 package com.android.systemui.util.wakelock;
/frameworks/base/services/core/java/com/android/server/am/
DHealthStatsBatteryStatsWriter.java88 final BatteryStats.Uid.Wakelock wakelock = entry.getValue(); in writeUid() local
91 timer = wakelock.getWakeTime(BatteryStats.WAKE_TYPE_FULL); in writeUid()
95 timer = wakelock.getWakeTime(BatteryStats.WAKE_TYPE_PARTIAL); in writeUid()
99 timer = wakelock.getWakeTime(BatteryStats.WAKE_TYPE_WINDOW); in writeUid()
103 timer = wakelock.getWakeTime(BatteryStats.WAKE_TYPE_DRAW); in writeUid()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wakelock/
DSettableWakeLock.java17 package com.android.systemui.util.wakelock;
DDelayedWakeLock.java17 package com.android.systemui.util.wakelock;
DWakeLock.java17 package com.android.systemui.util.wakelock;
DKeepAwakeAnimationListener.java17 package com.android.systemui.util.wakelock;
/frameworks/base/core/proto/android/os/
Dbatterystats.proto262 // Kernel wakelock metrics are only recorded when the device is unplugged
268 // Kernel wakelock stats aren't apportioned across all kernel wakelocks (as
282 // The total elapsed time that a partial wakelock was held. This duration
796 // Aggregated wakelock data for an app overall, across all of its wakelocks.
797 // The Wakelock message holds data about each *individual* wakelock, but it
800 // the case of wakelock.partial.duration_ms) or overestimate (in the case of
801 // wakelock.partial.total_duration_ms) the total time, due to overlapping
803 // wakelock data.
830 // Partial wakelock metrics are only recorded when the device is unplugged
836 // the time the wakelock was held while the app was in a background state.
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyguardIndicationControllerTest.java43 import com.android.systemui.util.wakelock.WakeLockFake;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyguardIndicationController.java55 import com.android.systemui.util.wakelock.SettableWakeLock;
56 import com.android.systemui.util.wakelock.WakeLock;

12