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.java44 private WakefulnessLifecycle mWakefulness; field in WakefulnessLifecycleTest
52 mWakefulness = new WakefulnessLifecycle(mContext, mWallpaperManager); in setUp()
54 mWakefulness.addObserver(mWakefulnessObserver); in setUp()
59 assertEquals(WakefulnessLifecycle.WAKEFULNESS_AWAKE, mWakefulness.getWakefulness()); in baseState()
66 mWakefulness.dispatchStartedWakingUp(PowerManager.WAKE_REASON_UNKNOWN); in dispatchStartedWakingUp()
68 assertEquals(WakefulnessLifecycle.WAKEFULNESS_WAKING, mWakefulness.getWakefulness()); in dispatchStartedWakingUp()
75 mWakefulness.dispatchStartedWakingUp(PowerManager.WAKE_REASON_UNKNOWN); in dispatchFinishedWakingUp()
76 mWakefulness.dispatchFinishedWakingUp(); in dispatchFinishedWakingUp()
78 assertEquals(WakefulnessLifecycle.WAKEFULNESS_AWAKE, mWakefulness.getWakefulness()); in dispatchFinishedWakingUp()
85 mWakefulness.dispatchStartedWakingUp(PowerManager.WAKE_REASON_UNKNOWN); in dispatchStartedGoingToSleep()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DMockingOomAdjusterTests.java202 sService.mWakefulness = new AtomicInteger(PowerManagerInternal.WAKEFULNESS_AWAKE); in setUpOnce()
229 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_ASLEEP); in testUpdateOomAdj_DoOne_Persistent_TopUi_Sleeping()
231 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_Persistent_TopUi_Sleeping()
244 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_Persistent_TopUi_Awake()
258 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_Persistent_TopApp()
273 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_TopApp_Awake()
287 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_RunningAnimations()
300 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_RunningInstrumentation()
315 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_ReceivingBroadcast()
329 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_ExecutingService()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DWakefulnessLifecycle.java70 private int mWakefulness = WAKEFULNESS_AWAKE; field in WakefulnessLifecycle
93 return mWakefulness; in getWakefulness()
170 pw.println(" mWakefulness=" + mWakefulness); in dump()
174 mWakefulness = wakefulness; in setWakefulness()
/frameworks/base/services/core/java/com/android/server/power/
DAttentionDetector.java144 private int mWakefulness; field in AttentionDetector
161 mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; in AttentionDetector()
282 mWakefulness = wakefulness; in onWakefulnessChangeStarted()
409 if (mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in onSuccess()
/frameworks/base/services/core/java/com/android/server/am/
DOomAdjuster.java1577 if (mService.mWakefulness.get() == PowerManagerInternal.WAKEFULNESS_AWAKE in computeOomAdjLSP()
2140 } else if (mService.mWakefulness.get() in computeOomAdjLSP()
2461 && mService.mWakefulness.get() != PowerManagerInternal.WAKEFULNESS_AWAKE in computeOomAdjLSP()
2599 } else if (mService.mWakefulness.get() != PowerManagerInternal.WAKEFULNESS_AWAKE in applyOomAdjLSP()
2607 } else if (mService.mWakefulness.get() != PowerManagerInternal.WAKEFULNESS_AWAKE in applyOomAdjLSP()
DActivityManagerService.java1298 AtomicInteger mWakefulness = new AtomicInteger(PowerManagerInternal.WAKEFULNESS_AWAKE); field in ActivityManagerService
6315 reportGlobalUsageEvent(mWakefulness.get() == PowerManagerInternal.WAKEFULNESS_AWAKE in reportCurWakefulnessUsageEvent()
6322 boolean wasAwake = mWakefulness.getAndSet(wakefulness) in onWakefulnessChanged()
9410 mAppProfiler.getTestPssMode(), mWakefulness.get()); in dumpOtherProcessesInfoLSP()
9613 mAtmInternal.writeProcessesToProto(proto, dumpPackage, mWakefulness.get(), in writeOtherProcessesInfoToProtoLSP()