Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/
DHighUsageDetector.java79 final double totalPower = mBatteryUsageStats.getConsumedPower(); in detect()
87 consumer2.getConsumedPower(), in detect()
88 consumer1.getConsumedPower())); in detect()
92 consumer.getConsumedPower(), totalPower, dischargeAmount); in detect()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryEntry.java105 (a, b) -> Double.compare(b.getConsumedPower(), a.getConsumedPower());
164 mConsumedPower = batteryConsumer.getConsumedPower(); in BatteryEntry()
217 mConsumedPower = batteryConsumer.getConsumedPower(); in BatteryEntry()
459 public double getConsumedPower() { in getConsumedPower() method in BatteryEntry
515 mConsumedPower += batteryConsumer.getConsumedPower(); in add()
653 return uidBatteryConsumer.getConsumedPower(dimension); in safeGetConsumedPower()
DDataProcessor.java387 final double totalPower = batteryUsageStats.getConsumedPower(); in generateBatteryEntryListFromBatteryUsageStats()
392 entry.getConsumedPower(), totalPower, dischargePercentage); in generateBatteryEntryListFromBatteryUsageStats()
1098 return entry.getConsumedPower() > 0 in convertToBatteryHistEntry()
1099 || (entry.getConsumedPower() == 0 in convertToBatteryHistEntry()
1747 deviceConsumer.getConsumedPower(componentId), in getCoalescedUsageList()
DConvertUtils.java647 .setTotalPower(batteryUsageStats.getConsumedPower()) in constructBatteryInformation()
648 .setConsumePower(entry.getConsumedPower()) in constructBatteryInformation()
DDatabaseUtils.java699 if (entry.getConsumedPower() == 0 in sendBatteryEntryData()
711 if (entry.getConsumedPower() == 0 in sendBatteryEntryData()
/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/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DConvertUtilsTest.java86 when(mBatteryUsageStats.getConsumedPower()).thenReturn(5.1); in convertBatteryEntryToContentValues_appEntry_returnsExpectedContentValues()
87 when(mMockBatteryEntry.getConsumedPower()).thenReturn(1.1); in convertBatteryEntryToContentValues_appEntry_returnsExpectedContentValues()
153 when(mBatteryUsageStats.getConsumedPower()).thenReturn(5.1); in convertBatteryEntryToContentValues_systemEntry_returnsExpectedContentValues()
154 when(mMockBatteryEntry.getConsumedPower()).thenReturn(1.1); in convertBatteryEntryToContentValues_systemEntry_returnsExpectedContentValues()
305 when(mBatteryUsageStats.getConsumedPower()).thenReturn(5.1); in convertToBatteryHistEntry_returnsExpectedResult()
306 when(mMockBatteryEntry.getConsumedPower()).thenReturn(1.1); in convertToBatteryHistEntry_returnsExpectedResult()
DBatteryHistEntryTest.java60 when(mBatteryUsageStats.getConsumedPower()).thenReturn(5.1); in testConstructor_contentValues_returnsExpectedResult()
61 when(mMockBatteryEntry.getConsumedPower()).thenReturn(1.1); in testConstructor_contentValues_returnsExpectedResult()
DDatabaseUtilsTest.java179 doReturn(0.0).when(mMockBatteryEntry1).getConsumedPower(); in sendBatteryEntryData_returnsExpectedList()
180 doReturn(0.5).when(mMockBatteryEntry2).getConsumedPower(); in sendBatteryEntryData_returnsExpectedList()
181 doReturn(0.0).when(mMockBatteryEntry3).getConsumedPower(); in sendBatteryEntryData_returnsExpectedList()
DDataProcessorTest.java1918 doReturn(0.0).when(mMockBatteryEntry1).getConsumedPower(); in generateBatteryDiffData_returnsExpectedResult()
1927 doReturn(0.5).when(mMockBatteryEntry2).getConsumedPower(); in generateBatteryDiffData_returnsExpectedResult()
1936 doReturn(0.0).when(mMockBatteryEntry3).getConsumedPower(); in generateBatteryDiffData_returnsExpectedResult()
1945 doReturn(1.5).when(mMockBatteryEntry4).getConsumedPower(); in generateBatteryDiffData_returnsExpectedResult()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DAdvancedPowerUsageDetail.java173 launchArgs.mConsumedPower = (int) entry.getConsumedPower(); in startBatteryDetailPage()