/frameworks/base/tests/net/java/android/net/ |
D | NetworkStatsTest.java | 33 import static android.net.NetworkStats.SET_DEFAULT; 67 .insertEntry(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndex() 69 .insertEntry(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndex() 71 .insertEntry(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_NO, in testFindIndex() 73 .insertEntry(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndex() 75 .insertEntry(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_YES, in testFindIndex() 78 assertEquals(4, stats.findIndex(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_YES, in testFindIndex() 80 assertEquals(3, stats.findIndex(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_NO, in testFindIndex() 82 assertEquals(2, stats.findIndex(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_YES, in testFindIndex() 84 assertEquals(1, stats.findIndex(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_NO, in testFindIndex() [all …]
|
/frameworks/base/tests/net/common/java/android/net/netstats/ |
D | NetworkStatsApiTest.kt | 28 import android.net.NetworkStats.SET_DEFAULT 76 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp() 78 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp() 80 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp() 85 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp() 87 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, 0x80, in setUp() 89 .addEntry(Entry(TEST_IFACE, TEST_UID2, SET_DEFAULT, TAG_NONE, in setUp() 91 .addEntry(Entry(IFACE_VT, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp() 97 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, 0x80, in setUp() 101 .addEntry(Entry(TEST_IFACE, TEST_UID2, SET_DEFAULT, TAG_NONE, in setUp() [all …]
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 36 import static android.net.NetworkStats.SET_DEFAULT; 344 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 512L, 4L, 256L, 2L, 0L) 345 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, 0xFAAD, 256L, 2L, 128L, 1L, 0L) 348 .insertEntry(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 128L, 1L, 128L, 1L, 0L)); 359 assertUidTotal(sTemplateWifi, UID_RED, SET_DEFAULT, METERED_NO, ROAMING_NO, 382 assertUidTotal(sTemplateWifi, UID_RED, SET_DEFAULT, METERED_NO, ROAMING_NO, 453 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L) 454 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, 0xF00D, 512L, 4L, 512L, 4L, 0L) 455 .insertEntry(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 512L, 4L, 0L, 0L, 0L)); 475 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L) [all …]
|
D | NetworkStatsFactoryTest.java | 26 import static android.net.NetworkStats.SET_DEFAULT; 99 assertStatsEntry(stats, "wlan0", 0, SET_DEFAULT, 0x0, 18621L, 2898L); in testNetworkStatsDetail() 100 assertStatsEntry(stats, "wlan0", 10011, SET_DEFAULT, 0x0, 35777L, 5718L); in testNetworkStatsDetail() 101 assertStatsEntry(stats, "wlan0", 10021, SET_DEFAULT, 0x7fffff01, 562386L, 49228L); in testNetworkStatsDetail() 102 assertStatsEntry(stats, "rmnet1", 10021, SET_DEFAULT, 0x30100000, 219110L, 227423L); in testNetworkStatsDetail() 103 assertStatsEntry(stats, "rmnet2", 10001, SET_DEFAULT, 0x0, 1125899906842624L, 984L); in testNetworkStatsDetail() 395 assertStatsEntry(stats, "rmnet1", 10021, SET_DEFAULT, 0x30100000, 219110L, 578L, 227423L, in testNetworkStatsWithSet() 434 assertStatsEntry(stats, "v4-wlan0", 10060, SET_DEFAULT, 0x0, 46860L, 4920L); in testDoubleClatAccountingSimple() 435 assertStatsEntry(stats, "wlan0", 0, SET_DEFAULT, 0x0, 0L, 0L); in testDoubleClatAccountingSimple() 445 assertStatsEntry(stats, "v4-wlan0", 0, SET_DEFAULT, 0x0, 356L, 276L); in testDoubleClatAccounting() [all …]
|
D | NetworkStatsObserversTest.java | 24 import static android.net.NetworkStats.SET_DEFAULT; 329 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_notifiesSameUid() 336 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_notifiesSameUid() 362 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_usageOtherUid_doesNotNotify() 369 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_usageOtherUid_doesNotNotify() 394 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_userAccess_usageSameUser_notifies() 401 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_userAccess_usageSameUser_notifies() 427 .insertEntry(TEST_IFACE, UID_ANOTHER_USER, SET_DEFAULT, TAG_NONE, METERED_NO, in testUpdateStats_userAccess_usageAnotherUser_doesNotNotify() 434 .insertEntry(TEST_IFACE, UID_ANOTHER_USER, SET_DEFAULT, TAG_NONE, METERED_NO, in testUpdateStats_userAccess_usageAnotherUser_doesNotNotify()
|
D | NetworkStatsCollectionTest.java | 21 import static android.net.NetworkStats.SET_DEFAULT; 203 collection.recordData(null, UID_ALL, SET_DEFAULT, TAG_NONE, 30 * MINUTE_IN_MILLIS, in testStartEndAtomicBuckets() 225 collection.recordData(identSet, myUid, SET_DEFAULT, TAG_NONE, 0, 60 * MINUTE_IN_MILLIS, in testAccessLevels() 230 collection.recordData(identSet, otherUidInSameUser, SET_DEFAULT, TAG_NONE, 0, in testAccessLevels() 235 collection.recordData(identSet, Process.SYSTEM_UID, SET_DEFAULT, TAG_NONE, 0, in testAccessLevels() 240 collection.recordData(identSet, uidInDifferentUser, SET_DEFAULT, TAG_NONE, 0, in testAccessLevels() 253 … assertNotNull(collection.getHistory(buildTemplateMobileAll(TEST_IMSI), null, myUid, SET_DEFAULT, in testAccessLevels() local 257 SET_DEFAULT, TAG_NONE, 0, 0L, 0L, NetworkStatsAccess.Level.DEFAULT, myUid); in testAccessLevels() local
|
D | NetworkStatsBaseTest.java | 29 import static android.net.NetworkStats.SET_DEFAULT; 64 sets = new int[] {SET_ALL, SET_DEFAULT, SET_FOREGROUND}; in assertValues()
|
/frameworks/base/tests/net/java/android/app/usage/ |
D | NetworkStatsManagerTest.java | 80 android.net.NetworkStats.SET_DEFAULT, android.net.NetworkStats.TAG_NONE, in testQueryDetails() 85 android.net.NetworkStats.SET_DEFAULT, android.net.NetworkStats.TAG_NONE, in testQueryDetails() 89 android.net.NetworkStats.SET_DEFAULT, android.net.NetworkStats.TAG_NONE, in testQueryDetails() 94 android.net.NetworkStats.SET_DEFAULT, android.net.NetworkStats.TAG_NONE, in testQueryDetails()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | ChartDataLoader.java | 19 import static android.net.NetworkStats.SET_DEFAULT; 100 template, uid, SET_DEFAULT, data.detailDefault); in loadInBackground()
|
/frameworks/base/core/java/android/net/ |
D | NetworkStats.java | 87 public static final int SET_DEFAULT = 0; field in NetworkStats 110 SET_DEFAULT, 312 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, 0L, 0L, 0L, 0L, 0L); in Entry() 317 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in Entry() 534 iface, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, 0L); in insertEntry() 677 iface, uid, SET_DEFAULT, tag, rxBytes, rxPackets, txBytes, in combineValues() 1272 case SET_DEFAULT: in setToString() 1293 case SET_DEFAULT: in setToCheckinString() 1660 final int idxVpnBackground = findIndex(underlyingIfaces[i], tunUid, SET_DEFAULT, in deductTrafficFromVpnApp()
|
D | NetworkStatsHistory.java | 20 import static android.net.NetworkStats.SET_DEFAULT; 328 IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, 0L, txBytes, 0L, 0L)); in recordData() 404 IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, 0L, 0L, 0L, 0L, 0L); in recordHistory() 622 IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, 0L, 0L, 0L, 0L, 0L); in generateRandom()
|
/frameworks/base/core/java/android/app/usage/ |
D | NetworkStats.java | 284 case STATE_DEFAULT: return android.net.NetworkStats.SET_DEFAULT; in convertSet() 293 case android.net.NetworkStats.SET_DEFAULT : return STATE_DEFAULT; in convertState()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsCollection.java | 27 import static android.net.NetworkStats.SET_DEFAULT; 584 : SET_DEFAULT; in readLegacyUid() 624 key.ident, UID_REMOVED, SET_DEFAULT, TAG_NONE); in removeUids()
|
D | NetworkStatsService.java | 39 import static android.net.NetworkStats.SET_DEFAULT; 949 final int set = mActiveUidCounterSet.get(uid, SET_DEFAULT); 960 final int set = uidForeground ? SET_FOREGROUND : SET_DEFAULT; 961 final int oldSet = mActiveUidCounterSet.get(uid, SET_DEFAULT);
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | OffloadController.java | 22 import static android.net.NetworkStats.SET_DEFAULT; 313 final Entry entry = new Entry(kv.getKey(), uid, SET_DEFAULT, TAG_NONE, METERED_NO, in getTetherStats()
|
D | BpfCoordinator.java | 22 import static android.net.NetworkStats.SET_DEFAULT; 674 return stats.addEntry(new Entry(iface, uid, SET_DEFAULT, TAG_NONE, METERED_NO, in buildNetworkStats()
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | BpfCoordinatorTest.java | 22 import static android.net.NetworkStats.SET_DEFAULT; 164 SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, DEFAULT_NETWORK_NO, rxBytes, in buildTestEntry()
|
D | OffloadControllerTest.java | 22 import static android.net.NetworkStats.SET_DEFAULT; 421 return new Entry(iface, how == STATS_PER_IFACE ? UID_ALL : UID_TETHERING, SET_DEFAULT, in buildTestEntry()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | BandwidthTest.java | 271 stats.insertEntry(NetworkStats.IFACE_ALL, uid, NetworkStats.SET_DEFAULT, in fetchDataFromProc()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 35 import static android.net.NetworkStats.SET_DEFAULT; 1513 entry.set = SET_DEFAULT; in getTetherStats()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 10765 if (entry.set == NetworkStats.SET_DEFAULT) { // Background transfers in updateWifiState() 10784 if (entry.set == NetworkStats.SET_DEFAULT) { // Background transfers in updateWifiState() 11113 if (entry.set == NetworkStats.SET_DEFAULT) { // Background transfers in updateMobileRadioState()
|
/frameworks/base/api/ |
D | system-current.txt | 4689 field public static final int SET_DEFAULT = 0; // 0x0
|
/frameworks/base/non-updatable-api/ |
D | system-current.txt | 4689 field public static final int SET_DEFAULT = 0; // 0x0
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 44714 Landroid/net/NetworkStats;->SET_DEFAULT:I
|