/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/ |
D | FakeBatteryController.java | 22 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/ |
D | BatteryControllerExt.kt | 28 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/ |
D | BatteryController.java | 26 import com.android.systemui.statusbar.policy.BatteryController.BatteryStateChangeCallback; 36 CallbackController<BatteryStateChangeCallback> { 142 interface BatteryStateChangeCallback extends Dumpable { interface
|
D | BatteryControllerImpl.java | 81 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()
|
D | BatteryStateNotifier.kt | 40 ) : BatteryController.BatteryStateChangeCallback {
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | BatteryControllerTest.java | 52 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/ |
D | KeyguardStatusBarViewModel.kt | 27 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/ |
D | WiredChargingRippleControllerTest.kt | 83 .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/ |
D | PluggedInCondition.kt | 34 object : BatteryController.BatteryStateChangeCallback { in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/ |
D | FalsingCollectorImplTest.java | 142 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/ |
D | KeyguardStatusBarViewModelTest.kt | 157 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/ |
D | FalsingCollectorImpl.java | 43 import com.android.systemui.statusbar.policy.BatteryController.BatteryStateChangeCallback; 140 private final BatteryStateChangeCallback mBatteryListener = new BatteryStateChangeCallback() {
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | ClockEventControllerTest.kt | 204 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/ |
D | BatteryMeterViewController.java | 83 private final BatteryController.BatteryStateChangeCallback mBatteryStateChangeCallback = 84 new BatteryController.BatteryStateChangeCallback() {
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/ |
D | PluggedInConditionTest.kt | 46 ArgumentCaptor.forClass(BatteryController.BatteryStateChangeCallback::class.java)
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | DozeParametersTest.java | 50 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/ |
D | UiModeNightTileDataInteractor.kt | 66 object : BatteryController.BatteryStateChangeCallback { in tileData()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | DozeParameters.java | 51 import com.android.systemui.statusbar.policy.BatteryController.BatteryStateChangeCallback; 166 batteryController.addCallback(new BatteryStateChangeCallback() { in DozeParameters()
|
D | KeyguardStatusBarViewController.java | 176 private final BatteryController.BatteryStateChangeCallback mBatteryStateChangeCallback = 177 new BatteryController.BatteryStateChangeCallback() {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/ |
D | SystemEventCoordinator.kt | 105 private val batteryStateListener = object : BatteryController.BatteryStateChangeCallback {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | BatterySaverTile.java | 50 BatteryController.BatteryStateChangeCallback {
|
D | UiModeNightTile.java | 62 BatteryController.BatteryStateChangeCallback {
|
D | RotationLockTile.java | 60 BatteryController.BatteryStateChangeCallback {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/charging/ |
D | WiredChargingRippleController.kt | 95 val batteryStateChangeCallback = object : BatteryController.BatteryStateChangeCallback { in registerCallbacks()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | ClockEventController.kt | 63 import com.android.systemui.statusbar.policy.BatteryController.BatteryStateChangeCallback in <lambda>() 315 object : BatteryStateChangeCallback { in <lambda>()
|