Home
last modified time | relevance | path

Searched refs:mWakefulness (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DWakefulnessLifecycleTest.java42 private WakefulnessLifecycle mWakefulness; field in WakefulnessLifecycleTest
47 mWakefulness = new WakefulnessLifecycle(); in setUp()
49 mWakefulness.addObserver(mWakefulnessObserver); in setUp()
54 assertEquals(WakefulnessLifecycle.WAKEFULNESS_ASLEEP, mWakefulness.getWakefulness()); in baseState()
61 mWakefulness.dispatchStartedWakingUp(); in dispatchStartedWakingUp()
63 assertEquals(WakefulnessLifecycle.WAKEFULNESS_WAKING, mWakefulness.getWakefulness()); in dispatchStartedWakingUp()
70 mWakefulness.dispatchStartedWakingUp(); in dispatchFinishedWakingUp()
71 mWakefulness.dispatchFinishedWakingUp(); in dispatchFinishedWakingUp()
73 assertEquals(WakefulnessLifecycle.WAKEFULNESS_AWAKE, mWakefulness.getWakefulness()); in dispatchFinishedWakingUp()
80 mWakefulness.dispatchStartedWakingUp(); in dispatchStartedGoingToSleep()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DWakefulnessLifecycle.java41 private int mWakefulness = WAKEFULNESS_ASLEEP; field in WakefulnessLifecycle
48 return mWakefulness; in getWakefulness()
86 pw.println(" mWakefulness=" + mWakefulness); in dump()
90 mWakefulness = wakefulness; in setWakefulness()
/frameworks/base/services/core/java/com/android/server/power/
DAttentionDetector.java113 private int mWakefulness; field in AttentionDetector
130 mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; in AttentionDetector()
252 mWakefulness = wakefulness; in onWakefulnessChangeStarted()
323 if (mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in onSuccess()
DPowerManagerService.java260 private int mWakefulness; field in PowerManagerService
784 mWakefulness = WAKEFULNESS_AWAKE; in PowerManagerService()
1392 if (mWakefulness == WAKEFULNESS_ASLEEP in userActivityNoUpdateLocked()
1393 || mWakefulness == WAKEFULNESS_DOZING in userActivityNoUpdateLocked()
1449 if (eventTime < mLastSleepTime || mWakefulness == WAKEFULNESS_AWAKE in wakeUpNoUpdateLocked()
1459 + PowerManagerInternal.wakefulnessToString(mWakefulness) in wakeUpNoUpdateLocked()
1501 || mWakefulness == WAKEFULNESS_ASLEEP in goToSleepNoUpdateLocked()
1502 || mWakefulness == WAKEFULNESS_DOZING in goToSleepNoUpdateLocked()
1557 if (eventTime < mLastWakeTime || mWakefulness != WAKEFULNESS_AWAKE in napNoUpdateLocked()
1581 if (eventTime < mLastWakeTime || mWakefulness == WAKEFULNESS_ASLEEP in reallyGoToSleepNoUpdateLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DOomAdjuster.java827 if (mService.mWakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE) { in computeOomAdjLocked()
1318 } else if (mService.mWakefulness in computeOomAdjLocked()
1604 && mService.mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in computeOomAdjLocked()
1702 } else if (mService.mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE in applyOomAdjLocked()
1710 } else if (mService.mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE in applyOomAdjLocked()
DActivityManagerService.java1220 int mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; field in ActivityManagerService
7871 reportGlobalUsageEventLocked(mWakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE in reportCurWakefulnessUsageEventLocked()
7878 boolean wasAwake = mWakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE; in onWakefulnessChanged()
7880 mWakefulness = wakefulness; in onWakefulnessChanged()
10698 mTestPssMode, mWakefulness); in dumpProcessesLocked()
11035 mAtmInternal.writeProcessesToProto(proto, dumpPackage, mWakefulness, mTestPssMode); in writeProcessesToProtoLocked()