Searched refs:mWakefulness (Results 1 – 6 of 6) sorted by relevance
44 private WakefulnessLifecycle mWakefulness; field in WakefulnessLifecycleTest52 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 …]
202 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 …]
70 private int mWakefulness = WAKEFULNESS_AWAKE; field in WakefulnessLifecycle93 return mWakefulness; in getWakefulness()170 pw.println(" mWakefulness=" + mWakefulness); in dump()174 mWakefulness = wakefulness; in setWakefulness()
144 private int mWakefulness; field in AttentionDetector161 mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; in AttentionDetector()282 mWakefulness = wakefulness; in onWakefulnessChangeStarted()409 if (mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in onSuccess()
1577 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()
1298 AtomicInteger mWakefulness = new AtomicInteger(PowerManagerInternal.WAKEFULNESS_AWAKE); field in ActivityManagerService6315 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()