/aosp12/packages/modules/DnsResolver/ |
H A D | DnsStats.cpp | 177 ServerStatsMap& statsMap = mStats[protocol]; in setServers() local 179 statsMap.try_emplace(server, StatsRecords(server, kLogSize)); in setServers() 183 const auto cleanup = [&](ServerStatsMap* statsMap) { in setServers() argument 186 if (statsMap->find(server) != statsMap->end()) { in setServers() 187 tmp.insert(statsMap->extract(server)); in setServers() 190 statsMap->swap(tmp); in setServers() 193 cleanup(&statsMap); in setServers() 268 const auto dumpStatsMap = [&](ServerStatsMap& statsMap) { in dump() argument 270 if (statsMap.size() == 0) { in dump() 274 for (const auto& [_, statsRecords] : statsMap) { in dump()
|
/aosp12/system/netd/libnetdbpf/ |
H A D | BpfNetworkStats.cpp | 135 int limitUid, const BpfMap<StatsKey, StatsValue>& statsMap, in parseBpfNetworkStatsDetailInternal() argument 141 const BpfMap<StatsKey, StatsValue>& statsMap) -> Result<void> { in parseBpfNetworkStatsDetailInternal() argument 143 if (getIfaceNameFromMap(ifaceMap, statsMap, key.ifaceIndex, ifname, key, in parseBpfNetworkStatsDetailInternal() 159 Result<StatsValue> statsEntry = statsMap.readValue(key); in parseBpfNetworkStatsDetailInternal() 166 Result<void> res = statsMap.iterate(processDetailUidStats); in parseBpfNetworkStatsDetailInternal() 209 BpfMap<StatsKey, StatsValue> statsMap(statsMapPath); in parseBpfNetworkStatsDetail() local 210 if (!statsMap.isValid()) { in parseBpfNetworkStatsDetail() 225 Result<void> res = statsMap.clear(); in parseBpfNetworkStatsDetail() 235 const BpfMap<uint32_t, StatsValue>& statsMap, in parseBpfNetworkStatsDevInternal() argument 238 const auto processDetailIfaceStats = [lines, &unknownIfaceBytesTotal, &ifaceMap, &statsMap]( in parseBpfNetworkStatsDevInternal() [all …]
|
/aosp12/system/netd/libnetdbpf/include/netdbpf/ |
H A D | BpfNetworkStats.h | 68 int limitUid, const BpfMap<StatsKey, StatsValue>& statsMap, 75 const BpfMap<Key, StatsValue>& statsMap, uint32_t ifaceIndex, char* ifname, in getIfaceNameFromMap() argument 79 maybeLogUnknownIface(ifaceIndex, statsMap, curKey, unknownIfaceBytesTotal); in getIfaceNameFromMap() 87 void maybeLogUnknownIface(int ifaceIndex, const BpfMap<Key, StatsValue>& statsMap, in maybeLogUnknownIface() argument 95 auto statsEntry = statsMap.readValue(curKey); in maybeLogUnknownIface() 111 const BpfMap<uint32_t, StatsValue>& statsMap,
|
/aosp12/system/extras/boottime_tools/bootio/ |
H A D | bootio_collector.cpp | 237 std::map<int, Stats> statsMap; in PrintPids() local 241 statsMap[it->first] = emptyStat; in PrintPids() 272 Stats& stats = statsMap[newerSample->timestamp()]; in PrintPids() 310 for (auto it = statsMap.begin(); it != statsMap.end(); it++) { in PrintPids()
|
/aosp12/frameworks/av/services/camera/libcameraservice/utils/ |
H A D | SessionStatsBuilder.cpp | 51 std::map<int, StreamStats> *statsMap) { in buildAndReset() argument 56 *statsMap = mStatsMap; in buildAndReset()
|
H A D | SessionStatsBuilder.h | 67 /*out*/std::map<int, StreamStats> *statsMap);
|
/aosp12/system/netd/server/ |
H A D | NetdNativeService.cpp | 504 std::map<std::string, TetherController::TetherStats> statsMap; in setTetherStatsParcelVecByInterface() local 506 auto iter = statsMap.find(stats.extIface); in setTetherStatsParcelVecByInterface() 507 if (iter != statsMap.end()) { in setTetherStatsParcelVecByInterface() 510 statsMap.insert( in setTetherStatsParcelVecByInterface() 514 for (auto iter = statsMap.begin(); iter != statsMap.end(); iter++) { in setTetherStatsParcelVecByInterface()
|
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/ |
H A D | WifiMetrics.java | 6273 WifiLinkLayerStats.ChannelStats statsMap = 6275 if (statsMap != null) { 6276 wifiUsabilityStatsEntry.totalRadioOnFreqTimeMs = statsMap.radioOnTimeMs; 6277 wifiUsabilityStatsEntry.totalCcaBusyFreqTimeMs = statsMap.ccaBusyTimeMs;
|