Home
last modified time | relevance | path

Searched refs:TEST_START (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/tests/net/java/android/net/
DNetworkStatsHistoryTest.java64 private static final long TEST_START = 1194220800000L; field in NetworkStatsHistoryTest
109 stats.recordData(TEST_START, TEST_START + SECOND_IN_MILLIS, in testRecordSingleBucket()
122 final long recordStart = TEST_START + (bucketDuration / 2); in testRecordEqualBuckets()
138 final long recordStart = (TEST_START + BUCKET_SIZE) - MINUTE_IN_MILLIS; in testRecordTouchingBuckets()
139 final long recordEnd = (TEST_START + (BUCKET_SIZE * 2)) + (MINUTE_IN_MILLIS * 4); in testRecordTouchingBuckets()
158 final long firstStart = TEST_START; in testRecordGapBuckets()
159 final long lastStart = TEST_START + WEEK_IN_MILLIS; in testRecordGapBuckets()
171 final long middleStart = TEST_START + DAY_IN_MILLIS; in testRecordGapBuckets()
190 stats.recordData(TEST_START, TEST_START + SECOND_IN_MILLIS, in testRecordOverlapBuckets()
192 final long midStart = TEST_START + (HOUR_IN_MILLIS / 2); in testRecordOverlapBuckets()
[all …]
DNetworkStatsTest.java62 private static final long TEST_START = 1194220800000L; field in NetworkStatsTest
66 final NetworkStats stats = new NetworkStats(TEST_START, 5) in testFindIndex()
96 final NetworkStats stats = new NetworkStats(TEST_START, 3) in testFindIndexHinted()
141 final NetworkStats stats = new NetworkStats(TEST_START, 4); in testAddEntryGrow()
194 final NetworkStats stats = new NetworkStats(TEST_START, 10); in testCombineExisting()
217 final NetworkStats before = new NetworkStats(TEST_START, 2) in testSubtractIdenticalData()
221 final NetworkStats after = new NetworkStats(TEST_START, 2) in testSubtractIdenticalData()
236 final NetworkStats before = new NetworkStats(TEST_START, 2) in testSubtractIdenticalRows()
240 final NetworkStats after = new NetworkStats(TEST_START, 2) in testSubtractIdenticalRows()
255 final NetworkStats before = new NetworkStats(TEST_START, 2) in testSubtractNewRows()
[all …]
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsObserversTest.java75 private static final long TEST_START = 1194220800000L; field in NetworkStatsObserversTest
242 NetworkStats xtSnapshot = new NetworkStats(TEST_START, 1 /* initialSize */) in testUpdateStats_initialSample_doesNotNotify()
247 xtSnapshot, uidSnapshot, mActiveIfaces, mActiveUidIfaces, TEST_START); in testUpdateStats_initialSample_doesNotNotify()
266 NetworkStats xtSnapshot = new NetworkStats(TEST_START, 1 /* initialSize */) in testUpdateStats_belowThreshold_doesNotNotify()
270 xtSnapshot, uidSnapshot, mActiveIfaces, mActiveUidIfaces, TEST_START); in testUpdateStats_belowThreshold_doesNotNotify()
273 xtSnapshot = new NetworkStats(TEST_START, 1 /* initialSize */) in testUpdateStats_belowThreshold_doesNotNotify()
276 xtSnapshot, uidSnapshot, mActiveIfaces, mActiveUidIfaces, TEST_START); in testUpdateStats_belowThreshold_doesNotNotify()
296 NetworkStats xtSnapshot = new NetworkStats(TEST_START, 1 /* initialSize */) in testUpdateStats_deviceAccess_notifies()
300 xtSnapshot, uidSnapshot, mActiveIfaces, mActiveUidIfaces, TEST_START); in testUpdateStats_deviceAccess_notifies()
303 xtSnapshot = new NetworkStats(TEST_START + MINUTE_IN_MILLIS, 1 /* initialSize */) in testUpdateStats_deviceAccess_notifies()
[all …]
DNetworkStatsServiceTest.java139 private static final long TEST_START = 1194220800000L; field in NetworkStatsServiceTest
1393 return TEST_START;
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java207 private static final long TEST_START = 1194220800000L; field in NetworkPolicyManagerServiceTest
325 setCurrentTimeMillis(TEST_START); in callSystemReady()