Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/location/
DLocationRequestStatisticsTest.java105 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/core/tests/coretests/src/android/net/
DNetworkStatsHistoryTest.java191 final NetworkStatsHistory stats2 = new NetworkStatsHistory(HOUR_IN_MILLIS); in testRecordEntireGapIdentical() local
192 stats2.recordData(TEST_START_2, TEST_START_2 + 2 * HOUR_IN_MILLIS, 1000L, 500L); in testRecordEntireGapIdentical()
197 stats.recordEntireHistory(stats2); in testRecordEntireGapIdentical()
215 final NetworkStatsHistory stats2 = new NetworkStatsHistory(MINUTE_IN_MILLIS); in testRecordEntireOverlapVaryingBuckets() local
216 stats2.recordData(TEST_START_2, TEST_START_2 + MINUTE_IN_MILLIS * 5, 50L, 50L); in testRecordEntireOverlapVaryingBuckets()
221 stats.recordEntireHistory(stats2); in testRecordEntireOverlapVaryingBuckets()
238 stats.recordEntireHistory(stats2); in testRecordEntireOverlapVaryingBuckets()