Home
last modified time | relevance | path

Searched refs:mPowerManager (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/permission/src/android/permission/cts/
DDevicePowerPermissionTest.java28 PowerManager mPowerManager; field in DevicePowerPermissionTest
33 mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in setUp()
44 mPowerManager.goToSleep(0); in testGoToSleep()
DNoWakeLockPermissionTest.java33 private PowerManager mPowerManager; field in NoWakeLockPermissionTest
40 mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in setUp()
41 mWakeLock = mPowerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, "tag"); in setUp()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsDeviceTestBase.java41 protected PowerManager mPowerManager; field in BatteryStatsDeviceTestBase
46 mPowerManager = mContext.getSystemService(PowerManager.class); in setUp()
DBatteryStatsWakeLockTests.java35 PowerManager.WakeLock wl = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in testHoldShortWakeLock()
44 PowerManager.WakeLock wl = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in testHoldLongWakeLock()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/jobscheduler/
DIdleConstraintTestActivity.java71 private PowerManager mPowerManager; field in IdleConstraintTestActivity
84 PowerManager.WakeLock wl = mPowerManager.newWakeLock(
111 mPowerManager = (PowerManager) getSystemService(Context.POWER_SERVICE); in onCreate()
177 PowerManager.WakeLock fullWakeLock = mPowerManager.newWakeLock( in onPostExecute()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DDeviceIdleJobsTest.java77 private PowerManager mPowerManager; field in DeviceIdleJobsTest
104 mDeviceInDoze = mPowerManager.isDeviceIdleMode();
121 mPowerManager = mContext.getSystemService(PowerManager.class); in setUp()
122 mDeviceInDoze = mPowerManager.isDeviceIdleMode(); in setUp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DConnectivityBackgroundTestActivity.java94 private PowerManager mPowerManager; field in ConnectivityBackgroundTestActivity
174 mPowerManager = (PowerManager) getSystemService(Context.POWER_SERVICE); in configureFromSystemServices()
175 mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in configureFromSystemServices()
260 PowerManager.WakeLock screenOnLock = mPowerManager.newWakeLock( in tryScreenOn()