Home
last modified time | relevance | path

Searched refs:mBatteryManager (Results 1 – 9 of 9) sorted by relevance

/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DJobPreconditionsTest.java49 @Mock private BatteryManager mBatteryManager; field in JobPreconditionsTest
64 mBatteryManager); in setUp()
90 when(mBatteryManager.isCharging()).thenReturn(true); in testBatteryConnected()
97 when(mBatteryManager.isCharging()).thenReturn(false); in testBatteryDisconnected()
DAutomaticStorageManagementJobServiceTest.java67 @Mock private BatteryManager mBatteryManager; field in AutomaticStorageManagementJobServiceTest
91 when(mBatteryManager.isCharging()).thenReturn(true); in setUp()
112 mApplication.setSystemService(Context.BATTERY_SERVICE, mBatteryManager); in setUp()
143 when(mBatteryManager.isCharging()).thenReturn(false); in testJobRequiresCharging()
148 when(mBatteryManager.isCharging()).thenReturn(true); in testJobRequiresCharging()
/packages/apps/Settings/src/com/android/settings/deviceinfo/batteryinfo/
DBatteryManufactureDatePreferenceController.java35 private final BatteryManager mBatteryManager; field in BatteryManufactureDatePreferenceController
43 mBatteryManager = mContext.getSystemService(BatteryManager.class); in BatteryManufactureDatePreferenceController()
62 final long manufactureDateInSec = mBatteryManager.getLongProperty( in getManufactureDate()
DBatteryFirstUseDatePreferenceController.java35 private final BatteryManager mBatteryManager; field in BatteryFirstUseDatePreferenceController
43 mBatteryManager = mContext.getSystemService(BatteryManager.class); in BatteryFirstUseDatePreferenceController()
61 final long firstUseDateInSec = mBatteryManager.getLongProperty( in getFirstUseDate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/batteryinfo/
DBatteryFirstUseDatePreferenceControllerTest.java49 private BatteryManager mBatteryManager; field in BatteryFirstUseDatePreferenceControllerTest
56 mBatteryManager = mContext.getSystemService(BatteryManager.class); in setUp()
57 mShadowBatteryManager = shadowOf(mBatteryManager); in setUp()
DBatteryManufactureDatePreferenceControllerTest.java50 private BatteryManager mBatteryManager; field in BatteryManufactureDatePreferenceControllerTest
57 mBatteryManager = mContext.getSystemService(BatteryManager.class); in setUp()
58 mShadowBatteryManager = shadowOf(mBatteryManager); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DDarkThemeSliceTest.java60 private BatteryManager mBatteryManager; field in DarkThemeSliceTest
225 doReturn(mBatteryManager).when(mContext).getSystemService(BatteryManager.class); in setBatteryCapacityLevel()
226 when(mBatteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_CAPACITY)) in setBatteryCapacityLevel()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java77 private BatteryManager mBatteryManager = null; field in HeadsetClientService
116 mBatteryManager = getSystemService(BatteryManager.class); in start()
1321 int batteryLevel = mBatteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_CAPACITY); in updateBatteryLevel()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSoftApManagerTest.java217 @Mock BatteryManager mBatteryManager; field in SoftApManagerTest