/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | BatteryControllerTest.java | 79 private BatteryControllerImpl mBatteryController; field in BatteryControllerTest 90 mBatteryController = new BatteryControllerImpl(getContext(), in setUp() 100 mBatteryController.init(); in setUp() 110 Assert.assertTrue(mBatteryController.mHasReceivedBattery); in testBatteryInitialized() 122 mBatteryController.onReceive(getContext(), intent); in testIndependentAODBatterySaver_true() 124 Assert.assertTrue(mBatteryController.isPowerSave()); in testIndependentAODBatterySaver_true() 125 Assert.assertTrue(mBatteryController.isAodPowerSave()); in testIndependentAODBatterySaver_true() 137 mBatteryController.onReceive(getContext(), intent); in testIndependentAODBatterySaver_false() 139 Assert.assertTrue(mBatteryController.isPowerSave()); in testIndependentAODBatterySaver_false() 140 Assert.assertFalse(mBatteryController.isAodPowerSave()); in testIndependentAODBatterySaver_false() [all …]
|
D | BatteryControllerStartableTest.java | 59 private BatteryController mBatteryController; field in BatteryControllerStartableTest 76 mBatteryController = new BatteryControllerImpl(getContext(), in setUp() 85 mBatteryController.init(); in setUp() 87 mBatteryControllerStartable = new BatteryControllerStartable(mBatteryController, in setUp()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | BatteryControllerTest.java | 59 private BatteryController mBatteryController; field in BatteryControllerTest 101 mBatteryController = new BatteryController(mJobSchedulerService, mFlexibilityController); in setUp() 102 mBatteryController.startTrackingLocked(); in setUp() 124 synchronized (mBatteryController.mLock) { in setBatteryNotLow() 125 mBatteryController.onBatteryStateChangedLocked(); in setBatteryNotLow() 132 synchronized (mBatteryController.mLock) { in setCharging() 133 mBatteryController.onBatteryStateChangedLocked(); in setCharging() 140 synchronized (mBatteryController.mLock) { in setDischarging() 141 mBatteryController.onBatteryStateChangedLocked(); in setDischarging() 148 synchronized (mBatteryController.mLock) { in setPowerConnected() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | BatteryControllerStartable.java | 42 private final BatteryController mBatteryController; field in BatteryControllerStartable 53 mBatteryController = batteryController; in BatteryControllerStartable() 64 mBroadcastDispatcher.registerReceiver((BroadcastReceiver) mBatteryController, filter); in registerReceiver() 70 && mBatteryController instanceof BatteryControllerImpl) { in start()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/ |
D | BatteryMeterViewController.java | 57 private final BatteryController mBatteryController; field in BatteryMeterViewController 153 mBatteryController = batteryController; in BatteryMeterViewController() 155 mView.setBatteryEstimateFetcher(mBatteryController::getEstimatedTimeRemainingString); in BatteryMeterViewController() 167 mBatteryController.addCallback(mBatteryStateChangeCallback); in onViewAttached() 180 mBatteryController.removeCallback(mBatteryStateChangeCallback); in onViewDetached() 254 private final BatteryController mBatteryController; field in BatteryMeterViewController.Factory 272 mBatteryController = batteryController; in Factory() 286 mBatteryController in create()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | BatterySaverTile.java | 54 private final BatteryController mBatteryController; field in BatterySaverTile 79 mBatteryController = batteryController; in BatterySaverTile() 80 mBatteryController.observe(getLifecycle(), this); in BatterySaverTile() 124 mBatteryController.clearLastPowerSaverStartExpandable(); in handleSetListening() 138 mBatteryController.setPowerSaveMode(!mPowerSave, expandable); in handleClick()
|
D | RotationLockTile.java | 69 private final BatteryController mBatteryController; field in RotationLockTile 94 mBatteryController = batteryController; in RotationLockTile() 108 mBatteryController.observe(getLifecycle(), this); in RotationLockTile() 149 final boolean powerSave = mBatteryController.isPowerSave(); in handleUpdateState()
|
D | UiModeNightTile.java | 68 private final BatteryController mBatteryController; field in UiModeNightTile 87 mBatteryController = batteryController; in UiModeNightTile() 122 boolean powerSave = mBatteryController.isPowerSave(); in handleUpdateState()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/battery/ |
D | BatteryMeterViewControllerTest.java | 66 private BatteryController mBatteryController; field in BatteryMeterViewControllerTest 97 verify(mBatteryController).addCallback(any()); in onViewAttached_callbacksRegistered() 111 verify(mBatteryController).removeCallback(any()); in onViewDetached_callbacksUnregistered() 166 mBatteryController in initController()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | DozeParametersTest.java | 78 @Mock private BatteryController mBatteryController; field in DozeParametersTest 123 mBatteryController, in setup() 136 verify(mBatteryController).addCallback(mBatteryStateChangeCallback.capture()); in setup() 181 when(mBatteryController.isAodPowerSave()).thenReturn(true); in testGetAlwaysOn_whenBatterySaver() 193 when(mBatteryController.isAodPowerSave()).thenReturn(true); in testGetAlwaysOn_whenBatterySaverCallback() 205 when(mBatteryController.isAodPowerSave()).thenReturn(false); in testGetAlwaysOn_whenBatterySaverCallback()
|
D | KeyguardStatusBarViewControllerTest.java | 112 private BatteryController mBatteryController; field in KeyguardStatusBarViewControllerTest 187 mBatteryController); in setup() 206 mBatteryController, in createController() 362 verify(mBatteryController).addCallback(any()); in setBatteryListening_true_callbackAdded() 372 verify(mBatteryController).removeCallback(any()); in setBatteryListening_false_callbackRemoved() 380 verify(mBatteryController).addCallback(any()); in setBatteryListening_trueThenTrue_callbackAddedOnce() 388 verify(mBatteryController, never()).addCallback(any()); in setBatteryListening_true_flagOn_callbackNotAdded()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | RotationLockTileTest.java | 87 private BatteryController mBatteryController; field in RotationLockTileTest 126 mBatteryController, in setUp() 143 when(mBatteryController.isPowerSave()).thenReturn(false); in setUp() 186 when(mBatteryController.isPowerSave()).thenReturn(true); in testSecondaryString_powerSaveEnabled_isEmpty() 231 mBatteryController, in testSecondaryString_rotationResolverDisabled_isEmpty()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/ |
D | PowerNotificationWarningsTest.java | 83 private BatteryController mBatteryController; field in PowerNotificationWarningsTest 126 () -> mBatteryController, in setUp() 239 when(mBatteryController.getLastPowerSaverStartExpandable()) in testDialogStartedFromLauncher_viewVisible() 255 when(mBatteryController.getLastPowerSaverStartExpandable()) in testDialogStartedNotFromLauncher_viewNotVisible() 271 when(mBatteryController.getLastPowerSaverStartExpandable()).thenReturn(null); in testDialogShownNotFromLauncher()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | LightBarController.java | 70 private final BatteryController mBatteryController; field in LightBarController 134 mBatteryController = batteryController; in LightBarController() 135 mBatteryController.addCallback(this); in LightBarController() 477 private final BatteryController mBatteryController; field in LightBarController.Factory 494 mBatteryController = batteryController; in Factory() 507 mBatteryController, in create()
|
D | DozeParameters.java | 83 private final BatteryController mBatteryController; field in DozeParameters 137 mBatteryController = batteryController; in DozeParameters() 267 return mDozeAlwaysOn && !mBatteryController.isAodPowerSave(); in getAlwaysOn()
|
D | KeyguardStatusBarViewController.java | 113 private final BatteryController mBatteryController; field in KeyguardStatusBarViewController 318 mBatteryController = batteryController; in KeyguardStatusBarViewController() 462 mBatteryController.addCallback(mBatteryStateChangeCallback); in setBatteryListening() 464 mBatteryController.removeCallback(mBatteryStateChangeCallback); in setBatteryListening()
|
D | DozeServiceHost.java | 94 private final BatteryController mBatteryController; field in DozeServiceHost 138 mBatteryController = batteryController; in DozeServiceHost() 351 return mBatteryController.isAodPowerSave(); in isPowerSaveActive()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | FalsingCollectorImpl.java | 88 private final BatteryController mBatteryController; field in FalsingCollectorImpl 154 if (event == DockManager.STATE_NONE && !mBatteryController.isWirelessCharging()) { 189 mBatteryController = batteryController; in FalsingCollectorImpl() 235 mBatteryController.addCallback(mBatteryListener); in init() 393 mBatteryController.removeCallback(mBatteryListener); in cleanup()
|
D | FalsingDataProvider.java | 51 private BatteryController mBatteryController; field in FalsingDataProvider 87 mBatteryController = batteryController; in FalsingDataProvider() 463 return mBatteryController.isWirelessCharging() || mDockManager.isDocked();
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/ |
D | ClassifierTest.java | 44 private BatteryController mBatteryController; field in ClassifierTest 56 displayMetrics, mBatteryController, mFoldStateListener, mDockManager, false); in setup()
|
D | FalsingCollectorImplTest.java | 92 private BatteryController mBatteryController; field in FalsingCollectorImplTest 125 () -> mShadeInteractor, mBatteryController, in setUp() 144 verify(mBatteryController).addCallback(batteryCallbackCaptor.capture()); in testNoProximityWhenWirelessCharging() 153 verify(mBatteryController).addCallback(batteryCallbackCaptor.capture()); in testProximityWhenOffWirelessCharging()
|
D | FalsingDataProviderTest.java | 54 private BatteryController mBatteryController; field in FalsingDataProviderTest 321 when(mBatteryController.isWirelessCharging()).thenReturn(true); in test_isWirelessCharging() 417 mDisplayMetrics, mBatteryController, mFoldStateListener, mDockManager, foldable); in createWithFoldCapability()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/phone/ |
D | DozeServiceHostTest.java | 80 @Mock private BatteryController mBatteryController; field in DozeServiceHostTest 106 mHeadsUpManager, mBatteryController, mScrimController, in setup()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/ |
D | NotificationInterruptStateProviderImpl.java | 77 private final BatteryController mBatteryController; field in NotificationInterruptStateProviderImpl 141 mBatteryController = batteryController; in NotificationInterruptStateProviderImpl() 512 if (mBatteryController.isAodPowerSave()) { in shouldHeadsUpWhenDozing()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputManagerService.java | 300 private final BatteryController mBatteryController; field in InputManagerService 453 mBatteryController = new BatteryController(mContext, mNative, injector.getLooper(), in InputManagerService() 574 mBatteryController.systemRunning(); in systemRunning() 1598 return mBatteryController.getBatteryState(deviceId); in getBatteryState() 2006 mBatteryController.registerBatteryListener(deviceId, listener, Binder.getCallingPid()); in registerBatteryListener() 2012 mBatteryController.unregisterBatteryListener(deviceId, listener, Binder.getCallingPid()); in unregisterBatteryListener() 2077 mBatteryController.dump(ipw); in dump() 2208 mBatteryController.monitor(); in monitor() 2472 mBatteryController.notifyStylusGestureStarted(deviceId, eventTime); in notifyStylusGestureStarted() 3056 mBatteryController.onInteractiveChanged(interactive); in setInteractive()
|