Lines Matching refs:pair
117 const std::map<int, std::pair<size_t, size_t>> StatsdStats::kAtomDimensionKeySizeLimitMap = {
143 int alertsCount, const std::list<std::pair<const int64_t, const int32_t>>& annotations, in noteConfigReceived()
708 for (auto& pair : mConfigStats) { in dumpStats() local
709 auto& configStats = pair.second; in dumpStats()
750 for (const auto& stats : pair.second->matcher_stats) { in dumpStats()
754 for (const auto& stats : pair.second->condition_stats) { in dumpStats()
759 for (const auto& stats : pair.second->condition_stats) { in dumpStats()
764 for (const auto& stats : pair.second->alert_stats) { in dumpStats()
778 for (const auto& pair : mNonPlatformPushedAtomStats) { in dumpStats() local
779 dprintf(out, "Atom %d->(total count)%d, (error count)%d\n", pair.first, pair.second, in dumpStats()
780 getPushedAtomErrors(pair.first)); in dumpStats()
784 for (const auto& pair : mPulledAtomStats) { in dumpStats() local
795 (int)pair.first, (long)pair.second.totalPull, (long)pair.second.totalPullFromCache, in dumpStats()
796 (long)pair.second.pullFailed, (long)pair.second.minPullIntervalSec, in dumpStats()
797 (long long)pair.second.avgPullTimeNs, (long long)pair.second.maxPullTimeNs, in dumpStats()
798 (long long)pair.second.avgPullDelayNs, (long long)pair.second.maxPullDelayNs, in dumpStats()
799 pair.second.dataError, pair.second.pullTimeout, pair.second.pullExceedMaxDelay, in dumpStats()
800 pair.second.pullUidProviderNotFound, pair.second.pullerNotFound, in dumpStats()
801 pair.second.registeredCount, pair.second.unregisteredCount, in dumpStats()
802 pair.second.atomErrorCount); in dumpStats()
803 if (pair.second.pullTimeoutMetadata.size() > 0) { in dumpStats()
806 for (const auto& stats : pair.second.pullTimeoutMetadata) { in dumpStats()
851 for (const auto& pair: mActivationBroadcastGuardrailStats) { in dumpStats() local
852 dprintf(out, "Uid %d: Times: ", pair.first); in dumpStats()
853 for (const auto& guardrailHitTime : pair.second) { in dumpStats()
928 for (const auto& pair : configStats.matcher_stats) { in addConfigStatsToProto() local
931 proto->write(FIELD_TYPE_INT64 | FIELD_ID_MATCHER_STATS_ID, (long long)pair.first); in addConfigStatsToProto()
932 proto->write(FIELD_TYPE_INT32 | FIELD_ID_MATCHER_STATS_COUNT, pair.second); in addConfigStatsToProto()
936 for (const auto& pair : configStats.condition_stats) { in addConfigStatsToProto() local
939 proto->write(FIELD_TYPE_INT64 | FIELD_ID_CONDITION_STATS_ID, (long long)pair.first); in addConfigStatsToProto()
940 proto->write(FIELD_TYPE_INT32 | FIELD_ID_CONDITION_STATS_COUNT, pair.second); in addConfigStatsToProto()
944 for (const auto& pair : configStats.metric_stats) { in addConfigStatsToProto() local
947 proto->write(FIELD_TYPE_INT64 | FIELD_ID_METRIC_STATS_ID, (long long)pair.first); in addConfigStatsToProto()
948 proto->write(FIELD_TYPE_INT32 | FIELD_ID_METRIC_STATS_COUNT, pair.second); in addConfigStatsToProto()
951 for (const auto& pair : configStats.metric_dimension_in_condition_stats) { in addConfigStatsToProto() local
954 proto->write(FIELD_TYPE_INT64 | FIELD_ID_METRIC_STATS_ID, (long long)pair.first); in addConfigStatsToProto()
955 proto->write(FIELD_TYPE_INT32 | FIELD_ID_METRIC_STATS_COUNT, pair.second); in addConfigStatsToProto()
959 for (const auto& pair : configStats.alert_stats) { in addConfigStatsToProto() local
962 proto->write(FIELD_TYPE_INT64 | FIELD_ID_ALERT_STATS_ID, (long long)pair.first); in addConfigStatsToProto()
963 proto->write(FIELD_TYPE_INT32 | FIELD_ID_ALERT_STATS_COUNT, pair.second); in addConfigStatsToProto()
981 for (auto& pair : mConfigStats) { in dumpStats() local
982 addConfigStatsToProto(*(pair.second), &proto); in dumpStats()
1000 for (const auto& pair : mNonPlatformPushedAtomStats) { in dumpStats() local
1003 proto.write(FIELD_TYPE_INT32 | FIELD_ID_ATOM_STATS_TAG, pair.first); in dumpStats()
1004 proto.write(FIELD_TYPE_INT32 | FIELD_ID_ATOM_STATS_COUNT, pair.second); in dumpStats()
1005 int errors = getPushedAtomErrors(pair.first); in dumpStats()
1012 for (const auto& pair : mPulledAtomStats) { in dumpStats() local
1013 android::os::statsd::writePullerStatsToStream(pair, &proto); in dumpStats()
1016 for (const auto& pair : mAtomMetricStats) { in dumpStats() local
1017 android::os::statsd::writeAtomMetricStatsToStream(pair, &proto); in dumpStats()
1068 for (const auto& pair: mActivationBroadcastGuardrailStats) { in dumpStats() local
1073 (int32_t) pair.first); in dumpStats()
1074 for (const auto& guardrailHitTime : pair.second) { in dumpStats()