Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/android/net/
DNetworkStatsTest.java31 import static android.net.NetworkStats.TAG_NONE;
52 .addValues(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, 1024L, in testFindIndex()
54 .addValues(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, 0L, 0L, in testFindIndex()
56 .addValues(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_NO, 0L, 0L, in testFindIndex()
58 .addValues(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, 1024L, in testFindIndex()
60 .addValues(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_YES, 1024L, in testFindIndex()
63 assertEquals(4, stats.findIndex(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_YES, in testFindIndex()
65 assertEquals(3, stats.findIndex(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_NO, in testFindIndex()
67 assertEquals(2, stats.findIndex(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_YES, in testFindIndex()
69 assertEquals(1, stats.findIndex(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_NO, in testFindIndex()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsServiceTest.java34 import static android.net.NetworkStats.TAG_NONE;
296 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 512L, 4L, 256L, 2L, 0L) in testStatsRebootPersist()
298 .addValues(TEST_IFACE, UID_RED, SET_FOREGROUND, TAG_NONE, 512L, 4L, 256L, 2L, 0L) in testStatsRebootPersist()
300 .addValues(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 128L, 1L, 128L, 1L, 0L)); in testStatsRebootPersist()
416 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L) in testUidStatsAcrossNetworks()
418 .addValues(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 512L, 4L, 0L, 0L, 0L)); in testUidStatsAcrossNetworks()
439 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L) in testUidStatsAcrossNetworks()
441 .addValues(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 512L, 4L, 0L, 0L, 0L)); in testUidStatsAcrossNetworks()
455 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L) in testUidStatsAcrossNetworks()
457 .addValues(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 640L, 5L, 1024L, 8L, 0L) in testUidStatsAcrossNetworks()
[all …]
DNetworkStatsCollectionTest.java21 import static android.net.NetworkStats.TAG_NONE;
152 collection.recordData(null, UID_ALL, SET_DEFAULT, TAG_NONE, 30 * MINUTE_IN_MILLIS, in testStartEndAtomicBuckets()
173 collection.recordData(identSet, myUid, SET_DEFAULT, TAG_NONE, 0, 60 * MINUTE_IN_MILLIS, in testAccessLevels()
178 collection.recordData(identSet, otherUidInSameUser, SET_DEFAULT, TAG_NONE, 0, in testAccessLevels()
183 collection.recordData(identSet, Process.SYSTEM_UID, SET_DEFAULT, TAG_NONE, 0, in testAccessLevels()
188 collection.recordData(identSet, uidInDifferentUser, SET_DEFAULT, TAG_NONE, 0, in testAccessLevels()
202 TAG_NONE, 0, NetworkStatsAccess.Level.DEFAULT)); in testAccessLevels() local
205 SET_DEFAULT, TAG_NONE, 0, NetworkStatsAccess.Level.DEFAULT); in testAccessLevels() local
DNetworkStatsObserversTest.java30 import static android.net.NetworkStats.TAG_NONE;
340 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_notifiesSameUid()
348 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_notifiesSameUid()
378 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_usageOtherUid_doesNotNotify()
386 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_usageOtherUid_doesNotNotify()
416 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_userAccess_usageSameUser_notifies()
424 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_userAccess_usageSameUser_notifies()
454 .addValues(TEST_IFACE, UID_ANOTHER_USER, SET_DEFAULT, TAG_NONE, METERED_NO, in testUpdateStats_userAccess_usageAnotherUser_doesNotNotify()
462 .addValues(TEST_IFACE, UID_ANOTHER_USER, SET_DEFAULT, TAG_NONE, METERED_NO, in testUpdateStats_userAccess_usageAnotherUser_doesNotNotify()
/frameworks/base/core/java/android/app/usage/
DNetworkStats.java69 private int mTag = android.net.NetworkStats.TAG_NONE;
221 public static final int TAG_NONE = android.net.NetworkStats.TAG_NONE; field in NetworkStats.Bucket
254 case android.net.NetworkStats.TAG_NONE: return TAG_NONE; in convertTag()
472 startHistoryEnumeration(uid, android.net.NetworkStats.TAG_NONE); in startHistoryEnumeration()
505 android.net.NetworkStats.SET_ALL, android.net.NetworkStats.TAG_NONE, in startUserUidEnumeration()
528 android.net.NetworkStats.SET_ALL, android.net.NetworkStats.TAG_NONE, in stepHistory()
DNetworkStatsManager.java228 NetworkStats.Bucket.TAG_NONE); in queryDetailsForUid()
/frameworks/base/tests/net/java/com/android/internal/net/
DNetworkStatsFactoryTest.java24 import static android.net.NetworkStats.TAG_NONE;
114 assertStatsEntry(stats, "rmnet0", UID_ALL, SET_ALL, TAG_NONE, 2112L, 24L, 700L, 10L); in testNetworkStatsSingle()
115 assertStatsEntry(stats, "test1", UID_ALL, SET_ALL, TAG_NONE, 6L, 8L, 10L, 12L); in testNetworkStatsSingle()
116 assertStatsEntry(stats, "test2", UID_ALL, SET_ALL, TAG_NONE, 1L, 2L, 3L, 4L); in testNetworkStatsSingle()
124 assertStatsEntry(stats, "rmnet0", UID_ALL, SET_ALL, TAG_NONE, 6824L, 16L, 5692L, 10L); in testNetworkStatsXt()
125 assertStatsEntry(stats, "rmnet1", UID_ALL, SET_ALL, TAG_NONE, 11153922L, 8051L, 190226L, in testNetworkStatsXt()
127 assertStatsEntry(stats, "rmnet2", UID_ALL, SET_ALL, TAG_NONE, 4968L, 35L, 3081L, 39L); in testNetworkStatsXt()
/frameworks/base/core/java/android/net/
DNetworkStats.java69 public static final int TAG_NONE = 0; field in NetworkStats
130 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, 0L, 0L, 0L, 0L, 0L); in Entry()
134 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in Entry()
294 iface, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, 0L); in addIfaceValues()
576 entry.tag = TAG_NONE; in getTotal()
591 if (tag[i] != TAG_NONE && !includeTags) continue; in getTotal()
723 entry.tag = TAG_NONE; in groupedByIface()
730 if (tag[i] != TAG_NONE) continue; in groupedByIface()
753 entry.tag = TAG_NONE; in groupedByUid()
759 if (tag[i] != TAG_NONE) continue; in groupedByUid()
[all …]
DNetworkStatsHistory.java21 import static android.net.NetworkStats.TAG_NONE;
292 IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, 0L, txBytes, 0L, 0L)); in recordData()
366 IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, 0L, 0L, 0L, 0L, 0L); in recordHistory()
555 IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, 0L, 0L, 0L, 0L, 0L); in generateRandom()
/frameworks/base/core/tests/benchmarks/src/android/net/
DNetworkStatsBenchmark.java40 recycle.tag = NetworkStats.TAG_NONE; in setUp()
54 recycle.tag = NetworkStats.TAG_NONE; in setUp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DChartDataLoader.java21 import static android.net.NetworkStats.TAG_NONE;
136 template, uid, set, TAG_NONE, FIELD_RX_BYTES | FIELD_TX_BYTES); in collectHistoryForUid()
/frameworks/base/core/java/com/android/internal/net/
DNetworkStatsFactory.java21 import static android.net.NetworkStats.TAG_NONE;
112 entry.tag = TAG_NONE; in readNetworkStatsSummaryDev()
168 entry.tag = TAG_NONE; in readNetworkStatsSummaryXt()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsCollection.java26 import static android.net.NetworkStats.TAG_NONE;
421 final Key key = new Key(ident, UID_ALL, SET_ALL, TAG_NONE); in readLegacyNetwork()
484 if ((tag == TAG_NONE) != onlyTags) { in readLegacyUid()
515 if (key.tag == TAG_NONE) { in removeUids()
518 key.ident, UID_REMOVED, SET_DEFAULT, TAG_NONE); in removeUids()
DNetworkStatsService.java35 import static android.net.NetworkStats.TAG_NONE;
582 if (tag == TAG_NONE) { in createSession()
596 if (tag == TAG_NONE) { in createSession()
641 return mXtStatsCached.getHistory(template, UID_ALL, SET_ALL, TAG_NONE, fields, accessLevel); in internalGetHistoryForNetwork()
701 if (tag == TAG_NONE) { in incrementOperationCount()
710 mActiveIface, uid, set, TAG_NONE, 0L, 0L, 0L, 0L, operationCount); in incrementOperationCount()
1402 entry.tag = TAG_NONE; in getNetworkStatsXtAndVt()
DNetworkStatsRecorder.java19 import static android.net.NetworkStats.TAG_NONE;
251 if ((entry.tag == TAG_NONE) != mOnlyTags) { in recordSnapshotLocked()
DNetworkStatsObservers.java414 NetworkStats.SET_ALL, NetworkStats.TAG_NONE, in getTotalBytesForNetworkUid()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DBandwidthTest.java265 NetworkStats.TAG_NONE, rx, 0, tx, 0, 0); in fetchDataFromProc()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java37 import static android.net.NetworkStats.TAG_NONE;
1805 entry.tag = TAG_NONE; in getNetworkStatsTethering()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java9450 NetworkStats.TAG_NONE, mNetworkStatsPool.acquire()); in readNetworkStatsLocked()
/frameworks/base/api/
Dcurrent.txt6944 field public static final int TAG_NONE = 0; // 0x0
Dsystem-current.txt7414 field public static final int TAG_NONE = 0; // 0x0