Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/os/
DPowerManagerInternal.java56 public static String wakefulnessToString(int wakefulness) { in wakefulnessToString() argument
57 switch (wakefulness) { in wakefulnessToString()
67 return Integer.toString(wakefulness); in wakefulnessToString()
75 public static boolean isInteractive(int wakefulness) { in isInteractive() argument
76 return wakefulness == WAKEFULNESS_AWAKE || wakefulness == WAKEFULNESS_DREAMING; in isInteractive()
/frameworks/base/services/core/java/com/android/server/power/
DNotifier.java242 public void onWakefulnessChangeStarted(int wakefulness, int reason) { in onWakefulnessChangeStarted() argument
244 Slog.d(TAG, "onWakefulnessChangeStarted: wakefulness=" + wakefulness in onWakefulnessChangeStarted()
250 final boolean interactive = PowerManagerInternal.isInteractive(wakefulness); in onWakefulnessChangeStarted()
252 handleWakefulnessChange(wakefulness, interactive, reason); in onWakefulnessChangeStarted()
264 public void onWakefulnessChangeFinished(int wakefulness) { in onWakefulnessChangeFinished() argument
266 Slog.d(TAG, "onWakefulnessChangeFinished: wakefulness=" + wakefulness); in onWakefulnessChangeFinished()
272 final boolean interactive = PowerManagerInternal.isInteractive(wakefulness); in onWakefulnessChangeFinished()
274 handleWakefulnessChange(wakefulness, interactive, mLastReason); in onWakefulnessChangeFinished()
278 private void handleWakefulnessChange(final int wakefulness, boolean interactive, in handleWakefulnessChange() argument
285 mActivityManagerInternal.onWakefulnessChanged(wakefulness); in handleWakefulnessChange()
DPowerManagerService.java1173 private void setWakefulnessLocked(int wakefulness, int reason) { in setWakefulnessLocked() argument
1174 if (mWakefulness != wakefulness) { in setWakefulnessLocked()
1177 mWakefulness = wakefulness; in setWakefulnessLocked()
1180 mNotifier.onWakefulnessChangeStarted(wakefulness, reason); in setWakefulnessLocked()
1662 final int wakefulness; in handleSandman() local
1665 wakefulness = mWakefulness; in handleSandman()
1682 mDreamManager.startDream(wakefulness == WAKEFULNESS_DOZING); in handleSandman()
1694 if (wakefulness == WAKEFULNESS_DOZING) { in handleSandman()
1703 if (mSandmanSummoned || mWakefulness != wakefulness) { in handleSandman()
1708 if (wakefulness == WAKEFULNESS_DREAMING) { in handleSandman()
[all …]
/frameworks/base/core/java/android/app/
DActivityManagerInternal.java26 public abstract void onWakefulnessChanged(int wakefulness); in onWakefulnessChanged() argument
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java10005 void onWakefulnessChanged(int wakefulness) {
10007 mWakefulness = wakefulness;
19598 public void onWakefulnessChanged(int wakefulness) { in onWakefulnessChanged() argument
19599 ActivityManagerService.this.onWakefulnessChanged(wakefulness); in onWakefulnessChanged()