Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/location/
DLocationRequestStatisticsTest.java99 PackageStatistics stats1 = mStatistics.statistics.get(key1); in testSinglePackage_multipleProviders() local
100 verifyStatisticsTimes(stats1); in testSinglePackage_multipleProviders()
101 assertEquals(INTERVAL1, stats1.getSlowestIntervalMs()); in testSinglePackage_multipleProviders()
102 assertEquals(INTERVAL1, stats1.getFastestIntervalMs()); in testSinglePackage_multipleProviders()
103 assertTrue(stats1.isActive()); in testSinglePackage_multipleProviders()
112 assertFalse(stats1.isActive()); in testSinglePackage_multipleProviders()
115 assertFalse(stats1.isActive()); in testSinglePackage_multipleProviders()
130 PackageStatistics stats1 = mStatistics.statistics.get(key1); in testMultiplePackages() local
131 verifyStatisticsTimes(stats1); in testMultiplePackages()
132 assertEquals(INTERVAL1, stats1.getSlowestIntervalMs()); in testMultiplePackages()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DUsageStatsDatabaseTest.java293 void compareIntervalStats(IntervalStats stats1, IntervalStats stats2, int minVersion) { in compareIntervalStats() argument
294 assertEquals(stats1.majorVersion, stats2.majorVersion); in compareIntervalStats()
295 assertEquals(stats1.minorVersion, stats2.minorVersion); in compareIntervalStats()
296 assertEquals(stats1.beginTime, stats2.beginTime); in compareIntervalStats()
297 assertEquals(stats1.endTime, stats2.endTime); in compareIntervalStats()
298 assertEquals(stats1.interactiveTracker.count, stats2.interactiveTracker.count); in compareIntervalStats()
299 assertEquals(stats1.interactiveTracker.duration, stats2.interactiveTracker.duration); in compareIntervalStats()
300 assertEquals(stats1.nonInteractiveTracker.count, stats2.nonInteractiveTracker.count); in compareIntervalStats()
301 assertEquals(stats1.nonInteractiveTracker.duration, stats2.nonInteractiveTracker.duration); in compareIntervalStats()
302 assertEquals(stats1.keyguardShownTracker.count, stats2.keyguardShownTracker.count); in compareIntervalStats()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/transport/
DTransportStatsTest.java91 Stats stats1 = mTransportStats.getStatsForTransport(mTransportComponent1); in testMerge() local
94 Stats stats = Stats.merge(stats1, stats2); in testMerge()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationStatsTest.java119 NotificationStats stats1 = NotificationStats.CREATOR.createFromParcel(parcel); in testWriteToParcel() local
120 assertEquals(stats, stats1); in testWriteToParcel()
/frameworks/base/tests/net/java/android/net/
DNetworkStatsHistoryTest.java205 final NetworkStatsHistory stats1 = new NetworkStatsHistory(HOUR_IN_MILLIS); in testRecordEntireGapIdentical() local
206 stats1.recordData(TEST_START, TEST_START + 2 * HOUR_IN_MILLIS, 2000L, 1000L); in testRecordEntireGapIdentical()
214 stats.recordEntireHistory(stats1); in testRecordEntireGapIdentical()
230 final NetworkStatsHistory stats1 = new NetworkStatsHistory(HOUR_IN_MILLIS); in testRecordEntireOverlapVaryingBuckets() local
231 stats1.recordData(TEST_START, TEST_START + MINUTE_IN_MILLIS * 60, 600L, 600L); in testRecordEntireOverlapVaryingBuckets()
239 stats.recordEntireHistory(stats1); in testRecordEntireOverlapVaryingBuckets()
256 stats.recordEntireHistory(stats1); in testRecordEntireOverlapVaryingBuckets()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiMetricsTest.java2859 WifiLinkLayerStats stats1 = start; in addBadWifiUsabilityStats() local
2860 WifiLinkLayerStats stats2 = nextRandomStats(stats1); in addBadWifiUsabilityStats()
2861 mWifiMetrics.updateWifiUsabilityStatsEntries(info, stats1); in addBadWifiUsabilityStats()
2895 WifiLinkLayerStats stats1 = nextRandomStats(new WifiLinkLayerStats()); in testUpdateWifiUsabilityStatsEntries() local
2896 WifiLinkLayerStats stats2 = nextRandomStats(stats1); in testUpdateWifiUsabilityStatsEntries()
2900 mWifiMetrics.updateWifiUsabilityStatsEntries(info, stats1); in testUpdateWifiUsabilityStatsEntries()
2920 assertUsabilityStatsAssignment(info, stats1, in testUpdateWifiUsabilityStatsEntries()
3049 WifiLinkLayerStats stats1 = new WifiLinkLayerStats(); in testWifiUsabilityStatsLabelBadNotGeneratedGapLessThanMinimum() local
3051 stats1 = addGoodWifiUsabilityStats(stats1); in testWifiUsabilityStatsLabelBadNotGeneratedGapLessThanMinimum()
3052 stats2.timeStampInMs = stats1.timeStampInMs in testWifiUsabilityStatsLabelBadNotGeneratedGapLessThanMinimum()
[all …]