Home
last modified time | relevance | path

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

/packages/modules/StatsD/statsd/src/config/
DConfigManager.cpp148 auto uidIt = mConfigs.find(key.GetUid()); in UpdateConfig()
154 ALOGE("ConfigManager: uid %d has exceeded the config count limit", key.GetUid()); in UpdateConfig()
174 mConfigs[key.GetUid()].insert(key); in UpdateConfig()
221 auto uid = key.GetUid(); in RemoveConfig()
243 string suffix = StringPrintf("%d_%lld", key.GetUid(), (long long)key.GetId()); in remove_saved_configs()
351 fprintf(out, " %6d %lld\n", it->GetUid(), (long long)it->GetId()); in Dump()
369 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())));
/packages/modules/StatsD/statsd/src/state/
DStateManager.cpp47 if (event.GetUid() == AID_ROOT || (event.GetUid() >= 1000 && event.GetUid() < 2000) || in onLogEvent()
48 mAllowedLogSources.find(event.GetUid()) != mAllowedLogSources.end()) { in onLogEvent()
/packages/modules/StatsD/statsd/src/
DStatsLogProcessor.cpp179 uid_t uid = event->GetUid(); in onBinaryPushStateChangedEventLocked()
306 uid_t uid = event->GetUid(); in onWatchdogRollbackOccurredLocked()
456 int uid = pair.first.GetUid(); in OnLogEvent()
517 if (pair.first.GetUid() == uid && pair.second->isActive()) { in GetActiveConfigsLocked()
601 proto->write(FIELD_TYPE_INT32 | FIELD_ID_UID, key.GetUid()); in onDumpReport()
712 key.GetUid(), key.GetId()); in onConfigMetricsReportLocked()
761 int uid = key.GetUid(); in OnConfigRemoved()
764 if (it.first.GetUid() == uid) { in OnConfigRemoved()
837 StorageManager::getDataFileName((long)getWallClockSec(), key.GetUid(), key.GetId()); in WriteDataToDiskLocked()
/packages/modules/StatsD/statsd/tests/
DLogEvent_test.cpp96 EXPECT_EQ(1000, logEvent.GetUid()); in TEST()
145 EXPECT_EQ(1000, logEvent.GetUid()); in TEST()
182 EXPECT_EQ(1000, logEvent.GetUid()); in TEST()
212 EXPECT_EQ(1000, logEvent.GetUid()); in TEST()
248 EXPECT_EQ(1000, logEvent.GetUid()); in TEST()
DConfigManager_test.cpp56 return arg.GetUid() == uid && (long long)arg.GetId() == (long long)id;
/packages/modules/StatsD/statsd/src/metrics/
DMetricsManager.cpp455 if (mAllowedLogSources.find(event.GetUid()) == mAllowedLogSources.end()) { in checkLogCredentials()
456 VLOG("log source %d not on the whitelist", event.GetUid()); in checkLogCredentials()
477 int32_t loggerUid = mUidMap->getHostUidOrSelf(event.GetUid()); in eventSanityCheck()
504 int32_t loggerUid = event.GetUid(); in eventSanityCheck()
726 proto->write(FIELD_TYPE_INT32 | FIELD_ID_ACTIVE_CONFIG_UID, mConfigKey.GetUid()); in writeActiveConfigToProtoOutputStream()
742 configKey->set_uid(mConfigKey.GetUid()); in writeMetadataToProto()
DCountMetricProducer.cpp83 TimeUnitToBucketSizeInMillisGuardrailed(key.GetUid(), metric.bucket()) * 1000000; in CountMetricProducer()
DGaugeMetricProducer.cpp109 bucketSizeMills = TimeUnitToBucketSizeInMillisGuardrailed(key.GetUid(), metric.bucket());
DDurationMetricProducer.cpp89 TimeUnitToBucketSizeInMillisGuardrailed(key.GetUid(), metric.bucket()) * 1000000; in DurationMetricProducer()
DValueMetricProducer.cpp124 bucketSizeMills = TimeUnitToBucketSizeInMillisGuardrailed(key.GetUid(), metric.bucket()); in ValueMetricProducer()
/packages/modules/StatsD/statsd/src/subscriber/
DIncidentdReporter.cpp65 headerProto.write(FIELD_TYPE_INT32 | FIELD_ID_CONFIG_KEY_UID, configKey.GetUid()); in getProtoData()
129 configKey.GetUid(), (long long)configKey.GetId()); in GenerateIncidentReport()
DSubscriberReporter.cpp139 configKey.GetUid(), in sendBroadcastLocked()
/packages/modules/StatsD/statsd/src/storage/
DStorageManager.cpp487 string suffix = StringPrintf("%d_%lld", key.GetUid(), (long long)key.GetId()); in hasConfigMetricsReport()
525 output.mUid != key.GetUid() || output.mConfigId != key.GetId()) { in appendConfigMetricsReport()
617 string suffix = StringPrintf("%d_%lld", key.GetUid(), (long long)key.GetId()); in readConfigFromDisk()
/packages/modules/StatsD/statsd/src/external/
DPerfetto.cpp55 snprintf(configUid, sizeof(configUid), "%d", configKey.GetUid()); in CollectPerfettoTraceAndUploadToDropbox()
/packages/modules/StatsD/statsd/tests/e2e/
DConfigUpdate_e2e_ab_test.cpp207 string suffix = StringPrintf("%d_%lld", cfgKey.GetUid(), (long long)cfgKey.GetId()); in TEST_P()
210 StringPrintf("%d_%lld_history", cfgKey.GetUid(), (long long)cfgKey.GetId()); in TEST_P()
/packages/modules/StatsD/statsd/src/logd/
DLogEvent.h90 inline int32_t GetUid() const { return mLogUid; } in GetUid() function
/packages/modules/StatsD/statsd/src/anomaly/
DAnomalyTracker.cpp236 util::stats_write(util::ANOMALY_DETECTED, mConfigKey.GetUid(), in declareAnomaly()
/packages/modules/StatsD/statsd/src/guardrail/
DStatsdStats.cpp152 configStats->uid = key.GetUid(); in noteConfigReceived()