Home
last modified time | relevance | path

Searched refs:wakeLockSummary (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/core/java/com/android/server/power/
DScreenTimeoutOverridePolicy.java130 long getScreenTimeoutOverrideLocked(int wakeLockSummary, long screenOffTimeout) { in getScreenTimeoutOverrideLocked() argument
131 if (!isWakeLockAcquired(wakeLockSummary)) { in getScreenTimeoutOverrideLocked()
146 void onUserActivity(int wakeLockSummary, @PowerManager.UserActivityEvent int event) { in onUserActivity() argument
147 if (!isWakeLockAcquired(wakeLockSummary)) { in onUserActivity()
173 void checkScreenWakeLock(int wakeLockSummary) { in checkScreenWakeLock() argument
174 if (!isWakeLockAcquired(wakeLockSummary)) { in checkScreenWakeLock()
178 if ((wakeLockSummary & (WAKE_LOCK_SCREEN_BRIGHT | WAKE_LOCK_SCREEN_DIM in checkScreenWakeLock()
187 void onWakefulnessChange(int wakeLockSummary, int globalWakefulness) { in onWakefulnessChange() argument
188 if (!isWakeLockAcquired(wakeLockSummary)) { in onWakefulnessChange()
197 private boolean isWakeLockAcquired(int wakeLockSummary) { in isWakeLockAcquired() argument
[all …]
DPowerGroup.java401 final int wakeLockSummary = getWakeLockSummaryLocked(); in getDesiredScreenPolicyLocked() local
405 if ((wakeLockSummary & WAKE_LOCK_DOZE) != 0) { in getDesiredScreenPolicyLocked()
419 if ((wakeLockSummary & WAKE_LOCK_SCREEN_BRIGHT) != 0 in getDesiredScreenPolicyLocked()
DPowerManagerService.java2789 int wakeLockSummary = powerGroup.getWakeLockSummaryLocked();
2790 wakeLockSummary |= wakeLockFlags;
2791 powerGroup.setWakeLockSummaryLocked(wakeLockSummary);
2811 final int wakeLockSummary = adjustWakeLockSummary(powerGroup.getWakefulnessLocked(),
2813 powerGroup.setWakeLockSummaryLocked(wakeLockSummary);
2833 private static int adjustWakeLockSummary(int wakefulness, int wakeLockSummary) {
2836 wakeLockSummary &= ~(WAKE_LOCK_DOZE | WAKE_LOCK_DRAW);
2839 || (wakeLockSummary & WAKE_LOCK_DOZE) != 0) {
2840 wakeLockSummary &= ~(WAKE_LOCK_SCREEN_BRIGHT | WAKE_LOCK_SCREEN_DIM
2843 wakeLockSummary &= ~WAKE_LOCK_PROXIMITY_SCREEN_OFF;
[all …]