Home
last modified time | relevance | path

Searched refs:wakefulness (Results 1 – 6 of 6) 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.java343 public void onWakefulnessChangeStarted(final int wakefulness, int reason) { in onWakefulnessChangeStarted() argument
344 final boolean interactive = PowerManagerInternal.isInteractive(wakefulness); in onWakefulnessChangeStarted()
346 Slog.d(TAG, "onWakefulnessChangeStarted: wakefulness=" + wakefulness in onWakefulnessChangeStarted()
355 mActivityManagerInternal.onWakefulnessChanged(wakefulness); in onWakefulnessChangeStarted()
DPowerManagerService.java1557 private void setWakefulnessLocked(int wakefulness, int reason) { in setWakefulnessLocked() argument
1558 if (mWakefulness != wakefulness) { in setWakefulnessLocked()
1559 mWakefulness = wakefulness; in setWakefulnessLocked()
1562 mNotifier.onWakefulnessChangeStarted(wakefulness, reason); in setWakefulnessLocked()
2150 final int wakefulness; in handleSandman() local
2153 wakefulness = mWakefulness; in handleSandman()
2170 mDreamManager.startDream(wakefulness == WAKEFULNESS_DOZING); in handleSandman()
2182 if (wakefulness == WAKEFULNESS_DOZING) { in handleSandman()
2191 if (mSandmanSummoned || mWakefulness != wakefulness) { in handleSandman()
2196 if (wakefulness == WAKEFULNESS_DREAMING) { in handleSandman()
[all …]
/frameworks/base/core/java/android/app/
DActivityManagerInternal.java87 public abstract void onWakefulnessChanged(int wakefulness); in onWakefulnessChanged() argument
/frameworks/base/core/proto/android/service/
Dpower.proto128 Wakefulness wakefulness = 3; field
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java12322 void onWakefulnessChanged(int wakefulness) {
12324 mWakefulness = wakefulness;
23736 public void onWakefulnessChanged(int wakefulness) {
23737 ActivityManagerService.this.onWakefulnessChanged(wakefulness);