/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryInfoTest.java | 145 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 …]
|
D | BatteryUtilsTest.java | 739 assertThat(mBatteryUtils.getBatteryInfo(mBatteryStatsHelper, TAG)).isNotNull(); in getBatteryInfo_providerNull_shouldNotCrash()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryInfo.java | 139 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 …]
|
D | BatteryInfoLoader.java | 51 return batteryUtils.getBatteryInfo(mStatsHelper, LOG_TAG); in loadInBackground()
|
D | DebugEstimatesLoader.java | 67 BatteryInfo newInfo = BatteryInfo.getBatteryInfo(getContext(), batteryBroadcast, stats, in loadInBackground()
|
D | TopLevelBatteryPreferenceController.java | 42 BatteryInfo.getBatteryInfo(mContext, info -> { in TopLevelBatteryPreferenceController()
|
D | BatteryHistoryPreference.java | 54 BatteryInfo.getBatteryInfo(getContext(), info -> { in setStats()
|
D | BatteryUtils.java | 468 public BatteryInfo getBatteryInfo(final BatteryStatsHelper statsHelper, final String tag) { in getBatteryInfo() method in BatteryUtils 489 batteryInfo = BatteryInfo.getBatteryInfo(mContext, batteryBroadcast, stats, in getBatteryInfo()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | BatteryInfo.java | 137 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 …]
|
D | BatteryInfoLoader.java | 51 return batteryUtils.getBatteryInfo(mStatsHelper, LOG_TAG); in loadInBackground()
|
D | DebugEstimatesLoader.java | 65 BatteryInfo newInfo = BatteryInfo.getBatteryInfo(getContext(), batteryBroadcast, stats, in loadInBackground()
|
D | BatteryHistoryPreference.java | 54 BatteryInfo.getBatteryInfo(getContext(), info -> { in setStats()
|
D | TopLevelBatteryPreferenceController.java | 42 BatteryInfo.getBatteryInfo(mContext, info -> { in TopLevelBatteryPreferenceController()
|
D | BatteryUtils.java | 441 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/batterytip/ |
D | BatteryTipLoader.java | 68 final BatteryInfo batteryInfo = mBatteryUtils.getBatteryInfo(mBatteryStatsHelper, TAG); in loadInBackground()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/ |
D | BatteryTipLoaderTest.java | 81 doReturn(mBatteryInfo).when(mBatteryUtils).getBatteryInfo(any(), any()); in setUp()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/ |
D | BatteryTipLoader.java | 68 final BatteryInfo batteryInfo = mBatteryUtils.getBatteryInfo(mBatteryStatsHelper, TAG); in loadInBackground()
|