Home
last modified time | relevance | path

Searched refs:PowerManager (Results 1 – 25 of 451) sorted by relevance

12345678910>>...19

/frameworks/base/packages/SystemUI/src/com/android/systemui/power/shared/model/
DWakeSleepReason.kt19 import android.os.PowerManager
24 @PowerManager.WakeReason val powerManagerWakeReason: Int,
27 POWER_BUTTON(isTouch = false, PowerManager.WAKE_REASON_POWER_BUTTON),
30 TAP(isTouch = true, PowerManager.WAKE_REASON_TAP),
33 GESTURE(isTouch = true, PowerManager.WAKE_REASON_GESTURE),
36 KEY(isTouch = false, PowerManager.WAKE_REASON_WAKE_KEY),
39 MOTION(isTouch = false, PowerManager.WAKE_REASON_WAKE_MOTION),
42 LID(isTouch = false, PowerManager.WAKE_REASON_LID),
45 UNFOLD(isTouch = false, PowerManager.WAKE_REASON_UNFOLD_DEVICE),
48 LIFT(isTouch = false, PowerManager.WAKE_REASON_LIFT),
[all …]
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DWakeLockLogTest.java27 import android.os.PowerManager;
67 PowerManager.PARTIAL_WAKE_LOCK | PowerManager.ON_AFTER_RELEASE, -1); in testAddTwoItems_withNoEventTimeSupplied()
71 PowerManager.FULL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP, -1); in testAddTwoItems_withNoEventTimeSupplied()
92 PowerManager.PARTIAL_WAKE_LOCK | PowerManager.ON_AFTER_RELEASE, 1000L); in testAddTwoItems()
95 PowerManager.FULL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP, 1150L); in testAddTwoItems()
115 log.onWakeLockAcquired("TagPartial", 101, PowerManager.PARTIAL_WAKE_LOCK, 1000L); in testAddTwoItemsWithTimeReset()
117 log.onWakeLockAcquired("TagFull", 102, PowerManager.FULL_WAKE_LOCK, 1350L); in testAddTwoItemsWithTimeReset()
135 log.onWakeLockAcquired("TagPartial", 101, PowerManager.PARTIAL_WAKE_LOCK, 1000L); in testAddTwoItemsWithTagOverwrite()
137 log.onWakeLockAcquired("TagFull", 102, PowerManager.FULL_WAKE_LOCK, 1150L); in testAddTwoItemsWithTagOverwrite()
156 log.onWakeLockAcquired("TagPartial", 101, PowerManager.PARTIAL_WAKE_LOCK, 1000L); in testAddFourItemsWithRingBufferOverflow()
[all …]
/frameworks/base/core/java/android/view/
DWindowManagerPolicyConstants.java22 import android.os.PowerManager;
125 @PowerManager.GoToSleepReason int reason) { in translateSleepReasonToOffReason()
127 case PowerManager.GO_TO_SLEEP_REASON_DEVICE_ADMIN: in translateSleepReasonToOffReason()
129 case PowerManager.GO_TO_SLEEP_REASON_TIMEOUT: in translateSleepReasonToOffReason()
130 case PowerManager.GO_TO_SLEEP_REASON_INATTENTIVE: in translateSleepReasonToOffReason()
166 static @OnReason int translateWakeReasonToOnReason(@PowerManager.WakeReason int reason) { in translateWakeReasonToOnReason()
168 case PowerManager.WAKE_REASON_POWER_BUTTON: in translateWakeReasonToOnReason()
169 case PowerManager.WAKE_REASON_PLUGGED_IN: in translateWakeReasonToOnReason()
170 case PowerManager.WAKE_REASON_GESTURE: in translateWakeReasonToOnReason()
171 case PowerManager.WAKE_REASON_TAP: in translateWakeReasonToOnReason()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerTest.java55 @IgnoreUnderRavenwood(blockedBy = PowerManager.class)
60 private PowerManager mPm;
64 private PowerManager.OnThermalStatusChangedListener mListener1;
66 private PowerManager.OnThermalStatusChangedListener mListener2;
102 mPm = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in setUp()
133 PowerManager.WakeLock wl = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "FULL_WAKE_LOCK"); in testNewWakeLock()
136 wl = mPm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, "SCREEN_BRIGHT_WAKE_LOCK"); in testNewWakeLock()
139 wl = mPm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "SCREEN_DIM_WAKE_LOCK"); in testNewWakeLock()
142 wl = mPm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "PARTIAL_WAKE_LOCK"); in testNewWakeLock()
157 final int badFlags = PowerManager.SCREEN_BRIGHT_WAKE_LOCK in testBadNewWakeLock()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DBrightnessThrottlerTest.java34 import android.os.PowerManager;
100 singleLevel.add(new ThrottlingLevel(PowerManager.THERMAL_STATUS_CRITICAL, 0.25f)); in testThermalBrightnessThrottlingData()
103 validLevels.add(new ThrottlingLevel(PowerManager.THERMAL_STATUS_MODERATE, 0.62f)); in testThermalBrightnessThrottlingData()
104 validLevels.add(new ThrottlingLevel(PowerManager.THERMAL_STATUS_CRITICAL, 0.25f)); in testThermalBrightnessThrottlingData()
107 unsortedThermalLevels.add(new ThrottlingLevel(PowerManager.THERMAL_STATUS_CRITICAL, 0.62f)); in testThermalBrightnessThrottlingData()
108 unsortedThermalLevels.add(new ThrottlingLevel(PowerManager.THERMAL_STATUS_MODERATE, 0.25f)); in testThermalBrightnessThrottlingData()
112 new ThrottlingLevel(PowerManager.THERMAL_STATUS_MODERATE, 0.25f)); in testThermalBrightnessThrottlingData()
114 new ThrottlingLevel(PowerManager.THERMAL_STATUS_CRITICAL, 0.62f)); in testThermalBrightnessThrottlingData()
117 unsortedLevels.add(new ThrottlingLevel(PowerManager.THERMAL_STATUS_CRITICAL, 0.25f)); in testThermalBrightnessThrottlingData()
118 unsortedLevels.add(new ThrottlingLevel(PowerManager.THERMAL_STATUS_MODERATE, 0.62f)); in testThermalBrightnessThrottlingData()
[all …]
/frameworks/base/core/java/com/android/internal/display/
DBrightnessSynchronizer.java33 import android.os.PowerManager;
119 } else if (mLatestIntBrightness != PowerManager.BRIGHTNESS_INVALID) { in startSynchronizing()
149 if (brightnessInt == PowerManager.BRIGHTNESS_OFF) { in brightnessIntToFloat()
150 return PowerManager.BRIGHTNESS_OFF_FLOAT; in brightnessIntToFloat()
151 } else if (brightnessInt == PowerManager.BRIGHTNESS_INVALID) { in brightnessIntToFloat()
152 return PowerManager.BRIGHTNESS_INVALID_FLOAT; in brightnessIntToFloat()
154 final float minFloat = PowerManager.BRIGHTNESS_MIN; in brightnessIntToFloat()
155 final float maxFloat = PowerManager.BRIGHTNESS_MAX; in brightnessIntToFloat()
156 final float minInt = PowerManager.BRIGHTNESS_OFF + 1; in brightnessIntToFloat()
157 final float maxInt = PowerManager.BRIGHTNESS_ON; in brightnessIntToFloat()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/
DBrightnessThermalClamperTest.java28 import android.os.PowerManager;
88 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testNoThrottlingData()
96 {List.of(), Temperature.THROTTLING_LIGHT, false, PowerManager.BRIGHTNESS_MAX}, in testThrottlingData()
99 new ThrottlingLevel(PowerManager.THERMAL_STATUS_MODERATE, 0.5f), in testThrottlingData()
100 new ThrottlingLevel(PowerManager.THERMAL_STATUS_CRITICAL, 0.1f)), in testThrottlingData()
101 Temperature.THROTTLING_LIGHT, false, PowerManager.BRIGHTNESS_MAX}, in testThrottlingData()
104 new ThrottlingLevel(PowerManager.THERMAL_STATUS_MODERATE, 0.5f), in testThrottlingData()
105 new ThrottlingLevel(PowerManager.THERMAL_STATUS_CRITICAL, 0.1f)), in testThrottlingData()
109 new ThrottlingLevel(PowerManager.THERMAL_STATUS_MODERATE, 0.5f), in testThrottlingData()
110 new ThrottlingLevel(PowerManager.THERMAL_STATUS_CRITICAL, 0.1f)), in testThrottlingData()
[all …]
DBrightnessPowerClamperTest.java24 import android.os.PowerManager;
78 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testNoThrottlingData()
86 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testPowerThrottlingNoOngoingAnimation()
90 List.of(new ThrottlingLevel(PowerManager.THERMAL_STATUS_SEVERE, 100f)))); in testPowerThrottlingNoOngoingAnimation()
94 expectedBrightness = expectedBrightness * PowerManager.BRIGHTNESS_MAX; in testPowerThrottlingNoOngoingAnimation()
102 List.of(new ThrottlingLevel(PowerManager.THERMAL_STATUS_CRITICAL, 50f)))); in testPowerThrottlingNoOngoingAnimation()
105 expectedBrightness = 0.5f * PowerManager.BRIGHTNESS_MAX; in testPowerThrottlingNoOngoingAnimation()
114 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testPowerThrottlingWithOngoingAnimation()
118 List.of(new ThrottlingLevel(PowerManager.THERMAL_STATUS_SEVERE, 100f)))); in testPowerThrottlingWithOngoingAnimation()
122 expectedBrightness = expectedBrightness * PowerManager.BRIGHTNESS_MAX; in testPowerThrottlingWithOngoingAnimation()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DWakefulnessLifecycleTest.java26 import android.os.PowerManager;
74 mWakefulness.dispatchStartedWakingUp(PowerManager.WAKE_REASON_UNKNOWN); in dispatchStartedWakingUp()
83 mWakefulness.dispatchStartedWakingUp(PowerManager.WAKE_REASON_UNKNOWN); in dispatchFinishedWakingUp()
94 mWakefulness.dispatchStartedWakingUp(PowerManager.WAKE_REASON_UNKNOWN); in dispatchStartedGoingToSleep()
96 mWakefulness.dispatchStartedGoingToSleep(PowerManager.GO_TO_SLEEP_REASON_MIN); in dispatchStartedGoingToSleep()
106 mWakefulness.dispatchStartedWakingUp(PowerManager.WAKE_REASON_UNKNOWN); in dispatchFinishedGoingToSleep()
108 mWakefulness.dispatchStartedGoingToSleep(PowerManager.GO_TO_SLEEP_REASON_MIN); in dispatchFinishedGoingToSleep()
119 mWakefulness.dispatchStartedWakingUp(PowerManager.WAKE_REASON_UNKNOWN); in doesNotDispatchTwice()
120 mWakefulness.dispatchStartedWakingUp(PowerManager.WAKE_REASON_UNKNOWN); in doesNotDispatchTwice()
123 mWakefulness.dispatchStartedGoingToSleep(PowerManager.GO_TO_SLEEP_REASON_MIN); in doesNotDispatchTwice()
[all …]
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipWakeLock.java19 import android.os.PowerManager;
27 private PowerManager mPowerManager;
28 private PowerManager.WakeLock mWakeLock;
29 private PowerManager.WakeLock mTimerWakeLock;
32 SipWakeLock(PowerManager powerManager) { in SipWakeLock()
45 PowerManager.PARTIAL_WAKE_LOCK, "SipWakeLock.timer"); in acquire()
55 PowerManager.PARTIAL_WAKE_LOCK, "SipWakeLock"); in acquire()
/frameworks/base/services/core/java/com/android/server/biometrics/log/
DOperationContextExt.java34 import android.os.PowerManager;
184 case PowerManager.WAKE_REASON_POWER_BUTTON: in getWakeReason()
186 case PowerManager.WAKE_REASON_GESTURE: in getWakeReason()
188 case PowerManager.WAKE_REASON_WAKE_KEY: in getWakeReason()
190 case PowerManager.WAKE_REASON_WAKE_MOTION: in getWakeReason()
192 case PowerManager.WAKE_REASON_DISPLAY_GROUP_ADDED: in getWakeReason()
194 case PowerManager.WAKE_REASON_TAP: in getWakeReason()
196 case PowerManager.WAKE_REASON_LIFT: in getWakeReason()
198 case PowerManager.WAKE_REASON_BIOMETRIC: in getWakeReason()
200 case PowerManager.WAKE_REASON_CAMERA_LAUNCH: in getWakeReason()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/domain/interactor/
DPowerInteractorTest.kt20 import android.os.PowerManager
103 underTest.wakeUpIfDozing("why", PowerManager.WAKE_REASON_TAP) in wakeUpIfDozing_notDozing_notWoken()
114 underTest.wakeUpIfDozing("why", PowerManager.WAKE_REASON_TAP) in wakeUpIfDozing_notAllowed_notWoken()
125 underTest.wakeUpIfDozing("testReason", PowerManager.WAKE_REASON_GESTURE) in wakeUpIfDozing_dozingAndAllowed_wokenAndFalsingNotified()
128 assertThat(repository.lastWakeReason).isEqualTo(PowerManager.WAKE_REASON_GESTURE) in wakeUpIfDozing_dozingAndAllowed_wokenAndFalsingNotified()
145 underTest.onStartedGoingToSleep(PowerManager.GO_TO_SLEEP_REASON_MIN) in wakeUpForFullScreenIntent_startingToSleep_woken()
151 assertThat(repository.lastWakeReason).isEqualTo(PowerManager.WAKE_REASON_APPLICATION) in wakeUpForFullScreenIntent_startingToSleep_woken()
161 assertThat(repository.lastWakeReason).isEqualTo(PowerManager.WAKE_REASON_APPLICATION) in wakeUpForFullScreenIntent_dozing_woken()
170 underTest.wakeUpIfDreaming("testReason", PowerManager.WAKE_REASON_GESTURE) in wakeUpIfDreaming_dreaming_woken()
174 assertThat(repository.lastWakeReason).isEqualTo(PowerManager.WAKE_REASON_GESTURE) in wakeUpIfDreaming_dreaming_woken()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DWakefulnessSessionObserverTest.java19 import static android.os.PowerManager.GO_TO_SLEEP_REASON_POWER_BUTTON;
20 import static android.os.PowerManager.GO_TO_SLEEP_REASON_TIMEOUT;
21 import static android.os.PowerManager.WAKE_REASON_POWER_BUTTON;
43 import android.os.PowerManager;
117 int firstActivity = PowerManager.USER_ACTIVITY_EVENT_BUTTON; in testOnUserActivity_updateActivity()
125 int newActivity = PowerManager.USER_ACTIVITY_EVENT_ATTENTION; in testOnUserActivity_updateActivity()
150 mWakefulnessSessionObserver.onWakeLockAcquired(PowerManager.DOZE_WAKE_LOCK); in testOnWakeLockAcquired()
157 PowerManager.SCREEN_TIMEOUT_OVERRIDE_WAKE_LOCK); in testOnWakeLockAcquired()
167 PowerManager.SCREEN_TIMEOUT_OVERRIDE_WAKE_LOCK, RELEASE_REASON_UNKNOWN); in testOnWakeLockReleased()
183 mTestClock.now(), powerGroupId, PowerManager.USER_ACTIVITY_EVENT_ATTENTION); in testOnWakefulnessChangeStarted_onDozing_UserActivityAttention_OverrideTimeout()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/domain/interactor/
DPowerInteractor.kt20 import android.os.PowerManager in <lambda>()
90 fun wakeUpIfDozing(why: String, @PowerManager.WakeReason wakeReason: Int) { in <lambda>()
105 repository.wakeUp(why = FSI_WAKE_WHY, wakeReason = PowerManager.WAKE_REASON_APPLICATION) in <lambda>()
116 fun wakeUpIfDreaming(why: String, @PowerManager.WakeReason wakeReason: Int) { in <lambda>()
124 repository.wakeUp("SFPS_FP_ACQUISITION_STARTED", PowerManager.WAKE_REASON_BIOMETRIC) in <lambda>()
136 @PowerManager.WakeReason reason: Int, in <lambda>()
173 fun onStartedGoingToSleep(@PowerManager.GoToSleepReason reason: Int) { in <lambda>()
248 @PowerManager.WakeReason reason: Int = PowerManager.WAKE_REASON_UNKNOWN, in <lambda>()
274 @PowerManager.GoToSleepReason sleepReason: Int = PowerManager.GO_TO_SLEEP_REASON_MIN, in <lambda>()
/frameworks/base/services/core/java/com/android/server/display/utils/
DDeviceConfigParsingUtils.java21 import android.os.PowerManager;
121 @PowerManager.ThermalStatus
125 return PowerManager.THERMAL_STATUS_NONE; in parseThermalStatus()
127 return PowerManager.THERMAL_STATUS_LIGHT; in parseThermalStatus()
129 return PowerManager.THERMAL_STATUS_MODERATE; in parseThermalStatus()
131 return PowerManager.THERMAL_STATUS_SEVERE; in parseThermalStatus()
133 return PowerManager.THERMAL_STATUS_CRITICAL; in parseThermalStatus()
135 return PowerManager.THERMAL_STATUS_EMERGENCY; in parseThermalStatus()
137 return PowerManager.THERMAL_STATUS_SHUTDOWN; in parseThermalStatus()
148 if (value < PowerManager.BRIGHTNESS_MIN || value > PowerManager.BRIGHTNESS_MAX) { in parseBrightness()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySaverPolicyTest.java26 import android.os.PowerManager;
27 import android.os.PowerManager.ServiceType;
134 if (defaultMode == PowerManager.SOUND_TRIGGER_MODE_ALL_ENABLED) { in testGetBatterySaverPolicy_PolicySound_DefaultValueCorrect()
204 if (defaultMode == PowerManager.LOCATION_MODE_NO_CHANGE) { in testGetBatterySaverPolicy_PolicyLocation_DefaultValueCorrect()
349 "location_mode=" + PowerManager.LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF in testAutomotiveProjectionChanges_Full()
353 .isEqualTo(PowerManager.LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF); in testAutomotiveProjectionChanges_Full()
360 .isAnyOf(PowerManager.LOCATION_MODE_NO_CHANGE, in testAutomotiveProjectionChanges_Full()
361 PowerManager.LOCATION_MODE_FOREGROUND_ONLY); in testAutomotiveProjectionChanges_Full()
368 .isEqualTo(PowerManager.LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF); in testAutomotiveProjectionChanges_Full()
376 "location_mode=" + PowerManager.LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF in testAutomotiveProjectionChanges_Adaptive()
[all …]
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DPowerTest.java26 import android.os.PowerManager;
35 PowerManager mPm;
36 PowerManager.WakeLock mProx;
46 mPm = (PowerManager)getSystemService("power"); in tests()
47 mProx = mPm.newWakeLock(PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK, "PowerTest-prox"); in tests()
82 mProx.release(PowerManager.RELEASE_FLAG_WAIT_FOR_NO_PROXIMITY);
103 mProx.release(PowerManager.RELEASE_FLAG_WAIT_FOR_NO_PROXIMITY);
/frameworks/base/services/core/java/com/android/server/power/
DWakefulnessSessionObserver.java19 import static android.os.PowerManager.USER_ACTIVITY_EVENT_OTHER;
38 import android.os.PowerManager;
181 long eventTime, int powerGroupId, @PowerManager.UserActivityEvent int event) { in notifyUserActivity()
212 int maskedFlag = flags & PowerManager.WAKE_LOCK_LEVEL_MASK; in onWakeLockAcquired()
213 if (maskedFlag == PowerManager.SCREEN_TIMEOUT_OVERRIDE_WAKE_LOCK) { in onWakeLockAcquired()
228 int maskedFlag = flags & PowerManager.WAKE_LOCK_LEVEL_MASK; in onWakeLockReleased()
229 if (maskedFlag == PowerManager.SCREEN_TIMEOUT_OVERRIDE_WAKE_LOCK) { in onWakeLockReleased()
289 protected @PowerManager.UserActivityEvent int mCurrentUserActivityEvent;
293 protected @PowerManager.UserActivityEvent int mPrevUserActivityEvent;
312 public void notifyUserActivity(long eventTime, @PowerManager.UserActivityEvent int event) { in notifyUserActivity()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DWakefulnessLifecycle.java25 import android.os.PowerManager;
78 private @PowerManager.WakeReason int mLastWakeReason = PowerManager.WAKE_REASON_UNKNOWN;
86 private @PowerManager.GoToSleepReason int mLastSleepReason =
87 PowerManager.GO_TO_SLEEP_REASON_MIN;
113 public @PowerManager.WakeReason int getLastWakeReason() { in getLastWakeReason()
129 public @PowerManager.GoToSleepReason int getLastSleepReason() { in getLastSleepReason()
133 public void dispatchStartedWakingUp(@PowerManager.WakeReason int pmWakeReason) { in dispatchStartedWakingUp()
163 public void dispatchStartedGoingToSleep(@PowerManager.GoToSleepReason int pmSleepReason) { in dispatchStartedGoingToSleep()
206 case PowerManager.WAKE_REASON_POWER_BUTTON: in updateLastWakeOriginLocation()
219 case PowerManager.GO_TO_SLEEP_REASON_POWER_BUTTON: in updateLastSleepOriginLocation()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DActiveUnlockConfigTest.kt24 import android.os.PowerManager
25 import android.os.PowerManager.WAKE_REASON_BIOMETRIC
399 PowerManager.WAKE_REASON_LIFT, in isWakeupConsideredUnlockIntent_singleValue()
406 if (wakeReason == PowerManager.WAKE_REASON_LIFT) { in isWakeupConsideredUnlockIntent_singleValue()
419 PowerManager.WAKE_REASON_LIFT.toString() + in isWakeupConsideredUnlockIntent_multiValue()
421 PowerManager.WAKE_REASON_TAP.toString(), in isWakeupConsideredUnlockIntent_multiValue()
429 wakeReason == PowerManager.WAKE_REASON_LIFT || in isWakeupConsideredUnlockIntent_multiValue()
430 wakeReason == PowerManager.WAKE_REASON_TAP in isWakeupConsideredUnlockIntent_multiValue()
437 assertTrue(activeUnlockConfig.isWakeupConsideredUnlockIntent(PowerManager.WAKE_REASON_LIFT)) in isWakeupConsideredUnlockIntent_multiValue()
438 assertTrue(activeUnlockConfig.isWakeupConsideredUnlockIntent(PowerManager.WAKE_REASON_TAP)) in isWakeupConsideredUnlockIntent_multiValue()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/restrictions/
DThermalStatusRestriction.java22 import android.os.PowerManager;
23 import android.os.PowerManager.OnThermalStatusChangedListener;
35 private static final int LOW_PRIORITY_THRESHOLD = PowerManager.THERMAL_STATUS_LIGHT;
37 private static final int HIGHER_PRIORITY_THRESHOLD = PowerManager.THERMAL_STATUS_MODERATE;
41 private static final int UPPER_THRESHOLD = PowerManager.THERMAL_STATUS_SEVERE;
43 private volatile int mThermalStatus = PowerManager.THERMAL_STATUS_NONE;
53 final PowerManager powerManager = in onSystemServicesReady()
54 mService.getTestableContext().getSystemService(PowerManager.class); in onSystemServicesReady()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/deviceentry/data/repository/
DFaceWakeUpTriggersConfigTest.kt19 import android.os.PowerManager
48 intArrayOf(PowerManager.WAKE_REASON_POWER_BUTTON, PowerManager.WAKE_REASON_GESTURE) in testShouldTriggerFaceAuthOnWakeUpFrom_inConfig_returnsTrue()
53 PowerManager.WAKE_REASON_POWER_BUTTON in testShouldTriggerFaceAuthOnWakeUpFrom_inConfig_returnsTrue()
58 PowerManager.WAKE_REASON_GESTURE in testShouldTriggerFaceAuthOnWakeUpFrom_inConfig_returnsTrue()
63 PowerManager.WAKE_REASON_APPLICATION in testShouldTriggerFaceAuthOnWakeUpFrom_inConfig_returnsTrue()
/frameworks/base/services/core/java/com/android/server/policy/
DWindowWakeUpPolicy.java19 import static android.os.PowerManager.WAKE_REASON_CAMERA_LAUNCH;
20 import static android.os.PowerManager.WAKE_REASON_GESTURE;
21 import static android.os.PowerManager.WAKE_REASON_LID;
22 import static android.os.PowerManager.WAKE_REASON_POWER_BUTTON;
23 import static android.os.PowerManager.WAKE_REASON_WAKE_KEY;
24 import static android.os.PowerManager.WAKE_REASON_WAKE_MOTION;
32 import android.os.PowerManager;
33 import android.os.PowerManager.WakeReason;
52 private final PowerManager mPowerManager;
73 mPowerManager = context.getSystemService(PowerManager.class); in WindowWakeUpPolicy()
/frameworks/base/services/core/java/com/android/server/display/brightness/
DBrightnessUtils.java19 import android.os.PowerManager;
32 return !Float.isNaN(brightness) && brightness >= PowerManager.BRIGHTNESS_MIN in isValidBrightnessValue()
33 && brightness <= PowerManager.BRIGHTNESS_MAX; in isValidBrightnessValue()
40 return MathUtils.constrain(value, PowerManager.BRIGHTNESS_MIN, in clampAbsoluteBrightness()
41 PowerManager.BRIGHTNESS_MAX); in clampAbsoluteBrightness()
/frameworks/base/services/core/java/com/android/server/hdmi/
DPowerManagerWrapper.java20 import android.os.PowerManager;
28 private final PowerManager mPowerManager;
31 mPowerManager = context.getSystemService(PowerManager.class); in PowerManagerWrapper()
61 private final PowerManager.WakeLock mWakeLock;
63 private DefaultWakeLockWrapper(PowerManager.WakeLock wakeLock) { in DefaultWakeLockWrapper()

12345678910>>...19