Home
last modified time | relevance | path

Searched refs:batteryInfo (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryHeaderPreferenceControllerTest.java236 var batteryInfo = in updateBatteryStatus_chargingString_statusWithRemainingLabel() local
242 var expectedChargingString = batteryInfo.statusLabel + " • " + batteryInfo.remainingLabel; in updateBatteryStatus_chargingString_statusWithRemainingLabel()
244 mController.updateBatteryStatus(/* label= */ null, batteryInfo); in updateBatteryStatus_chargingString_statusWithRemainingLabel()
251 var batteryInfo = in updateBatteryStatus_chargingStringV2FastCharging_statusWithRemainingLabel() local
257 var expectedChargingString = batteryInfo.statusLabel + " • " + batteryInfo.remainingLabel; in updateBatteryStatus_chargingStringV2FastCharging_statusWithRemainingLabel()
259 mController.updateBatteryStatus(/* label= */ null, batteryInfo); in updateBatteryStatus_chargingStringV2FastCharging_statusWithRemainingLabel()
266 var batteryInfo = in updateBatteryStatus_chargingStringV2NonFastCharging_remainingLabel() local
272 var expectedChargingString = batteryInfo.remainingLabel; in updateBatteryStatus_chargingStringV2NonFastCharging_remainingLabel()
274 mController.updateBatteryStatus(/* label= */ null, batteryInfo); in updateBatteryStatus_chargingStringV2NonFastCharging_remainingLabel()
283 var batteryInfo = in updateBatteryStatus_customizedWirelessChargingLabel_customizedLabel() local
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipLoader.java58 final BatteryInfo batteryInfo = mBatteryUtils.getBatteryInfo(TAG); in loadInBackground() local
62 new HighUsageDetector(context, batteryTipPolicy, mBatteryUsageStats, batteryInfo) in loadInBackground()
64 tips.add(new BatteryDefenderDetector(batteryInfo, context).detect()); in loadInBackground()
68 .addBatteryTipDetector(context, tips, batteryInfo, batteryTipPolicy); in loadInBackground()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java319 public static boolean isBatteryDefenderOn(BatteryInfo batteryInfo) { in isBatteryDefenderOn() argument
320 return batteryInfo.isBatteryDefender && !batteryInfo.discharging; in isBatteryDefenderOn()
456 BatteryInfo batteryInfo; in getBatteryInfo() local
469 batteryInfo = in getBatteryInfo()
484 return batteryInfo; in getBatteryInfo()
597 public static int getCurrentDockDefenderMode(Context context, BatteryInfo batteryInfo) { in getCurrentDockDefenderMode() argument
598 if (batteryInfo.pluggedStatus == BatteryManager.BATTERY_PLUGGED_DOCK) { in getCurrentDockDefenderMode()
603 } else if (batteryInfo.isBatteryDefender in getCurrentDockDefenderMode()
608 } else if (!batteryInfo.isBatteryDefender) { in getCurrentDockDefenderMode()
DBatteryHeaderPreferenceController.java164 public void updateHeaderByBatteryTips(BatteryTip batteryTip, BatteryInfo batteryInfo) { in updateHeaderByBatteryTips() argument
167 if (mBatteryTip != null && batteryInfo != null) { in updateHeaderByBatteryTips()
168 updateHeaderPreference(batteryInfo); in updateHeaderByBatteryTips()
DBatterySettingsFeatureProviderImpl.java52 BatteryInfo batteryInfo, in addBatteryTipDetector() argument
54 batteryTips.add(new LowBatteryDetector(context, batteryTipPolicy, batteryInfo).detect()); in addBatteryTipDetector()
DBatteryInfo.java199 final BatteryInfo batteryInfo = getBatteryInfo(context, stats, shortString); in getBatteryInfo() local
207 return batteryInfo; in getBatteryInfo()
211 protected void onPostExecute(BatteryInfo batteryInfo) { in getBatteryInfo() argument
213 callback.onBatteryInfoLoaded(batteryInfo); in getBatteryInfo()
DBatterySettingsFeatureProvider.java45 BatteryInfo batteryInfo, in addBatteryTipDetector() argument
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/
DHighUsageDetector.java59 BatteryInfo batteryInfo) { in HighUsageDetector() argument
62 mBatteryInfo = batteryInfo; in HighUsageDetector()
68 mDischarging = batteryInfo.discharging; in HighUsageDetector()
DBatteryDefenderDetector.java31 public BatteryDefenderDetector(BatteryInfo batteryInfo, Context context) { in BatteryDefenderDetector() argument
32 mBatteryInfo = batteryInfo; in BatteryDefenderDetector()
DLowBatteryDetector.java35 Context context, BatteryTipPolicy batteryTipPolicy, BatteryInfo batteryInfo) { in LowBatteryDetector() argument
37 mBatteryInfo = batteryInfo; in LowBatteryDetector()
DSmartBatteryDetector.java40 BatteryInfo batteryInfo, in SmartBatteryDetector() argument
44 mBatteryInfo = batteryInfo; in SmartBatteryDetector()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DPowerUsageSummary.java93 public void onLoadFinished(Loader<BatteryInfo> loader, BatteryInfo batteryInfo) {
94 mBatteryHeaderPreferenceController.updateHeaderPreference(batteryInfo);
96 mBatteryTipPreferenceController.getCurrentBatteryTip(), batteryInfo);
97 mBatteryInfo = batteryInfo;
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/training/util/
DTrainingConditionsChecker.java67 BatteryInfo batteryInfo, PowerManager powerManager, Flags flags, @NonNull Clock clock) { in TrainingConditionsChecker() argument
68 this.mBatteryInfo = batteryInfo; in TrainingConditionsChecker()