Home
last modified time | relevance | path

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

/packages/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/config/
DRtpReceptionStatsTest.cpp35 RtpReceptionStats stats1(100, 200, 300, 400, 500); in TEST() local
36 EXPECT_EQ(stats1.getRtpTimestamp(), 100); in TEST()
37 EXPECT_EQ(stats1.getRtcpSrTimestamp(), 200); in TEST()
38 EXPECT_EQ(stats1.getRtcpSrNtpTimestamp(), 300); in TEST()
39 EXPECT_EQ(stats1.getJitterBufferMs(), 400); in TEST()
40 EXPECT_EQ(stats1.getRoundTripTimeMs(), 500); in TEST()
42 RtpReceptionStats stats2(stats1); in TEST()
52 RtpReceptionStats stats1(10, 20, 30, 40, 50); in TEST() local
55 EXPECT_EQ(stats1 == stats2, false); in TEST()
56 EXPECT_EQ(stats1 != stats2, true); in TEST()
[all …]
/packages/modules/ImsMedia/tests/unit/src/com/android/telephony/imsmedia/
DRtpReceptionStatsTest.java62 RtpReceptionStats stats1 = createRtpReceptionStats(); in testEqual() local
65 assertThat(stats1).isEqualTo(stats2); in testEqual()
70 RtpReceptionStats stats1 = createRtpReceptionStats(); in testNotEqual() local
80 assertThat(stats1).isNotEqualTo(stats2); in testNotEqual()
90 assertThat(stats1).isNotEqualTo(stats3); in testNotEqual()
100 assertThat(stats1).isNotEqualTo(stats4); in testNotEqual()
110 assertThat(stats1).isNotEqualTo(stats5); in testNotEqual()
120 assertThat(stats1).isNotEqualTo(stats6); in testNotEqual()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAuctionServerPayloadMetricsStrategyEnabledTest.java96 BuyerInputGeneratorIntermediateStats stats1 = new BuyerInputGeneratorIntermediateStats(); in testLogGetAdSelectionDataBuyerInputGeneratedStatsDoesLog() local
97 stats1.incrementNumCustomAudiences(); in testLogGetAdSelectionDataBuyerInputGeneratedStatsDoesLog()
100 buyerStats.put(AdTechIdentifier.fromString("hello"), stats1); in testLogGetAdSelectionDataBuyerInputGeneratedStatsDoesLog()
113 BuyerInputGeneratorIntermediateStats stats1 = new BuyerInputGeneratorIntermediateStats(); in testLogGetAdSelectionDataBuyerInputGeneratedStatsWithPasMetricsDoesLog() local
114 stats1.incrementNumCustomAudiences(); in testLogGetAdSelectionDataBuyerInputGeneratedStatsWithPasMetricsDoesLog()
117 buyerStats.put(AdTechIdentifier.fromString("hello"), stats1); in testLogGetAdSelectionDataBuyerInputGeneratedStatsWithPasMetricsDoesLog()
DBuyerInputGeneratorTest.java289 GetAdSelectionDataBuyerInputGeneratedStats stats1 = stats.get(0); in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled() local
290 assertThat(stats1.getNumCustomAudiences()).isEqualTo(2); in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
291 assertThat(stats1.getNumCustomAudiencesOmitAds()).isEqualTo(0); in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
299 assertThat(stats1.getCustomAudienceSizeMeanB()) in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
305 assertThat(stats1.getCustomAudienceSizeVarianceB()) in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
312 assertThat(stats1.getTrustedBiddingSignalsKeysSizeMeanB()) in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
328 assertThat(stats1.getTrustedBiddingSignalsKeysSizeVarianceB()) in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
344 assertThat(stats1.getUserBiddingSignalsSizeMeanB()) in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
351 assertThat(stats1.getUserBiddingSignalsSizeVarianceB()) in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
365 assertThat(stats1.getNumEncodedSignals()).isEqualTo(0); in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
[all …]
DGetAdSelectionDataRunnerTest.java412 GetAdSelectionDataBuyerInputGeneratedStats stats1 = stats.get(0); in testRunner_getAdSelectionData_returnsSuccessGetAdSelectionDataPayloadMetricsEnabled() local
413 assertThat(stats1.getNumCustomAudiences()).isEqualTo(2); in testRunner_getAdSelectionData_returnsSuccessGetAdSelectionDataPayloadMetricsEnabled()
414 assertThat(stats1.getNumCustomAudiencesOmitAds()).isEqualTo(0); in testRunner_getAdSelectionData_returnsSuccessGetAdSelectionDataPayloadMetricsEnabled()
516 GetAdSelectionDataBuyerInputGeneratedStats stats1 = stats.get(0); in testRunner_getAdSelectionData_success_MetricsEnabled_withDefaultSourceCoordinator() local
517 assertThat(stats1.getNumCustomAudiences()).isEqualTo(2); in testRunner_getAdSelectionData_success_MetricsEnabled_withDefaultSourceCoordinator()
518 assertThat(stats1.getNumCustomAudiencesOmitAds()).isEqualTo(0); in testRunner_getAdSelectionData_success_MetricsEnabled_withDefaultSourceCoordinator()
623 GetAdSelectionDataBuyerInputGeneratedStats stats1 = stats.get(0); in testRunner_getAdSelectionData_returnsSuccessMetricsEnabled_withApiSourceCoordinator() local
624 assertThat(stats1.getNumCustomAudiences()).isEqualTo(2); in testRunner_getAdSelectionData_returnsSuccessMetricsEnabled_withApiSourceCoordinator()
625 assertThat(stats1.getNumCustomAudiencesOmitAds()).isEqualTo(0); in testRunner_getAdSelectionData_returnsSuccessMetricsEnabled_withApiSourceCoordinator()
DAuctionServerE2ETest.java1131 GetAdSelectionDataBuyerInputGeneratedStats stats1 = stats.get(0); in testGetAdSelectionData_withoutEncrypt_validRequest_successPayloadMetricsEnabled() local
1132 assertThat(stats1.getNumCustomAudiences()).isEqualTo(1); in testGetAdSelectionData_withoutEncrypt_validRequest_successPayloadMetricsEnabled()
1133 assertThat(stats1.getNumCustomAudiencesOmitAds()).isEqualTo(0); in testGetAdSelectionData_withoutEncrypt_validRequest_successPayloadMetricsEnabled()
1244 GetAdSelectionDataBuyerInputGeneratedStats stats1 = stats.get(0); in testGetAdSelectionData_validRequest_successPayloadMetricsEnabled_withSourceCoordinator() local
1245 assertThat(stats1.getNumCustomAudiences()).isEqualTo(1); in testGetAdSelectionData_validRequest_successPayloadMetricsEnabled_withSourceCoordinator()
1246 assertThat(stats1.getNumCustomAudiencesOmitAds()).isEqualTo(0); in testGetAdSelectionData_validRequest_successPayloadMetricsEnabled_withSourceCoordinator()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/stats/
DShellCommandStatsTest.java41 ShellCommandStats stats1 = in testEqualsHashCode() local
48 et.expectObjectsAreEqual(stats1, stats2); in testEqualsHashCode()
56 et.expectObjectsAreNotEqual(stats1, stats3); in testEqualsHashCode()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DRecentAppStatsMixinTest.java332 final UsageStats stats1 = new UsageStats(); in loadDisplayableRecentApps_usePersonalAndWorkApps_shouldBeSortedByLastTimeUse() local
334 stats1.mLastTimeUsed = System.currentTimeMillis(); in loadDisplayableRecentApps_usePersonalAndWorkApps_shouldBeSortedByLastTimeUse()
335 stats1.mPackageName = "personal.pkg.class"; in loadDisplayableRecentApps_usePersonalAndWorkApps_shouldBeSortedByLastTimeUse()
336 personalStats.add(stats1); in loadDisplayableRecentApps_usePersonalAndWorkApps_shouldBeSortedByLastTimeUse()
435 final UsageStats stats1 = new UsageStats(); in loadDisplayableRecentApps_multipleProfileApps_shouldBeSortedByLastTimeUse() local
437 stats1.mLastTimeUsed = System.currentTimeMillis(); in loadDisplayableRecentApps_multipleProfileApps_shouldBeSortedByLastTimeUse()
438 stats1.mPackageName = "personal.pkg.class"; in loadDisplayableRecentApps_multipleProfileApps_shouldBeSortedByLastTimeUse()
439 personalStats.add(stats1); in loadDisplayableRecentApps_multipleProfileApps_shouldBeSortedByLastTimeUse()
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsHistoryTest.java224 final NetworkStatsHistory stats1 = new NetworkStatsHistory(HOUR_IN_MILLIS); in testRecordEntireGapIdentical() local
225 stats1.recordData(TEST_START, TEST_START + 2 * HOUR_IN_MILLIS, 2000L, 1000L); in testRecordEntireGapIdentical()
233 stats.recordEntireHistory(stats1); in testRecordEntireGapIdentical()
249 final NetworkStatsHistory stats1 = new NetworkStatsHistory(HOUR_IN_MILLIS); in testRecordEntireOverlapVaryingBuckets() local
250 stats1.recordData(TEST_START, TEST_START + MINUTE_IN_MILLIS * 60, 600L, 600L); in testRecordEntireOverlapVaryingBuckets()
258 stats.recordEntireHistory(stats1); in testRecordEntireOverlapVaryingBuckets()
275 stats.recordEntireHistory(stats1); in testRecordEntireOverlapVaryingBuckets()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiMetricsTest.java4293 WifiLinkLayerStats stats1 = start; in addBadWifiUsabilityStats() local
4294 WifiLinkLayerStats stats2 = nextRandomStats(stats1); in addBadWifiUsabilityStats()
4295 mWifiMetrics.updateWifiUsabilityStatsEntries(TEST_IFACE_NAME, info, stats1); in addBadWifiUsabilityStats()
4323 WifiLinkLayerStats stats1 = nextRandomStats(createNewWifiLinkLayerStats()); in testUpdateWifiUsabilityStatsEntries() local
4324 WifiLinkLayerStats stats2 = nextRandomStats(stats1); in testUpdateWifiUsabilityStatsEntries()
4329 mWifiMetrics.updateWifiUsabilityStatsEntries(TEST_IFACE_NAME, info, stats1); in testUpdateWifiUsabilityStatsEntries()
4350 assertUsabilityStatsAssignment(info, stats1, in testUpdateWifiUsabilityStatsEntries()
4501 WifiLinkLayerStats stats1 = new WifiLinkLayerStats(); in testWifiUsabilityStatsLabelBadNotGeneratedGapLessThanMinimum() local
4503 stats1 = addGoodWifiUsabilityStats(stats1); in testWifiUsabilityStatsLabelBadNotGeneratedGapLessThanMinimum()
4504 stats2.timeStampInMs = stats1.timeStampInMs in testWifiUsabilityStatsLabelBadNotGeneratedGapLessThanMinimum()
[all …]
/packages/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/audio/
DMediaQualityAnalyzerTest.cpp1010 RtpReceptionStats stats1( in TEST_F() local
1013 EXPECT_EQ(stats1, mFakeCallback.getRtpReceptionStats()); in TEST_F()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiScoreCard.java1748 private boolean isRatioAboveThreshold(NetworkConnectionStats stats1, 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()