Home
last modified time | relevance | path

Searched refs:GetUid (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/cmds/statsd/src/config/
DConfigManager.cpp77 auto uidIt = mConfigs.find(key.GetUid()); in UpdateConfig()
83 ALOGE("ConfigManager: uid %d has exceeded the config count limit", key.GetUid()); in UpdateConfig()
103 mConfigs[key.GetUid()].insert(key); in UpdateConfig()
143 auto uid = key.GetUid(); in RemoveConfig()
179 string suffix = StringPrintf("%d_%lld", key.GetUid(), (long long)key.GetId()); in remove_saved_configs()
294 fprintf(out, " %6d %lld\n", it->GetUid(), (long long)it->GetId()); in Dump()
312 key.GetUid(), (long long)key.GetId()); in update_saved_configs_locked()
DConfigKey.h40 inline int GetUid() const { in GetUid() function
85 return (7 * key.GetUid()) ^ ((hash<long long>()(key.GetId())));
/frameworks/base/cmds/statsd/src/metrics/
DMetricsManager.cpp281 if (mAllowedLogSources.find(event.GetUid()) == mAllowedLogSources.end()) { in checkLogCredentials()
282 VLOG("log source %d not on the whitelist", event.GetUid()); in checkLogCredentials()
300 int32_t loggerUid = event.GetUid(); in eventSanityCheck()
327 int32_t loggerUid = event.GetUid(); in eventSanityCheck()
548 proto->write(FIELD_TYPE_INT32 | FIELD_ID_ACTIVE_CONFIG_UID, mConfigKey.GetUid()); in writeActiveConfigToProtoOutputStream()
DCountMetricProducer.cpp75 TimeUnitToBucketSizeInMillisGuardrailed(key.GetUid(), metric.bucket()) * 1000000; in CountMetricProducer()
DGaugeMetricProducer.cpp100 bucketSizeMills = TimeUnitToBucketSizeInMillisGuardrailed(key.GetUid(), metric.bucket()); in GaugeMetricProducer()
DDurationMetricProducer.cpp82 TimeUnitToBucketSizeInMillisGuardrailed(key.GetUid(), metric.bucket()) * 1000000; in DurationMetricProducer()
DValueMetricProducer.cpp111 bucketSizeMills = TimeUnitToBucketSizeInMillisGuardrailed(key.GetUid(), metric.bucket()); in ValueMetricProducer()
/frameworks/base/cmds/statsd/src/
DStatsLogProcessor.cpp237 int uid = pair.first.GetUid(); in OnLogEvent()
297 if (pair.first.GetUid() == uid && pair.second->isActive()) { in GetActiveConfigsLocked()
364 proto->write(FIELD_TYPE_INT32 | FIELD_ID_UID, key.GetUid()); in onDumpReport()
475 key.GetUid(), key.GetId()); in onConfigMetricsReportLocked()
523 int uid = key.GetUid(); in OnConfigRemoved()
526 if (it.first.GetUid() == uid) { in OnConfigRemoved()
597 StorageManager::getDataFileName((long)getWallClockSec(), key.GetUid(), key.GetId()); in WriteDataToDiskLocked()
/frameworks/base/cmds/statsd/src/subscriber/
DIncidentdReporter.cpp68 headerProto.write(FIELD_TYPE_INT32 | FIELD_ID_CONFIG_KEY_UID, configKey.GetUid()); in getProtoData()
141 configKey.GetUid(), (long long)configKey.GetId()); in GenerateIncidentReport()
DSubscriberReporter.cpp111 configKey.GetUid(), in sendBroadcastLocked()
/frameworks/base/cmds/statsd/src/external/
DPerfetto.cpp55 snprintf(configUid, sizeof(configUid), "%d", configKey.GetUid()); in CollectPerfettoTraceAndUploadToDropbox()
/frameworks/base/cmds/statsd/tests/
DConfigManager_test.cpp56 return arg.GetUid() == uid && (long long)arg.GetId() == (long long)id;
DLogEvent_test.cpp307 EXPECT_EQ((int64_t)10001, event1.GetUid()); in TEST()
/frameworks/base/cmds/statsd/src/storage/
DStorageManager.cpp386 string suffix = StringPrintf("%d_%lld", key.GetUid(), (long long)key.GetId()); in hasConfigMetricsReport()
424 output.mUid != key.GetUid() || output.mConfigId != key.GetId()) { in appendConfigMetricsReport()
516 string suffix = StringPrintf("%d_%lld", key.GetUid(), (long long)key.GetId()); in readConfigFromDisk()
/frameworks/base/cmds/statsd/src/logd/
DLogEvent.h124 inline uint32_t GetUid() const { in GetUid() function
/frameworks/base/cmds/statsd/src/anomaly/
DAnomalyTracker.cpp238 android::util::stats_write(android::util::ANOMALY_DETECTED, mConfigKey.GetUid(), in declareAnomaly()
/frameworks/base/cmds/statsd/src/guardrail/
DStatsdStats.cpp150 configStats->uid = key.GetUid(); in noteConfigReceived()