Searched refs:tunUid (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkStatsTest.java | 326 final int tunUid = 10030; in testMigrateTun() local 336 .addValues(tunIface, tunUid, SET_DEFAULT, TAG_NONE, 4983L, 10L, 1801L, 12L, 0L) in testMigrateTun() 337 .addValues(tunIface, tunUid, 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() 361 assertValues(delta, 4, tunIface, tunUid, SET_DEFAULT, TAG_NONE, in testMigrateTun() 363 assertValues(delta, 5, tunIface, tunUid, SET_FOREGROUND, TAG_NONE, 0L, 0L, 0L, 0L, 0L); 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/ |
D | NetworkStats.java | 832 public boolean migrateTun(int tunUid, String tunIface, String underlyingIface) { in migrateTun() argument 836 tunAdjustmentInit(tunUid, tunIface, underlyingIface, tunIfaceTotal, underlyingIfaceTotal); in migrateTun() 846 deductTrafficFromVpnApp(tunUid, underlyingIface, moved); in migrateTun() 864 private void tunAdjustmentInit(int tunUid, String tunIface, String underlyingIface, in tunAdjustmentInit() argument 877 if (recycle.uid == tunUid && recycle.tag == TAG_NONE in tunAdjustmentInit() 947 private void deductTrafficFromVpnApp(int tunUid, String underlyingIface, Entry moved) { in deductTrafficFromVpnApp() argument 949 moved.uid = tunUid; in deductTrafficFromVpnApp() 957 int idxVpnBackground = findIndex(underlyingIface, tunUid, SET_DEFAULT, TAG_NONE); in deductTrafficFromVpnApp() 962 int idxVpnForeground = findIndex(underlyingIface, tunUid, SET_FOREGROUND, TAG_NONE); in deductTrafficFromVpnApp()
|