/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryHeaderPreferenceControllerTest.java | 236 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/ |
D | BatteryTipLoader.java | 58 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/ |
D | BatteryUtils.java | 319 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()
|
D | BatteryHeaderPreferenceController.java | 164 public void updateHeaderByBatteryTips(BatteryTip batteryTip, BatteryInfo batteryInfo) { in updateHeaderByBatteryTips() argument 167 if (mBatteryTip != null && batteryInfo != null) { in updateHeaderByBatteryTips() 168 updateHeaderPreference(batteryInfo); in updateHeaderByBatteryTips()
|
D | BatterySettingsFeatureProviderImpl.java | 52 BatteryInfo batteryInfo, in addBatteryTipDetector() argument 54 batteryTips.add(new LowBatteryDetector(context, batteryTipPolicy, batteryInfo).detect()); in addBatteryTipDetector()
|
D | BatteryInfo.java | 199 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()
|
D | BatterySettingsFeatureProvider.java | 45 BatteryInfo batteryInfo, in addBatteryTipDetector() argument
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/ |
D | HighUsageDetector.java | 59 BatteryInfo batteryInfo) { in HighUsageDetector() argument 62 mBatteryInfo = batteryInfo; in HighUsageDetector() 68 mDischarging = batteryInfo.discharging; in HighUsageDetector()
|
D | BatteryDefenderDetector.java | 31 public BatteryDefenderDetector(BatteryInfo batteryInfo, Context context) { in BatteryDefenderDetector() argument 32 mBatteryInfo = batteryInfo; in BatteryDefenderDetector()
|
D | LowBatteryDetector.java | 35 Context context, BatteryTipPolicy batteryTipPolicy, BatteryInfo batteryInfo) { in LowBatteryDetector() argument 37 mBatteryInfo = batteryInfo; in LowBatteryDetector()
|
D | SmartBatteryDetector.java | 40 BatteryInfo batteryInfo, in SmartBatteryDetector() argument 44 mBatteryInfo = batteryInfo; in SmartBatteryDetector()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/ |
D | PowerUsageSummary.java | 93 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/ |
D | TrainingConditionsChecker.java | 67 BatteryInfo batteryInfo, PowerManager powerManager, Flags flags, @NonNull Clock clock) { in TrainingConditionsChecker() argument 68 this.mBatteryInfo = batteryInfo; in TrainingConditionsChecker()
|