/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | TestableNetworkStatsProviderCbBinder.kt | 32 val uidStats: NetworkStats constant in com.android.testutils.TestableNetworkStatsProviderCbBinder.CallbackType.NotifyStatsUpdated 43 override fun notifyStatsUpdated(token: Int, ifaceStats: NetworkStats, uidStats: NetworkStats) { in notifyStatsUpdated() 44 history.add(CallbackType.NotifyStatsUpdated(token, ifaceStats, uidStats)) in notifyStatsUpdated() 73 fun expectNotifyStatsUpdated(ifaceStats: NetworkStats, uidStats: NetworkStats) { in expectNotifyStatsUpdated() 80 assertNetworkStatsEquals(uidStats, event.uidStats) in expectNotifyStatsUpdated()
|
D | NetworkStatsProviderCbStubCompat.java | 29 public void notifyStatsUpdated(int token, NetworkStats ifaceStats, NetworkStats uidStats) in notifyStatsUpdated() argument
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | PerformanceProfiler.cpp | 291 UserPackageStats::UserPackageStats(MetricType metricType, const UidStats& uidStats) { in UserPackageStats() argument 292 const UidIoStats& ioStats = uidStats.ioStats; in UserPackageStats() 293 uid = uidStats.uid(); in UserPackageStats() 294 genericPackageName = uidStats.genericPackageName(); in UserPackageStats() 302 UserPackageStats::UserPackageStats(ProcStatType procStatType, const UidStats& uidStats, in UserPackageStats() argument 304 uid = uidStats.uid(); in UserPackageStats() 305 genericPackageName = uidStats.genericPackageName(); in UserPackageStats() 309 uidStats.cpuTimeMillis), in UserPackageStats() 311 uidStats.procStats.cpuCycles)}; in UserPackageStats() 314 cacheTopNProcessCpuStats(uidStats, topNProcessCount, &procCpuStatsView.topNProcesses); in UserPackageStats() [all …]
|
D | UidStatsCollector.cpp | 96 std::vector<UidStats> uidStats; in process() local 116 uidStats.emplace_back(std::move(curUidStats)); in process() 118 return uidStats; in process()
|
D | PerformanceProfiler.h | 121 UserPackageStats(MetricType metricType, const UidStats& uidStats); 122 UserPackageStats(ProcStatType procStatType, const UidStats& uidStats, int topNProcessCount, 152 ProcStatType procStatType, const UidStats& uidStats, int topNProcessCount, 155 const UidStats& uidStats, int topNProcessCount, 158 const UidStats& uidStats, int topNProcessCount, bool isSmapsRollupSupported,
|
D | IoOveruseMonitor.cpp | 282 auto uidStats = uidStatsCollectorSp->deltaStats(); in onPeriodicCollection() local 283 if (uidStats.empty()) { in onPeriodicCollection() 288 for (const auto& curUidStats : uidStats) { in onPeriodicCollection()
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | UidStatsCollectorTest.cpp | 57 std::string toString(const UidStats& uidStats) { in toString() argument 60 uidStats.packageInfo.toString().c_str(), uidStats.cpuTimeMillis, in toString() 61 uidStats.ioStats.toString().c_str(), uidStats.procStats.toString().c_str()); in toString() 64 std::string toString(const std::vector<UidStats>& uidStats) { in toString() argument 67 for (const auto& stats : uidStats) { in toString() 85 std::vector<Matcher<const UidStats&>> UidStatsMatchers(const std::vector<UidStats>& uidStats) { in UidStatsMatchers() argument 87 for (const auto& stats : uidStats) { in UidStatsMatchers()
|
D | PerformanceProfilerTest.cpp | 407 uidStats{{.packageInfo = constructPackageInfo("mount", 1009), in sampleUidStats() local 641 return std::make_tuple(uidStats, userPackageSummaryStats); in sampleUidStats() 849 std::vector<UidStats> uidStats = {}; member 1266 auto [uidStats, userPackageSummaryStats] = in getSampleStatsInfo() 1278 StatsInfo statsInfo(uidStats, userPackageSummaryStats, procStatInfo, systemSummaryStats, in getSampleStatsInfo() 1295 EXPECT_CALL(*mMockUidStatsCollector, deltaStats()).WillOnce(Return(statsInfo.uidStats)); in setupFirstCollection() 1318 EXPECT_CALL(*mMockUidStatsCollector, deltaStats()).WillOnce(Return(statsInfo.uidStats)); in setupNextCollection() 1352 .WillRepeatedly(Return(statsInfo.uidStats)); in setupMultipleCollections() 1967 EXPECT_CALL(*mMockUidStatsCollector, deltaStats()).WillRepeatedly(Return(statsInfo.uidStats)); in TEST_F()
|
D | IoOveruseMonitorTest.cpp | 259 std::vector<UidStats> uidStats; in constructUidStats() local 267 uidStats.push_back(UidStats{.packageInfo = packageInfo, in constructUidStats() 274 return uidStats; in constructUidStats()
|
/packages/modules/Connectivity/framework-t/src/android/net/netstats/provider/ |
D | NetworkStatsProvider.java | 129 @NonNull NetworkStats uidStats) { in notifyStatsUpdated() argument 131 getProviderCallbackBinderOrThrow().notifyStatsUpdated(token, ifaceStats, uidStats); in notifyStatsUpdated()
|
D | INetworkStatsProviderCallback.aidl | 27 void notifyStatsUpdated(int token, in NetworkStats ifaceStats, in NetworkStats uidStats); in notifyStatsUpdated() argument
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsTest.java | 347 final NetworkStats uidStats = new NetworkStats(TEST_START, 3); in testGroupedByIfaceEmpty() local 348 final NetworkStats grouped = uidStats.groupedByIface(); in testGroupedByIfaceEmpty() 350 assertEquals(0, uidStats.size()); in testGroupedByIfaceEmpty() 357 final NetworkStats uidStats = new NetworkStats(TEST_START, 3) in testGroupedByIfaceAll() local 364 final NetworkStats grouped = uidStats.groupedByIface(); in testGroupedByIfaceAll() 366 assertEquals(3, uidStats.size()); in testGroupedByIfaceAll() 376 final NetworkStats uidStats = new NetworkStats(TEST_START, 7) in testGroupedByIface() local 392 final NetworkStats grouped = uidStats.groupedByIface(); in testGroupedByIface() 394 assertEquals(7, uidStats.size()); in testGroupedByIface()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | OffloadControllerTest.java | 458 final NetworkStats uidStats = mTetherStatsProvider.getTetherStats(STATS_PER_UID); in testGetForwardedStats() local 468 assertNetworkStatsEquals(expectedUidStats, uidStats); in testGetForwardedStats()
|
/packages/modules/Connectivity/service-t/src/com/android/server/net/ |
D | NetworkStatsService.java | 3453 @Nullable NetworkStats uidStats) { 3458 if (uidStats != null) mUidStats.combineAllValues(uidStats);
|