Home
last modified time | relevance | path

Searched refs:BatteryController (Results 1 – 25 of 70) sorted by relevance

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/
DBatteryControllerExt.kt20 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/
DPluggedInCondition.kt20 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/
DBatteryMeterViewController.java41 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/
DBatteryController.java43 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/
DBatteryControllerKosmos.kt23 val Kosmos.batteryController: BatteryController by Fixture { mock<BatteryController>() } in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
DFakeBatteryController.java21 import com.android.systemui.statusbar.policy.BatteryController;
22 import com.android.systemui.statusbar.policy.BatteryController.BatteryStateChangeCallback;
29 implements BatteryController {
DLeakCheckedTest.java25 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/
DKeyguardStatusBarViewModel.kt26 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/
DPluggedInConditionTest.kt21 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/
DBatterySaverTile.java44 import com.android.systemui.statusbar.policy.BatteryController;
50 BatteryController.BatteryStateChangeCallback {
54 private final BatteryController mBatteryController;
74 BatteryController batteryController, in BatterySaverTile()
DUiModeNightTile.java45 import com.android.systemui.statusbar.policy.BatteryController;
62 BatteryController.BatteryStateChangeCallback {
68 private final BatteryController mBatteryController;
82 BatteryController batteryController, in UiModeNightTile()
DRotationLockTile.java51 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/
DUiModeNightTileDataInteractor.kt28 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/
DBatterySaverTileUserActionInteractor.kt26 import com.android.systemui.statusbar.policy.BatteryController
34 private val batteryController: BatteryController
DBatterySaverTileDataInteractor.kt24 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/
DAospPolicyModule.java41 static BatteryController provideBatteryController( in provideBatteryController()
51 BatteryController bC = new BatteryControllerImpl( in provideBatteryController()
DBatteryControllerStartable.java42 private final BatteryController mBatteryController;
50 BatteryController batteryController, in BatteryControllerStartable()
DBatteryController.java26 import com.android.systemui.statusbar.policy.BatteryController.BatteryStateChangeCallback;
35 public interface BatteryController extends DemoMode, interface
DBatteryStateNotifier.kt36 val controller: BatteryController,
40 ) : BatteryController.BatteryStateChangeCallback {
DBatteryControllerLogger.kt33 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/
DWiredChargingRippleControllerTest.kt32 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/
DSystemEventCoordinator.kt31 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/
DLightBarController.java46 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/
DFalsingCollectorImplTest.java48 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/
DRotationLockTileDataInteractor.kt29 import com.android.systemui.statusbar.policy.BatteryController in <lambda>()
43 private val batteryController: BatteryController, in <lambda>()

123