Home
last modified time | relevance | path

Searched refs:assertValues (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsFactoryTest.java133 assertValues(tunStats, TUN_IFACE, UID_RED, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in testVpnRewriteTrafficThroughItself()
135 assertValues(tunStats, TUN_IFACE, UID_BLUE, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in testVpnRewriteTrafficThroughItself()
137 assertValues(tunStats, TUN_IFACE, UID_VPN, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in testVpnRewriteTrafficThroughItself()
140 assertValues(tunStats, TEST_IFACE, UID_RED, 2000L, 200L, 1000L, 100L); in testVpnRewriteTrafficThroughItself()
141 assertValues(tunStats, TEST_IFACE, UID_BLUE, 1000L, 100L, 500L, 50L); in testVpnRewriteTrafficThroughItself()
142 assertValues(tunStats, TEST_IFACE, UID_VPN, 300L, 0L, 260L, 26L); in testVpnRewriteTrafficThroughItself()
175 assertValues(tunStats, CLAT_PREFIX + TEST_IFACE, UID_RED, 2000L, 200L, 1000, 100L); in testVpnWithClat()
176 assertValues(tunStats, CLAT_PREFIX + TEST_IFACE, UID_BLUE, 1000L, 100L, 500L, 50L); in testVpnWithClat()
177 assertValues(tunStats, CLAT_PREFIX + TEST_IFACE, UID_VPN, 6300L, 0L, 3150L, 0L); in testVpnWithClat()
200 assertValues(tunStats, TEST_IFACE, UID_RED, 2000L, 200L, 1000L, 100L); in testVpnWithOneUnderlyingIface()
[all …]
DNetworkStatsBaseTest.java53 void assertValues(NetworkStats stats, String iface, int uid, long rxBytes, in assertValues() method in NetworkStatsBaseTest
55 assertValues( in assertValues()
60 void assertValues(NetworkStats stats, String iface, int uid, int set, int tag, in assertValues() method in NetworkStatsBaseTest
DNetworkStatsServiceTest.java858 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, 512L, 4L, 512L, 4L, 0); in testStatsBucketResize()
872 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, 512L, 4L, 512L, 4L, 0); in testStatsBucketResize()
1295 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testSummaryForAllUid()
1297 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, 0xF00D, METERED_NO, ROAMING_NO, in testSummaryForAllUid()
1299 assertValues(stats, IFACE_ALL, UID_BLUE, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testSummaryForAllUid()
1307 assertValues(stats, IFACE_ALL, UID_BLUE, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testSummaryForAllUid()
1340 assertValues(stats, IFACE_ALL, UID_ALL, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in testGetLatestSummary()
1439 assertValues(wifiStats, null /* iface */, UID_RED, SET_DEFAULT, TAG_NONE, in testUidStatsForTransport()
1441 assertValues(wifiStats, null /* iface */, UID_RED, SET_DEFAULT, 0xF00D, in testUidStatsForTransport()
1443 assertValues(wifiStats, null /* iface */, UID_BLUE, SET_DEFAULT, 0xBEEF, in testUidStatsForTransport()
[all …]
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsHistoryTest.java125 assertValues(stats, 0, SECOND_IN_MILLIS, 1024L, 10L, 2048L, 20L, 2L); in testRecordSingleBucket()
140 assertValues(stats, 0, HOUR_IN_MILLIS / 2, 512L, 5L, 64L, 1L, 1L); in testRecordEqualBuckets()
141 assertValues(stats, 1, HOUR_IN_MILLIS / 2, 512L, 5L, 64L, 1L, 1L); in testRecordEqualBuckets()
159 assertValues(stats, 0, MINUTE_IN_MILLIS, 50L, 100L, 250L, 500L, 5L); in testRecordTouchingBuckets()
161 assertValues(stats, 1, 15 * MINUTE_IN_MILLIS, 750L, 1500L, 3750L, 7500L, 75L); in testRecordTouchingBuckets()
163 assertValues(stats, 2, 4 * MINUTE_IN_MILLIS, 200L, 400L, 1000L, 2000L, 20L); in testRecordTouchingBuckets()
183 assertValues(stats, 0, SECOND_IN_MILLIS, 128L, 2L, 256L, 4L, 1L); in testRecordGapBuckets()
184 assertValues(stats, 1, SECOND_IN_MILLIS, 64L, 1L, 512L, 8L, 2L); in testRecordGapBuckets()
195 assertValues(stats, 0, SECOND_IN_MILLIS, 128L, 2L, 256L, 4L, 1L); in testRecordGapBuckets()
196 assertValues(stats, 1, HOUR_IN_MILLIS, 1024L, 2L, 1024L, 2L, 1L); in testRecordGapBuckets()
[all …]
DNetworkStatsTest.java182 assertValues(stats, 0, TEST_IFACE, TEST_UID, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testAddEntryGrow()
184 assertValues(stats, 1, TEST_IFACE, TEST_UID, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testAddEntryGrow()
186 assertValues(stats, 2, TEST_IFACE, TEST_UID, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_YES, in testAddEntryGrow()
188 assertValues(stats, 3, TEST_IFACE, TEST_UID, SET_DEFAULT, TAG_NONE, METERED_YES, in testAddEntryGrow()
190 assertValues(stats, 4, TEST_IFACE, TEST_UID, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testAddEntryGrow()
192 assertValues(stats, 5, TEST_IFACE, TEST_UID, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testAddEntryGrow()
194 assertValues(stats, 6, TEST_IFACE, TEST_UID, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testAddEntryGrow()
196 assertValues(stats, 7, TEST_IFACE, TEST_UID, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_YES, in testAddEntryGrow()
198 assertValues(stats, 8, TEST_IFACE, TEST_UID, SET_DEFAULT, TAG_NONE, METERED_YES, in testAddEntryGrow()
211 assertValues(stats, 0, TEST_IFACE, 1001, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testCombineExisting()
[all …]
/packages/modules/Connectivity/tests/unit/java/android/net/netstats/
DNetworkStatsDataMigrationUtilsTest.kt61 assertValues(builder.build(), 55, 1814302L, 21050L, 31001636L, 26152L) in testReadPlatformCollection()
64 private fun assertValues( in assertValues() method