/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/ |
D | BatteryControllerExt.kt | 20 import com.android.systemui.statusbar.policy.BatteryController 25 fun BatteryController.isDevicePluggedIn(): Flow<Boolean> { in BatteryController() method 28 object : BatteryController.BatteryStateChangeCallback { in BatteryController() 43 fun BatteryController.isBatteryPowerSaveEnabled(): Flow<Boolean> { in isBatteryPowerSaveEnabled() method 46 object : BatteryController.BatteryStateChangeCallback { in isBatteryPowerSaveEnabled() 57 fun BatteryController.getBatteryLevel(): Flow<Int> { in getBatteryLevel() method 60 object : BatteryController.BatteryStateChangeCallback { in getBatteryLevel() 75 fun BatteryController.isExtremePowerSaverEnabled(): Flow<Boolean> { in isExtremePowerSaverEnabled() method 78 object : BatteryController.BatteryStateChangeCallback { in isExtremePowerSaverEnabled()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/flags/ |
D | PluggedInCondition.kt | 20 import com.android.systemui.statusbar.policy.BatteryController 29 private val batteryControllerLazy: Lazy<BatteryController>, 34 object : BatteryController.BatteryStateChangeCallback { in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/ |
D | BatteryMeterViewController.java | 41 import com.android.systemui.statusbar.policy.BatteryController; 57 private final BatteryController mBatteryController; 83 private final BatteryController.BatteryStateChangeCallback mBatteryStateChangeCallback = 84 new BatteryController.BatteryStateChangeCallback() { 144 BatteryController batteryController) { in BatteryMeterViewController() 254 private final BatteryController mBatteryController; 264 BatteryController batteryController in Factory()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
D | BatteryController.java | 43 public final class BatteryController extends RestrictingController { class 68 public BatteryController(JobSchedulerService service, in BatteryController() method in BatteryController 262 proto.write(StateControllerProto.BatteryController.IS_ON_STABLE_POWER, in dumpControllerStateLocked() 264 proto.write(StateControllerProto.BatteryController.IS_BATTERY_NOT_LOW, in dumpControllerStateLocked() 272 final long jsToken = proto.start(StateControllerProto.BatteryController.TRACKED_JOBS); in dumpControllerStateLocked() 273 js.writeToShortProto(proto, StateControllerProto.BatteryController.TrackedJob.INFO); in dumpControllerStateLocked() 274 proto.write(StateControllerProto.BatteryController.TrackedJob.SOURCE_UID, in dumpControllerStateLocked()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/policy/ |
D | BatteryControllerKosmos.kt | 23 val Kosmos.batteryController: BatteryController by Fixture { mock<BatteryController>() } in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/ |
D | FakeBatteryController.java | 21 import com.android.systemui.statusbar.policy.BatteryController; 22 import com.android.systemui.statusbar.policy.BatteryController.BatteryStateChangeCallback; 29 implements BatteryController {
|
D | LeakCheckedTest.java | 25 import com.android.systemui.statusbar.policy.BatteryController; 62 BatteryController.class, 121 } else if (cls == BatteryController.class) { in getLeakChecker()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ui/viewmodel/ |
D | KeyguardStatusBarViewModel.kt | 26 import com.android.systemui.statusbar.policy.BatteryController in <lambda>() 27 import com.android.systemui.statusbar.policy.BatteryController.BatteryStateChangeCallback in <lambda>() 53 batteryController: BatteryController, in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/ |
D | PluggedInConditionTest.kt | 21 import com.android.systemui.statusbar.policy.BatteryController 42 @Mock private lateinit var batteryController: BatteryController 46 ArgumentCaptor.forClass(BatteryController.BatteryStateChangeCallback::class.java)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | BatterySaverTile.java | 44 import com.android.systemui.statusbar.policy.BatteryController; 50 BatteryController.BatteryStateChangeCallback { 54 private final BatteryController mBatteryController; 74 BatteryController batteryController, in BatterySaverTile()
|
D | UiModeNightTile.java | 45 import com.android.systemui.statusbar.policy.BatteryController; 62 BatteryController.BatteryStateChangeCallback { 68 private final BatteryController mBatteryController; 82 BatteryController batteryController, in UiModeNightTile()
|
D | RotationLockTile.java | 51 import com.android.systemui.statusbar.policy.BatteryController; 60 BatteryController.BatteryStateChangeCallback { 69 private final BatteryController mBatteryController; 86 BatteryController batteryController, in RotationLockTile()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/interactor/ |
D | UiModeNightTileDataInteractor.kt | 28 import com.android.systemui.statusbar.policy.BatteryController 44 private val batteryController: BatteryController, 66 object : BatteryController.BatteryStateChangeCallback { in tileData()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/battery/domain/interactor/ |
D | BatterySaverTileUserActionInteractor.kt | 26 import com.android.systemui.statusbar.policy.BatteryController 34 private val batteryController: BatteryController
|
D | BatterySaverTileDataInteractor.kt | 24 import com.android.systemui.statusbar.policy.BatteryController in <lambda>() 42 private val batteryController: BatteryController, in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | AospPolicyModule.java | 41 static BatteryController provideBatteryController( in provideBatteryController() 51 BatteryController bC = new BatteryControllerImpl( in provideBatteryController()
|
D | BatteryControllerStartable.java | 42 private final BatteryController mBatteryController; 50 BatteryController batteryController, in BatteryControllerStartable()
|
D | BatteryController.java | 26 import com.android.systemui.statusbar.policy.BatteryController.BatteryStateChangeCallback; 35 public interface BatteryController extends DemoMode, interface
|
D | BatteryStateNotifier.kt | 36 val controller: BatteryController, 40 ) : BatteryController.BatteryStateChangeCallback {
|
D | BatteryControllerLogger.kt | 33 fun logBatteryControllerInstance(controller: BatteryController) { in logBatteryControllerInstance() 42 fun logBatteryControllerInit(controller: BatteryController, hasReceivedBattery: Boolean) { in logBatteryControllerInit()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/charging/ |
D | WiredChargingRippleControllerTest.kt | 32 import com.android.systemui.statusbar.policy.BatteryController 56 @Mock private lateinit var batteryController: BatteryController 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/statusbar/events/ |
D | SystemEventCoordinator.kt | 31 import com.android.systemui.statusbar.policy.BatteryController 48 private val batteryController: BatteryController, 105 private val batteryStateListener = object : BatteryController.BatteryStateChangeCallback {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | LightBarController.java | 46 import com.android.systemui.statusbar.policy.BatteryController; 60 BatteryController.BatteryStateChangeCallback, Dumpable, CoreStartable { 70 private final BatteryController mBatteryController; 127 BatteryController batteryController, in LightBarController() 477 private final BatteryController mBatteryController; 487 BatteryController batteryController, in Factory()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/ |
D | FalsingCollectorImplTest.java | 48 import com.android.systemui.statusbar.policy.BatteryController; 92 private BatteryController mBatteryController; 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/src/com/android/systemui/qs/tiles/impl/rotation/domain/interactor/ |
D | RotationLockTileDataInteractor.kt | 29 import com.android.systemui.statusbar.policy.BatteryController in <lambda>() 43 private val batteryController: BatteryController, in <lambda>()
|