/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/ |
D | JobPreconditionsTest.java | 49 @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()
|
D | AutomaticStorageManagementJobServiceTest.java | 67 @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/ |
D | BatteryManufactureDatePreferenceController.java | 35 private final BatteryManager mBatteryManager; field in BatteryManufactureDatePreferenceController 43 mBatteryManager = mContext.getSystemService(BatteryManager.class); in BatteryManufactureDatePreferenceController() 62 final long manufactureDateInSec = mBatteryManager.getLongProperty( in getManufactureDate()
|
D | BatteryFirstUseDatePreferenceController.java | 35 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/ |
D | BatteryFirstUseDatePreferenceControllerTest.java | 49 private BatteryManager mBatteryManager; field in BatteryFirstUseDatePreferenceControllerTest 56 mBatteryManager = mContext.getSystemService(BatteryManager.class); in setUp() 57 mShadowBatteryManager = shadowOf(mBatteryManager); in setUp()
|
D | BatteryManufactureDatePreferenceControllerTest.java | 50 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/ |
D | DarkThemeSliceTest.java | 60 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/ |
D | HeadsetClientService.java | 77 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/ |
D | SoftApManagerTest.java | 217 @Mock BatteryManager mBatteryManager; field in SoftApManagerTest
|