Home
last modified time | relevance | path

Searched refs:UID_ALL (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsFactoryTest.java26 import static android.net.NetworkStats.UID_ALL;
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()
DNetworkStatsCollectionTest.java23 import static android.net.NetworkStats.UID_ALL;
202 collection.recordData(null, UID_ALL, SET_DEFAULT, TAG_NONE, 30 * MINUTE_IN_MILLIS, in testStartEndAtomicBuckets()
472 large.recordData(ident, UID_ALL, SET_ALL, TAG_NONE, TIME_A, TIME_B, in testAugmentPlanGigantic()
547 return collection.getHistory(buildTemplateMobileAll(TEST_IMSI), augmentPlan, UID_ALL, in getHistory()
DNetworkStatsServiceTest.java42 import static android.net.NetworkStats.UID_ALL;
726 when(mNetManager.getNetworkStatsUidDetail(eq(UID_ALL), any())) in testDetailedUidStats_Filtered()
736 verify(mNetManager, times(1)).getNetworkStatsUidDetail(eq(UID_ALL), argThat(ifaces -> in testDetailedUidStats_Filtered()
1158 assertValues(stats, IFACE_ALL, UID_ALL, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in assertNetworkTotal()
1226 when(mNetManager.getNetworkStatsUidDetail(UID_ALL, INTERFACES_ALL)).thenReturn(detail); in expectNetworkStatsUidDetail()
/frameworks/base/tests/benchmarks/src/com/android/server/net/
DNetworkStatsFactoryBenchmark.java43 NetworkStatsFactory.javaReadNetworkStatsDetail(mStats, NetworkStats.UID_ALL, in timeReadNetworkStatsDetailJava()
54 stats, mStats.getAbsolutePath(), NetworkStats.UID_ALL, in timeReadNetworkStatsDetailNative()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsFactory.java22 import static android.net.NetworkStats.UID_ALL;
184 entry.uid = UID_ALL; in readNetworkStatsSummaryDev()
245 entry.uid = UID_ALL; in readNetworkStatsSummaryXt()
267 return readNetworkStatsDetail(UID_ALL, null, TAG_ALL, null); in readNetworkStatsDetail()
315 if (nativeReadNetworkStatsDetail(stats, mStatsXtUid.getAbsolutePath(), UID_ALL, in readNetworkStatsDetailInternal()
382 && (limitUid == UID_ALL || limitUid == entry.uid) in javaReadNetworkStatsDetail()
DNetworkStatsAccess.java20 import static android.net.NetworkStats.UID_ALL;
156 || uid == UID_TETHERING || uid == UID_ALL in isAccessibleToUser()
DNetworkStatsService.java41 import static android.net.NetworkStats.UID_ALL;
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()
1680 final NetworkStats uidSnapshot = mNetworkManager.getNetworkStatsUidDetail(UID_ALL, in getNetworkStatsUidDetail()
1685 tetherSnapshot.filter(UID_ALL, ifaces, TAG_ALL); in getNetworkStatsUidDetail()
1696 vtStats.filter(UID_ALL, ifaces, TAG_ALL); in getNetworkStatsUidDetail()
DNetworkStatsCollection.java29 import static android.net.NetworkStats.UID_ALL;
551 final Key key = new Key(ident, UID_ALL, SET_ALL, TAG_NONE); in readLegacyNetwork()
/frameworks/base/tests/net/java/android/net/
DNetworkStatsTest.java37 import static android.net.NetworkStats.UID_ALL;
278 .addValues(TEST_IFACE, UID_ALL, SET_DEFAULT, TAG_NONE, 1024L, 0L, 0L, 0L, 0) in testSubtractMissingRows()
279 .addValues(TEST_IFACE2, UID_ALL, SET_DEFAULT, TAG_NONE, 2048L, 0L, 0L, 0L, 0); in testSubtractMissingRows()
282 .addValues(TEST_IFACE2, UID_ALL, SET_DEFAULT, TAG_NONE, 2049L, 2L, 3L, 4L, 0); in testSubtractMissingRows()
288 assertValues(result, 0, TEST_IFACE2, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testSubtractMissingRows()
296 .addValues(TEST_IFACE, UID_ALL, SET_DEFAULT, TAG_NONE, 128L, 0L, 0L, 0L, 0L) in testTotalBytes()
297 .addValues(TEST_IFACE2, UID_ALL, SET_DEFAULT, TAG_NONE, 256L, 0L, 0L, 0L, 0L); in testTotalBytes()
357 assertValues(grouped, 0, IFACE_ALL, UID_ALL, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in testGroupedByIfaceAll()
384 assertValues(grouped, 0, TEST_IFACE, UID_ALL, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in testGroupedByIface()
386 assertValues(grouped, 1, TEST_IFACE2, UID_ALL, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in testGroupedByIface()
[all …]
/frameworks/base/core/java/android/net/
DNetworkStats.java55 public static final int UID_ALL = -1; 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()
650 return getTotal(recycle, null, UID_ALL, false); in getTotal()
667 return getTotal(recycle, limitIface, UID_ALL, false); in getTotal()
672 return getTotal(recycle, null, UID_ALL, true); in getTotalIncludingTags()
700 final boolean matchesUid = (limitUid == UID_ALL) || (limitUid == uid[i]); in getTotal()
914 entry.uid = UID_ALL; in groupedByIface()
993 if (limitUid == UID_ALL && limitTag == TAG_ALL && limitIfaces == INTERFACES_ALL) { in filter()
[all …]
DNetworkStatsHistory.java22 import static android.net.NetworkStats.UID_ALL;
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/core/java/android/app/usage/
DNetworkStats.java161 public static final int UID_ALL = android.net.NetworkStats.UID_ALL; field in NetworkStats.Bucket
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DOffloadController.java22 import static android.net.NetworkStats.UID_ALL;
272 entry.uid = (how == STATS_PER_UID) ? UID_TETHERING : UID_ALL; in getTetherStats()
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DOffloadControllerTest.java23 import static android.net.NetworkStats.UID_ALL;
460 assertEquals(UID_ALL, stats.getValues(i, entry).uid); in testGetForwardedStats()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneCallTracker.java376 private final AtomicInteger mDefaultDialerUid = new AtomicInteger(NetworkStats.UID_ALL);
609 return NetworkStats.UID_ALL; in getPackageUid()
614 int uid = NetworkStats.UID_ALL; in getPackageUid()
3451 if (mDefaultDialerUid.get() == NetworkStats.UID_ALL) { in updateVtDataUsage()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java39 import static android.net.NetworkStats.UID_ALL;
1239 return mStatsFactory.readNetworkStatsDetail(UID_ALL, null, TAG_ALL, null); in getNetworkStatsDetail()
/frameworks/base/api/
Dcurrent.txt7686 field public static final int UID_ALL = -1; // 0xffffffff
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt47998 Landroid/net/NetworkStats;->UID_ALL:I