Searched refs:totalPowerMah (Results 1 – 8 of 8) sorted by relevance
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryUtilsTest.java | 169 mNormalBatterySipper.totalPowerMah = TOTAL_BATTERY_USAGE; in setUp() 172 mWifiBatterySipper.totalPowerMah = BATTERY_WIFI_USAGE; in setUp() 175 mBluetoothBatterySipper.totalPowerMah = BATTERY_BLUETOOTH_USAGE; in setUp() 178 mScreenBatterySipper.totalPowerMah = BATTERY_SCREEN_USAGE; in setUp() 181 mSystemBatterySipper.totalPowerMah = BATTERY_SYSTEM_USAGE; in setUp() 185 mOvercountedBatterySipper.totalPowerMah = BATTERY_OVERACCOUNTED_USAGE; in setUp() 188 mUnaccountedBatterySipper.totalPowerMah = BATTERY_UNACCOUNTED_USAGE; in setUp() 191 mIdleBatterySipper.totalPowerMah = BATTERY_IDLE_USAGE; in setUp() 353 assertThat(sipperNull.totalPowerMah).isWithin(PRECISION).of(BATTERY_APP_USAGE); in testSmearScreenBatterySipper() 354 assertThat(sipperBg.totalPowerMah).isWithin(PRECISION).of(BATTERY_APP_USAGE); in testSmearScreenBatterySipper() [all …]
|
D | PowerUsageAdvancedTest.java | 137 mMaxBatterySipper.totalPowerMah = TYPE_BLUETOOTH_USAGE; in setUp() 278 assertThat(dataList.get(i - 1).totalPowerMah).isAtLeast(dataList.get(i).totalPowerMah); in testPowerUsageData_SortedByUsage()
|
D | PowerUsageSummaryTest.java | 201 mNormalBatterySipper.totalPowerMah = POWER_MAH; in setUp() 205 mCellBatterySipper.totalPowerMah = POWER_MAH; in setUp()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | PowerUsageAdvanced.java | 276 usageData.totalPowerMah += sipper.totalPowerMah; in parsePowerUsageData() 292 usageData.percentage = mBatteryUtils.calculateBatteryPercent(usageData.totalPowerMah, in parsePowerUsageData() 307 return usageData.totalPowerMah; in calculateHiddenPower() 328 final double percentage = (sipper.totalPowerMah / totalPower) * dischargeAmount; in updateUsageDataSummary() 350 if (comparedSipper.totalPowerMah > sipper.totalPowerMah) { in findBatterySipperWithMaxBatteryUsage() 408 public double totalPowerMah; field in PowerUsageAdvanced.PowerUsageData 422 totalPowerMah = 0; in PowerUsageData() 425 totalPowerMah = totalPower; in PowerUsageData() 455 final int diff = Double.compare(powerUsageData.totalPowerMah, totalPowerMah); in compareTo()
|
D | BatteryUtils.java | 175 proportionalSmearPowerMah += sipper.totalPowerMah; in removeHiddenBatterySippers() 208 final double screenPowerMah = screenSipper.totalPowerMah; in smearScreenBatterySipper() 211 sipper.totalPowerMah += screenPowerMah * activityTimeArray.get(sipper.getUid(), 0) in smearScreenBatterySipper() 230 || (sipper.totalPowerMah * SECONDS_IN_HOUR) < MIN_POWER_THRESHOLD_MILLI_AMP in shouldHideSipper() 246 public double calculateBatteryPercent(double powerUsageMah, double totalPowerMah, in calculateBatteryPercent() argument 248 if (totalPowerMah == 0) { in calculateBatteryPercent() 252 return (powerUsageMah / (totalPowerMah - hiddenPowerMah)) * dischargeAmount; in calculateBatteryPercent() 324 return Double.compare(b.totalPowerMah, a.totalPowerMah); in sortUsageList()
|
D | PowerUsageSummary.java | 575 sipper.totalPowerMah, totalPower, hiddenPowerMah, dischargeAmount); in refreshAppListGroup() 598 final double percentOfMax = (sipper.totalPowerMah * 100) in refreshAppListGroup()
|
D | AdvancedPowerUsageDetail.java | 150 args.putInt(EXTRA_POWER_USAGE_AMOUNT, (int) sipper.totalPowerMah); in startBatteryDetailPage()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | InstalledAppDetails.java | 762 mSipper.totalPowerMah, mBatteryHelper.getTotalPower(), hiddenAmount, in updateBattery()
|