Searched refs:wakefulness (Results 1 – 5 of 5) sorted by relevance
69 public static String wakefulnessToString(int wakefulness) { in wakefulnessToString() argument70 switch (wakefulness) { in wakefulnessToString()80 return Integer.toString(wakefulness); in wakefulnessToString()88 public static boolean isInteractive(int wakefulness) { in isInteractive() argument89 return wakefulness == WAKEFULNESS_AWAKE || wakefulness == WAKEFULNESS_DREAMING; in isInteractive()
294 public void onWakefulnessChangeStarted(final int wakefulness, int reason) { in onWakefulnessChangeStarted() argument295 final boolean interactive = PowerManagerInternal.isInteractive(wakefulness); in onWakefulnessChangeStarted()297 Slog.d(TAG, "onWakefulnessChangeStarted: wakefulness=" + wakefulness in onWakefulnessChangeStarted()306 mActivityManagerInternal.onWakefulnessChanged(wakefulness); in onWakefulnessChangeStarted()
1315 private void setWakefulnessLocked(int wakefulness, int reason) { in setWakefulnessLocked() argument1316 if (mWakefulness != wakefulness) { in setWakefulnessLocked()1317 mWakefulness = wakefulness; in setWakefulnessLocked()1320 mNotifier.onWakefulnessChangeStarted(wakefulness, reason); in setWakefulnessLocked()1846 final int wakefulness; in handleSandman() local1849 wakefulness = mWakefulness; in handleSandman()1866 mDreamManager.startDream(wakefulness == WAKEFULNESS_DOZING); in handleSandman()1878 if (wakefulness == WAKEFULNESS_DOZING) { in handleSandman()1887 if (mSandmanSummoned || mWakefulness != wakefulness) { in handleSandman()1892 if (wakefulness == WAKEFULNESS_DREAMING) { in handleSandman()[all …]
61 public abstract void onWakefulnessChanged(int wakefulness); in onWakefulnessChanged() argument
11537 void onWakefulnessChanged(int wakefulness) { in onWakefulnessChanged() argument11539 mWakefulness = wakefulness; in onWakefulnessChanged()21510 public void onWakefulnessChanged(int wakefulness) { in onWakefulnessChanged() argument21511 ActivityManagerService.this.onWakefulnessChanged(wakefulness); in onWakefulnessChanged()