Searched refs:mWakefulness (Results 1 – 6 of 6) sorted by relevance
42 private WakefulnessLifecycle mWakefulness; field in WakefulnessLifecycleTest47 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 …]
41 private int mWakefulness = WAKEFULNESS_ASLEEP; field in WakefulnessLifecycle48 return mWakefulness; in getWakefulness()86 pw.println(" mWakefulness=" + mWakefulness); in dump()90 mWakefulness = wakefulness; in setWakefulness()
113 private int mWakefulness; field in AttentionDetector130 mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; in AttentionDetector()252 mWakefulness = wakefulness; in onWakefulnessChangeStarted()323 if (mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in onSuccess()
260 private int mWakefulness; field in PowerManagerService784 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 …]
827 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()
1220 int mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; field in ActivityManagerService7871 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()