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.java53 private int mWakefulness = WAKEFULNESS_ASLEEP; field in WakefulnessLifecycle
60 return mWakefulness; in getWakefulness()
98 pw.println(" mWakefulness=" + mWakefulness); in dump()
102 mWakefulness = wakefulness; in setWakefulness()
/frameworks/base/services/core/java/com/android/server/power/
DAttentionDetector.java117 private int mWakefulness; field in AttentionDetector
134 mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; in AttentionDetector()
253 mWakefulness = wakefulness; in onWakefulnessChangeStarted()
325 if (mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in onSuccess()
DPowerManagerService.java262 private int mWakefulness; field in PowerManagerService
792 mWakefulness = WAKEFULNESS_AWAKE; in PowerManagerService()
1402 if (mWakefulness == WAKEFULNESS_ASLEEP in userActivityNoUpdateLocked()
1403 || mWakefulness == WAKEFULNESS_DOZING in userActivityNoUpdateLocked()
1459 if (eventTime < mLastSleepTime || mWakefulness == WAKEFULNESS_AWAKE in wakeUpNoUpdateLocked()
1469 + PowerManagerInternal.wakefulnessToString(mWakefulness) in wakeUpNoUpdateLocked()
1511 || mWakefulness == WAKEFULNESS_ASLEEP in goToSleepNoUpdateLocked()
1512 || mWakefulness == WAKEFULNESS_DOZING in goToSleepNoUpdateLocked()
1568 if (eventTime < mLastWakeTime || mWakefulness != WAKEFULNESS_AWAKE in napNoUpdateLocked()
1592 if (eventTime < mLastWakeTime || mWakefulness == WAKEFULNESS_ASLEEP in reallyGoToSleepNoUpdateLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DOomAdjuster.java831 if (mService.mWakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE) { in computeOomAdjLocked()
1322 } else if (mService.mWakefulness in computeOomAdjLocked()
1608 && mService.mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in computeOomAdjLocked()
1706 } else if (mService.mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE in applyOomAdjLocked()
1714 } else if (mService.mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE in applyOomAdjLocked()
DActivityManagerService.java1229 int mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; field in ActivityManagerService
7913 reportGlobalUsageEventLocked(mWakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE in reportCurWakefulnessUsageEventLocked()
7920 boolean wasAwake = mWakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE; in onWakefulnessChanged()
7922 mWakefulness = wakefulness; in onWakefulnessChanged()
10749 mTestPssMode, mWakefulness); in dumpProcessesLocked()
11086 mAtmInternal.writeProcessesToProto(proto, dumpPackage, mWakefulness, mTestPssMode); in writeProcessesToProtoLocked()