Searched refs:BatteryManagerInternal (Results 1 – 11 of 11) sorted by relevance
24 import android.os.BatteryManagerInternal;84 final BatteryManagerInternal batteryManager = in queryIsCharging()85 LocalServices.getService(BatteryManagerInternal.class); in queryIsCharging()
35 import android.os.BatteryManagerInternal;242 publishLocalService(BatteryManagerInternal.class, new LocalService()); in onStart()1249 private final class LocalService extends BatteryManagerInternal {
18 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()
27 import android.os.BatteryManagerInternal;53 @Mock private BatteryManagerInternal mBatteryManager;74 LocalServices.addService(BatteryManagerInternal.class, mBatteryManager); in setUp()86 LocalServices.removeServiceForTest(BatteryManagerInternal.class); in tearDown()
24 public abstract class BatteryManagerInternal { class
26 import android.os.BatteryManagerInternal;138 BatteryManagerInternal batteryManagerInternal = in startTracking()139 LocalServices.getService(BatteryManagerInternal.class); in startTracking()
48 import android.os.BatteryManagerInternal;1464 BatteryManagerInternal batteryManagerInternal = in startTracking()1465 LocalServices.getService(BatteryManagerInternal.class); in startTracking()
51 import android.os.BatteryManagerInternal;100 @Mock private BatteryManagerInternal mBatteryManagerInternalMock;152 addLocalServiceMock(BatteryManagerInternal.class, mBatteryManagerInternalMock); in setUp()200 LocalServices.removeServiceForTest(BatteryManagerInternal.class); in tearDown()
48 import android.os.BatteryManagerInternal;107 doReturn(mock(BatteryManagerInternal.class)) in setUp()108 .when(() -> LocalServices.getService(BatteryManagerInternal.class)); in setUp()
64 import android.os.BatteryManagerInternal;155 doReturn(mock(BatteryManagerInternal.class)) in setUp()156 .when(() -> LocalServices.getService(BatteryManagerInternal.class)); in setUp()
45 import android.os.BatteryManagerInternal;241 private BatteryManagerInternal mBatteryManagerInternal;829 mBatteryManagerInternal = getLocalService(BatteryManagerInternal.class); in systemReady()