HomeSort by relevance Sort by last modified time
    Searched refs:powerManager (Results 1 - 8 of 8) sorted by null

  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowPowerManagerTest.java 14 import android.os.PowerManager;
26 private PowerManager powerManager;
32 powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
33 shadowPowerManager = shadowOf(powerManager);
38 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG");
55 assertThat(powerManager.isWakeLockLevelSupported(PowerManager.PARTIAL_WAKE_LOCK)).isFalse()
    [all...]
  /cts/tests/tests/voicesettings/src/android/voicesettings/cts/
BatterySaverModeTest.java 25 import android.os.PowerManager;
94 PowerManager powerManager = (PowerManager)mContext.getSystemService(Context.POWER_SERVICE);
95 return powerManager.isPowerSaveMode();
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
SensorTestScreenManipulator.java 32 import android.os.PowerManager;
65 private final PowerManager.WakeLock mWakeUpScreenWakeLock;
66 private final PowerManager.WakeLock mKeepScreenOnWakeLock;
78 int levelAndFlags = PowerManager.FULL_WAKE_LOCK
79 | PowerManager.ON_AFTER_RELEASE
80 | PowerManager.ACQUIRE_CAUSES_WAKEUP;
81 PowerManager powerManager = (PowerManager) activity.getSystemService(Context.POWER_SERVICE);
82 mWakeUpScreenWakeLock = powerManager.newWakeLock(levelAndFlags, "SensorTestWakeUpScreen")
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
SensorCtsTestActivity.java 22 import android.os.PowerManager;
57 private PowerManager.WakeLock mWakeLock;
70 PowerManager powerManager = (PowerManager) getSystemService(Context.POWER_SERVICE);
71 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "SensorCtsTests");
  /cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
ActivityLaunchUtils.java 32 import android.os.PowerManager;
183 final PowerManager powerManager = context.getSystemService(PowerManager.class);
185 if (powerManager.isInteractive()) {
  /development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
CalendarWatchFaceService.java 34 import android.os.PowerManager;
244 private PowerManager.WakeLock mWakeLock;
248 PowerManager powerManager = (PowerManager) getSystemService(POWER_SERVICE);
249 mWakeLock = powerManager.newWakeLock(
250 PowerManager.PARTIAL_WAKE_LOCK, "CalendarWatchFaceWakeLock");
  /cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
ClientTest.java 62 import android.os.PowerManager;
63 import android.os.PowerManager.WakeLock;
    [all...]
  /cts/tests/app/src/android/app/cts/
ActivityManagerProcessStateTest.java 51 import android.os.PowerManager;
175 final PowerManager powerManager =
176 (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
177 return powerManager.isInteractive();
    [all...]

Completed in 125 milliseconds