Home
last modified time | relevance | path

Searched refs:isPluggedIn (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/battery/domain/model/
DBatterySaverTileModel.kt22 val isPluggedIn: Boolean constant
27 override val isPluggedIn: Boolean, constant in com.android.systemui.qs.tiles.impl.battery.domain.model.BatterySaverTileModel.Standard
36 override val isPluggedIn: Boolean, constant in com.android.systemui.qs.tiles.impl.battery.domain.model.BatterySaverTileModel.Extreme
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/battery/doman/interactor/
DBatterySaverTileDataInteractorTest.kt90 Truth.assertThat(data!!.isPluggedIn).isFalse() in tileData_matchesBatteryControllerIsPluggedIn()
92 batteryController.isPluggedIn = true in tileData_matchesBatteryControllerIsPluggedIn()
94 Truth.assertThat(data!!.isPluggedIn).isTrue() in tileData_matchesBatteryControllerIsPluggedIn()
96 batteryController.isPluggedIn = false in tileData_matchesBatteryControllerIsPluggedIn()
98 Truth.assertThat(data!!.isPluggedIn).isFalse() in tileData_matchesBatteryControllerIsPluggedIn()
DBatterySaverTileUserActionInteractorTest.kt47 controller.isPluggedIn = false in handleClickWhenNotPluggedIn_flipsPowerSaverMode()
60 controller.isPluggedIn = true in <lambda>()
64 BatterySaverTileModel.Standard(controller.isPluggedIn, originalPowerSaveMode) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/
DPluggedInConditionTest.kt58 whenever(batteryController.isPluggedIn).thenReturn(false) in testCondition_unplugged()
68 whenever(batteryController.isPluggedIn).thenReturn(true) in testCondition_pluggedIn()
78 whenever(batteryController.isPluggedIn).thenReturn(false) in testCondition_invokesRetry()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatteryStatus.java102 public boolean isPluggedIn() { in isPluggedIn() method in BatteryStatus
103 return isPluggedIn(plugged); in isPluggedIn()
233 public static boolean isPluggedIn(Intent batteryChangedIntent) { in isPluggedIn() method in BatteryStatus
234 return isPluggedIn(getPluggedType(batteryChangedIntent)); in isPluggedIn()
238 public static boolean isPluggedIn(int plugged) { in isPluggedIn() method in BatteryStatus
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/battery/domain/interactor/
DBatterySaverTileDataInteractor.kt57 isPluggedIn: Boolean, in <lambda>() method
61 BatterySaverTileModel.Standard(isPluggedIn, isPowerSaverEnabled) in <lambda>()
DBatterySaverTileUserActionInteractor.kt41 if (!data.isPluggedIn) { in handleInput()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryInputSuspendTest.java115 void waitForChargerState(boolean isPluggedIn) { in waitForChargerState() argument
116 mExpectedChargingState = isPluggedIn; in waitForChargerState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/flags/
DPluggedInCondition.kt45 trySend(batteryControllerLazy.get().isPluggedIn) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryController.java75 boolean isPluggedIn(); in isPluggedIn() method
DBatteryControllerImpl.java335 public boolean isPluggedIn() { in isPluggedIn() method in BatteryControllerImpl
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/
DBatteryControllerExt.kt40 .onStart { emit(isPluggedIn) } in BatteryController()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
DFakeBatteryController.java86 public boolean isPluggedIn() { in isPluggedIn() method in FakeBatteryController
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/battery/ui/
DBatterySaverTileMapper.kt48 if (data.isPluggedIn) { in map()
/frameworks/base/packages/SettingsLib/tests/unit/src/com/android/settingslib/fuelgague/
DBatteryStatusTest.kt163 .that(BatteryStatus.isPluggedIn(plugged)) in isPluggedIn_()
166 .that(BatteryStatus.isPluggedIn(batteryChangedIntent)) in isPluggedIn_()
/frameworks/base/packages/SystemUI/src/com/android/systemui/charging/
DWiredChargingRippleController.kt89 pluggedIn = batteryController.isPluggedIn
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyguardIndicationController.java1274 mPowerPluggedIn = status.isPluggedIn() && isChargingOrFull; in onRefreshBatteryInfo()
1282 mEnableBatteryDefender = mBatteryDefender && status.isPluggedIn(); in onRefreshBatteryInfo()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardUpdateMonitor.java3493 final boolean nowPluggedIn = current.isPluggedIn(); in isBatteryUpdateInteresting()
3494 final boolean wasPluggedIn = old.isPluggedIn(); in isBatteryUpdateInteresting()
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DPowerManagerServiceTest.java436 private void setPluggedIn(boolean isPluggedIn) { in setPluggedIn() argument
439 .thenReturn(isPluggedIn); in setPluggedIn()