Lines Matching refs:statsEntry
49 auto statsEntry = appUidStatsMap.readValue(uid); in bpfGetUidStatsInternal() local
50 if (statsEntry.ok()) { in bpfGetUidStatsInternal()
51 stats->rxPackets = statsEntry.value().rxPackets; in bpfGetUidStatsInternal()
52 stats->txPackets = statsEntry.value().txPackets; in bpfGetUidStatsInternal()
53 stats->rxBytes = statsEntry.value().rxBytes; in bpfGetUidStatsInternal()
54 stats->txBytes = statsEntry.value().txBytes; in bpfGetUidStatsInternal()
56 return (statsEntry.ok() || statsEntry.error().code() == ENOENT) ? 0 in bpfGetUidStatsInternal()
57 : -statsEntry.error().code(); in bpfGetUidStatsInternal()
87 Result<StatsValue> statsEntry = ifaceStatsMap.readValue(key); in bpfGetIfaceStatsInternal() local
88 if (!statsEntry.ok()) { in bpfGetIfaceStatsInternal()
89 return statsEntry.error(); in bpfGetIfaceStatsInternal()
91 stats->rxPackets += statsEntry.value().rxPackets; in bpfGetIfaceStatsInternal()
92 stats->txPackets += statsEntry.value().txPackets; in bpfGetIfaceStatsInternal()
93 stats->rxBytes += statsEntry.value().rxBytes; in bpfGetIfaceStatsInternal()
94 stats->txBytes += statsEntry.value().txBytes; in bpfGetIfaceStatsInternal()
119 stats_line populateStatsEntry(const StatsKey& statsKey, const StatsValue& statsEntry, in populateStatsEntry() argument
126 newLine.rxPackets = statsEntry.rxPackets; in populateStatsEntry()
127 newLine.txPackets = statsEntry.txPackets; in populateStatsEntry()
128 newLine.rxBytes = statsEntry.rxBytes; in populateStatsEntry()
129 newLine.txBytes = statsEntry.txBytes; in populateStatsEntry()
159 Result<StatsValue> statsEntry = statsMap.readValue(key); in parseBpfNetworkStatsDetailInternal() local
160 if (!statsEntry.ok()) { in parseBpfNetworkStatsDetailInternal()
161 return base::ResultError(statsEntry.error().message(), statsEntry.error().code()); in parseBpfNetworkStatsDetailInternal()
163 lines->push_back(populateStatsEntry(key, statsEntry.value(), ifname)); in parseBpfNetworkStatsDetailInternal()