Home
last modified time | relevance | path

Searched refs:BatteryStateChangeCallback (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
DFakeBatteryController.java22 import com.android.systemui.statusbar.policy.BatteryController.BatteryStateChangeCallback;
28 public class FakeBatteryController extends BaseLeakChecker<BatteryStateChangeCallback>
36 private final List<BatteryStateChangeCallback> mCallbacks = new ArrayList<>();
55 for (BatteryStateChangeCallback callback: mCallbacks) { in setPowerSaveMode()
80 for (BatteryStateChangeCallback callback: mCallbacks) { in setExtremeSaverOn()
95 for (BatteryStateChangeCallback cb : mCallbacks) { in setPluggedIn()
124 public void addCallback(BatteryStateChangeCallback listener) { in addCallback()
129 public void removeCallback(BatteryStateChangeCallback listener) { in removeCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/
DBatteryControllerExt.kt28 object : BatteryController.BatteryStateChangeCallback { in BatteryController()
46 object : BatteryController.BatteryStateChangeCallback { in isBatteryPowerSaveEnabled()
60 object : BatteryController.BatteryStateChangeCallback { in getBatteryLevel()
78 object : BatteryController.BatteryStateChangeCallback { in isExtremePowerSaverEnabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryController.java26 import com.android.systemui.statusbar.policy.BatteryController.BatteryStateChangeCallback;
36 CallbackController<BatteryStateChangeCallback> {
142 interface BatteryStateChangeCallback extends Dumpable { interface
DBatteryControllerImpl.java81 protected final ArrayList<BatteryController.BatteryStateChangeCallback>
217 public void addCallback(@NonNull BatteryController.BatteryStateChangeCallback cb) { in addCallback()
233 public void removeCallback(@NonNull BatteryController.BatteryStateChangeCallback cb) { in removeCallback()
453 protected final void dispatchSafeChange(Consumer<BatteryStateChangeCallback> action) { in dispatchSafeChange()
454 ArrayList<BatteryStateChangeCallback> copy; in dispatchSafeChange()
DBatteryStateNotifier.kt40 ) : BatteryController.BatteryStateChangeCallback {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBatteryControllerTest.java52 import com.android.systemui.statusbar.policy.BatteryController.BatteryStateChangeCallback;
146 BatteryStateChangeCallback cb = mock(BatteryStateChangeCallback.class); in testBatteryPresentState_notPresent()
161 BatteryController.BatteryStateChangeCallback cb = in testBatteryPresentState_callbackAddedAfterStateChange()
162 mock(BatteryController.BatteryStateChangeCallback.class); in testBatteryPresentState_callbackAddedAfterStateChange()
296 BatteryStateChangeCallback callback = new BatteryStateChangeCallback() { in callbackRemovedWhileDispatching_doesntCrash()
306 mBatteryController.addCallback(new BatteryStateChangeCallback() {}); in callbackRemovedWhileDispatching_doesntCrash()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ui/viewmodel/
DKeyguardStatusBarViewModel.kt27 import com.android.systemui.statusbar.policy.BatteryController.BatteryStateChangeCallback in <lambda>()
71 object : BatteryStateChangeCallback { in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/charging/
DWiredChargingRippleControllerTest.kt83 .forClass(BatteryController.BatteryStateChangeCallback::class.java) in testTriggerRipple_UnlockedState()
163 .forClass(BatteryController.BatteryStateChangeCallback::class.java) in testRipple_whenDocked_doesNotPlayRipple()
186 .forClass(BatteryController.BatteryStateChangeCallback::class.java) in testRipple_layoutsCorrectly()
/frameworks/base/packages/SystemUI/src/com/android/systemui/flags/
DPluggedInCondition.kt34 object : BatteryController.BatteryStateChangeCallback { in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DFalsingCollectorImplTest.java142 ArgumentCaptor<BatteryController.BatteryStateChangeCallback> batteryCallbackCaptor = in testNoProximityWhenWirelessCharging()
143 ArgumentCaptor.forClass(BatteryController.BatteryStateChangeCallback.class); in testNoProximityWhenWirelessCharging()
151 ArgumentCaptor<BatteryController.BatteryStateChangeCallback> batteryCallbackCaptor = in testProximityWhenOffWirelessCharging()
152 ArgumentCaptor.forClass(BatteryController.BatteryStateChangeCallback.class); in testProximityWhenOffWirelessCharging()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ui/viewmodel/
DKeyguardStatusBarViewModelTest.kt157 val captor = argumentCaptor<BatteryController.BatteryStateChangeCallback>() in isBatteryCharging_matchesCallback()
184 val captor = argumentCaptor<BatteryController.BatteryStateChangeCallback>() in isBatteryCharging_unregistersWhenNotListening()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingCollectorImpl.java43 import com.android.systemui.statusbar.policy.BatteryController.BatteryStateChangeCallback;
140 private final BatteryStateChangeCallback mBatteryListener = new BatteryStateChangeCallback() {
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DClockEventControllerTest.kt204 val batteryCaptor = argumentCaptor<BatteryController.BatteryStateChangeCallback>() in batteryCallback_keyguardShowingCharging_verifyChargeAnimation()
217 val batteryCaptor = argumentCaptor<BatteryController.BatteryStateChangeCallback>() in batteryCallback_keyguardShowingCharging_Duplicate_verifyChargeAnimation()
231 val batteryCaptor = argumentCaptor<BatteryController.BatteryStateChangeCallback>() in batteryCallback_keyguardHiddenCharging_verifyChargeAnimation()
244 val batteryCaptor = argumentCaptor<BatteryController.BatteryStateChangeCallback>() in batteryCallback_keyguardShowingNotCharging_verifyChargeAnimation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/
DBatteryMeterViewController.java83 private final BatteryController.BatteryStateChangeCallback mBatteryStateChangeCallback =
84 new BatteryController.BatteryStateChangeCallback() {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/
DPluggedInConditionTest.kt46 ArgumentCaptor.forClass(BatteryController.BatteryStateChangeCallback::class.java)
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DDozeParametersTest.java50 import com.android.systemui.statusbar.policy.BatteryController.BatteryStateChangeCallback;
89 @Captor private ArgumentCaptor<BatteryStateChangeCallback> mBatteryStateChangeCallback;
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/interactor/
DUiModeNightTileDataInteractor.kt66 object : BatteryController.BatteryStateChangeCallback { in tileData()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDozeParameters.java51 import com.android.systemui.statusbar.policy.BatteryController.BatteryStateChangeCallback;
166 batteryController.addCallback(new BatteryStateChangeCallback() { in DozeParameters()
DKeyguardStatusBarViewController.java176 private final BatteryController.BatteryStateChangeCallback mBatteryStateChangeCallback =
177 new BatteryController.BatteryStateChangeCallback() {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/
DSystemEventCoordinator.kt105 private val batteryStateListener = object : BatteryController.BatteryStateChangeCallback {
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBatterySaverTile.java50 BatteryController.BatteryStateChangeCallback {
DUiModeNightTile.java62 BatteryController.BatteryStateChangeCallback {
DRotationLockTile.java60 BatteryController.BatteryStateChangeCallback {
/frameworks/base/packages/SystemUI/src/com/android/systemui/charging/
DWiredChargingRippleController.kt95 val batteryStateChangeCallback = object : BatteryController.BatteryStateChangeCallback { in registerCallbacks()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DClockEventController.kt63 import com.android.systemui.statusbar.policy.BatteryController.BatteryStateChangeCallback in <lambda>()
315 object : BatteryStateChangeCallback { in <lambda>()

12