Home
last modified time | relevance | path

Searched refs:getBatteryInfo (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryInfoTest.java146 BatteryInfo info = BatteryInfo.getBatteryInfo(mContext, mDisChargingBatteryBroadcast, in testGetBatteryInfo_basedOnUsageTrueMoreThanFifteenMinutes_usesCorrectString()
149 BatteryInfo info2 = BatteryInfo.getBatteryInfo(mContext, mDisChargingBatteryBroadcast, in testGetBatteryInfo_basedOnUsageTrueMoreThanFifteenMinutes_usesCorrectString()
165 BatteryInfo info = BatteryInfo.getBatteryInfo(mContext, mDisChargingBatteryBroadcast, in testGetBatteryInfo_basedOnUsageTrueLessThanSevenMinutes_usesCorrectString()
168 BatteryInfo info2 = BatteryInfo.getBatteryInfo(mContext, mDisChargingBatteryBroadcast, in testGetBatteryInfo_basedOnUsageTrueLessThanSevenMinutes_usesCorrectString()
185 BatteryInfo info = BatteryInfo.getBatteryInfo(mContext, mDisChargingBatteryBroadcast, in getBatteryInfo_MoreThanOneDay_suggestionLabelIsCorrectString()
198 BatteryInfo info = BatteryInfo.getBatteryInfo(mContext, mDisChargingBatteryBroadcast, in testGetBatteryInfo_basedOnUsageTrueBetweenSevenAndFifteenMinutes_usesCorrectString()
213 BatteryInfo info = BatteryInfo.getBatteryInfo(mContext, mDisChargingBatteryBroadcast, in testGetBatteryInfo_basedOnUsageFalse_usesDefaultString()
216 BatteryInfo info2 = BatteryInfo.getBatteryInfo(mContext, mDisChargingBatteryBroadcast, in testGetBatteryInfo_basedOnUsageFalse_usesDefaultString()
229 BatteryInfo info = BatteryInfo.getBatteryInfo(mContext, mChargingBatteryBroadcast, in testGetBatteryInfo_charging_usesChargeTime()
241 BatteryInfo info = BatteryInfo.getBatteryInfo(mContext, mChargingBatteryBroadcast, in testGetBatteryInfo_pluggedInWithFullBattery_onlyShowBatteryLevel()
[all …]
DBatteryUtilsTest.java507 assertThat(mBatteryUtils.getBatteryInfo(TAG)).isNotNull(); in getBatteryInfo_providerNull_shouldNotCrash()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryInfo.java143 public static void getBatteryInfo(final Context context, final Callback callback, in getBatteryInfo() method in BatteryInfo
145 BatteryInfo.getBatteryInfo(context, callback, /* batteryUsageStats */ null, shortString); in getBatteryInfo()
148 public static void getBatteryInfo(final Context context, final Callback callback, in getBatteryInfo() method in BatteryInfo
161 return getBatteryInfo(context, stats, shortString); in getBatteryInfo()
177 public static BatteryInfo getBatteryInfo(final Context context, in getBatteryInfo() method in BatteryInfo
201 return BatteryInfo.getBatteryInfo(context, batteryBroadcast, batteryUsageStats, in getBatteryInfo()
211 return BatteryInfo.getBatteryInfo(context, batteryBroadcast, batteryUsageStats, in getBatteryInfo()
222 return getBatteryInfo(context, batteryBroadcast, batteryUsageStats, estimate, in getBatteryInfoOld()
227 public static BatteryInfo getBatteryInfo(Context context, Intent batteryBroadcast, in getBatteryInfo() method in BatteryInfo
DBatteryInfoLoader.java47 return mBatteryUtils.getBatteryInfo(LOG_TAG); in loadInBackground()
DDebugEstimatesLoader.java70 BatteryInfo newInfo = BatteryInfo.getBatteryInfo(getContext(), batteryBroadcast, in loadInBackground()
DBatteryUtils.java368 public BatteryInfo getBatteryInfo(final String tag) { in getBatteryInfo() method in BatteryUtils
395 batteryInfo = BatteryInfo.getBatteryInfo(mContext, batteryBroadcast, in getBatteryInfo()
DBatteryHistoryPreference.java81 BatteryInfo.getBatteryInfo(getContext(), info -> { in setBatteryUsageStats()
DTopLevelBatteryPreferenceController.java58 BatteryInfo.getBatteryInfo(mContext, info -> { in TopLevelBatteryPreferenceController()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipLoader.java67 final BatteryInfo batteryInfo = mBatteryUtils.getBatteryInfo(TAG); in loadInBackground()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipLoaderTest.java79 doReturn(mBatteryInfo).when(mBatteryUtils).getBatteryInfo(any()); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/
DHighUsageDetectorTest.java101 mBatteryUtils.getBatteryInfo(TAG))); in setUp()