Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsHistoryTest.java75 private static final long TEST_START = 1194220800000L; field in NetworkStatsHistoryTest
120 stats.recordData(TEST_START, TEST_START + SECOND_IN_MILLIS, in testRecordSingleBucket()
134 final long recordStart = TEST_START + (bucketDuration / 2); in testRecordEqualBuckets()
151 final long recordStart = (TEST_START + BUCKET_SIZE) - MINUTE_IN_MILLIS; in testRecordTouchingBuckets()
152 final long recordEnd = (TEST_START + (BUCKET_SIZE * 2)) + (MINUTE_IN_MILLIS * 4); in testRecordTouchingBuckets()
172 final long firstStart = TEST_START; in testRecordGapBuckets()
173 final long lastStart = TEST_START + WEEK_IN_MILLIS; in testRecordGapBuckets()
187 final long middleStart = TEST_START + DAY_IN_MILLIS; in testRecordGapBuckets()
207 stats.recordData(TEST_START, TEST_START + SECOND_IN_MILLIS, in testRecordOverlapBuckets()
210 final long midStart = TEST_START + (HOUR_IN_MILLIS / 2); in testRecordOverlapBuckets()
[all …]
DNetworkStatsTest.java72 private static final long TEST_START = 1194220800000L; field in NetworkStatsTest
76 final NetworkStats stats = new NetworkStats(TEST_START, 5) in testFindIndex()
106 final NetworkStats stats = new NetworkStats(TEST_START, 3) in testFindIndexHinted()
151 final NetworkStats stats = new NetworkStats(TEST_START, 4); in testAddEntryGrow()
204 final NetworkStats stats = new NetworkStats(TEST_START, 10); in testCombineExisting()
227 final NetworkStats before = new NetworkStats(TEST_START, 2) in testSubtractIdenticalData()
231 final NetworkStats after = new NetworkStats(TEST_START, 2) in testSubtractIdenticalData()
246 final NetworkStats before = new NetworkStats(TEST_START, 2) in testSubtractIdenticalRows()
250 final NetworkStats after = new NetworkStats(TEST_START, 2) in testSubtractIdenticalRows()
265 final NetworkStats before = new NetworkStats(TEST_START, 2) in testSubtractNewRows()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsObserversTest.java83 private static final long TEST_START = 1194220800000L; field in NetworkStatsObserversTest
323 NetworkStats xtSnapshot = new NetworkStats(TEST_START, 1 /* initialSize */) in testUpdateStats_initialSample_doesNotNotify()
328 xtSnapshot, uidSnapshot, mActiveIfaces, mActiveUidIfaces, TEST_START); in testUpdateStats_initialSample_doesNotNotify()
347 NetworkStats xtSnapshot = new NetworkStats(TEST_START, 1 /* initialSize */) in testUpdateStats_belowThreshold_doesNotNotify()
351 xtSnapshot, uidSnapshot, mActiveIfaces, mActiveUidIfaces, TEST_START); in testUpdateStats_belowThreshold_doesNotNotify()
354 xtSnapshot = new NetworkStats(TEST_START, 1 /* initialSize */) in testUpdateStats_belowThreshold_doesNotNotify()
357 xtSnapshot, uidSnapshot, mActiveIfaces, mActiveUidIfaces, TEST_START); in testUpdateStats_belowThreshold_doesNotNotify()
377 NetworkStats xtSnapshot = new NetworkStats(TEST_START, 1 /* initialSize */) in testUpdateStats_deviceAccess_notifies()
381 xtSnapshot, uidSnapshot, mActiveIfaces, mActiveUidIfaces, TEST_START); in testUpdateStats_deviceAccess_notifies()
384 xtSnapshot = new NetworkStats(TEST_START + MINUTE_IN_MILLIS, 1 /* initialSize */) in testUpdateStats_deviceAccess_notifies()
[all …]
DNetworkStatsServiceTest.java221 private static final long TEST_START = 1194220800000L; field in NetworkStatsServiceTest
2260 .addEntry(new NetworkStatsHistory.Entry(TEST_START, 3L, 55L, 4L, 31L, 10L, 5L)) in testDataMigration_differentFromFallback()
2811 return TEST_START; in startTimeMillis()
/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/
DNetworkStatsUtilsTest.kt37 private const val TEST_START = 1194220800000L constant
54 val red = NetworkStats(TEST_START, 0) in testOrderInsensitiveEquals()
55 val blue = NetworkStats(TEST_START, 1) in testOrderInsensitiveEquals()