Searched refs:mPowerManager (Results 1 – 6 of 6) sorted by relevance
48 private PowerManager mPowerManager; field in PowerManager_ThermalTest60 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()
33 private PowerManager mPowerManager; field in NoWakeLockPermissionTest40 mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in setUp()41 mWakeLock = mPowerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, "tag"); in setUp()
35 protected PowerManager mPowerManager; field in BatteryStatsDeviceTestBase40 mPowerManager = mContext.getSystemService(PowerManager.class); in setUp()
34 PowerManager.WakeLock wl = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in testHoldShortWakeLock()43 PowerManager.WakeLock wl = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in testHoldLongWakeLock()
79 private PowerManager mPowerManager; field in JobThrottlingTest101 mDeviceInDoze = mPowerManager.isDeviceIdleMode();118 mPowerManager = mContext.getSystemService(PowerManager.class); in setUp()119 mDeviceInDoze = mPowerManager.isDeviceIdleMode(); in setUp()
94 private PowerManager mPowerManager; field in ConnectivityBackgroundTestActivity173 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()