Searched refs:mBatteryController (Results 1 – 7 of 7) sorted by relevance
45 private BatteryControllerImpl mBatteryController; field in BatteryControllerTest50 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()
35 private final BatteryController mBatteryController; field in BatterySaverTile44 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()
70 private BatteryController mBatteryController; field in BatteryMeterView210 mBatteryController = Dependency.get(BatteryController.class); in onAttachedToWindow()211 mBatteryController.addCallback(this); in onAttachedToWindow()226 mBatteryController.removeCallback(this); in onDetachedFromWindow()
46 private final BatteryController mBatteryController; field in LightBarController83 mBatteryController = Dependency.get(BatteryController.class); in LightBarController()84 mBatteryController.addCallback(this); in LightBarController()
80 private BatteryController mBatteryController; field in KeyguardStatusBarView115 mBatteryController = Dependency.get(BatteryController.class); in onFinishInflate()301 mBatteryController.addCallback(this); in setListening()303 mBatteryController.removeCallback(this); in setListening()
578 private BatteryController mBatteryController; field in StatusBar639 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()
177 private final BatteryController mBatteryController; field in JobSchedulerService1142 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()