Home
last modified time | relevance | path

Searched refs:wakefulness (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/os/
DPowerManagerInternal.java69 public static String wakefulnessToString(int wakefulness) { in wakefulnessToString() argument
70 switch (wakefulness) { in wakefulnessToString()
80 return Integer.toString(wakefulness); in wakefulnessToString()
88 public static boolean isInteractive(int wakefulness) { in isInteractive() argument
89 return wakefulness == WAKEFULNESS_AWAKE || wakefulness == WAKEFULNESS_DREAMING; in isInteractive()
/frameworks/base/services/core/java/com/android/server/power/
DNotifier.java294 public void onWakefulnessChangeStarted(final int wakefulness, int reason) { in onWakefulnessChangeStarted() argument
295 final boolean interactive = PowerManagerInternal.isInteractive(wakefulness); in onWakefulnessChangeStarted()
297 Slog.d(TAG, "onWakefulnessChangeStarted: wakefulness=" + wakefulness in onWakefulnessChangeStarted()
306 mActivityManagerInternal.onWakefulnessChanged(wakefulness); in onWakefulnessChangeStarted()
DPowerManagerService.java1315 private void setWakefulnessLocked(int wakefulness, int reason) { in setWakefulnessLocked() argument
1316 if (mWakefulness != wakefulness) { in setWakefulnessLocked()
1317 mWakefulness = wakefulness; in setWakefulnessLocked()
1320 mNotifier.onWakefulnessChangeStarted(wakefulness, reason); in setWakefulnessLocked()
1846 final int wakefulness; in handleSandman() local
1849 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 …]
/frameworks/base/core/java/android/app/
DActivityManagerInternal.java61 public abstract void onWakefulnessChanged(int wakefulness); in onWakefulnessChanged() argument
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java11537 void onWakefulnessChanged(int wakefulness) { in onWakefulnessChanged() argument
11539 mWakefulness = wakefulness; in onWakefulnessChanged()
21510 public void onWakefulnessChanged(int wakefulness) { in onWakefulnessChanged() argument
21511 ActivityManagerService.this.onWakefulnessChanged(wakefulness); in onWakefulnessChanged()