/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsTest.java | 36 import static android.net.NetworkStats.TAG_NONE; 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 | 24 import static android.net.NetworkStats.TAG_NONE; 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 | 27 import static android.net.NetworkStats.TAG_NONE; 239 TAG_NONE, 30 * MINUTE_IN_MILLIS, 90 * MINUTE_IN_MILLIS, entry); 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 515 large.recordData(ident, UID_ALL, SET_ALL, TAG_NONE, TIME_A, TIME_B, in testAugmentPlanGigantic() 516 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testAugmentPlanGigantic() [all …]
|
D | NetworkStatsRecorderTest.java | 21 import static android.net.NetworkStats.TAG_NONE; 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() 158 collection.recordData(identSet, TEST_UID2, SET_FOREGROUND, TAG_NONE, 30, 60, entry); in testFileReadingMetrics()
|
/packages/modules/Connectivity/tests/common/java/android/net/netstats/ |
D | NetworkStatsApiTest.kt | 30 import android.net.NetworkStats.TAG_NONE 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() 74 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_FOREGROUND, TAG_NONE, in setUp() 77 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, TAG_NONE, 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() 91 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_FOREGROUND, TAG_NONE, in setUp() 93 .addEntry(Entry(TEST_IFACE, TEST_UID2, SET_DEFAULT, TAG_NONE, in setUp() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/net/ |
D | RefinedStatsTest.java | 19 import static android.net.NetworkStats.TAG_NONE; 76 stats.add(buildBucket(UID_1, TAG_NONE, /* rx= */ 4095, /* tx= */ 2047)); in testAddNetworkStats_toPersistableBundle() 89 expected.putIntArray(Constants.CONNECTIVITY_BUNDLE_KEY_TAG, new int[] {TAG_1, TAG_NONE}); in testAddNetworkStats_toPersistableBundle() 98 stats.add(buildBucket(UID_0, TAG_NONE, /* rx= */ 256, /* tx= */ 256)); in testIsEmpty() 109 stats.add(buildBucket(UID_1, TAG_NONE, /* rx= */ 4096, /* tx= */ 2048)); in testSubtract() 112 stats.add(buildBucket(UID_2, TAG_NONE, /* rx= */ 4096, /* tx= */ 2048)); in testSubtract() 116 stats2.add(buildBucket(UID_1, TAG_NONE, /* rx= */ 6, /* tx= */ 8)); in testSubtract() 136 new int[] {TAG_NONE, TAG_1, TAG_NONE}); in testSubtract()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 48 import static android.net.NetworkStats.TAG_NONE; 783 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 512L, 4L, 256L, 2L, 0L) in testStatsRebootPersist() 785 .insertEntry(TEST_IFACE, UID_RED, SET_FOREGROUND, TAG_NONE, 512L, 4L, 256L, 2L, 0L) in testStatsRebootPersist() 787 .insertEntry(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 128L, 1L, 128L, 1L, 0L)); in testStatsRebootPersist() 895 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 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() 919 .insertEntry(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 512L, 4L, 0L, 0L, 0L)); in testUidStatsAcrossNetworks() 932 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L) in testUidStatsAcrossNetworks() 934 .insertEntry(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 640L, 5L, 1024L, 8L, 0L) in testUidStatsAcrossNetworks() [all …]
|
D | NetworkStatsFactoryTest.java | 29 import static android.net.NetworkStats.TAG_NONE; 133 assertValues(tunStats, TUN_IFACE, UID_RED, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in testVpnRewriteTrafficThroughItself() 135 assertValues(tunStats, TUN_IFACE, UID_BLUE, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in testVpnRewriteTrafficThroughItself() 137 assertValues(tunStats, TUN_IFACE, UID_VPN, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in testVpnRewriteTrafficThroughItself() 470 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 16L, 1L, 16L, 1L, 0L) in testRemoveUidsStats() 471 .insertEntry(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, in testRemoveUidsStats() 473 .insertEntry(TEST_IFACE, UID_GREEN, SET_DEFAULT, TAG_NONE, 64L, 3L, 1024L, 8L, 0L); in testRemoveUidsStats() 533 entry.tag = isUidData ? kernelToTag(reader.nextString()) : TAG_NONE; in parseNetworkStatsFromGoldenSample()
|
D | NetworkStatsObserversTest.java | 27 import static android.net.NetworkStats.TAG_NONE; 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 | 31 import static android.net.NetworkStats.TAG_NONE; 56 stats, iface, uid, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL, in assertValues()
|
/packages/modules/Connectivity/tests/unit/java/android/app/usage/ |
D | NetworkStatsManagerTest.java | 27 import static android.net.NetworkStats.TAG_NONE; 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() 122 eq(uid1), eq(SET_ALL), eq(TAG_NONE), in testQueryDetails() 132 eq(uid2), eq(SET_ALL), eq(TAG_NONE), in testQueryDetails() 198 eq(TAG_NONE), in runQueryDetailsAndCheckTemplate() 204 eq(TAG_NONE), in runQueryDetailsAndCheckTemplate()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/ |
D | NetworkStatsUtilsTest.kt | 24 import android.net.NetworkStats.TAG_NONE 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/framework-t/src/android/app/usage/ |
D | NetworkStats.java | 71 private int mTag = android.net.NetworkStats.TAG_NONE; 269 public static final int TAG_NONE = android.net.NetworkStats.TAG_NONE; field in NetworkStats.Bucket 312 case android.net.NetworkStats.TAG_NONE: return TAG_NONE; in convertTag() 602 android.net.NetworkStats.SET_ALL, android.net.NetworkStats.TAG_NONE, in startUserUidEnumeration() 625 android.net.NetworkStats.SET_ALL, android.net.NetworkStats.TAG_NONE, in stepHistory()
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | NetworkStats.java | 129 public static final int TAG_NONE = 0; field in NetworkStats 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() 1038 entry.tag = TAG_NONE; in getTotal() 1054 if (tag[i] != TAG_NONE && !includeTags) continue; in getTotal() 1261 final NetworkStats mappedStats = this.mapKeysNotNull(entry -> entry.getTag() != TAG_NONE in groupedByIface() 1263 SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL)); in groupedByIface() 1286 return this.mapKeysNotNull(entry -> entry.getTag() != TAG_NONE in groupedByUid() 1288 SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL)); in groupedByUid() 1637 if (recycle.tag != TAG_NONE) { in tunAdjustmentInit() [all …]
|
D | NetworkStatsCollection.java | 30 import static android.net.NetworkStats.TAG_NONE; 329 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, in getHistory() 609 final Key key = new Key(ident, UID_ALL, SET_ALL, TAG_NONE); in readLegacyNetwork() 679 if ((tag == TAG_NONE) != onlyTags) { in readLegacyUid() 711 if (key.tag == TAG_NONE) { in removeUids() 714 key.ident, UID_REMOVED, SET_DEFAULT, TAG_NONE); in removeUids()
|
D | NetworkStatsHistory.java | 25 import static android.net.NetworkStats.TAG_NONE; 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/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/ |
D | ConnectivityPublisherTest.java | 19 import static android.net.NetworkStats.TAG_NONE; 281 mFakeManager.addMobileStats(UID_1, TAG_NONE, 2502L, 3502L, OEM_MANAGED_NO, mNow); in testPullsTaggedAndUntaggedMobileStats() 308 .containsExactly(TAG_1, TAG_NONE); in testPullsTaggedAndUntaggedMobileStats() 322 mFakeManager.addWifiStats(UID_2, TAG_NONE, 100L, 200L, OEM_MANAGED_PAID, mNow); in testPullsOemManagedWifiStats() 344 .asList().containsExactly(TAG_NONE, TAG_2); in testPullsOemManagedWifiStats() 677 boolean bucketHasTag = bucket.getTag() != TAG_NONE; in commonQuerySummary()
|
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | NetworkStatsUtils.java | 141 case NetworkStats.Bucket.TAG_NONE: return android.net.NetworkStats.TAG_NONE; in convertBucketTag()
|
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/ |
D | BpfNetworkStatsTest.cpp | 405 expectStatsLineEqual(value1, IFACE_NAME1, UID_ALL, SET_ALL, TAG_NONE, lines[0]); in TEST_F() 406 expectStatsLineEqual(value1, IFACE_NAME3, UID_ALL, SET_ALL, TAG_NONE, lines[1]); in TEST_F() 407 expectStatsLineEqual(value2, IFACE_NAME2, UID_ALL, SET_ALL, TAG_NONE, lines[2]); in TEST_F() 409 expectStatsLineEqual(value2, TRUNCATED_IFACE_NAME, UID_ALL, SET_ALL, TAG_NONE, lines[3]); in TEST_F() 500 expectStatsLineEqual(value3, IFACE_NAME1, UID_ALL, SET_ALL, TAG_NONE, lines[0]); in TEST_F() 501 expectStatsLineEqual(value2, IFACE_NAME2, UID_ALL, SET_ALL, TAG_NONE, lines[1]); in TEST_F()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | NetworkStatsUtilsTest.kt | 82 android.app.usage.NetworkStats.Bucket.TAG_NONE, in testBucketToEntry() 89 NetworkStats.SET_DEFAULT, NetworkStats.TAG_NONE, NetworkStats.METERED_YES, in testBucketToEntry()
|
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/ |
D | NetworkStatsIntegrationTest.kt | 23 import android.app.usage.NetworkStats.Bucket.TAG_NONE in <lambda>() 299 genHttpTrafficWithTag(network, uploadSize, downloadSize, NetworkStats.Bucket.TAG_NONE) in <lambda>() 413 val statsUid = getUidDetail(iface, TAG_NONE) in <lambda>() 433 return getNetworkStatsThat(iface, TAG_NONE) { nsm, template -> in <lambda>()
|
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/include/netdbpf/ |
D | BpfNetworkStats.h | 30 constexpr int TAG_NONE = 0; variable
|
/packages/apps/Settings/src/com/android/settings/datausage/lib/ |
D | NetworkStatsRepository.kt | 35 template, range.lower, range.upper, uid, NetworkStats.Bucket.TAG_NONE, state, in queryAggregateForUid()
|
/packages/modules/Connectivity/service-t/src/com/android/server/net/ |
D | NetworkStatsRecorder.java | 19 import static android.net.NetworkStats.TAG_NONE; 289 if ((entry.tag == TAG_NONE) != mOnlyTags) { in recordSnapshotLocked()
|
D | NetworkStatsService.java | 46 import static android.net.NetworkStats.TAG_NONE; 1716 if (tag == TAG_NONE) { 1733 if (tag == TAG_NONE) { 1817 stats.insertEntry(new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_ALL, TAG_NONE, 1835 UID_ALL, SET_ALL, TAG_NONE, fields, start, end, accessLevel, callingUid); 1942 if (tag == TAG_NONE) { 1951 mActiveIface, uid, set, TAG_NONE, 0L, 0L, 0L, 0L, operationCount); 3327 SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, DEFAULT_NETWORK_NO,
|