Home
last modified time | relevance | path

Searched refs:TAG_NONE (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/tests/net/java/android/net/
DNetworkStatsTest.java36 import static android.net.NetworkStats.TAG_NONE;
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/
DNetworkStatsApiTest.kt30 import android.net.NetworkStats.TAG_NONE
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()
82 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_FOREGROUND, TAG_NONE, in setUp()
85 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, TAG_NONE, 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()
99 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_FOREGROUND, TAG_NONE, 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/
DNetworkStatsServiceTest.java41 import static android.net.NetworkStats.TAG_NONE;
324 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 512L, 4L, 256L, 2L, 0L)
326 .insertEntry(TEST_IFACE, UID_RED, SET_FOREGROUND, TAG_NONE, 512L, 4L, 256L, 2L, 0L)
328 .insertEntry(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 128L, 1L, 128L, 1L, 0L));
433 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L)
435 .insertEntry(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 512L, 4L, 0L, 0L, 0L));
455 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L)
457 .insertEntry(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 512L, 4L, 0L, 0L, 0L));
469 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L)
471 .insertEntry(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 640L, 5L, 1024L, 8L, 0L)
[all …]
DNetworkStatsFactoryTest.java28 import static android.net.NetworkStats.TAG_NONE;
123 assertValues(tunStats, TUN_IFACE, UID_RED, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in testVpnRewriteTrafficThroughItself()
125 assertValues(tunStats, TUN_IFACE, UID_BLUE, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in testVpnRewriteTrafficThroughItself()
127 assertValues(tunStats, TUN_IFACE, UID_VPN, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in testVpnRewriteTrafficThroughItself()
406 assertStatsEntry(stats, "rmnet0", UID_ALL, SET_ALL, TAG_NONE, 2112L, 24L, 700L, 10L); in testNetworkStatsSingle()
407 assertStatsEntry(stats, "test1", UID_ALL, SET_ALL, TAG_NONE, 6L, 8L, 10L, 12L); in testNetworkStatsSingle()
408 assertStatsEntry(stats, "test2", UID_ALL, SET_ALL, TAG_NONE, 1L, 2L, 3L, 4L); in testNetworkStatsSingle()
417 assertStatsEntry(stats, "rmnet0", UID_ALL, SET_ALL, TAG_NONE, 6824L, 16L, 5692L, 10L); in testNetworkStatsXt()
418 assertStatsEntry(stats, "rmnet1", UID_ALL, SET_ALL, TAG_NONE, 11153922L, 8051L, 190226L, in testNetworkStatsXt()
420 assertStatsEntry(stats, "rmnet2", UID_ALL, SET_ALL, TAG_NONE, 4968L, 35L, 3081L, 39L); in testNetworkStatsXt()
DNetworkStatsObserversTest.java25 import static android.net.NetworkStats.TAG_NONE;
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()
DNetworkStatsCollectionTest.java22 import static android.net.NetworkStats.TAG_NONE;
202 collection.recordData(null, UID_ALL, SET_DEFAULT, TAG_NONE, 30 * MINUTE_IN_MILLIS, in testStartEndAtomicBuckets()
224 collection.recordData(identSet, myUid, SET_DEFAULT, TAG_NONE, 0, 60 * MINUTE_IN_MILLIS, in testAccessLevels()
229 collection.recordData(identSet, otherUidInSameUser, SET_DEFAULT, TAG_NONE, 0, in testAccessLevels()
234 collection.recordData(identSet, Process.SYSTEM_UID, SET_DEFAULT, TAG_NONE, 0, in testAccessLevels()
239 collection.recordData(identSet, uidInDifferentUser, SET_DEFAULT, TAG_NONE, 0, in testAccessLevels()
253 TAG_NONE, 0, 0L, 0L, NetworkStatsAccess.Level.DEFAULT, myUid)); in testAccessLevels() local
256 SET_DEFAULT, TAG_NONE, 0, 0L, 0L, NetworkStatsAccess.Level.DEFAULT, myUid); in testAccessLevels() local
472 large.recordData(ident, UID_ALL, SET_ALL, TAG_NONE, TIME_A, TIME_B, in testAugmentPlanGigantic()
548 SET_ALL, TAG_NONE, FIELD_ALL, start, end, NetworkStatsAccess.Level.DEVICE, myUid()); in getHistory()
DNetworkStatsBaseTest.java31 import static android.net.NetworkStats.TAG_NONE;
54 stats, iface, uid, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL, in assertValues()
/frameworks/base/tests/net/java/android/app/usage/
DNetworkStatsManagerTest.java80 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()
111 eq(android.net.NetworkStats.TAG_NONE), in testQueryDetails()
122 eq(android.net.NetworkStats.TAG_NONE), in testQueryDetails()
191 eq(android.net.NetworkStats.TAG_NONE), in testQueryDetails_NoSubscriberId()
199 eq(android.net.NetworkStats.TAG_NONE), in testQueryDetails_NoSubscriberId()
/frameworks/base/core/java/android/app/usage/
DNetworkStats.java68 private int mTag = android.net.NetworkStats.TAG_NONE;
266 public static final int TAG_NONE = android.net.NetworkStats.TAG_NONE; field in NetworkStats.Bucket
309 case android.net.NetworkStats.TAG_NONE: return TAG_NONE; in convertTag()
575 android.net.NetworkStats.SET_ALL, android.net.NetworkStats.TAG_NONE, in startUserUidEnumeration()
598 android.net.NetworkStats.SET_ALL, android.net.NetworkStats.TAG_NONE, in stepHistory()
DNetworkStatsManager.java328 NetworkStats.Bucket.TAG_NONE, NetworkStats.Bucket.STATE_ALL); in queryDetailsForUid()
335 NetworkStats.Bucket.TAG_NONE, NetworkStats.Bucket.STATE_ALL); in queryDetailsForUid()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DNetworkCycleDataForUidLoaderTest.java20 import static android.net.NetworkStats.TAG_NONE;
83 mNetworkTemplate, start, end, uid, TAG_NONE, STATE_FOREGROUND); in recordUsage_shouldQueryNetworkDetailsForUidAndForegroundState()
97 mNetworkTemplate, start, end, uid, TAG_NONE, STATE_FOREGROUND); in recordUsage_retrieveDetailIsFalse_shouldNotQueryNetworkForegroundState()
/frameworks/base/core/tests/benchmarks/src/android/net/
DNetworkStatsBenchmark.java51 recycle.tag = NetworkStats.TAG_NONE; in setUp()
67 recycle.tag = NetworkStats.TAG_NONE; in setUp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DNetworkCycleDataForUidLoader.java20 import static android.net.NetworkStats.TAG_NONE;
103 mNetworkTemplate, start, end, uid, TAG_NONE, STATE_FOREGROUND);
DChartDataLoader.java21 import static android.net.NetworkStats.TAG_NONE;
139 template, uid, set, TAG_NONE, FIELD_RX_BYTES | FIELD_TX_BYTES); in collectHistoryForUid()
/frameworks/base/core/java/android/net/
DNetworkStats.java127 public static final int TAG_NONE = 0; field in NetworkStats
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()
905 entry.tag = TAG_NONE; in getTotal()
921 if (tag[i] != TAG_NONE && !includeTags) continue; in getTotal()
1122 entry.tag = TAG_NONE; in groupedByIface()
1130 if (tag[i] != TAG_NONE) continue; in groupedByIface()
1154 entry.tag = TAG_NONE; in groupedByUid()
1161 if (tag[i] != TAG_NONE) continue; in groupedByUid()
[all …]
DNetworkStatsHistory.java21 import static android.net.NetworkStats.TAG_NONE;
327 IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, 0L, txBytes, 0L, 0L)); in recordData()
402 IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, 0L, 0L, 0L, 0L, 0L); in recordHistory()
608 IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, 0L, 0L, 0L, 0L, 0L); in generateRandom()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsFactory.java22 import static android.net.NetworkStats.TAG_NONE;
212 entry.tag = TAG_NONE; in readNetworkStatsSummaryDev()
273 entry.tag = TAG_NONE; in readNetworkStatsSummaryXt()
DNetworkStatsCollection.java28 import static android.net.NetworkStats.TAG_NONE;
551 final Key key = new Key(ident, UID_ALL, SET_ALL, TAG_NONE); in readLegacyNetwork()
614 if ((tag == TAG_NONE) != onlyTags) { in readLegacyUid()
645 if (key.tag == TAG_NONE) { in removeUids()
648 key.ident, UID_REMOVED, SET_DEFAULT, TAG_NONE); in removeUids()
DNetworkStatsRecorder.java19 import static android.net.NetworkStats.TAG_NONE;
253 if ((entry.tag == TAG_NONE) != mOnlyTags) { in recordSnapshotLocked()
DNetworkStatsService.java43 import static android.net.NetworkStats.TAG_NONE;
740 if (tag == TAG_NONE) { in openSessionInternal()
754 if (tag == TAG_NONE) { in openSessionInternal()
816 stats.insertEntry(new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_ALL, TAG_NONE, in internalGetSummaryForNetwork()
833 UID_ALL, SET_ALL, TAG_NONE, fields, Long.MIN_VALUE, Long.MAX_VALUE, in internalGetHistoryForNetwork()
912 if (tag == TAG_NONE) { in incrementOperationCount()
921 mActiveIface, uid, set, TAG_NONE, 0L, 0L, 0L, 0L, operationCount); in incrementOperationCount()
DNetworkStatsObservers.java409 NetworkStats.SET_ALL, NetworkStats.TAG_NONE, in getTotalBytesForNetworkUid()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DOffloadController.java23 import static android.net.NetworkStats.TAG_NONE;
313 final Entry entry = new Entry(kv.getKey(), uid, SET_DEFAULT, TAG_NONE, METERED_NO, in getTetherStats()
DBpfCoordinator.java23 import static android.net.NetworkStats.TAG_NONE;
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/
DBpfCoordinatorTest.java23 import static android.net.NetworkStats.TAG_NONE;
164 SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, DEFAULT_NETWORK_NO, rxBytes, in buildTestEntry()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DBandwidthTest.java272 NetworkStats.TAG_NONE, rx, 0, tx, 0, 0); in fetchDataFromProc()

12