/frameworks/base/core/java/android/os/ |
D | PowerManagerInternal.java | 41 public static final int WAKEFULNESS_AWAKE = 1; field in PowerManagerInternal 63 case WAKEFULNESS_AWAKE: in wakefulnessToString() 81 case WAKEFULNESS_AWAKE: in wakefulnessToProtoEnum() 82 return PowerManagerInternalProto.WAKEFULNESS_AWAKE; in wakefulnessToProtoEnum() 97 return wakefulness == WAKEFULNESS_AWAKE || wakefulness == WAKEFULNESS_DREAMING; in isInteractive()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | PowerManagerServiceTest.java | 24 import static android.os.PowerManagerInternal.WAKEFULNESS_AWAKE; 447 mService.setWakefulnessLocked(Display.DEFAULT_DISPLAY_GROUP, WAKEFULNESS_AWAKE, 0, 0, 0, 0, in testGetDesiredScreenPolicy_WithVR() 464 mService.setWakefulnessLocked(Display.DEFAULT_DISPLAY_GROUP, WAKEFULNESS_AWAKE, 0, 0, 0, 0, in testGetDesiredScreenPolicy_WithVR() 478 assertThat(mService.getGlobalWakefulnessLocked()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessAwake_InitialValue() 486 assertThat(mService.getGlobalWakefulnessLocked()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessSleep_NoDozeSleepFlag() 499 assertThat(mService.getGlobalWakefulnessLocked()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessSleep_SoftSleepFlag_NoWakelocks() 513 assertThat(mService.getGlobalWakefulnessLocked()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessSleep_SoftSleepFlag_WithPartialWakelock() 536 assertThat(mService.getGlobalWakefulnessLocked()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessSleep_SoftSleepFlag_WithFullWakelock() 551 assertThat(mService.getGlobalWakefulnessLocked()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessSleep_SoftSleepFlag_WithFullWakelock() 559 assertThat(mService.getGlobalWakefulnessLocked()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessSleep_SoftSleepFlag_WithScreenBrightWakelock() [all …]
|
D | PowerGroupTest.java | 32 import static android.os.PowerManagerInternal.WAKEFULNESS_AWAKE; 95 mDisplayManagerInternal, WAKEFULNESS_AWAKE, /* ready= */ true, in setUp() 112 eq(WAKEFULNESS_AWAKE), eq(TIMESTAMP2), eq(WAKE_REASON_PLUGGED_IN), eq(UID), in testWakePowerGroup() 118 assertThat(mPowerGroup.getWakefulnessLocked()).isEqualTo(WAKEFULNESS_AWAKE); in testDreamPowerGroup() 130 assertThat(mPowerGroup.getWakefulnessLocked()).isEqualTo(WAKEFULNESS_AWAKE); in testDozePowerGroup() 157 assertThat(mPowerGroup.getWakefulnessLocked()).isEqualTo(WAKEFULNESS_AWAKE); in testSleepPowerGroup() 229 mPowerGroup.setWakefulnessLocked(WAKEFULNESS_AWAKE, TIMESTAMP2, UID, in testLastWakeAndSleepTimeIsUpdated() 233 assertThat(mPowerGroup.getWakefulnessLocked()).isEqualTo(WAKEFULNESS_AWAKE); in testLastWakeAndSleepTimeIsUpdated() 235 eq(WAKEFULNESS_AWAKE), eq(TIMESTAMP2), eq(WAKE_REASON_GESTURE), in testLastWakeAndSleepTimeIsUpdated() 372 assertThat(mPowerGroup.getWakefulnessLocked()).isEqualTo(WAKEFULNESS_AWAKE); in testUpdateQuiescent() [all …]
|
D | AttentionDetectorTest.java | 85 mAttentionDetector.onWakefulnessChangeStarted(PowerManagerInternal.WAKEFULNESS_AWAKE); in setUp()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | MockingOomAdjusterTests.java | 206 sService.mWakefulness = new AtomicInteger(PowerManagerInternal.WAKEFULNESS_AWAKE); in setUpOnce() 235 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_Persistent_TopUi_Sleeping() 248 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_Persistent_TopUi_Awake() 262 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_Persistent_TopApp() 277 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_TopApp_Awake() 291 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_RunningAnimations() 304 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_RunningInstrumentation() 319 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_ReceivingBroadcast() 333 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_ExecutingService() 350 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_TopApp_Sleeping() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | WakefulnessLifecycle.java | 54 WAKEFULNESS_AWAKE, 62 public static final int WAKEFULNESS_AWAKE = 2; field in WakefulnessLifecycle 72 private int mWakefulness = WAKEFULNESS_AWAKE; 151 if (getWakefulness() == WAKEFULNESS_AWAKE) { in dispatchFinishedWakingUp() 154 setWakefulness(WAKEFULNESS_AWAKE); in dispatchFinishedWakingUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/ |
D | ScreenIdleConditionTest.kt | 22 import com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_AWAKE 49 whenever(wakefulnessLifecycle.wakefulness).thenReturn(WAKEFULNESS_AWAKE) in testCondition_awake() 63 whenever(wakefulnessLifecycle.wakefulness).thenReturn(WAKEFULNESS_AWAKE) in testCondition_invokesRetry()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/ |
D | VolumeDialogControllerImplTest.java | 146 WakefulnessLifecycle.WAKEFULNESS_AWAKE); in testVolumeChangeW_deviceNotInteractiveAOD() 156 WakefulnessLifecycle.WAKEFULNESS_AWAKE); in testVolumeChangeW_deviceInteractive() 166 WakefulnessLifecycle.WAKEFULNESS_AWAKE); in testVolumeChangeW_deviceInteractive_StartedSleeping() 180 WakefulnessLifecycle.WAKEFULNESS_AWAKE); in testVolumeChangeW_deviceOutFromBLEHeadset_doStateChanged() 194 WakefulnessLifecycle.WAKEFULNESS_AWAKE); in testVolumeChangeW_deviceOutFromA2DP_doStateChanged()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerGroup.java | 20 import static android.os.PowerManagerInternal.WAKEFULNESS_AWAKE; 137 if (newWakefulness == WAKEFULNESS_AWAKE) { in setWakefulnessLocked() 210 if (eventTime < mLastSleepTime || mWakefulness == WAKEFULNESS_AWAKE) { in wakeUpLocked() 227 setWakefulnessLocked(WAKEFULNESS_AWAKE, eventTime, uid, reason, opUid, in wakeUpLocked() 235 if (eventTime < mLastWakeTime || (!allowWake && mWakefulness != WAKEFULNESS_AWAKE)) { in dreamLocked()
|
D | AttentionDetector.java | 161 mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; in AttentionDetector() 283 if (wakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in onWakefulnessChangeStarted() 409 if (mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in onSuccess()
|
D | PowerManagerService.java | 29 import static android.os.PowerManagerInternal.WAKEFULNESS_AWAKE; 690 if (wakefulness == WAKEFULNESS_AWAKE) { in onWakefulnessChangedLocked() 728 WAKEFULNESS_AWAKE, in onDisplayGroupAdded() 1165 mWakefulnessRaw = WAKEFULNESS_AWAKE; 1266 new PowerGroup(WAKEFULNESS_AWAKE, mPowerGroupWakefulnessChangeListener, 2135 case WAKEFULNESS_AWAKE: 2187 case WAKEFULNESS_AWAKE: 2260 if (wakefulness == WAKEFULNESS_AWAKE) { 2261 return WAKEFULNESS_AWAKE; 2285 && newWakefulness == WAKEFULNESS_AWAKE) { [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | WakefulnessLifecycleTest.java | 67 assertEquals(WakefulnessLifecycle.WAKEFULNESS_AWAKE, mWakefulness.getWakefulness()); in baseState() 86 assertEquals(WakefulnessLifecycle.WAKEFULNESS_AWAKE, mWakefulness.getWakefulness()); in dispatchFinishedWakingUp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/shared/model/ |
D | WakefulnessState.kt | 38 WakefulnessLifecycle.WAKEFULNESS_AWAKE -> AWAKE in fromWakefulnessLifecycleInt()
|
D | WakefulnessModel.kt | 42 wakefulnessLifecycle.wakefulness == WakefulnessLifecycle.WAKEFULNESS_AWAKE, in fromWakefulnessLifecycle()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/recents/ |
D | OverviewProxyServiceTest.kt | 44 import com.android.systemui.shared.system.QuickStepContract.WAKEFULNESS_AWAKE 165 intThat { it and SYSUI_STATE_WAKEFULNESS_MASK == WAKEFULNESS_AWAKE } in WakefulnessLifecycle - dispatchFinishedWakingUp sets SysUI flag to AWAKE()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeMachine.java | 19 import static com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_AWAKE; 430 if (state != State.INITIALIZED && (wakefulness == WAKEFULNESS_AWAKE in resolveIntermediateState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | DozeServiceHost.java | 19 import static com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_AWAKE; 346 if (mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_AWAKE in setAnimateWakeup()
|
D | CentralSurfacesCommandQueueCallbacks.java | 22 import static com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_AWAKE; 572 return mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_AWAKE in isWakingUpOrAwake()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | OomAdjProfiler.java | 83 mScreenOff = wakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE; in onWakefulnessChanged()
|
D | OomAdjuster.java | 1558 if (mService.mWakefulness.get() == PowerManagerInternal.WAKEFULNESS_AWAKE in computeOomAdjLSP() 2150 == PowerManagerInternal.WAKEFULNESS_AWAKE in computeOomAdjLSP() 2471 && mService.mWakefulness.get() != PowerManagerInternal.WAKEFULNESS_AWAKE in computeOomAdjLSP() 2606 } else if (mService.mWakefulness.get() != PowerManagerInternal.WAKEFULNESS_AWAKE) {
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
D | AuthControllerTest.java | 23 import static com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_AWAKE; 241 when(mWakefulnessLifecycle.getWakefulness()).thenReturn(WAKEFULNESS_AWAKE); in setup() 746 when(mWakefulnessLifecycle.getWakefulness()).thenReturn(WAKEFULNESS_AWAKE); in testForwardsDozeEvents() 761 when(mWakefulnessLifecycle.getWakefulness()).thenReturn(WAKEFULNESS_AWAKE); in testForwardsWakeEvents()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | QuickStepContract.java | 135 public static final int WAKEFULNESS_AWAKE = SYSUI_STATE_AWAKE; field in QuickStepContract
|
/frameworks/base/core/proto/android/os/ |
D | powermanager.proto | 61 WAKEFULNESS_AWAKE = 1; enumerator
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | AuthController.java | 23 import static com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_AWAKE; 759 notifyDozeChanged(mStatusBarStateController.isDozing(), WAKEFULNESS_AWAKE); in AuthController() 856 final boolean isAwake = wakefullness == WAKEFULNESS_AWAKE; in notifyDozeChanged()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/ |
D | ThemeOverlayControllerTest.java | 19 import static com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_AWAKE; 136 when(mWakefulnessLifecycle.getWakefulness()).thenReturn(WAKEFULNESS_AWAKE); in setup()
|