/frameworks/base/core/tests/coretests/src/com/android/internal/net/ |
D | NetworkStatsFactoryTest.java | 23 import static android.net.NetworkStats.UID_ALL; 112 assertStatsEntry(stats, "rmnet0", UID_ALL, SET_ALL, TAG_NONE, 2112L, 24L, 700L, 10L); in testNetworkStatsSingle() 113 assertStatsEntry(stats, "test1", UID_ALL, SET_ALL, TAG_NONE, 6L, 8L, 10L, 12L); in testNetworkStatsSingle() 114 assertStatsEntry(stats, "test2", UID_ALL, SET_ALL, TAG_NONE, 1L, 2L, 3L, 4L); in testNetworkStatsSingle() 123 assertStatsEntry(stats, "rmnet0", UID_ALL, SET_ALL, TAG_NONE, 6824L, 16L, 5692L, 10L); in testNetworkStatsXt() 124 … assertStatsEntry(stats, "rmnet1", UID_ALL, SET_ALL, TAG_NONE, 11153922L, 8051L, 190226L, 2468L); in testNetworkStatsXt() 125 assertStatsEntry(stats, "rmnet2", UID_ALL, SET_ALL, TAG_NONE, 4968L, 35L, 3081L, 39L); in testNetworkStatsXt()
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkStatsTest.java | 24 import static android.net.NetworkStats.UID_ALL; 170 .addValues(TEST_IFACE, UID_ALL, SET_DEFAULT, TAG_NONE, 1024L, 0L, 0L, 0L, 0) in testSubtractMissingRows() 171 .addValues(TEST_IFACE2, UID_ALL, SET_DEFAULT, TAG_NONE, 2048L, 0L, 0L, 0L, 0); in testSubtractMissingRows() 174 .addValues(TEST_IFACE2, UID_ALL, SET_DEFAULT, TAG_NONE, 2049L, 2L, 3L, 4L, 0); in testSubtractMissingRows() 180 assertValues(result, 0, TEST_IFACE2, UID_ALL, SET_DEFAULT, TAG_NONE, 1L, 2L, 3L, 4L, 0); in testSubtractMissingRows() 186 .addValues(TEST_IFACE, UID_ALL, SET_DEFAULT, TAG_NONE, 128L, 0L, 0L, 0L, 0L) in testTotalBytes() 187 .addValues(TEST_IFACE2, UID_ALL, SET_DEFAULT, TAG_NONE, 256L, 0L, 0L, 0L, 0L); in testTotalBytes() 223 assertValues(grouped, 0, IFACE_ALL, UID_ALL, SET_ALL, TAG_NONE, 256L, 16L, 0L, 4L, 0L); in testGroupedByIfaceAll() 240 assertValues(grouped, 0, TEST_IFACE, UID_ALL, SET_ALL, TAG_NONE, 256L, 16L, 0L, 2L, 0L); in testGroupedByIface() 241 assertValues(grouped, 1, TEST_IFACE2, UID_ALL, SET_ALL, TAG_NONE, 1024L, 64L, 0L, 0L, 0L); in testGroupedByIface() [all …]
|
/frameworks/base/core/tests/benchmarks/src/com/android/internal/net/ |
D | NetworkStatsFactoryBenchmark.java | 43 NetworkStatsFactory.javaReadNetworkStatsDetail(mStats, NetworkStats.UID_ALL); in timeReadNetworkStatsDetailJava() 51 stats, mStats.getAbsolutePath(), NetworkStats.UID_ALL); in timeReadNetworkStatsDetailNative()
|
/frameworks/base/core/java/com/android/internal/net/ |
D | NetworkStatsFactory.java | 22 import static android.net.NetworkStats.UID_ALL; 104 entry.uid = UID_ALL; in readNetworkStatsSummaryDev() 162 entry.uid = UID_ALL; in readNetworkStatsSummaryXt() 186 return readNetworkStatsDetail(UID_ALL, null, TAG_ALL, null); in readNetworkStatsDetail() 301 && (limitUid == UID_ALL || limitUid == entry.uid) in javaReadNetworkStatsDetail()
|
/frameworks/base/core/java/android/net/ |
D | NetworkStats.java | 48 public static final int UID_ALL = -1; field in NetworkStats 91 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, 0L, 0L, 0L, 0L, 0L); in Entry() 95 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in Entry() 232 iface, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, 0L); in addIfaceValues() 458 return getTotal(recycle, null, UID_ALL, false); in getTotal() 474 return getTotal(recycle, limitIface, UID_ALL, false); in getTotal() 478 return getTotal(recycle, null, UID_ALL, true); in getTotalIncludingTags() 503 final boolean matchesUid = (limitUid == UID_ALL) || (limitUid == uid[i]); in getTotal() 635 entry.uid = UID_ALL; in groupedByIface()
|
D | NetworkStatsHistory.java | 22 import static android.net.NetworkStats.UID_ALL; 289 IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, 0L, txBytes, 0L, 0L)); in recordData() 363 IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, 0L, 0L, 0L, 0L, 0L); in recordHistory() 552 IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, 0L, 0L, 0L, 0L, 0L); in generateRandom()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkStatsCollectionTest.java | 21 import static android.net.NetworkStats.UID_ALL; 146 collection.recordData(null, UID_ALL, SET_DEFAULT, TAG_NONE, 30 * MINUTE_IN_MILLIS, in testStartEndAtomicBuckets()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsCollection.java | 23 import static android.net.NetworkStats.UID_ALL; 355 final Key key = new Key(ident, UID_ALL, SET_ALL, TAG_NONE); in readLegacyNetwork()
|
D | NetworkStatsService.java | 35 import static android.net.NetworkStats.UID_ALL; 518 return mXtStatsCached.getHistory(template, UID_ALL, SET_ALL, TAG_NONE, fields); in internalGetHistoryForNetwork() 1151 final NetworkStats uidSnapshot = mNetworkManager.getNetworkStatsUidDetail(UID_ALL); in getNetworkStatsUidDetail()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkStatsServiceTest.java | 30 import static android.net.NetworkStats.UID_ALL; 853 assertValues(stats, IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, in assertNetworkTotal() 919 expect(mNetManager.getNetworkStatsUidDetail(eq(UID_ALL))).andReturn(detail).atLeastOnce(); in expectNetworkStatsUidDetail()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 25 import static android.net.NetworkStats.UID_ALL; 1503 return mStatsFactory.readNetworkStatsDetail(UID_ALL, null, TAG_ALL, null); in getNetworkStatsDetail()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 19 import static android.net.NetworkStats.UID_ALL; 7151 snapshot = mNetworkStatsFactory.readNetworkStatsDetail(UID_ALL, in updateNetworkActivityLocked() 7215 snapshot = mNetworkStatsFactory.readNetworkStatsDetail(UID_ALL, in updateNetworkActivityLocked()
|