/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/ |
D | PowerManagerTests.java | 32 PowerManager powerManager = context.getSystemService(PowerManager.class); in testGetCurrentThermalStatus() local 33 assertNotNull(powerManager); in testGetCurrentThermalStatus() 34 powerManager.getCurrentThermalStatus(); in testGetCurrentThermalStatus() 40 PowerManager powerManager = context.getSystemService(PowerManager.class); in testGetThermalHeadroom() local 41 assertNotNull(powerManager); in testGetThermalHeadroom() 42 powerManager.getThermalHeadroom(10); in testGetThermalHeadroom() 48 PowerManager powerManager = context.getSystemService(PowerManager.class); in testGetThermalHeadroomThresholds() local 49 assertNotNull(powerManager); in testGetThermalHeadroomThresholds() 50 powerManager.getThermalHeadroomThresholds(); in testGetThermalHeadroomThresholds()
|
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/ |
D | BatterySaverTest.java | 93 final PowerManager powerManager = getPowerManager(); in testActivateBatterySaver() local 95 assumeTrue(powerManager.isBatterySaverSupported()); in testActivateBatterySaver() 98 assertFalse(powerManager.isPowerSaveMode()); in testActivateBatterySaver() 100 powerManager.getLocationPowerSaveMode()); in testActivateBatterySaver() 131 final PowerManager powerManager = getPowerManager(); in testActivateBatterySaver_notSupported() local 132 assumeFalse(powerManager.isBatterySaverSupported()); in testActivateBatterySaver_notSupported() 134 assertFalse(powerManager.isPowerSaveMode()); in testActivateBatterySaver_notSupported() 136 powerManager.getLocationPowerSaveMode()); in testActivateBatterySaver_notSupported() 148 assertFalse(powerManager.isPowerSaveMode()); in testActivateBatterySaver_notSupported() 178 final PowerManager powerManager = BatteryUtils.getPowerManager(); in testAutomotiveProjectionExceptions() local [all …]
|
/cts/tests/tests/batterysaving/src/android/os/cts/deviceidle/ |
D | DeviceIdleTest.java | 86 PowerManager powerManager = InstrumentationRegistry.getInstrumentation().getContext() in testLightIdleMode() local 96 assertTrue(powerManager.isDeviceLightIdleMode()); in testLightIdleMode() 100 powerManager.isDeviceLightIdleMode()); in testLightIdleMode() 113 assertFalse(powerManager.isDeviceLightIdleMode()); in testLightIdleMode() 122 assertTrue(powerManager.isDeviceLightIdleMode()); in testLightIdleMode() 129 assertFalse(powerManager.isDeviceLightIdleMode()); in testLightIdleMode()
|
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/power/ |
D | PowerManagerHelperTest.java | 62 PowerManager powerManager = mContext.getSystemService(PowerManager.class); in testSetDisplayState() local 65 assertWithMessage("Screen on").that(powerManager.isInteractive()).isTrue(); in testSetDisplayState() 69 assertWithMessage("Screen on").that(powerManager.isInteractive()).isFalse(); in testSetDisplayState() 72 assertWithMessage("Screen on").that(powerManager.isInteractive()).isTrue(); in testSetDisplayState()
|
/cts/hostsidetests/hdmicec/app/src/android/hdmicec/app/ |
D | HdmiCecWakeLock.java | 87 PowerManager powerManager = getSystemService(PowerManager.class); in initializeWakeLock() local 88 if (powerManager == null) { in initializeWakeLock() 93 mWakeLock = powerManager.newWakeLock(PARTIAL_WAKE_LOCK, TAG); in initializeWakeLock()
|
/cts/tests/tests/voicesettings/src/android/voicesettings/cts/ |
D | BatterySaverModeTest.java | 90 PowerManager powerManager = (PowerManager)mContext.getSystemService(Context.POWER_SERVICE); in isModeOn() local 91 return powerManager.isPowerSaveMode(); in isModeOn()
|
/cts/hostsidetests/os/test-apps/InattentiveSleepTestApp/src/android/os/inattentivesleeptests/ |
D | PartialWakeLockService.java | 52 PowerManager powerManager = getSystemService(PowerManager.class); in onStartCommand() local 53 mWakeLock = powerManager.newWakeLock(PARTIAL_WAKE_LOCK, TAG); in onStartCommand()
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/ |
D | AlwaysOnHotwordDetectorTest.java | 400 final PowerManager powerManager = sContext.getSystemService(PowerManager.class); in testStartRecognitionNoFlagBatterySaverAllEnabled_noRecognitionPaused() local 416 setSoundTriggerPowerSaveMode(powerManager, PowerManager.SOUND_TRIGGER_MODE_ALL_ENABLED); in testStartRecognitionNoFlagBatterySaverAllEnabled_noRecognitionPaused() 441 final PowerManager powerManager = sContext.getSystemService(PowerManager.class); in testStartRecognitionNoFlagBatterySaverCriticalOnly_recognitionPaused() local 457 setSoundTriggerPowerSaveMode(powerManager, in testStartRecognitionNoFlagBatterySaverCriticalOnly_recognitionPaused() 488 final PowerManager powerManager = sContext.getSystemService(PowerManager.class); in testStartRecognitionNoFlagBatterySaverAllDisabled_recognitionPaused() local 504 setSoundTriggerPowerSaveMode(powerManager, in testStartRecognitionNoFlagBatterySaverAllDisabled_recognitionPaused() 534 final PowerManager powerManager = sContext.getSystemService(PowerManager.class); in testStartRecognitionWithFlagBatterySaverAllEnabled_noRecognitionPaused() local 551 setSoundTriggerPowerSaveMode(powerManager, PowerManager.SOUND_TRIGGER_MODE_ALL_ENABLED); in testStartRecognitionWithFlagBatterySaverAllEnabled_noRecognitionPaused() 575 final PowerManager powerManager = sContext.getSystemService(PowerManager.class); in testStartRecognitionWithFlagBatterySaverCriticalOnly_noRecognitionPaused() local 592 setSoundTriggerPowerSaveMode(powerManager, in testStartRecognitionWithFlagBatterySaverCriticalOnly_noRecognitionPaused() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | LowPowerStandbyForegroundService.java | 56 PowerManager powerManager = getApplicationContext().getSystemService(PowerManager.class); in onStartCommand() local 57 mTestWakeLock = powerManager.newWakeLock(PARTIAL_WAKE_LOCK, in onStartCommand()
|
/cts/tests/app/shared/src/android/app/cts/ |
D | CtsAppTestUtils.java | 39 final PowerManager powerManager = in isScreenInteractive() local 41 return powerManager.isInteractive(); in isScreenInteractive()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
D | SensorTestScreenManipulator.java | 81 PowerManager powerManager = (PowerManager) activity.getSystemService(Context.POWER_SERVICE); in SensorTestScreenManipulator() local 82 mWakeUpScreenWakeLock = powerManager.newWakeLock(levelAndFlags, "SensorTestWakeUpScreen"); in SensorTestScreenManipulator() 84 mKeepScreenOnWakeLock = powerManager.newWakeLock(levelAndFlags, "SensorTestKeepScreenOn"); in SensorTestScreenManipulator()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | UiDeviceUtils.java | 61 final PowerManager powerManager = context.getSystemService(PowerManager.class); in wakeUpAndUnlock() local 63 if (keyguardManager == null || powerManager == null) { in wakeUpAndUnlock() 67 if (keyguardManager.isKeyguardLocked() || !powerManager.isInteractive() in wakeUpAndUnlock()
|
/cts/hostsidetests/securitybulletin/test-apps/TestBluetoothDiscoverable/src/android/security/cts/TestBluetoothDiscoverable/ |
D | DeviceTest.java | 142 PowerManager powerManager = sContext.getSystemService(PowerManager.class); in testConnectedDeviceDashboardFragment() local 145 powerManager.isInteractive() && !keyguardManager.isKeyguardLocked()); in testConnectedDeviceDashboardFragment() 183 PowerManager powerManager = sContext.getSystemService(PowerManager.class); in testBluetoothDashboardFragment() local 186 powerManager.isInteractive() && !keyguardManager.isKeyguardLocked()); in testBluetoothDashboardFragment()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | BaseJobSchedulerTest.java | 386 PowerManager powerManager = getContext().getSystemService(PowerManager.class); in setDeviceIdleState() 389 ? powerManager.isDeviceIdleMode() in setDeviceIdleState() 390 : powerManager.isDeviceLightIdleMode(); in setDeviceIdleState() 392 return !powerManager.isDeviceIdleMode() in setDeviceIdleState() 393 && !powerManager.isDeviceLightIdleMode(); in setDeviceIdleState()
|
D | JobThrottlingTest.java | 1446 PowerManager powerManager = in setScreenState() local 1451 waitUntil("Device not interactive", () -> powerManager.isInteractive()); in setScreenState() 1454 waitUntil("Device still interactive", () -> !powerManager.isInteractive()); in setScreenState()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20360/src/android/security/cts/CVE_2022_20360/ |
D | DeviceTest.java | 108 PowerManager powerManager = context.getSystemService(PowerManager.class); in withSecureNfcDisabled() local 112 powerManager.isInteractive() && !keyguardManager.isKeyguardLocked()); in withSecureNfcDisabled()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BatteryUtils.java | 179 final PowerManager powerManager = getPowerManager(); in isBatterySaverSupported() local 180 if (batterySaverSupportedCheckApi() && !powerManager.isBatterySaverSupported()) { in isBatterySaverSupported()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/ |
D | SensorCtsTestActivity.java | 70 PowerManager powerManager = (PowerManager) getSystemService(Context.POWER_SERVICE); in activitySetUp() local 71 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "SensorCtsTests"); in activitySetUp()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-20913/src/android/security/cts/CVE_2023_20913/ |
D | DeviceTest.java | 150 PowerManager powerManager = mContext.getSystemService(PowerManager.class); in testOverlayButtonPresence() local 153 powerManager.isInteractive() && !keyguardManager.isKeyguardLocked()); in testOverlayButtonPresence()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | ActivityLaunchUtils.java | 244 final PowerManager powerManager = context.getSystemService(PowerManager.class); in wakeUpOrBust() local 246 if (powerManager.isInteractive()) { in wakeUpOrBust()
|
/cts/tests/tests/syncmanager/src/android/content/syncmanager/cts/ |
D | CtsSyncManagerTest.java | 346 final PowerManager powerManager = in setDozeState() local 349 () -> powerManager.isDeviceIdleMode() == on); in setDozeState()
|
/cts/tests/ServiceKillTest/app/src/com/android/cts/servicekilltestapp/ |
D | ServiceKillTestService.java | 139 PowerManager powerManager = getSystemService(PowerManager.class); in onCreate() local 140 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, APP + "::" + TAG); in onCreate()
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ |
D | ClientTest.java | 1372 final PowerManager powerManager = (PowerManager) InstrumentationRegistry.getContext() in testWakeLockPermission() local 1374 wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "test"); in testWakeLockPermission()
|
/cts/tests/tests/notification/src/android/app/notification/current/cts/ |
D | NotificationManagerZenTest.java | 2854 PowerManager powerManager = checkNotNull(mContext.getSystemService(PowerManager.class)); in isPowerManagerAmbientDisplaySuppressed() local 2856 () -> powerManager.isAmbientDisplaySuppressed(), in isPowerManagerAmbientDisplaySuppressed()
|