Home
last modified time | relevance | path

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

/cts/tests/tests/os/src/android/os/cts/
DPowerManager_ThermalTest.java48 private PowerManager mPowerManager; field in PowerManager_ThermalTest
60 mPowerManager = mContext.getSystemService(PowerManager.class); in setUp()
72 assertEquals(status, mPowerManager.getCurrentThermalStatus()); in testGetThermalStatus()
75 assertEquals(status, mPowerManager.getCurrentThermalStatus()); in testGetThermalStatus()
83 mPowerManager.addThermalStatusListener(mExec, mListener1); in testThermalStatusCallback()
94 mPowerManager.addThermalStatusListener(mListener1); in testThermalStatusCallback()
99 mPowerManager.addThermalStatusListener(mListener2); in testThermalStatusCallback()
109 mPowerManager.removeThermalStatusListener(mListener1); in testThermalStatusCallback()
112 mPowerManager.removeThermalStatusListener(mListener1); in testThermalStatusCallback()
/cts/tests/tests/permission/src/android/permission/cts/
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.java35 protected PowerManager mPowerManager; field in BatteryStatsDeviceTestBase
40 mPowerManager = mContext.getSystemService(PowerManager.class); in setUp()
DBatteryStatsWakeLockTests.java34 PowerManager.WakeLock wl = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in testHoldShortWakeLock()
43 PowerManager.WakeLock wl = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in testHoldLongWakeLock()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DJobThrottlingTest.java79 private PowerManager mPowerManager; field in JobThrottlingTest
101 mDeviceInDoze = mPowerManager.isDeviceIdleMode();
118 mPowerManager = mContext.getSystemService(PowerManager.class); in setUp()
119 mDeviceInDoze = mPowerManager.isDeviceIdleMode(); in setUp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DConnectivityBackgroundTestActivity.java94 private PowerManager mPowerManager; field in ConnectivityBackgroundTestActivity
173 mPowerManager = (PowerManager) getSystemService(Context.POWER_SERVICE); in configureFromSystemServices()
174 mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in configureFromSystemServices()
259 PowerManager.WakeLock screenOnLock = mPowerManager.newWakeLock( in tryScreenOn()