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/services/tests/mockingservicestests/src/com/android/server/am/
DMockingOomAdjusterTests.java202 sService.mWakefulness = PowerManagerInternal.WAKEFULNESS_ASLEEP; in testUpdateOomAdj_DoOne_Persistent_TopUi_Sleeping()
204 sService.mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; in testUpdateOomAdj_DoOne_Persistent_TopUi_Sleeping()
217 sService.mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; in testUpdateOomAdj_DoOne_Persistent_TopUi_Awake()
231 sService.mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; in testUpdateOomAdj_DoOne_Persistent_TopApp()
246 sService.mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; in testUpdateOomAdj_DoOne_TopApp_Awake()
260 sService.mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; in testUpdateOomAdj_DoOne_RunningAnimations()
273 sService.mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; in testUpdateOomAdj_DoOne_RunningInstrumentation()
288 sService.mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; in testUpdateOomAdj_DoOne_ReceivingBroadcast()
302 sService.mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; in testUpdateOomAdj_DoOne_ExecutingService()
315 sService.mWakefulness = PowerManagerInternal.WAKEFULNESS_ASLEEP; in testUpdateOomAdj_DoOne_TopApp_Sleeping()
[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.java129 private int mWakefulness; field in AttentionDetector
149 mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; in AttentionDetector()
267 mWakefulness = wakefulness; in onWakefulnessChangeStarted()
367 if (mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in onSuccess()
/frameworks/base/services/core/java/com/android/server/am/
DOomAdjuster.java1165 if (mService.mWakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE) { in computeOomAdjLocked()
1686 } else if (mService.mWakefulness in computeOomAdjLocked()
2001 && mService.mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in computeOomAdjLocked()
2134 } else if (mService.mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE in applyOomAdjLocked()
2142 } else if (mService.mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE in applyOomAdjLocked()
DActivityManagerService.java1311 int mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; field in ActivityManagerService
8333 reportGlobalUsageEventLocked(mWakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE in reportCurWakefulnessUsageEventLocked()
8340 boolean wasAwake = mWakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE; in onWakefulnessChanged()
8342 mWakefulness = wakefulness; in onWakefulnessChanged()
11521 mTestPssMode, mWakefulness); in dumpProcessesLocked()
11864 mAtmInternal.writeProcessesToProto(proto, dumpPackage, mWakefulness, mTestPssMode); in writeProcessesToProtoLocked()