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 …]
53 private int mWakefulness = WAKEFULNESS_ASLEEP; field in WakefulnessLifecycle60 return mWakefulness; in getWakefulness()98 pw.println(" mWakefulness=" + mWakefulness); in dump()102 mWakefulness = wakefulness; in setWakefulness()
117 private int mWakefulness; field in AttentionDetector134 mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; in AttentionDetector()253 mWakefulness = wakefulness; in onWakefulnessChangeStarted()325 if (mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in onSuccess()
262 private int mWakefulness; field in PowerManagerService792 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 …]
831 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()
1229 int mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; field in ActivityManagerService7913 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()