Home
last modified time | relevance | path

Searched refs:getStats (Results 1 – 25 of 27) sorted by relevance

12

/packages/modules/DnsResolver/
DDnsStatsTest.cpp195 EXPECT_THAT(mDnsStats.getStats(PROTO_TCP), UnorderedElementsAreArray(expectedStats)); in TEST_F()
196 EXPECT_THAT(mDnsStats.getStats(PROTO_UDP), UnorderedElementsAreArray(expectedStats)); in TEST_F()
197 EXPECT_THAT(mDnsStats.getStats(PROTO_DOT), UnorderedElementsAreArray(expectedStats)); in TEST_F()
216 EXPECT_THAT(mDnsStats.getStats(PROTO_TCP), IsEmpty()); in TEST_F()
217 EXPECT_THAT(mDnsStats.getStats(PROTO_UDP), IsEmpty()); in TEST_F()
218 EXPECT_THAT(mDnsStats.getStats(PROTO_DOT), IsEmpty()); in TEST_F()
231 EXPECT_THAT(mDnsStats.getStats(PROTO_TCP), UnorderedElementsAreArray(expectedStats)); in TEST_F()
232 EXPECT_THAT(mDnsStats.getStats(PROTO_UDP), UnorderedElementsAreArray(expectedStats)); in TEST_F()
233 EXPECT_THAT(mDnsStats.getStats(PROTO_DOT), UnorderedElementsAreArray(expectedStats)); in TEST_F()
264 EXPECT_THAT(mDnsStats.getStats(PROTO_TCP), UnorderedElementsAreArray(expectedStatsForTcp)); in TEST_F()
[all …]
DDnsStats.h126 std::vector<StatsData> getStats(Protocol protocol) const;
DDnsStats.cpp232 std::vector<StatsData> DnsStats::getStats(Protocol protocol) const { in getStats() function in android::net::DnsStats
/packages/services/Car/car-lib/src/android/car/storagemonitoring/
DIoStats.java107 public List<IoStatsEntry> getStats() { in getStats() method in IoStats
117 for (IoStatsEntry stats : getStats()) { in getUserIdStats()
133 for (IoStatsEntry stats : getStats()) { in getForegroundTotals()
155 for (IoStatsEntry stats : getStats()) { in getBackgroundTotals()
186 delta.getStats().equals(getStats()); in equals()
194 for (IoStatsEntry stats : getStats()) { in toString()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/
DHighUsageDetector.java74 final BatteryStats batteryStats = mBatteryStatsHelper.getStats(); in detect()
118 BatteryInfo.parse(mBatteryStatsHelper.getStats(), mDataParser); in parseBatteryData()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarStorageMonitoringTest.java545 List<IoStatsEntry> delta0Stats = delta0.getStats(); in testIoStatsDeltas()
576 delta0Stats = delta0.getStats(); in testIoStatsDeltas()
588 List<IoStatsEntry> delta1Stats = delta1.getStats(); in testIoStatsDeltas()
629 event1.getStats().forEach(stats -> assertTrue(stats.representsSameMetrics(record))); in testEventDelivery()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryUtils.java288 batteryStatsHelper.getStats().computeBatteryRealtime(elapsedRealtimeUs, statsType)); in calculateRunningTimeBasedOnStatsType()
359 return currentTimeMs - batteryStatsHelper.getStats().getStartClockTime(); in calculateLastFullChargeTime()
449 final BatteryStats stats = statsHelper.getStats(); in getBatteryInfo()
DBatteryInfo.java172 stats = localStatsHelper.getStats(); in getBatteryInfo()
174 stats = statsHelper.getStats(); in getBatteryInfo()
DDebugEstimatesLoader.java56 BatteryStats stats = mStatsHelper.getStats(); in loadInBackground()
DAdvancedPowerUsageDetail.java109 helper.getStats(); in startBatteryDetailPage()
DBatteryAppListPreferenceController.java180 final BatteryStats stats = statsHelper.getStats(); in refreshAppListGroup()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java315 batteryStatsHelper.getStats().computeBatteryRealtime(elapsedRealtimeUs, statsType)); in calculateRunningTimeBasedOnStatsType()
386 return currentTimeMs - batteryStatsHelper.getStats().getStartClockTime(); in calculateLastFullChargeTime()
476 final BatteryStats stats = statsHelper.getStats(); in getBatteryInfo()
DBatteryInfo.java174 stats = localStatsHelper.getStats(); in getBatteryInfo()
176 stats = statsHelper.getStats(); in getBatteryInfo()
DDebugEstimatesLoader.java58 BatteryStats stats = mStatsHelper.getStats(); in loadInBackground()
DAdvancedPowerUsageDetail.java109 helper.getStats(); in startBatteryDetailPage()
DBatteryAppListPreferenceController.java180 final BatteryStats stats = statsHelper.getStats(); in refreshAppListGroup()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java189 when(mBatteryStatsHelper.getStats().computeBatteryRealtime(anyLong(), anyInt())).thenReturn( in setUp()
241 when(mBatteryStatsHelper.getStats().getDischargeAmount(anyInt())) in setUp()
448 when(mBatteryStatsHelper.getStats().getStartClockTime()).thenReturn( in testCalculateLastFullChargeTime()
DBatteryInfoLoaderTest.java64 doReturn(mStats).when(mHelper).getStats(); in setUp()
DPowerUsageSummaryTest.java165 when(mBatteryHelper.getStats().computeBatteryRealtime(anyLong(), anyInt())) in setUp()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/detectors/
DHighUsageDetector.java112 BatteryInfo.parse(mBatteryStatsHelper.getStats(), mDataParser); in parseBatteryData()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceController.java147 final int dischargeAmount = mBatteryHelper.getStats().getDischargeAmount( in updateBattery()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DAppBatteryPreferenceController.java147 final int dischargeAmount = mBatteryHelper.getStats().getDischargeAmount( in updateBattery()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/
DHighUsageDetectorTest.java102 when(mBatteryStatsHelper.getStats().getDischargeAmount(anyInt())).thenReturn(100); in setUp()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/storagelifetime/
DStorageLifetimeFragment.java75 snapshot.getStats().forEach(uidIoStats -> {
/packages/services/Car/service/src/com/android/car/
DCarStorageMonitoringService.java498 sample -> sample.getStats().stream() in dump()

12