Searched refs:stats2 (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/location/ |
D | LocationRequestStatisticsTest.java | 105 PackageStatistics stats2 = mStatistics.statistics.get(key2); in testSinglePackage_multipleProviders() local 106 verifyStatisticsTimes(stats2); in testSinglePackage_multipleProviders() 107 assertEquals(INTERVAL2, stats2.getSlowestIntervalMs()); in testSinglePackage_multipleProviders() 108 assertEquals(INTERVAL2, stats2.getFastestIntervalMs()); in testSinglePackage_multipleProviders() 109 assertTrue(stats2.isActive()); in testSinglePackage_multipleProviders() 113 assertTrue(stats2.isActive()); in testSinglePackage_multipleProviders() 116 assertFalse(stats2.isActive()); in testSinglePackage_multipleProviders() 137 PackageStatistics stats2 = mStatistics.statistics.get(key2); in testMultiplePackages() local 138 verifyStatisticsTimes(stats2); in testMultiplePackages() 139 assertEquals(INTERVAL2, stats2.getSlowestIntervalMs()); in testMultiplePackages() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | UsageStatsDatabaseTest.java | 293 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/ |
D | TransportStatsTest.java | 92 Stats stats2 = mTransportStats.getStatsForTransport(mTransportComponent2); in testMerge() local 94 Stats stats = Stats.merge(stats1, stats2); in testMerge()
|
/frameworks/base/tests/net/java/android/net/ |
D | NetworkStatsHistoryTest.java | 209 final NetworkStatsHistory stats2 = new NetworkStatsHistory(HOUR_IN_MILLIS); in testRecordEntireGapIdentical() local 210 stats2.recordData(TEST_START_2, TEST_START_2 + 2 * HOUR_IN_MILLIS, 1000L, 500L); in testRecordEntireGapIdentical() 215 stats.recordEntireHistory(stats2); in testRecordEntireGapIdentical() 234 final NetworkStatsHistory stats2 = new NetworkStatsHistory(MINUTE_IN_MILLIS); in testRecordEntireOverlapVaryingBuckets() local 235 stats2.recordData(TEST_START_2, TEST_START_2 + MINUTE_IN_MILLIS * 5, 50L, 50L); in testRecordEntireOverlapVaryingBuckets() 240 stats.recordEntireHistory(stats2); in testRecordEntireOverlapVaryingBuckets() 257 stats.recordEntireHistory(stats2); in testRecordEntireOverlapVaryingBuckets()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiMetricsTest.java | 2860 WifiLinkLayerStats stats2 = nextRandomStats(stats1); in addBadWifiUsabilityStats() local 2862 mWifiMetrics.updateWifiUsabilityStatsEntries(info, stats2); in addBadWifiUsabilityStats() 2865 return nextRandomStats(stats2); in addBadWifiUsabilityStats() 2896 WifiLinkLayerStats stats2 = nextRandomStats(stats1); in testUpdateWifiUsabilityStatsEntries() local 2907 mWifiMetrics.updateWifiUsabilityStatsEntries(info, stats2); in testUpdateWifiUsabilityStatsEntries() 2912 WifiLinkLayerStats statsGood = addGoodWifiUsabilityStats(nextRandomStats(stats2)); in testUpdateWifiUsabilityStatsEntries() 2922 assertUsabilityStatsAssignment(info, stats2, in testUpdateWifiUsabilityStatsEntries() 3050 WifiLinkLayerStats stats2 = new WifiLinkLayerStats(); in testWifiUsabilityStatsLabelBadNotGeneratedGapLessThanMinimum() local 3052 stats2.timeStampInMs = stats1.timeStampInMs in testWifiUsabilityStatsLabelBadNotGeneratedGapLessThanMinimum() 3054 addGoodWifiUsabilityStats(stats2); in testWifiUsabilityStatsLabelBadNotGeneratedGapLessThanMinimum() [all …]
|