/packages/modules/DnsResolver/ |
D | DnsStatsTest.cpp | 163 void verifyDnsStatsContent(Protocol protocol, const std::vector<StatsData>& expectedStats, in verifyDnsStatsContent() argument 165 if (expectedStats.empty()) { in verifyDnsStatsContent() 168 EXPECT_THAT(mDnsStats.getStats(protocol), UnorderedElementsAreArray(expectedStats)); in verifyDnsStatsContent() 225 std::vector<StatsData> expectedStats; in TEST_F() local 226 expectedStats.reserve(expectation.size()); in TEST_F() 228 expectedStats.push_back(makeStatsData(IPSockAddr::toIPSockAddr(exp, 53), 0, 0ms, {})); in TEST_F() 231 EXPECT_NO_FAILURE(verifyDnsStatsContent(PROTO_TCP, expectedStats, NO_AVERAGE_LATENCY)); in TEST_F() 232 EXPECT_NO_FAILURE(verifyDnsStatsContent(PROTO_UDP, expectedStats, NO_AVERAGE_LATENCY)); in TEST_F() 233 EXPECT_NO_FAILURE(verifyDnsStatsContent(PROTO_DOT, expectedStats, NO_AVERAGE_LATENCY)); in TEST_F() 261 const std::vector<StatsData> expectedStats = { in TEST_F() local [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiUsabilityStatsEntryTest.java | 309 RateStats expectedStats = expected.getRateStats().get(i); in assertWifiUsabilityStatsEntryEquals() local 311 assertEquals(expectedStats.getPreamble(), actualStats.getPreamble()); in assertWifiUsabilityStatsEntryEquals() 312 assertEquals(expectedStats.getNumberOfSpatialStreams(), in assertWifiUsabilityStatsEntryEquals() 314 assertEquals(expectedStats.getBandwidthInMhz(), actualStats.getBandwidthInMhz()); in assertWifiUsabilityStatsEntryEquals() 315 assertEquals(expectedStats.getRateMcsIdx(), actualStats.getRateMcsIdx()); in assertWifiUsabilityStatsEntryEquals() 316 assertEquals(expectedStats.getBitRateInKbps(), actualStats.getBitRateInKbps()); in assertWifiUsabilityStatsEntryEquals() 317 assertEquals(expectedStats.getTxMpdu(), actualStats.getTxMpdu()); in assertWifiUsabilityStatsEntryEquals() 318 assertEquals(expectedStats.getRxMpdu(), actualStats.getRxMpdu()); in assertWifiUsabilityStatsEntryEquals() 319 assertEquals(expectedStats.getMpduLost(), actualStats.getMpduLost()); in assertWifiUsabilityStatsEntryEquals() 320 assertEquals(expectedStats.getRetries(), actualStats.getRetries()); in assertWifiUsabilityStatsEntryEquals() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/ |
D | CarWatchdogManagerUnitTest.java | 265 ResourceOveruseStats expectedStats = in testGetResourceOveruseStats() local 268 .thenReturn(expectedStats); in testGetResourceOveruseStats() 273 assertThat(actualStats).isEqualTo(expectedStats); in testGetResourceOveruseStats() 278 ResourceOveruseStats expectedStats = in testFailsGetResourceOveruseStats() local 286 ResourceOveruseStatsSubject.isEquals(actualStats, expectedStats); in testFailsGetResourceOveruseStats() 292 List<ResourceOveruseStats> expectedStats = new ArrayList<>(); in testGetAllResourceOveruseStats() local 293 expectedStats.add(new ResourceOveruseStats.Builder("random.package.1", userHandle).build()); in testGetAllResourceOveruseStats() 294 expectedStats.add(new ResourceOveruseStats.Builder("random.package.2", userHandle).build()); in testGetAllResourceOveruseStats() 295 expectedStats.add(new ResourceOveruseStats.Builder("random.package.3", userHandle).build()); in testGetAllResourceOveruseStats() 297 FLAG_MINIMUM_STATS_IO_1_MB, STATS_PERIOD_CURRENT_DAY)).thenReturn(expectedStats); in testGetAllResourceOveruseStats() [all …]
|
D | WatchdogPerfHandlerUnitTest.java | 640 List<ResourceOveruseStats> expectedStats = Arrays.asList( in testDeleteUser() local 648 .containsExactlyElementsIn(expectedStats); in testDeleteUser() 1152 List<UserPackageIoUsageStats> expectedStats = Arrays.asList( in testAsyncFetchTodayIoUsageStats() local 1166 .containsExactlyElementsIn(expectedStats); in testAsyncFetchTodayIoUsageStats() 1222 List<UserPackageIoUsageStats> expectedStats = Arrays.asList( in testGetTodayIoUsageStats() local 1235 .containsExactlyElementsIn(expectedStats); in testGetTodayIoUsageStats() 1294 ResourceOveruseStats expectedStats = new ResourceOveruseStats.Builder( in testResetResourceOveruseStatsResetsStats() local 1297 ResourceOveruseStatsSubject.assertEquals(actualStats, expectedStats); in testResetResourceOveruseStatsResetsStats() 2104 List<ResourceOveruseStats> expectedStats = Arrays.asList( in testGetAllResourceOveruseStatsWithNoMinimum() local 2115 .containsExactlyElementsIn(expectedStats); in testGetAllResourceOveruseStatsWithNoMinimum() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiMetricsTestUtil.java | 162 DeviceMobilityStatePnoScanStats expectedStats = expected[i]; in assertDeviceMobilityStatePnoScanStatsEqual() local 167 expectedStats.deviceMobilityState, actualStats.deviceMobilityState); in assertDeviceMobilityStatePnoScanStatsEqual() 170 expectedStats.numTimesEnteredState, actualStats.numTimesEnteredState); in assertDeviceMobilityStatePnoScanStatsEqual() 173 expectedStats.totalDurationMs, actualStats.totalDurationMs); in assertDeviceMobilityStatePnoScanStatsEqual() 176 expectedStats.pnoDurationMs, actualStats.pnoDurationMs); in assertDeviceMobilityStatePnoScanStatsEqual()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 1824 final NetworkStats expectedStats = new NetworkStats(0L, 1) in testStatsProviderUpdateStats() local 1831 cb.notifyStatsUpdated(0 /* unused */, expectedStats, expectedStats); in testStatsProviderUpdateStats() 1891 final NetworkStats expectedStats = new NetworkStats(0L, 1) in testDualVilteProviderStats() local 1898 cb.notifyStatsUpdated(0 /* unused */, expectedStats, expectedStats); in testDualVilteProviderStats()
|
/packages/modules/DnsResolver/tests/ |
D | resolv_cache_unit_test.cpp | 877 const res_stats expectedStats[MAXNS] = { in TEST_F() local 908 EXPECT_TRUE(cacheStats[i] == expectedStats[i]); in TEST_F()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/ |
D | AsyncTriggerFetcherTest.java | 286 MeasurementRegistrationResponseStats expectedStats = in testBasicTriggerRequest() local 333 verify(mLogger).logMeasurementRegistrationsResponseSize(eq(expectedStats)); in testBasicTriggerRequest() 339 MeasurementRegistrationResponseStats expectedStats = in testBasicTriggerRequest_withAggregateDeduplicationKey() local 417 verify(mLogger).logMeasurementRegistrationsResponseSize(eq(expectedStats)); in testBasicTriggerRequest_withAggregateDeduplicationKey() 4981 MeasurementRegistrationResponseStats expectedStats = in basicTriggerRequest_headersMoreThanMaxResponseSize_emitsMetricsWithAdTechDomain() local 5019 verify(mLogger).logMeasurementRegistrationsResponseSize(eq(expectedStats)); in basicTriggerRequest_headersMoreThanMaxResponseSize_emitsMetricsWithAdTechDomain()
|