Home
last modified time | relevance | path

Searched refs:getConsumedPower (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/
DHighUsageDetector.java74 final double totalPower = mBatteryUsageStats.getConsumedPower(); in detect()
80 (consumer1, consumer2) -> Double.compare(consumer2.getConsumedPower(), in detect()
81 consumer1.getConsumedPower())); in detect()
84 consumer.getConsumedPower(), totalPower, dischargeAmount); in detect()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryAppListPreferenceController.java217 final double totalPower = batteryUsageStats.getConsumedPower(); in refreshAppListGroup()
223 entry.getConsumedPower(), totalPower, dischargePercentage); in refreshAppListGroup()
276 final double totalPower = batteryUsageStats.getConsumedPower(); in getBatteryEntryList()
280 entry.getConsumedPower(), totalPower, dischargePercentage); in getBatteryEntryList()
353 deviceConsumer.getConsumedPower(componentId), in getCoalescedUsageList()
354 appsConsumer.getConsumedPower(componentId), in getCoalescedUsageList()
DBatteryEntry.java158 (a, b) -> Double.compare(b.getConsumedPower(), a.getConsumedPower());
204 mConsumedPower = batteryConsumer.getConsumedPower(); in BatteryEntry()
235 mConsumedPower = batteryConsumer.getConsumedPower(); in BatteryEntry()
523 public double getConsumedPower() { in getConsumedPower() method in BatteryEntry
532 mConsumedPower += batteryConsumer.getConsumedPower(); in add()
DConvertUtils.java112 Double.valueOf(batteryUsageStats.getConsumedPower())); in convert()
114 Double.valueOf(entry.getConsumedPower())); in convert()
DAdvancedPowerUsageDetail.java169 launchArgs.mConsumedPower = (int) entry.getConsumedPower(); in startBatteryDetailPage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/
DHighUsageDetectorTest.java107 doReturn(POWER_HIGH).when(mHighBatteryConsumer).getConsumedPower(); in setUp()
108 doReturn(POWER_LOW).when(mLowBatteryConsumer).getConsumedPower(); in setUp()
112 when(mBatteryUsageStats.getConsumedPower()).thenReturn(POWER_HIGH + POWER_LOW); in setUp()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceController.java275 mUidBatteryConsumer.getConsumedPower(), mBatteryUsageStats.getConsumedPower(),
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryHistEntryTest.java58 when(mBatteryUsageStats.getConsumedPower()).thenReturn(5.1); in testConstructor_contentValues_returnsExpectedResult()
59 when(mockBatteryEntry.getConsumedPower()).thenReturn(1.1); in testConstructor_contentValues_returnsExpectedResult()
DConvertUtilsTest.java75 when(mBatteryUsageStats.getConsumedPower()).thenReturn(5.1); in testConvert_returnsExpectedContentValues()
76 when(mockBatteryEntry.getConsumedPower()).thenReturn(1.1); in testConvert_returnsExpectedContentValues()