Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/os/
DPowerManagerInternal.java74 public static String wakefulnessToString(int wakefulness) { in wakefulnessToString() argument
75 switch (wakefulness) { in wakefulnessToString()
85 return Integer.toString(wakefulness); in wakefulnessToString()
93 public static boolean isInteractive(int wakefulness) { in isInteractive() argument
94 return wakefulness == WAKEFULNESS_AWAKE || wakefulness == WAKEFULNESS_DREAMING; in isInteractive()
/frameworks/base/services/core/java/com/android/server/power/
DNotifier.java339 public void onWakefulnessChangeStarted(final int wakefulness, int reason) { in onWakefulnessChangeStarted() argument
340 final boolean interactive = PowerManagerInternal.isInteractive(wakefulness); in onWakefulnessChangeStarted()
342 Slog.d(TAG, "onWakefulnessChangeStarted: wakefulness=" + wakefulness in onWakefulnessChangeStarted()
351 mActivityManagerInternal.onWakefulnessChanged(wakefulness); in onWakefulnessChangeStarted()
DPowerManagerService.java1368 private void setWakefulnessLocked(int wakefulness, int reason) { in setWakefulnessLocked() argument
1369 if (mWakefulness != wakefulness) { in setWakefulnessLocked()
1370 mWakefulness = wakefulness; in setWakefulnessLocked()
1373 mNotifier.onWakefulnessChangeStarted(wakefulness, reason); in setWakefulnessLocked()
1935 final int wakefulness; in handleSandman() local
1938 wakefulness = mWakefulness; in handleSandman()
1955 mDreamManager.startDream(wakefulness == WAKEFULNESS_DOZING); in handleSandman()
1967 if (wakefulness == WAKEFULNESS_DOZING) { in handleSandman()
1976 if (mSandmanSummoned || mWakefulness != wakefulness) { in handleSandman()
1981 if (wakefulness == WAKEFULNESS_DREAMING) { in handleSandman()
[all …]
/frameworks/base/core/java/android/app/
DActivityManagerInternal.java64 public abstract void onWakefulnessChanged(int wakefulness); in onWakefulnessChanged() argument
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java11602 void onWakefulnessChanged(int wakefulness) { in onWakefulnessChanged() argument
11604 mWakefulness = wakefulness; in onWakefulnessChanged()
21833 public void onWakefulnessChanged(int wakefulness) { in onWakefulnessChanged() argument
21834 ActivityManagerService.this.onWakefulnessChanged(wakefulness); in onWakefulnessChanged()