Home
last modified time | relevance | path

Searched refs:underlyingIface (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkStatsTest.java328 final String underlyingIface = "wlan0"; in testMigrateTun() local
344 .addValues(underlyingIface, 10100, SET_DEFAULT, TAG_NONE, 5178L, 8L, 2139L, 11L, 0L) in testMigrateTun()
345 .addValues(underlyingIface, 10100, SET_FOREGROUND, TAG_NONE, 0L, 0L, 0L, 0L, 0L) in testMigrateTun()
346 .addValues(underlyingIface, tunUid, SET_DEFAULT, TAG_NONE, 149873L, 287L, in testMigrateTun()
348 .addValues(underlyingIface, tunUid, SET_FOREGROUND, TAG_NONE, 0L, 0L, 0L, 0L, 0L); in testMigrateTun()
350 assertTrue(delta.migrateTun(tunUid, tunIface, underlyingIface)); in testMigrateTun()
370 assertValues(delta, 9, underlyingIface, 10100, SET_DEFAULT, TAG_NONE, in testMigrateTun()
372 assertValues(delta, 10, underlyingIface, 10100, SET_FOREGROUND, TAG_NONE, in testMigrateTun()
376 assertValues(delta, 11, underlyingIface, tunUid, SET_DEFAULT, TAG_NONE, in testMigrateTun()
378 assertValues(delta, 12, underlyingIface, tunUid, SET_FOREGROUND, TAG_NONE, in testMigrateTun()
[all …]
/frameworks/base/core/java/android/net/
DNetworkStats.java832 public boolean migrateTun(int tunUid, String tunIface, String underlyingIface) { in migrateTun() argument
836 tunAdjustmentInit(tunUid, tunIface, underlyingIface, tunIfaceTotal, underlyingIfaceTotal); in migrateTun()
845 Entry moved = addTrafficToApplications(tunIface, underlyingIface, tunIfaceTotal, pool); in migrateTun()
846 deductTrafficFromVpnApp(tunUid, underlyingIface, moved); in migrateTun()
864 private void tunAdjustmentInit(int tunUid, String tunIface, String underlyingIface, in tunAdjustmentInit() argument
878 && Objects.equals(underlyingIface, recycle.iface)) { in tunAdjustmentInit()
899 private Entry addTrafficToApplications(String tunIface, String underlyingIface, in addTrafficToApplications() argument
903 tmpEntry.iface = underlyingIface; in addTrafficToApplications()
947 private void deductTrafficFromVpnApp(int tunUid, String underlyingIface, Entry moved) { in deductTrafficFromVpnApp() argument
952 moved.iface = underlyingIface; in deductTrafficFromVpnApp()
[all …]