Home
last modified time | relevance | path

Searched refs:isCharging (Results 1 – 5 of 5) sorted by relevance

/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DJobPreconditionsTest.java92 when(mBatteryManager.isCharging()).thenReturn(true); in testBatteryConnected()
94 assertThat(JobPreconditions.isCharging(mContext)).isTrue(); in testBatteryConnected()
99 when(mBatteryManager.isCharging()).thenReturn(false); in testBatteryDisconnected()
101 assertThat(JobPreconditions.isCharging(mContext)).isFalse(); in testBatteryDisconnected()
DAutomaticStorageManagementJobServiceTest.java82 when(mBatteryManager.isCharging()).thenReturn(true); in setUp()
118 when(mBatteryManager.isCharging()).thenReturn(false); in testJobRequiresCharging()
123 when(mBatteryManager.isCharging()).thenReturn(true); in testJobRequiresCharging()
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DJobPreconditions.java42 public static boolean isCharging(Context context) { in isCharging() method in JobPreconditions
46 return batteryManager.isCharging(); in isCharging()
DAutomaticStorageManagementJobService.java122 return JobPreconditions.isCharging(context); in preconditionsFulfilled()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DLocationFragment.java119 if (batteryManager != null && !batteryManager.isCharging()) { in onCreatePreferences()