Home
last modified time | relevance | path

Searched refs:BatteryManagerInternal (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/core/java/com/android/server/
DCachedDeviceStateService.java24 import android.os.BatteryManagerInternal;
84 final BatteryManagerInternal batteryManager = in queryIsCharging()
85 LocalServices.getService(BatteryManagerInternal.class); in queryIsCharging()
DBatteryService.java35 import android.os.BatteryManagerInternal;
242 publishLocalService(BatteryManagerInternal.class, new LocalService()); in onStart()
1249 private final class LocalService extends BatteryManagerInternal {
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySavingStats.java18 import android.os.BatteryManagerInternal;
140 private BatteryManagerInternal mBatteryManagerInternal;
174 mBatteryManagerInternal = LocalServices.getService(BatteryManagerInternal.class); in BatterySavingStats()
177 private BatteryManagerInternal getBatteryManagerInternal() { in getBatteryManagerInternal()
179 mBatteryManagerInternal = LocalServices.getService(BatteryManagerInternal.class); in getBatteryManagerInternal()
244 final BatteryManagerInternal bmi = getBatteryManagerInternal(); in injectBatteryLevel()
253 final BatteryManagerInternal bmi = getBatteryManagerInternal(); in injectBatteryPercent()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DCachedDeviceStateServiceTest.java27 import android.os.BatteryManagerInternal;
53 @Mock private BatteryManagerInternal mBatteryManager;
74 LocalServices.addService(BatteryManagerInternal.class, mBatteryManager); in setUp()
86 LocalServices.removeServiceForTest(BatteryManagerInternal.class); in tearDown()
/frameworks/base/core/java/android/os/
DBatteryManagerInternal.java24 public abstract class BatteryManagerInternal { class
/frameworks/base/services/core/java/com/android/server/job/controllers/
DBatteryController.java26 import android.os.BatteryManagerInternal;
138 BatteryManagerInternal batteryManagerInternal = in startTracking()
139 LocalServices.getService(BatteryManagerInternal.class); in startTracking()
DQuotaController.java48 import android.os.BatteryManagerInternal;
1464 BatteryManagerInternal batteryManagerInternal = in startTracking()
1465 LocalServices.getService(BatteryManagerInternal.class); in startTracking()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java51 import android.os.BatteryManagerInternal;
100 @Mock private BatteryManagerInternal mBatteryManagerInternalMock;
152 addLocalServiceMock(BatteryManagerInternal.class, mBatteryManagerInternalMock); in setUp()
200 LocalServices.removeServiceForTest(BatteryManagerInternal.class); in tearDown()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java48 import android.os.BatteryManagerInternal;
107 doReturn(mock(BatteryManagerInternal.class)) in setUp()
108 .when(() -> LocalServices.getService(BatteryManagerInternal.class)); in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java64 import android.os.BatteryManagerInternal;
155 doReturn(mock(BatteryManagerInternal.class)) in setUp()
156 .when(() -> LocalServices.getService(BatteryManagerInternal.class)); in setUp()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java45 import android.os.BatteryManagerInternal;
241 private BatteryManagerInternal mBatteryManagerInternal;
829 mBatteryManagerInternal = getLocalService(BatteryManagerInternal.class); in systemReady()