Home
last modified time | relevance | path

Searched refs:SET_DEFAULT (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/tests/net/java/android/net/
DNetworkStatsTest.java25 import static android.net.NetworkStats.SET_DEFAULT;
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/tests/net/java/com/android/internal/net/
DNetworkStatsFactoryTest.java22 import static android.net.NetworkStats.SET_DEFAULT;
80 assertStatsEntry(stats, "wlan0", 0, SET_DEFAULT, 0x0, 18621L, 2898L); in testNetworkStatsDetail()
81 assertStatsEntry(stats, "wlan0", 10011, SET_DEFAULT, 0x0, 35777L, 5718L); in testNetworkStatsDetail()
82 assertStatsEntry(stats, "wlan0", 10021, SET_DEFAULT, 0x7fffff01, 562386L, 49228L); in testNetworkStatsDetail()
83 assertStatsEntry(stats, "rmnet1", 10021, SET_DEFAULT, 0x30100000, 219110L, 227423L); in testNetworkStatsDetail()
84 assertStatsEntry(stats, "rmnet2", 10001, SET_DEFAULT, 0x0, 1125899906842624L, 984L); in testNetworkStatsDetail()
104 assertStatsEntry(stats, "rmnet1", 10021, SET_DEFAULT, 0x30100000, 219110L, 578L, 227423L, in testNetworkStatsWithSet()
140 assertStatsEntry(stats, "v4-wlan0", 10060, SET_DEFAULT, 0x0, 46860L, 4920L); in testDoubleClatAccounting()
141 assertStatsEntry(stats, "wlan0", 0, SET_DEFAULT, 0x0, 0L, 0L); in testDoubleClatAccounting()
146 assertStatsEntry(stats, "v4-wlan0", 0, SET_DEFAULT, 0x0, 356L, 276L); in testDoubleClatAccounting()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsServiceTest.java32 import static android.net.NetworkStats.SET_DEFAULT;
296 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 512L, 4L, 256L, 2L, 0L) in testStatsRebootPersist()
297 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, 0xFAAD, 256L, 2L, 128L, 1L, 0L) in testStatsRebootPersist()
300 .addValues(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 128L, 1L, 128L, 1L, 0L)); in testStatsRebootPersist()
311 assertUidTotal(sTemplateWifi, UID_RED, SET_DEFAULT, METERED_NO, ROAMING_NO, 512L, 4L, 256L, in testStatsRebootPersist()
336 assertUidTotal(sTemplateWifi, UID_RED, SET_DEFAULT, METERED_NO, ROAMING_NO, 512L, 4L, 256L, in testStatsRebootPersist()
416 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L) in testUidStatsAcrossNetworks()
417 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, 0xF00D, 512L, 4L, 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()
[all …]
DNetworkStatsCollectionTest.java20 import static android.net.NetworkStats.SET_DEFAULT;
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()
201 assertNotNull(collection.getHistory(buildTemplateMobileAll(TEST_IMSI), myUid, SET_DEFAULT, in testAccessLevels() local
205 SET_DEFAULT, TAG_NONE, 0, NetworkStatsAccess.Level.DEFAULT); in testAccessLevels() local
DNetworkStatsObserversTest.java27 import static android.net.NetworkStats.SET_DEFAULT;
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/packages/SettingsLib/src/com/android/settingslib/net/
DChartDataLoader.java19 import static android.net.NetworkStats.SET_DEFAULT;
97 template, uid, SET_DEFAULT, data.detailDefault); in loadInBackground()
/frameworks/base/core/java/android/net/
DNetworkStats.java57 public static final int SET_DEFAULT = 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()
397 iface, uid, SET_DEFAULT, tag, rxBytes, rxPackets, txBytes, in combineValues()
818 case SET_DEFAULT: in setToString()
838 case SET_DEFAULT: in setToCheckinString()
1085 int idxVpnBackground = findIndex(underlyingIface, tunUid, SET_DEFAULT, TAG_NONE, in deductTrafficFromVpnApp()
DNetworkStatsHistory.java20 import static android.net.NetworkStats.SET_DEFAULT;
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/services/core/java/com/android/server/net/
DNetworkStatsCollection.java25 import static android.net.NetworkStats.SET_DEFAULT;
478 : SET_DEFAULT; in readLegacyUid()
518 key.ident, UID_REMOVED, SET_DEFAULT, TAG_NONE); in removeUids()
DNetworkStatsService.java32 import static android.net.NetworkStats.SET_DEFAULT;
706 final int set = mActiveUidCounterSet.get(uid, SET_DEFAULT); in incrementOperationCount()
719 final int set = uidForeground ? SET_FOREGROUND : SET_DEFAULT; in setUidForeground()
720 final int oldSet = mActiveUidCounterSet.get(uid, SET_DEFAULT); in setUidForeground()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DBandwidthTest.java264 stats.addValues(NetworkStats.IFACE_ALL, uid, NetworkStats.SET_DEFAULT, in fetchDataFromProc()
/frameworks/base/core/java/android/app/usage/
DNetworkStats.java238 case android.net.NetworkStats.SET_DEFAULT : return STATE_DEFAULT; in convertState()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java35 import static android.net.NetworkStats.SET_DEFAULT;
1804 entry.set = SET_DEFAULT; in getNetworkStatsTethering()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java9513 if (entry.set == NetworkStats.SET_DEFAULT) { // Background transfers in updateWifiState()
9532 if (entry.set == NetworkStats.SET_DEFAULT) { // Background transfers in updateWifiState()
9776 if (entry.set == NetworkStats.SET_DEFAULT) { // Background transfers in updateMobileRadioState()