Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryInfoTest.java145 BatteryInfo info = BatteryInfo.getBatteryInfo(mContext, mDisChargingBatteryBroadcast, in testGetBatteryInfo_basedOnUsageTrueMoreThanFifteenMinutes_usesCorrectString()
148 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()
230 BatteryInfo info = BatteryInfo.getBatteryInfo(mContext, mChargingBatteryBroadcast, in testGetBatteryInfo_charging_usesChargeTime()
242 BatteryInfo info = BatteryInfo.getBatteryInfo(mContext, mChargingBatteryBroadcast, in testGetBatteryInfo_pluggedInWithFullBattery_onlyShowBatteryLevel()
[all …]
DBatteryUtilsTest.java739 assertThat(mBatteryUtils.getBatteryInfo(mBatteryStatsHelper, TAG)).isNotNull(); in getBatteryInfo_providerNull_shouldNotCrash()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryInfo.java137 public static void getBatteryInfo(final Context context, final Callback callback) { in getBatteryInfo() method in BatteryInfo
138 BatteryInfo.getBatteryInfo(context, callback, null /* statsHelper */, in getBatteryInfo()
142 public static void getBatteryInfo(final Context context, final Callback callback, in getBatteryInfo() method in BatteryInfo
144 BatteryInfo.getBatteryInfo(context, callback, null /* statsHelper */, shortString); in getBatteryInfo()
147 public static void getBatteryInfo(final Context context, final Callback callback, in getBatteryInfo() method in BatteryInfo
152 return getBatteryInfo(context, statsHelper, shortString); in getBatteryInfo()
164 public static BatteryInfo getBatteryInfo(final Context context, in getBatteryInfo() method in BatteryInfo
196 return BatteryInfo.getBatteryInfo(context, batteryBroadcast, stats, in getBatteryInfo()
207 return BatteryInfo.getBatteryInfo(context, batteryBroadcast, stats, in getBatteryInfo()
218 return getBatteryInfo(context, batteryBroadcast, stats, estimate, elapsedRealtimeUs, in getBatteryInfoOld()
[all …]
DBatteryInfoLoader.java51 return batteryUtils.getBatteryInfo(mStatsHelper, LOG_TAG); in loadInBackground()
DDebugEstimatesLoader.java65 BatteryInfo newInfo = BatteryInfo.getBatteryInfo(getContext(), batteryBroadcast, stats, in loadInBackground()
DTopLevelBatteryPreferenceController.java42 BatteryInfo.getBatteryInfo(mContext, info -> { in TopLevelBatteryPreferenceController()
DBatteryHistoryPreference.java54 BatteryInfo.getBatteryInfo(getContext(), info -> { in setStats()
DBatteryUtils.java441 public BatteryInfo getBatteryInfo(final BatteryStatsHelper statsHelper, final String tag) { in getBatteryInfo() method in BatteryUtils
467 batteryInfo = BatteryInfo.getBatteryInfo(mContext, batteryBroadcast, stats, in getBatteryInfo()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryInfo.java139 public static void getBatteryInfo(final Context context, final Callback callback) { in getBatteryInfo() method in BatteryInfo
140 BatteryInfo.getBatteryInfo(context, callback, null /* statsHelper */, in getBatteryInfo()
144 public static void getBatteryInfo(final Context context, final Callback callback, in getBatteryInfo() method in BatteryInfo
146 BatteryInfo.getBatteryInfo(context, callback, null /* statsHelper */, shortString); in getBatteryInfo()
149 public static void getBatteryInfo(final Context context, final Callback callback, in getBatteryInfo() method in BatteryInfo
154 return getBatteryInfo(context, statsHelper, shortString); in getBatteryInfo()
166 public static BatteryInfo getBatteryInfo(final Context context, in getBatteryInfo() method in BatteryInfo
199 return BatteryInfo.getBatteryInfo(context, batteryBroadcast, stats, in getBatteryInfo()
210 return BatteryInfo.getBatteryInfo(context, batteryBroadcast, stats, in getBatteryInfo()
221 return getBatteryInfo(context, batteryBroadcast, stats, estimate, elapsedRealtimeUs, in getBatteryInfoOld()
[all …]
DBatteryInfoLoader.java51 return batteryUtils.getBatteryInfo(mStatsHelper, LOG_TAG); in loadInBackground()
DDebugEstimatesLoader.java67 BatteryInfo newInfo = BatteryInfo.getBatteryInfo(getContext(), batteryBroadcast, stats, in loadInBackground()
DTopLevelBatteryPreferenceController.java42 BatteryInfo.getBatteryInfo(mContext, info -> { in TopLevelBatteryPreferenceController()
DBatteryHistoryPreference.java54 BatteryInfo.getBatteryInfo(getContext(), info -> { in setStats()
DBatteryUtils.java468 public BatteryInfo getBatteryInfo(final BatteryStatsHelper statsHelper, final String tag) { in getBatteryInfo() method in BatteryUtils
489 batteryInfo = BatteryInfo.getBatteryInfo(mContext, batteryBroadcast, stats, in getBatteryInfo()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipLoader.java68 final BatteryInfo batteryInfo = mBatteryUtils.getBatteryInfo(mBatteryStatsHelper, TAG); in loadInBackground()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipLoaderTest.java81 doReturn(mBatteryInfo).when(mBatteryUtils).getBatteryInfo(any(), any()); in setUp()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DBatteryTipLoader.java68 final BatteryInfo batteryInfo = mBatteryUtils.getBatteryInfo(mBatteryStatsHelper, TAG); in loadInBackground()