Home
last modified time | relevance | path

Searched refs:stats1 (Results 1 – 2 of 2) 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/core/tests/coretests/src/android/net/
DNetworkStatsHistoryTest.java187 final NetworkStatsHistory stats1 = new NetworkStatsHistory(HOUR_IN_MILLIS); in testRecordEntireGapIdentical() local
188 stats1.recordData(TEST_START, TEST_START + 2 * HOUR_IN_MILLIS, 2000L, 1000L); in testRecordEntireGapIdentical()
196 stats.recordEntireHistory(stats1); in testRecordEntireGapIdentical()
211 final NetworkStatsHistory stats1 = new NetworkStatsHistory(HOUR_IN_MILLIS); in testRecordEntireOverlapVaryingBuckets() local
212 stats1.recordData(TEST_START, TEST_START + MINUTE_IN_MILLIS * 60, 600L, 600L); in testRecordEntireOverlapVaryingBuckets()
220 stats.recordEntireHistory(stats1); in testRecordEntireOverlapVaryingBuckets()
237 stats.recordEntireHistory(stats1); in testRecordEntireOverlapVaryingBuckets()