/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsTest.java | 70 private static final String TEST_IFACE2 = "test2"; field in NetworkStatsTest 113 .insertEntry(TEST_IFACE2, 100, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndexHinted() 115 .insertEntry(TEST_IFACE2, 101, SET_DEFAULT, 0xF00D, METERED_NO, ROAMING_NO, in testFindIndexHinted() 117 .insertEntry(TEST_IFACE2, 101, SET_DEFAULT, 0xF00D, METERED_YES, ROAMING_NO, in testFindIndexHinted() 119 .insertEntry(TEST_IFACE2, 102, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndexHinted() 121 .insertEntry(TEST_IFACE2, 102, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_YES, in testFindIndexHinted() 132 assertEquals(3, stats.findIndexHinted(TEST_IFACE2, 100, SET_FOREGROUND, TAG_NONE, in testFindIndexHinted() 134 assertEquals(4, stats.findIndexHinted(TEST_IFACE2, 101, SET_DEFAULT, 0xF00D, in testFindIndexHinted() 136 assertEquals(5, stats.findIndexHinted(TEST_IFACE2, 101, SET_DEFAULT, 0xF00D, in testFindIndexHinted() 138 assertEquals(6, stats.findIndexHinted(TEST_IFACE2, 102, SET_DEFAULT, TAG_NONE, in testFindIndexHinted() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsFactoryTest.java | 262 new UnderlyingNetworkInfo[] {createVpnInfo(new String[] {TEST_IFACE, TEST_IFACE2})}; in testVpnWithTwoUnderlyingIfaces_packetDuplication() 278 assertValues(tunStats, TEST_IFACE2, UID_RED, 500L, 50L, 500L, 50L); in testVpnWithTwoUnderlyingIfaces_packetDuplication() 279 assertValues(tunStats, TEST_IFACE2, UID_BLUE, 500L, 50L, 500L, 50L); in testVpnWithTwoUnderlyingIfaces_packetDuplication() 280 assertValues(tunStats, TEST_IFACE2, UID_VPN, 1200L, 100L, 1200L, 100L); in testVpnWithTwoUnderlyingIfaces_packetDuplication() 289 createVpnInfo(TUN_IFACE2, new String[] {TEST_IFACE2})}; in testConcurrentVpns() 317 assertValues(tunStats, TEST_IFACE2, UID_RED, 3000L, 300L, 700L, 70L); in testConcurrentVpns() 318 assertValues(tunStats, TEST_IFACE2, UID_BLUE, 500L, 50L, 250L, 25L); in testConcurrentVpns() 320 assertValues(tunStats, TEST_IFACE2, UID_VPN, 350L, 0L, 95L, 0L); in testConcurrentVpns() 329 new UnderlyingNetworkInfo[] {createVpnInfo(new String[] {TEST_IFACE, TEST_IFACE2})}; in testVpnWithTwoUnderlyingIfaces_splitTraffic() 348 assertValues(tunStats, TEST_IFACE2, UID_RED, 200L, 20L, 400L, 40L); in testVpnWithTwoUnderlyingIfaces_splitTraffic() [all …]
|
D | NetworkStatsBaseTest.java | 43 static final String TEST_IFACE2 = "test1"; field in NetworkStatsBaseTest
|
D | NetworkStatsServiceTest.java | 1116 TEST_IFACE2, IMSI_1, null /* wifiNetworkKey */, in testMobileStatsMeteredness() 1130 .insertEntry(TEST_IFACE2, UID_RED, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_NO, in testMobileStatsMeteredness() 1354 .setWifiNetworkKeys(Set.of(TEST_IFACE2)).build(); in testQueryTestNetworkUsage() 1359 buildTestState(TEST_IFACE2, null /* wifiNetworkKey */)}; in testQueryTestNetworkUsage() 1372 .addEntry(new NetworkStats.Entry(TEST_IFACE2, UID_RED, SET_DEFAULT, TAG_NONE, in testQueryTestNetworkUsage() 1391 TEST_IFACE2, IMSI_1, null /* wifiNetworkKey */, in testUidStatsForTransport() 1446 final String[] mobileIfaces = {TEST_IFACE2}; in testUidStatsForTransport() 1469 TEST_IFACE2, IMSI_1, null /* wifiNetworkKey */, in testGetUidStatsForTransportWithCellularAndSatellite() 1485 TEST_IFACE2, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testGetUidStatsForTransportWithCellularAndSatellite() 1490 final String[] mobileIfaces = {TEST_IFACE, TEST_IFACE2}; in testGetUidStatsForTransportWithCellularAndSatellite() [all …]
|
D | NetworkStatsObserversTest.java | 82 private static final String TEST_IFACE2 = "test1"; field in NetworkStatsObserversTest
|
/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/ |
D | NetworkStatsUtilsTest.kt | 36 private const val TEST_IFACE2 = "test2" constant 50 NetworkStats.Entry(TEST_IFACE2, 100, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testOrderInsensitiveEquals()
|