Searched refs:wakefulness (Results 1 - 9 of 9) sorted by relevance

/frameworks/base/core/java/android/os/
H A DPowerManagerInternal.java58 public static String wakefulnessToString(int wakefulness) { argument
59 switch (wakefulness) {
69 return Integer.toString(wakefulness);
76 public static int wakefulnessToProtoEnum(int wakefulness) { argument
77 switch (wakefulness) {
87 return wakefulness;
92 * Returns true if the wakefulness state represents an interactive state
95 public static boolean isInteractive(int wakefulness) { argument
96 return wakefulness == WAKEFULNESS_AWAKE || wakefulness
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
H A DWakefulnessLifecycle.java27 * Tracks the wakefulness lifecycle.
81 private void setWakefulness(int wakefulness) { argument
82 mWakefulness = wakefulness;
83 Trace.traceCounter(Trace.TRACE_TAG_APP, "wakefulness", wakefulness);
/frameworks/base/tests/JankBench/scripts/
H A Dadbutil.py34 wakefulness = re.search('mWakefulness=([a-zA-Z]+)', output)
35 if wakefulness.group(1) != "Awake":
/frameworks/base/core/java/android/app/
H A DActivityManagerInternal.java112 public abstract void onWakefulnessChanged(int wakefulness); argument
/frameworks/base/services/core/java/com/android/server/power/
H A DNotifier.java354 * Notifies that the device is changing wakefulness.
359 public void onWakefulnessChangeStarted(final int wakefulness, int reason) { argument
360 final boolean interactive = PowerManagerInternal.isInteractive(wakefulness);
362 Slog.d(TAG, "onWakefulnessChangeStarted: wakefulness=" + wakefulness
366 // Tell the activity manager about changes in wakefulness, not just interactivity.
371 mActivityManagerInternal.onWakefulnessChanged(wakefulness);
401 * Notifies that the device has finished changing wakefulness.
H A DPowerManagerService.java1518 void setWakefulnessLocked(int wakefulness, int reason) { argument
1519 if (mWakefulness != wakefulness) {
1520 mWakefulness = wakefulness;
1524 mNotifier.onWakefulnessChangeStarted(wakefulness, reason);
1599 // Phase 1: Update wakefulness.
1601 // by changes in wakefulness.
2102 * Updates the wakefulness of the device.
2106 * if the wakefulness changes.
2108 * Returns true if the wakefulness changed and we need to restart power state calculation.
2205 final int wakefulness;
[all...]
/frameworks/base/core/proto/android/server/
H A Dpowermanagerservice.proto78 optional .android.os.PowerManagerInternalProto.Wakefulness wakefulness = 3;
H A Dactivitymanagerservice.proto685 optional .android.os.PowerManagerInternalProto.Wakefulness wakefulness = 1;
/frameworks/base/services/core/java/com/android/server/am/
H A DActivityManagerService.java13276 void onWakefulnessChanged(int wakefulness) { argument
13279 boolean isAwake = wakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE;
13280 mWakefulness = wakefulness;
26317 onWakefulnessChanged(int wakefulness) argument
[all...]

Completed in 268 milliseconds