Home
last modified time | relevance | path

Searched refs:stats2 (Results 1 – 12 of 12) sorted by relevance

/packages/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/config/
DRtpReceptionStatsTest.cpp42 RtpReceptionStats stats2(stats1); in TEST() local
43 EXPECT_EQ(stats2.getRtpTimestamp(), 100); in TEST()
44 EXPECT_EQ(stats2.getRtcpSrTimestamp(), 200); in TEST()
45 EXPECT_EQ(stats2.getRtcpSrNtpTimestamp(), 300); in TEST()
46 EXPECT_EQ(stats2.getJitterBufferMs(), 400); in TEST()
47 EXPECT_EQ(stats2.getRoundTripTimeMs(), 500); in TEST()
53 RtpReceptionStats stats2(60, 70, 80, 90, 100); in TEST() local
55 EXPECT_EQ(stats1 == stats2, false); in TEST()
56 EXPECT_EQ(stats1 != stats2, true); in TEST()
58 stats2 = stats1; in TEST()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/net/
DRefinedStatsTest.java115 FakeNetworkStats stats2 = new FakeNetworkStats(); in testSubtract() local
116 stats2.add(buildBucket(UID_1, TAG_NONE, /* rx= */ 6, /* tx= */ 8)); in testSubtract()
117 stats2.add(buildBucket(UID_1, TAG_1, /* rx= */ 99999, /* tx= */ 99999)); in testSubtract()
119 stats2.add(buildBucket(UID_0, TAG_1, /* rx= */ 6, /* tx= */ 8)); in testSubtract()
120 stats2.add(buildBucket(UID_2, TAG_1, /* rx= */ 6, /* tx= */ 8)); in testSubtract()
122 other.addNetworkStats(stats2); in testSubtract()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAuctionServerPayloadMetricsStrategyEnabledTest.java98 BuyerInputGeneratorIntermediateStats stats2 = new BuyerInputGeneratorIntermediateStats(); in testLogGetAdSelectionDataBuyerInputGeneratedStatsDoesLog() local
99 stats2.incrementNumCustomAudiences(); in testLogGetAdSelectionDataBuyerInputGeneratedStatsDoesLog()
101 buyerStats.put(AdTechIdentifier.fromString("hello2"), stats2); in testLogGetAdSelectionDataBuyerInputGeneratedStatsDoesLog()
115 BuyerInputGeneratorIntermediateStats stats2 = new BuyerInputGeneratorIntermediateStats(); in testLogGetAdSelectionDataBuyerInputGeneratedStatsWithPasMetricsDoesLog() local
116 stats2.incrementNumCustomAudiences(); in testLogGetAdSelectionDataBuyerInputGeneratedStatsWithPasMetricsDoesLog()
118 buyerStats.put(AdTechIdentifier.fromString("hello2"), stats2); in testLogGetAdSelectionDataBuyerInputGeneratedStatsWithPasMetricsDoesLog()
DBuyerInputGeneratorTest.java360 GetAdSelectionDataBuyerInputGeneratedStats stats2 = stats.get(1); in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled() local
361 assertThat(stats2.getNumCustomAudiences()).isEqualTo(1); in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
362 assertThat(stats2.getNumCustomAudiencesOmitAds()).isEqualTo(0); in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
370 assertThat(stats2.getNumEncodedSignals()).isEqualTo(0); in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
371 assertThat(stats2.getEncodedSignalsSizeMean()).isEqualTo(0); in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
372 assertThat(stats2.getEncodedSignalsSizeMin()).isEqualTo(0); in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
373 assertThat(stats2.getEncodedSignalsSizeMax()).isEqualTo(0); in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
539 GetAdSelectionDataBuyerInputGeneratedStats stats2 = stats.get(1); in testBuyerInputGenerator_returnsBuyerInputsWithoutRenderIdForSpecifiedCAPayloadMetricsEnabled() local
540 assertThat(stats2.getNumCustomAudiences()).isEqualTo(2); in testBuyerInputGenerator_returnsBuyerInputsWithoutRenderIdForSpecifiedCAPayloadMetricsEnabled()
541 assertThat(stats2.getNumCustomAudiencesOmitAds()).isEqualTo(1); in testBuyerInputGenerator_returnsBuyerInputsWithoutRenderIdForSpecifiedCAPayloadMetricsEnabled()
DGetAdSelectionDataRunnerTest.java416 GetAdSelectionDataBuyerInputGeneratedStats stats2 = stats.get(1); in testRunner_getAdSelectionData_returnsSuccessGetAdSelectionDataPayloadMetricsEnabled() local
417 assertThat(stats2.getNumCustomAudiences()).isEqualTo(1); in testRunner_getAdSelectionData_returnsSuccessGetAdSelectionDataPayloadMetricsEnabled()
418 assertThat(stats2.getNumCustomAudiencesOmitAds()).isEqualTo(0); in testRunner_getAdSelectionData_returnsSuccessGetAdSelectionDataPayloadMetricsEnabled()
520 GetAdSelectionDataBuyerInputGeneratedStats stats2 = stats.get(1); in testRunner_getAdSelectionData_success_MetricsEnabled_withDefaultSourceCoordinator() local
521 assertThat(stats2.getNumCustomAudiences()).isEqualTo(1); in testRunner_getAdSelectionData_success_MetricsEnabled_withDefaultSourceCoordinator()
522 assertThat(stats2.getNumCustomAudiencesOmitAds()).isEqualTo(0); in testRunner_getAdSelectionData_success_MetricsEnabled_withDefaultSourceCoordinator()
627 GetAdSelectionDataBuyerInputGeneratedStats stats2 = stats.get(1); in testRunner_getAdSelectionData_returnsSuccessMetricsEnabled_withApiSourceCoordinator() local
628 assertThat(stats2.getNumCustomAudiences()).isEqualTo(1); in testRunner_getAdSelectionData_returnsSuccessMetricsEnabled_withApiSourceCoordinator()
629 assertThat(stats2.getNumCustomAudiencesOmitAds()).isEqualTo(0); in testRunner_getAdSelectionData_returnsSuccessMetricsEnabled_withApiSourceCoordinator()
DAuctionServerE2ETest.java1135 GetAdSelectionDataBuyerInputGeneratedStats stats2 = stats.get(1); in testGetAdSelectionData_withoutEncrypt_validRequest_successPayloadMetricsEnabled() local
1136 assertThat(stats2.getNumCustomAudiences()).isEqualTo(2); in testGetAdSelectionData_withoutEncrypt_validRequest_successPayloadMetricsEnabled()
1137 assertThat(stats2.getNumCustomAudiencesOmitAds()).isEqualTo(0); in testGetAdSelectionData_withoutEncrypt_validRequest_successPayloadMetricsEnabled()
1248 GetAdSelectionDataBuyerInputGeneratedStats stats2 = stats.get(1); in testGetAdSelectionData_validRequest_successPayloadMetricsEnabled_withSourceCoordinator() local
1249 assertThat(stats2.getNumCustomAudiences()).isEqualTo(2); in testGetAdSelectionData_validRequest_successPayloadMetricsEnabled_withSourceCoordinator()
1250 assertThat(stats2.getNumCustomAudiencesOmitAds()).isEqualTo(0); in testGetAdSelectionData_validRequest_successPayloadMetricsEnabled_withSourceCoordinator()
/packages/modules/ImsMedia/tests/unit/src/com/android/telephony/imsmedia/
DRtpReceptionStatsTest.java63 RtpReceptionStats stats2 = createRtpReceptionStats(); in testEqual() local
65 assertThat(stats1).isEqualTo(stats2); in testEqual()
72 RtpReceptionStats stats2 = new RtpReceptionStats.Builder() in testNotEqual() local
80 assertThat(stats1).isNotEqualTo(stats2); in testNotEqual()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/stats/
DShellCommandStatsTest.java44 ShellCommandStats stats2 = in testEqualsHashCode() local
48 et.expectObjectsAreEqual(stats1, stats2); in testEqualsHashCode()
57 et.expectObjectsAreNotEqual(stats2, stats3); in testEqualsHashCode()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DRecentAppStatsMixinTest.java333 final UsageStats stats2 = new UsageStats(); in loadDisplayableRecentApps_usePersonalAndWorkApps_shouldBeSortedByLastTimeUse() local
338 stats2.mLastTimeUsed = System.currentTimeMillis() - 5000; in loadDisplayableRecentApps_usePersonalAndWorkApps_shouldBeSortedByLastTimeUse()
339 stats2.mPackageName = "personal.pkg.class2"; in loadDisplayableRecentApps_usePersonalAndWorkApps_shouldBeSortedByLastTimeUse()
340 personalStats.add(stats2); in loadDisplayableRecentApps_usePersonalAndWorkApps_shouldBeSortedByLastTimeUse()
436 final UsageStats stats2 = new UsageStats(); in loadDisplayableRecentApps_multipleProfileApps_shouldBeSortedByLastTimeUse() local
441 stats2.mLastTimeUsed = System.currentTimeMillis() - 5000; in loadDisplayableRecentApps_multipleProfileApps_shouldBeSortedByLastTimeUse()
442 stats2.mPackageName = "personal.pkg.class2"; in loadDisplayableRecentApps_multipleProfileApps_shouldBeSortedByLastTimeUse()
443 personalStats.add(stats2); in loadDisplayableRecentApps_multipleProfileApps_shouldBeSortedByLastTimeUse()
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsHistoryTest.java228 final NetworkStatsHistory stats2 = new NetworkStatsHistory(HOUR_IN_MILLIS); in testRecordEntireGapIdentical() local
229 stats2.recordData(TEST_START_2, TEST_START_2 + 2 * HOUR_IN_MILLIS, 1000L, 500L); in testRecordEntireGapIdentical()
234 stats.recordEntireHistory(stats2); in testRecordEntireGapIdentical()
253 final NetworkStatsHistory stats2 = new NetworkStatsHistory(MINUTE_IN_MILLIS); in testRecordEntireOverlapVaryingBuckets() local
254 stats2.recordData(TEST_START_2, TEST_START_2 + MINUTE_IN_MILLIS * 5, 50L, 50L); in testRecordEntireOverlapVaryingBuckets()
259 stats.recordEntireHistory(stats2); in testRecordEntireOverlapVaryingBuckets()
276 stats.recordEntireHistory(stats2); in testRecordEntireOverlapVaryingBuckets()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiMetricsTest.java4294 WifiLinkLayerStats stats2 = nextRandomStats(stats1); in addBadWifiUsabilityStats() local
4296 mWifiMetrics.updateWifiUsabilityStatsEntries(TEST_IFACE_NAME, info, stats2); in addBadWifiUsabilityStats()
4299 return nextRandomStats(stats2); in addBadWifiUsabilityStats()
4324 WifiLinkLayerStats stats2 = nextRandomStats(stats1); in testUpdateWifiUsabilityStatsEntries() local
4336 mWifiMetrics.updateWifiUsabilityStatsEntries(TEST_IFACE_NAME, info, stats2); in testUpdateWifiUsabilityStatsEntries()
4337 assertEquals(stats2.beacon_rx, mWifiMetrics.getTotalBeaconRxCount()); in testUpdateWifiUsabilityStatsEntries()
4342 WifiLinkLayerStats statsGood = addGoodWifiUsabilityStats(nextRandomStats(stats2)); in testUpdateWifiUsabilityStatsEntries()
4352 assertUsabilityStatsAssignment(info, stats2, in testUpdateWifiUsabilityStatsEntries()
4502 WifiLinkLayerStats stats2 = new WifiLinkLayerStats(); in testWifiUsabilityStatsLabelBadNotGeneratedGapLessThanMinimum() local
4504 stats2.timeStampInMs = stats1.timeStampInMs in testWifiUsabilityStatsLabelBadNotGeneratedGapLessThanMinimum()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiScoreCard.java1749 NetworkConnectionStats stats2, in isRatioAboveThreshold() argument
1755 return ((stats1.getCount(countCode) + 1) * (stats2.getCount(refCountCode) + 2) in isRatioAboveThreshold()
1757 >= ((stats1.getCount(refCountCode) + 2) * (stats2.getCount(countCode) + 1) in isRatioAboveThreshold()