Searched refs:getConsumedPower (Results 1 – 11 of 11) sorted by relevance
79 final double totalPower = mBatteryUsageStats.getConsumedPower(); in detect()87 consumer2.getConsumedPower(), in detect()88 consumer1.getConsumedPower())); in detect()92 consumer.getConsumedPower(), totalPower, dischargeAmount); in detect()
105 (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 BatteryEntry515 mConsumedPower += batteryConsumer.getConsumedPower(); in add()653 return uidBatteryConsumer.getConsumedPower(dimension); in safeGetConsumedPower()
387 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()
647 .setTotalPower(batteryUsageStats.getConsumedPower()) in constructBatteryInformation()648 .setConsumePower(entry.getConsumedPower()) in constructBatteryInformation()
699 if (entry.getConsumedPower() == 0 in sendBatteryEntryData()711 if (entry.getConsumedPower() == 0 in sendBatteryEntryData()
107 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()
86 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()
60 when(mBatteryUsageStats.getConsumedPower()).thenReturn(5.1); in testConstructor_contentValues_returnsExpectedResult()61 when(mMockBatteryEntry.getConsumedPower()).thenReturn(1.1); in testConstructor_contentValues_returnsExpectedResult()
179 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()
1918 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()
173 launchArgs.mConsumedPower = (int) entry.getConsumedPower(); in startBatteryDetailPage()