/frameworks/base/tests/net/java/android/net/ |
D | NetworkStatsTest.java | 36 import static android.net.NetworkStats.TAG_NONE; 67 .addValues(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndex() 69 .addValues(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndex() 71 .addValues(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_NO, in testFindIndex() 73 .addValues(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndex() 75 .addValues(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/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 41 import static android.net.NetworkStats.TAG_NONE; 311 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 512L, 4L, 256L, 2L, 0L) in testStatsRebootPersist() 313 .addValues(TEST_IFACE, UID_RED, SET_FOREGROUND, TAG_NONE, 512L, 4L, 256L, 2L, 0L) in testStatsRebootPersist() 315 .addValues(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 128L, 1L, 128L, 1L, 0L)); in testStatsRebootPersist() 424 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L) in testUidStatsAcrossNetworks() 426 .addValues(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 512L, 4L, 0L, 0L, 0L)); in testUidStatsAcrossNetworks() 446 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L) in testUidStatsAcrossNetworks() 448 .addValues(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 512L, 4L, 0L, 0L, 0L)); in testUidStatsAcrossNetworks() 461 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L) in testUidStatsAcrossNetworks() 463 .addValues(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 640L, 5L, 1024L, 8L, 0L) in testUidStatsAcrossNetworks() [all …]
|
D | NetworkStatsFactoryTest.java | 25 import static android.net.NetworkStats.TAG_NONE; 131 assertStatsEntry(stats, "rmnet0", UID_ALL, SET_ALL, TAG_NONE, 2112L, 24L, 700L, 10L); in testNetworkStatsSingle() 132 assertStatsEntry(stats, "test1", UID_ALL, SET_ALL, TAG_NONE, 6L, 8L, 10L, 12L); in testNetworkStatsSingle() 133 assertStatsEntry(stats, "test2", UID_ALL, SET_ALL, TAG_NONE, 1L, 2L, 3L, 4L); in testNetworkStatsSingle() 142 assertStatsEntry(stats, "rmnet0", UID_ALL, SET_ALL, TAG_NONE, 6824L, 16L, 5692L, 10L); in testNetworkStatsXt() 143 assertStatsEntry(stats, "rmnet1", UID_ALL, SET_ALL, TAG_NONE, 11153922L, 8051L, 190226L, in testNetworkStatsXt() 145 assertStatsEntry(stats, "rmnet2", UID_ALL, SET_ALL, TAG_NONE, 4968L, 35L, 3081L, 39L); in testNetworkStatsXt()
|
D | NetworkStatsObserversTest.java | 25 import static android.net.NetworkStats.TAG_NONE; 338 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_notifiesSameUid() 346 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_notifiesSameUid() 373 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_usageOtherUid_doesNotNotify() 381 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_usageOtherUid_doesNotNotify() 407 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_userAccess_usageSameUser_notifies() 415 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_userAccess_usageSameUser_notifies() 442 .addValues(TEST_IFACE, UID_ANOTHER_USER, SET_DEFAULT, TAG_NONE, METERED_NO, in testUpdateStats_userAccess_usageAnotherUser_doesNotNotify() 450 .addValues(TEST_IFACE, UID_ANOTHER_USER, SET_DEFAULT, TAG_NONE, METERED_NO, in testUpdateStats_userAccess_usageAnotherUser_doesNotNotify()
|
D | NetworkStatsCollectionTest.java | 22 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()
|
/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() 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/ |
D | NetworkStats.java | 68 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()
|
D | NetworkStatsManager.java | 302 NetworkStats.Bucket.TAG_NONE, NetworkStats.Bucket.STATE_ALL); in queryDetailsForUid() 309 NetworkStats.Bucket.TAG_NONE, NetworkStats.Bucket.STATE_ALL); in queryDetailsForUid()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/ |
D | NetworkCycleDataForUidLoaderTest.java | 20 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/ |
D | NetworkStatsBenchmark.java | 40 recycle.tag = NetworkStats.TAG_NONE; in setUp() 54 recycle.tag = NetworkStats.TAG_NONE; in setUp()
|
/frameworks/base/core/java/android/net/ |
D | NetworkStats.java | 77 public static final int TAG_NONE = 0; field in NetworkStats 185 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, 0L, 0L, 0L, 0L, 0L); in Entry() 189 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in Entry() 366 iface, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, 0L); in addIfaceValues() 689 entry.tag = TAG_NONE; in getTotal() 705 if (tag[i] != TAG_NONE && !includeTags) continue; in getTotal() 916 entry.tag = TAG_NONE; in groupedByIface() 924 if (tag[i] != TAG_NONE) continue; in groupedByIface() 947 entry.tag = TAG_NONE; in groupedByUid() 954 if (tag[i] != TAG_NONE) continue; in groupedByUid() [all …]
|
D | NetworkStatsHistory.java | 21 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/packages/SettingsLib/src/com/android/settingslib/net/ |
D | NetworkCycleDataForUidLoader.java | 20 import static android.net.NetworkStats.TAG_NONE; 103 mNetworkTemplate, start, end, uid, TAG_NONE, STATE_FOREGROUND);
|
D | ChartDataLoader.java | 21 import static android.net.NetworkStats.TAG_NONE; 139 template, uid, set, TAG_NONE, FIELD_RX_BYTES | FIELD_TX_BYTES); in collectHistoryForUid()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsFactory.java | 21 import static android.net.NetworkStats.TAG_NONE; 186 entry.tag = TAG_NONE; in readNetworkStatsSummaryDev() 247 entry.tag = TAG_NONE; in readNetworkStatsSummaryXt()
|
D | NetworkStatsCollection.java | 28 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()
|
D | NetworkStatsService.java | 40 import static android.net.NetworkStats.TAG_NONE; 657 if (tag == TAG_NONE) { in openSessionInternal() 671 if (tag == TAG_NONE) { in openSessionInternal() 733 stats.addValues(new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_ALL, TAG_NONE, in internalGetSummaryForNetwork() 750 UID_ALL, SET_ALL, TAG_NONE, fields, Long.MIN_VALUE, Long.MAX_VALUE, in internalGetHistoryForNetwork() 839 if (tag == TAG_NONE) { in incrementOperationCount() 848 mActiveIface, uid, set, TAG_NONE, 0L, 0L, 0L, 0L, operationCount); in incrementOperationCount()
|
D | NetworkStatsRecorder.java | 19 import static android.net.NetworkStats.TAG_NONE; 268 if ((entry.tag == TAG_NONE) != mOnlyTags) { in recordSnapshotLocked()
|
D | NetworkStatsObservers.java | 410 NetworkStats.SET_ALL, NetworkStats.TAG_NONE, in getTotalBytesForNetworkUid()
|
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
D | OffloadController.java | 21 import static android.net.NetworkStats.TAG_NONE; 271 entry.tag = TAG_NONE; in getTetherStats()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | BandwidthTest.java | 272 NetworkStats.TAG_NONE, rx, 0, tx, 0, 0); in fetchDataFromProc()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/ |
D | OffloadControllerTest.java | 22 import static android.net.NetworkStats.TAG_NONE; 393 assertEquals(TAG_NONE, entry.tag); in assertNetworkStats()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 38 import static android.net.NetworkStats.TAG_NONE; 1579 entry.tag = TAG_NONE; in getTetherStats()
|
/frameworks/base/services/core/java/com/android/server/stats/ |
D | StatsCompanionService.java | 805 entry.tag = NetworkStats.TAG_NONE; in rollupNetworkStatsByFGBG() 815 if (recycle.tag != NetworkStats.TAG_NONE) continue; in rollupNetworkStatsByFGBG()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCallTracker.java | 3439 NetworkStats.TAG_NONE, NetworkStats.METERED_YES, isRoaming, in updateVtDataUsage() 3462 NetworkStats.SET_FOREGROUND, NetworkStats.TAG_NONE, NetworkStats.METERED_YES, in updateVtDataUsage()
|