/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsTest.java | 33 import static android.net.NetworkStats.SET_DEFAULT; 77 .insertEntry(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndex() 79 .insertEntry(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndex() 81 .insertEntry(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_NO, in testFindIndex() 83 .insertEntry(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndex() 85 .insertEntry(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_YES, in testFindIndex() 88 assertEquals(4, stats.findIndex(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_YES, in testFindIndex() 90 assertEquals(3, stats.findIndex(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_NO, in testFindIndex() 92 assertEquals(2, stats.findIndex(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_YES, in testFindIndex() 94 assertEquals(1, stats.findIndex(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_NO, in testFindIndex() [all …]
|
D | NetworkStatsHistoryTest.java | 23 import static android.net.NetworkStats.SET_DEFAULT; 121 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testRecordSingleBucket() 136 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testRecordEqualBuckets() 154 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testRecordTouchingBuckets() 175 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testRecordGapBuckets() 178 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testRecordGapBuckets() 190 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testRecordGapBuckets() 208 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testRecordOverlapBuckets() 212 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testRecordOverlapBuckets() 391 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testIgnoreFields() [all …]
|
D | NetworkStatsCollectionTest.java | 26 import static android.net.NetworkStats.SET_DEFAULT; 238 collection.recordData(Mockito.mock(NetworkIdentitySet.class), UID_ALL, SET_DEFAULT, in testStartEndAtomicBuckets() local 260 collection.recordData(identSet, myUid, SET_DEFAULT, TAG_NONE, 0, 60 * MINUTE_IN_MILLIS, in testAccessLevels() 265 collection.recordData(identSet, otherUidInSameUser, SET_DEFAULT, TAG_NONE, 0, in testAccessLevels() 270 collection.recordData(identSet, Process.SYSTEM_UID, SET_DEFAULT, TAG_NONE, 0, in testAccessLevels() 275 collection.recordData(identSet, uidInDifferentUser, SET_DEFAULT, TAG_NONE, 0, in testAccessLevels() 289 myUid, SET_DEFAULT, TAG_NONE, 0, 0L, 0L, NetworkStatsAccess.Level.DEFAULT, myUid)); in testAccessLevels() local 292 SET_DEFAULT, TAG_NONE, 0, 0L, 0L, NetworkStatsAccess.Level.DEFAULT, myUid); in testAccessLevels() local 516 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testAugmentPlanGigantic() 696 assertEntry(new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in assertEntry() [all …]
|
D | NetworkStatsRecorderTest.java | 19 import static android.net.NetworkStats.SET_DEFAULT; 156 collection.recordData(identSet, TEST_UID1, SET_DEFAULT, TAG_NONE, 0, 60, entry); in testFileReadingMetrics() 157 collection.recordData(identSet, TEST_UID2, SET_DEFAULT, TAG_NONE, 0, 60, entry); in testFileReadingMetrics()
|
/packages/modules/Connectivity/tests/common/java/android/net/netstats/ |
D | NetworkStatsApiTest.kt | 28 import android.net.NetworkStats.SET_DEFAULT 68 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp() 70 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp() 72 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp() 77 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp() 79 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, 0x80, in setUp() 81 .addEntry(Entry(TEST_IFACE, TEST_UID2, SET_DEFAULT, TAG_NONE, in setUp() 83 .addEntry(Entry(IFACE_VT, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp() 89 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, 0x80, in setUp() 93 .addEntry(Entry(TEST_IFACE, TEST_UID2, SET_DEFAULT, TAG_NONE, in setUp() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsFactoryTest.java | 26 import static android.net.NetworkStats.SET_DEFAULT; 108 assertStatsEntry(stats, "wlan0", 0, SET_DEFAULT, 0x0, 18621L, 2898L); in testNetworkStatsDetail() 109 assertStatsEntry(stats, "wlan0", 10011, SET_DEFAULT, 0x0, 35777L, 5718L); in testNetworkStatsDetail() 110 assertStatsEntry(stats, "wlan0", 10021, SET_DEFAULT, 0x7fffff01, 562386L, 49228L); in testNetworkStatsDetail() 111 assertStatsEntry(stats, "rmnet1", 10021, SET_DEFAULT, 0x30100000, 219110L, 227423L); in testNetworkStatsDetail() 112 assertStatsEntry(stats, "rmnet2", 10001, SET_DEFAULT, 0x0, 1125899906842624L, 984L); in testNetworkStatsDetail() 420 assertStatsEntry(stats, "rmnet1", 10021, SET_DEFAULT, 0x30100000, 219110L, 578L, 227423L, in testNetworkStatsWithSet() 437 assertStatsEntry(stats, "v4-wlan0", 10060, SET_DEFAULT, 0x0, 46860L, 4920L); in testDoubleClatAccountingSimple() 438 assertStatsEntry(stats, "wlan0", 0, SET_DEFAULT, 0x0, 0L, 0L); in testDoubleClatAccountingSimple() 449 assertStatsEntry(stats, "v4-wlan0", 0, SET_DEFAULT, 0x0, 356L, 276L); in testDoubleClatAccounting() [all …]
|
D | NetworkStatsServiceTest.java | 45 import static android.net.NetworkStats.SET_DEFAULT; 783 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 512L, 4L, 256L, 2L, 0L) in testStatsRebootPersist() 784 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, 0xFAAD, 256L, 2L, 128L, 1L, 0L) in testStatsRebootPersist() 787 .insertEntry(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 128L, 1L, 128L, 1L, 0L)); in testStatsRebootPersist() 801 assertUidTotal(sTemplateWifi, UID_RED, SET_DEFAULT, METERED_NO, ROAMING_NO, in testStatsRebootPersist() 822 assertUidTotal(sTemplateWifi, UID_RED, SET_DEFAULT, METERED_NO, ROAMING_NO, in testStatsRebootPersist() 895 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L) in testUidStatsAcrossNetworks() 896 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, 0xF00D, 512L, 4L, 512L, 4L, 0L) in testUidStatsAcrossNetworks() 897 .insertEntry(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 512L, 4L, 0L, 0L, 0L)); in testUidStatsAcrossNetworks() 917 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L) in testUidStatsAcrossNetworks() [all …]
|
D | NetworkStatsObserversTest.java | 26 import static android.net.NetworkStats.SET_DEFAULT; 410 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_notifiesSameUid() 417 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_notifiesSameUid() 443 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_usageOtherUid_doesNotNotify() 450 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_usageOtherUid_doesNotNotify() 475 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_userAccess_usageSameUser_notifies() 482 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_userAccess_usageSameUser_notifies() 508 .insertEntry(TEST_IFACE, UID_ANOTHER_USER, SET_DEFAULT, TAG_NONE, METERED_NO, in testUpdateStats_userAccess_usageAnotherUser_doesNotNotify() 515 .insertEntry(TEST_IFACE, UID_ANOTHER_USER, SET_DEFAULT, TAG_NONE, METERED_NO, in testUpdateStats_userAccess_usageAnotherUser_doesNotNotify()
|
D | NetworkStatsBaseTest.java | 29 import static android.net.NetworkStats.SET_DEFAULT; 66 sets = new int[] {SET_ALL, SET_DEFAULT, SET_FOREGROUND}; in assertValues()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/ |
D | NetworkStatsUtilsTest.kt | 23 import android.net.NetworkStats.SET_DEFAULT 48 NetworkStats.Entry(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testOrderInsensitiveEquals() 50 NetworkStats.Entry(TEST_IFACE2, 100, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testOrderInsensitiveEquals()
|
/packages/modules/Connectivity/tests/unit/java/android/app/usage/ |
D | NetworkStatsManagerTest.java | 26 import static android.net.NetworkStats.SET_DEFAULT; 97 Entry uid1Entry1 = new Entry("if1", uid1, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testQueryDetails() 100 Entry uid1Entry2 = new Entry("if2", uid1, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testQueryDetails() 103 Entry uid2Entry1 = new Entry("if1", uid2, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testQueryDetails() 106 Entry uid2Entry2 = new Entry("if2", uid2, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testQueryDetails()
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | NetworkStats.java | 93 public static final int SET_DEFAULT = 0; field in NetworkStats 116 SET_DEFAULT, 307 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in Entry() 635 iface, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, DEFAULT_NETWORK_NO, in insertEntry() 809 iface, uid, SET_DEFAULT, tag, rxBytes, rxPackets, txBytes, in combineValues() 1426 case SET_DEFAULT: in setToString() 1447 case SET_DEFAULT: in setToCheckinString() 1852 final int idxVpnBackground = findIndex(underlyingIfaces.get(i), tunUid, SET_DEFAULT, in deductTrafficFromVpnApp()
|
D | NetworkStatsCollection.java | 28 import static android.net.NetworkStats.SET_DEFAULT; 329 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, in getHistory() 673 : SET_DEFAULT; in readLegacyUid() 714 key.ident, UID_REMOVED, SET_DEFAULT, TAG_NONE); in removeUids()
|
D | NetworkStatsHistory.java | 24 import static android.net.NetworkStats.SET_DEFAULT; 535 IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in recordData() 618 IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in recordHistory() 862 IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in generateRandom()
|
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/include/netdbpf/ |
D | BpfNetworkStats.h | 32 constexpr int SET_DEFAULT = 0; variable
|
/packages/modules/Connectivity/framework-t/src/android/app/usage/ |
D | NetworkStats.java | 287 case STATE_DEFAULT: return android.net.NetworkStats.SET_DEFAULT; in convertSet() 296 case android.net.NetworkStats.SET_DEFAULT : return STATE_DEFAULT; in convertState()
|
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | NetworkStatsUtils.java | 132 case NetworkStats.Bucket.STATE_DEFAULT: return android.net.NetworkStats.SET_DEFAULT; in convertBucketState()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | NetworkStatsUtilsTest.kt | 89 NetworkStats.SET_DEFAULT, NetworkStats.TAG_NONE, NetworkStats.METERED_YES, in testBucketToEntry()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | OffloadController.java | 22 import static android.net.NetworkStats.SET_DEFAULT; 350 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; 2205 return stats.addEntry(new Entry(iface, uid, SET_DEFAULT, TAG_NONE, METERED_NO, in buildNetworkStats()
|
/packages/modules/Connectivity/service-t/src/com/android/server/net/ |
D | NetworkStatsService.java | 41 import static android.net.NetworkStats.SET_DEFAULT; 1947 final int set = mActiveUidCounterSet.get(uid, SET_DEFAULT); 1961 if (set == SET_DEFAULT) { 1982 final int set = uidForeground ? SET_FOREGROUND : SET_DEFAULT; 1983 final int oldSet = mActiveUidCounterSet.get(uid, SET_DEFAULT); 3327 SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, DEFAULT_NETWORK_NO,
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | OffloadControllerTest.java | 22 import static android.net.NetworkStats.SET_DEFAULT; 419 return new Entry(iface, how == STATS_PER_IFACE ? UID_ALL : UID_TETHERING, SET_DEFAULT, in buildTestEntry()
|
D | BpfCoordinatorTest.java | 24 import static android.net.NetworkStats.SET_DEFAULT; 691 SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, DEFAULT_NETWORK_NO, rxBytes, in buildTestEntry()
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | QuickContactActivity.java | 432 static final int SET_DEFAULT = 2; field 469 menu.add(ContextMenu.NONE, ContextMenuIds.SET_DEFAULT, 490 case ContextMenuIds.SET_DEFAULT: in onContextItemSelected()
|
/packages/modules/Connectivity/framework-t/api/ |
D | system-current.txt | 331 field public static final int SET_DEFAULT = 0; // 0x0
|