Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBatteryControllerTest.java45 private BatteryControllerImpl mBatteryController; field in BatteryControllerTest
50 mBatteryController = new BatteryControllerImpl(getContext(), mPowerManager); in setUp()
62 mBatteryController.onReceive(getContext(), intent); in testIndependentAODBatterySaver_true()
64 Assert.assertTrue(mBatteryController.isPowerSave()); in testIndependentAODBatterySaver_true()
65 Assert.assertTrue(mBatteryController.isAodPowerSave()); in testIndependentAODBatterySaver_true()
77 mBatteryController.onReceive(getContext(), intent); in testIndependentAODBatterySaver_false()
79 Assert.assertTrue(mBatteryController.isPowerSave()); in testIndependentAODBatterySaver_false()
80 Assert.assertFalse(mBatteryController.isAodPowerSave()); in testIndependentAODBatterySaver_false()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBatterySaverTile.java35 private final BatteryController mBatteryController; field in BatterySaverTile
44 mBatteryController = Dependency.get(BatteryController.class); in BatterySaverTile()
60 mBatteryController.addCallback(this); in handleSetListening()
62 mBatteryController.removeCallback(this); in handleSetListening()
73 mBatteryController.setPowerSaveMode(!mPowerSave); in handleClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DBatteryMeterView.java70 private BatteryController mBatteryController; field in BatteryMeterView
210 mBatteryController = Dependency.get(BatteryController.class); in onAttachedToWindow()
211 mBatteryController.addCallback(this); in onAttachedToWindow()
226 mBatteryController.removeCallback(this); in onDetachedFromWindow()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLightBarController.java46 private final BatteryController mBatteryController; field in LightBarController
83 mBatteryController = Dependency.get(BatteryController.class); in LightBarController()
84 mBatteryController.addCallback(this); in LightBarController()
DKeyguardStatusBarView.java80 private BatteryController mBatteryController; field in KeyguardStatusBarView
115 mBatteryController = Dependency.get(BatteryController.class); in onFinishInflate()
301 mBatteryController.addCallback(this); in setListening()
303 mBatteryController.removeCallback(this); in setListening()
DStatusBar.java578 private BatteryController mBatteryController; field in StatusBar
639 mBatteryController = Dependency.get(BatteryController.class); in start()
919 mBatteryController.addCallback(new BatteryStateChangeCallback() { in makeStatusBarView()
3429 mBatteryController.dispatchDemoCommand(command, args); in dispatchDemoCommand()
4866 return mBatteryController.isAodPowerSave(); in isPowerSaveActive()
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerService.java177 private final BatteryController mBatteryController; field in JobSchedulerService
1142 mBatteryController = new BatteryController(this); in JobSchedulerService()
1143 mControllers.add(mBatteryController); in JobSchedulerService()
2826 if (mBatteryController != null) { in setMonitorBattery()
2827 mBatteryController.getTracker().setMonitorBatteryLocked(enabled); in setMonitorBattery()
2834 return mBatteryController != null ? mBatteryController.getTracker().getSeq() : -1; in getBatterySeq()
2840 return mBatteryController != null in getBatteryCharging()
2841 ? mBatteryController.getTracker().isOnStablePower() : false; in getBatteryCharging()
2847 return mBatteryController != null in getBatteryNotLow()
2848 ? mBatteryController.getTracker().isBatteryNotLow() : false; in getBatteryNotLow()