/packages/modules/StatsD/statsd/src/config/ |
D | ConfigManager.cpp | 148 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()
|
D | ConfigKey.h | 40 inline int GetUid() const { in GetUid() function 85 return (7 * key.GetUid()) ^ ((hash<long long>()(key.GetId())));
|
/packages/modules/StatsD/statsd/src/state/ |
D | StateManager.cpp | 47 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/ |
D | StatsLogProcessor.cpp | 179 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/ |
D | LogEvent_test.cpp | 96 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()
|
D | ConfigManager_test.cpp | 56 return arg.GetUid() == uid && (long long)arg.GetId() == (long long)id;
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | MetricsManager.cpp | 455 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()
|
D | CountMetricProducer.cpp | 83 TimeUnitToBucketSizeInMillisGuardrailed(key.GetUid(), metric.bucket()) * 1000000; in CountMetricProducer()
|
D | GaugeMetricProducer.cpp | 109 bucketSizeMills = TimeUnitToBucketSizeInMillisGuardrailed(key.GetUid(), metric.bucket());
|
D | DurationMetricProducer.cpp | 89 TimeUnitToBucketSizeInMillisGuardrailed(key.GetUid(), metric.bucket()) * 1000000; in DurationMetricProducer()
|
D | ValueMetricProducer.cpp | 124 bucketSizeMills = TimeUnitToBucketSizeInMillisGuardrailed(key.GetUid(), metric.bucket()); in ValueMetricProducer()
|
/packages/modules/StatsD/statsd/src/subscriber/ |
D | IncidentdReporter.cpp | 65 headerProto.write(FIELD_TYPE_INT32 | FIELD_ID_CONFIG_KEY_UID, configKey.GetUid()); in getProtoData() 129 configKey.GetUid(), (long long)configKey.GetId()); in GenerateIncidentReport()
|
D | SubscriberReporter.cpp | 139 configKey.GetUid(), in sendBroadcastLocked()
|
/packages/modules/StatsD/statsd/src/storage/ |
D | StorageManager.cpp | 487 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/ |
D | Perfetto.cpp | 55 snprintf(configUid, sizeof(configUid), "%d", configKey.GetUid()); in CollectPerfettoTraceAndUploadToDropbox()
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | ConfigUpdate_e2e_ab_test.cpp | 207 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/ |
D | LogEvent.h | 90 inline int32_t GetUid() const { return mLogUid; } in GetUid() function
|
/packages/modules/StatsD/statsd/src/anomaly/ |
D | AnomalyTracker.cpp | 236 util::stats_write(util::ANOMALY_DETECTED, mConfigKey.GetUid(), in declareAnomaly()
|
/packages/modules/StatsD/statsd/src/guardrail/ |
D | StatsdStats.cpp | 152 configStats->uid = key.GetUid(); in noteConfigReceived()
|