Home
last modified time | relevance | path

Searched refs:uidStats (Results 1 – 10 of 10) sorted by relevance

/frameworks/libs/net/common/devicetests/com/android/testutils/
DTestableNetworkStatsProviderCbBinder.kt33 val uidStats: NetworkStats constant in com.android.testutils.TestableNetworkStatsProviderCbBinder.CallbackType.NotifyStatsUpdated
42 override fun notifyStatsUpdated(token: Int, ifaceStats: NetworkStats, uidStats: NetworkStats) { in notifyStatsUpdated()
43 history.add(CallbackType.NotifyStatsUpdated(token, ifaceStats, uidStats)) in notifyStatsUpdated()
63 fun expectNotifyStatsUpdated(ifaceStats: NetworkStats, uidStats: NetworkStats) { in expectNotifyStatsUpdated()
70 assertNetworkStatsEquals(uidStats, event.uidStats) in expectNotifyStatsUpdated()
/frameworks/base/core/java/android/net/netstats/provider/
DNetworkStatsProvider.java128 @NonNull NetworkStats uidStats) { in notifyStatsUpdated() argument
130 getProviderCallbackBinderOrThrow().notifyStatsUpdated(token, ifaceStats, uidStats); in notifyStatsUpdated()
DINetworkStatsProviderCallback.aidl27 void notifyStatsUpdated(int token, in NetworkStats ifaceStats, in NetworkStats uidStats); in notifyStatsUpdated() argument
/frameworks/base/tests/net/java/android/net/
DNetworkStatsTest.java336 final NetworkStats uidStats = new NetworkStats(TEST_START, 3); in testGroupedByIfaceEmpty() local
337 final NetworkStats grouped = uidStats.groupedByIface(); in testGroupedByIfaceEmpty()
339 assertEquals(0, uidStats.size()); in testGroupedByIfaceEmpty()
345 final NetworkStats uidStats = new NetworkStats(TEST_START, 3) in testGroupedByIfaceAll() local
352 final NetworkStats grouped = uidStats.groupedByIface(); in testGroupedByIfaceAll()
354 assertEquals(3, uidStats.size()); in testGroupedByIfaceAll()
363 final NetworkStats uidStats = new NetworkStats(TEST_START, 7) in testGroupedByIface() local
379 final NetworkStats grouped = uidStats.groupedByIface(); in testGroupedByIface()
381 assertEquals(7, uidStats.size()); in testGroupedByIface()
/frameworks/base/services/core/java/com/android/server/
DAlarmManagerService.java2461 ArrayMap<String, BroadcastStats> uidStats = mBroadcastStats.valueAt(iu); in dumpImpl() local
2462 for (int ip=0; ip<uidStats.size(); ip++) { in dumpImpl()
2463 BroadcastStats bs = uidStats.valueAt(ip); in dumpImpl()
2505 ArrayMap<String, BroadcastStats> uidStats = mBroadcastStats.valueAt(iu); in dumpImpl() local
2506 for (int ip=0; ip<uidStats.size(); ip++) { in dumpImpl()
2507 BroadcastStats bs = uidStats.valueAt(ip); in dumpImpl()
2736 ArrayMap<String, BroadcastStats> uidStats = mBroadcastStats.valueAt(iu); in dumpProto() local
2737 for (int ip = 0; ip < uidStats.size(); ++ip) { in dumpProto()
2738 BroadcastStats bs = uidStats.valueAt(ip); in dumpProto()
2773 ArrayMap<String, BroadcastStats> uidStats = mBroadcastStats.valueAt(iu); in dumpProto() local
[all …]
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java817 NetworkStats.Entry uidStats = new NetworkStats.Entry(
835 .insertEntry(uidStats));
857 assertEquals(uidStats, stats.getValues(0, null));
1015 final NetworkStats uidStats = new NetworkStats(getElapsedRealtime(), 1)
1023 expectNetworkStatsUidDetail(uidStats, tetherStats);
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHelper.java573 final SparseArray<? extends Uid> uidStats = mStats.getUidStats(); in processAppUsage() local
574 final int NU = uidStats.size(); in processAppUsage()
576 final Uid u = uidStats.valueAt(iu); in processAppUsage()
/frameworks/base/core/java/android/os/
DBatteryStats.java3759 final SparseArray<? extends Uid> uidStats = getUidStats(); in dumpCheckinLocked() local
3760 final int NU = uidStats.size(); in dumpCheckinLocked()
3781 final Uid u = uidStats.valueAt(iu); in dumpCheckinLocked()
4059 final int uid = uidStats.keyAt(iu); in dumpCheckinLocked()
4063 final Uid u = uidStats.valueAt(iu); in dumpCheckinLocked()
4517 final SparseArray<? extends Uid> uidStats = getUidStats(); in dumpLocked() local
4518 final int NU = uidStats.size(); in dumpLocked()
4790 final Uid u = uidStats.valueAt(iu); in dumpLocked()
5435 final int uid = uidStats.keyAt(iu); in dumpLocked()
5440 final Uid u = uidStats.valueAt(iu); in dumpLocked()
[all …]
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadControllerTest.java462 final NetworkStats uidStats = mTetherStatsProvider.getTetherStats(STATS_PER_UID); in testGetForwardedStats() local
472 assertNetworkStatsEquals(expectedUidStats, uidStats); in testGetForwardedStats()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java2066 @Nullable NetworkStats uidStats) {
2071 if (uidStats != null) mUidStats.combineAllValues(uidStats);