Home
last modified time | relevance | path

Searched refs:totalPowerMah (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java200 mNormalBatterySipper.totalPowerMah = TOTAL_BATTERY_USAGE; in setUp()
204 mWifiBatterySipper.totalPowerMah = BATTERY_WIFI_USAGE; in setUp()
207 mBluetoothBatterySipper.totalPowerMah = BATTERY_BLUETOOTH_USAGE; in setUp()
210 mScreenBatterySipper.totalPowerMah = BATTERY_SCREEN_USAGE; in setUp()
213 mSystemBatterySipper.totalPowerMah = BATTERY_SYSTEM_USAGE; in setUp()
217 mOvercountedBatterySipper.totalPowerMah = BATTERY_OVERACCOUNTED_USAGE; in setUp()
220 mUnaccountedBatterySipper.totalPowerMah = BATTERY_UNACCOUNTED_USAGE; in setUp()
223 mIdleBatterySipper.totalPowerMah = BATTERY_IDLE_USAGE; in setUp()
406 assertThat(sipperNull.totalPowerMah).isWithin(PRECISION).of(BATTERY_APP_USAGE); in testSmearScreenBatterySipper()
407 assertThat(sipperBg.totalPowerMah).isWithin(PRECISION).of(BATTERY_APP_USAGE); in testSmearScreenBatterySipper()
[all …]
DPowerUsageSummaryTest.java169 mNormalBatterySipper.totalPowerMah = POWER_MAH; in setUp()
173 mCellBatterySipper.totalPowerMah = POWER_MAH; in setUp()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryUtils.java190 proportionalSmearPowerMah += sipper.totalPowerMah; in removeHiddenBatterySippers()
228 final double screenPowerMah = screenSipper.totalPowerMah; in smearScreenBatterySipper()
231 sipper.totalPowerMah += screenPowerMah * activityTimeArray.get(sipper.getUid(), 0) in smearScreenBatterySipper()
250 || (sipper.totalPowerMah * SECONDS_IN_HOUR) < MIN_POWER_THRESHOLD_MILLI_AMP in shouldHideSipper()
266 public double calculateBatteryPercent(double powerUsageMah, double totalPowerMah, in calculateBatteryPercent() argument
268 if (totalPowerMah == 0) { in calculateBatteryPercent()
272 return (powerUsageMah / (totalPowerMah - hiddenPowerMah)) * dischargeAmount; in calculateBatteryPercent()
345 return Double.compare(b.totalPowerMah, a.totalPowerMah); in sortUsageList()
DAdvancedPowerUsageDetail.java137 args.putInt(EXTRA_POWER_USAGE_AMOUNT, (int) sipper.totalPowerMah); in startBatteryDetailPage()
DBatteryAppListPreferenceController.java202 sipper.totalPowerMah, totalPower, hiddenPowerMah, dischargeAmount); in refreshAppListGroup()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java197 proportionalSmearPowerMah += sipper.totalPowerMah; in removeHiddenBatterySippers()
235 final double screenPowerMah = screenSipper.totalPowerMah; in smearScreenBatterySipper()
238 sipper.totalPowerMah += screenPowerMah * activityTimeArray.get(sipper.getUid(), 0) in smearScreenBatterySipper()
257 || (sipper.totalPowerMah * SECONDS_IN_HOUR) < MIN_POWER_THRESHOLD_MILLI_AMP in shouldHideSipper()
293 public double calculateBatteryPercent(double powerUsageMah, double totalPowerMah, in calculateBatteryPercent() argument
295 if (totalPowerMah == 0) { in calculateBatteryPercent()
299 return (powerUsageMah / (totalPowerMah - hiddenPowerMah)) * dischargeAmount; in calculateBatteryPercent()
372 return Double.compare(b.totalPowerMah, a.totalPowerMah); in sortUsageList()
DAdvancedPowerUsageDetail.java137 args.putInt(EXTRA_POWER_USAGE_AMOUNT, (int) sipper.totalPowerMah); in startBatteryDetailPage()
DBatteryAppListPreferenceController.java202 sipper.totalPowerMah, totalPower, hiddenPowerMah, dischargeAmount); in refreshAppListGroup()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DAppBatteryPreferenceController.java153 mSipper.totalPowerMah, mBatteryHelper.getTotalPower(), hiddenAmount, in updateBattery()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceController.java153 mSipper.totalPowerMah, mBatteryHelper.getTotalPower(), hiddenAmount, in updateBattery()