Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/android/net/
DNetworkStatsTest.java535 final int tunUid = 10030; in testMigrateTun() local
549 .addValues(tunIface, tunUid, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testMigrateTun()
551 .addValues(tunIface, tunUid, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, in testMigrateTun()
566 .addValues(underlyingIface, tunUid, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testMigrateTun()
569 .addValues(underlyingIface, tunUid, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, in testMigrateTun()
572 assertTrue(delta.toString(), delta.migrateTun(tunUid, tunIface, underlyingIface)); in testMigrateTun()
584 assertValues(delta, 4, tunIface, tunUid, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testMigrateTun()
586 assertValues(delta, 5, tunIface, tunUid, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, in testMigrateTun()
602 assertValues(delta, 11, underlyingIface, tunUid, SET_DEFAULT, TAG_NONE, METERED_NO, in testMigrateTun()
604 assertValues(delta, 12, underlyingIface, tunUid, SET_FOREGROUND, TAG_NONE, METERED_NO, in testMigrateTun()
[all …]
/frameworks/base/core/java/android/net/
DNetworkStats.java1192 public boolean migrateTun(int tunUid, String tunIface, String underlyingIface) { in migrateTun() argument
1196 tunAdjustmentInit(tunUid, tunIface, underlyingIface, tunIfaceTotal, underlyingIfaceTotal); in migrateTun()
1206 addTrafficToApplications(tunUid, tunIface, underlyingIface, tunIfaceTotal, pool); in migrateTun()
1207 deductTrafficFromVpnApp(tunUid, underlyingIface, moved); in migrateTun()
1225 private void tunAdjustmentInit(int tunUid, String tunIface, String underlyingIface, in tunAdjustmentInit() argument
1238 if (recycle.uid == tunUid && recycle.tag == TAG_NONE in tunAdjustmentInit()
1243 if (recycle.uid != tunUid && recycle.tag == TAG_NONE in tunAdjustmentInit()
1261 private Entry addTrafficToApplications(int tunUid, String tunIface, String underlyingIface, in addTrafficToApplications() argument
1269 if (Objects.equals(iface[i], tunIface) && uid[i] != tunUid) { in addTrafficToApplications()
1314 private void deductTrafficFromVpnApp(int tunUid, String underlyingIface, Entry moved) { in deductTrafficFromVpnApp() argument
[all …]