Home
last modified time | relevance | path

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

/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/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.java37 import android.os.BatteryManagerInternal;
246 publishLocalService(BatteryManagerInternal.class, new LocalService()); in onStart()
1280 private final class LocalService extends BatteryManagerInternal {
/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.java54 import android.os.BatteryManagerInternal;
104 @Mock private BatteryManagerInternal mBatteryManagerInternalMock;
156 addLocalServiceMock(BatteryManagerInternal.class, mBatteryManagerInternalMock); in setUp()
209 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.java46 import android.os.BatteryManagerInternal;
243 private BatteryManagerInternal mBatteryManagerInternal;
837 mBatteryManagerInternal = getLocalService(BatteryManagerInternal.class); in systemReady()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt48589 Landroid/os/BatteryManagerInternal;-><init>()V
48590 Landroid/os/BatteryManagerInternal;->getBatteryChargeCounter()I
48591 Landroid/os/BatteryManagerInternal;->getBatteryFullCharge()I
48592 Landroid/os/BatteryManagerInternal;->getBatteryLevel()I
48593 Landroid/os/BatteryManagerInternal;->getBatteryLevelLow()Z
48594 Landroid/os/BatteryManagerInternal;->getInvalidCharger()I
48595 Landroid/os/BatteryManagerInternal;->getPlugType()I
48596 Landroid/os/BatteryManagerInternal;->isPowered(I)Z
Dboot-image-profile.txt35144 Landroid/os/BatteryManagerInternal;