Home
last modified time | relevance | path

Searched refs:ConfigKey (Results 1 – 25 of 101) sorted by relevance

12345

/aosp12/packages/modules/StatsD/statsd/src/config/
H A DConfigKey.h33 class ConfigKey {
35 ConfigKey();
36 ConfigKey(const ConfigKey& that);
37 ConfigKey(int uid, const int64_t& id);
38 ~ConfigKey();
47 inline bool operator<(const ConfigKey& that) const {
57 inline bool operator==(const ConfigKey& that) const {
80 using android::os::statsd::ConfigKey;
83 struct hash<ConfigKey> {
84 std::size_t operator()(const ConfigKey& key) const {
H A DConfigKey.cpp23 ConfigKey::ConfigKey() { in ConfigKey() function in android::os::statsd::ConfigKey
26 ConfigKey::ConfigKey(const ConfigKey& that) : mId(that.mId), mUid(that.mUid) { in ConfigKey() function in android::os::statsd::ConfigKey
29 ConfigKey::ConfigKey(int uid, const int64_t& id) : mId(id), mUid(uid) { in ConfigKey() function in android::os::statsd::ConfigKey
32 ConfigKey::~ConfigKey() { in ~ConfigKey()
35 string ConfigKey::ToString() const { in ToString()
H A DConfigManager.h63 void UpdateConfig(const ConfigKey& key, const StatsdConfig& data);
68 void SetConfigReceiver(const ConfigKey& key, const shared_ptr<IPendingIntentRef>& pir);
73 const shared_ptr<IPendingIntentRef> GetConfigReceiver(const ConfigKey& key) const;
78 std::vector<ConfigKey> GetAllConfigKeys() const;
83 void RemoveConfigReceiver(const ConfigKey& key);
107 void RemoveConfig(const ConfigKey& key);
130 void update_saved_configs_locked(const ConfigKey& key,
137 void remove_saved_configs(const ConfigKey& key);
142 std::map<int, std::set<ConfigKey>> mConfigs;
147 std::map<ConfigKey, shared_ptr<IPendingIntentRef>> mConfigReceivers;
H A DConfigManager.cpp52 ConfigKey mConfigKey;
63 ConfigKey& configKey = cookie_->mConfigKey; in configReceiverDied()
123 map<ConfigKey, StatsdConfig> configsFromDisk; in Startup()
188 void ConfigManager::SetConfigReceiver(const ConfigKey& key, in SetConfigReceiver()
196 void ConfigManager::RemoveConfigReceiver(const ConfigKey& key) { in RemoveConfigReceiver()
216 void ConfigManager::RemoveConfig(const ConfigKey& key) { in RemoveConfig()
242 void ConfigManager::remove_saved_configs(const ConfigKey& key) { in remove_saved_configs()
248 vector<ConfigKey> removed; in RemoveConfigs()
281 vector<ConfigKey> removed; in RemoveAllConfigs()
309 vector<ConfigKey> ConfigManager::GetAllConfigKeys() const { in GetAllConfigKeys()
[all …]
H A DConfigListener.h41 virtual void OnConfigUpdated(const int64_t timestampNs, const ConfigKey& key,
47 virtual void OnConfigRemoved(const ConfigKey& key) = 0;
/aosp12/packages/modules/StatsD/statsd/tests/
H A DConfigManager_test.cpp49 MOCK_METHOD1(OnConfigRemoved, void(const ConfigKey& key));
95 manager->UpdateConfig(ConfigKey(1, StringToId("zzz")), config91); in TEST()
118 manager->RemoveConfig(ConfigKey(1, StringToId("yyy"))); in TEST()
123 manager->RemoveConfig(ConfigKey(2, StringToId("zzz"))); in TEST()
128 manager->RemoveConfig(ConfigKey(1, StringToId("zzz"))); in TEST()
131 manager->RemoveConfig(ConfigKey(2, StringToId("zzz"))); in TEST()
152 manager->UpdateConfig(ConfigKey(1, StringToId("aaa")), config); in TEST()
153 manager->UpdateConfig(ConfigKey(2, StringToId("xxx")), config); in TEST()
154 manager->UpdateConfig(ConfigKey(2, StringToId("yyy")), config); in TEST()
155 manager->UpdateConfig(ConfigKey(2, StringToId("zzz")), config); in TEST()
[all …]
H A DStatsLogProcessor_test.cpp176 ConfigKey key(3, 4); in TEST()
207 ConfigKey key(3, 4); in TEST()
234 ConfigKey key(3, 4); in TEST()
267 ConfigKey cfgKey; in TEST()
313 ConfigKey key(3, 4); in TEST()
338 ConfigKey key(3, 4); in TEST()
1736 ConfigKey cfgKey; in TEST()
1760 ConfigKey cfgKey; in TEST()
1785 ConfigKey cfgKey; in TEST()
1813 ConfigKey cfgKey; in TEST()
[all …]
/aosp12/packages/modules/StatsD/statsd/src/guardrail/
H A DStatsdStats.h207 void noteConfigRemoved(const ConfigKey& key);
211 void noteConfigReset(const ConfigKey& key);
216 void noteBroadcastSent(const ConfigKey& key);
223 void noteActiveStatusChanged(const ConfigKey& key, bool activate);
228 void noteDataDropped(const ConfigKey& key, const size_t totalBytes);
279 void noteMatcherMatched(const ConfigKey& key, const int64_t& id);
287 void noteAnomalyDeclared(const ConfigKey& key, const int64_t& id);
559 std::map<const ConfigKey, std::shared_ptr<ConfigStats>> mConfigStats;
633 void noteConfigResetInternalLocked(const ConfigKey& key);
635 void noteConfigRemovedInternalLocked(const ConfigKey& key);
[all …]
H A DStatsdStats.cpp172 void StatsdStats::noteConfigRemovedInternalLocked(const ConfigKey& key) { in noteConfigRemovedInternalLocked()
182 void StatsdStats::noteConfigRemoved(const ConfigKey& key) { in noteConfigRemoved()
187 void StatsdStats::noteConfigResetInternalLocked(const ConfigKey& key) { in noteConfigResetInternalLocked()
194 void StatsdStats::noteConfigReset(const ConfigKey& key) { in noteConfigReset()
208 void StatsdStats::noteBroadcastSent(const ConfigKey& key) { in noteBroadcastSent()
212 void StatsdStats::noteBroadcastSent(const ConfigKey& key, int32_t timeSec) { in noteBroadcastSent()
225 void StatsdStats::noteActiveStatusChanged(const ConfigKey& key, bool activated) { in noteActiveStatusChanged()
257 void StatsdStats::noteDataDropped(const ConfigKey& key, const size_t totalBytes) { in noteDataDropped()
358 const ConfigKey& key, const int64_t& id, int size) { in noteMetricDimensionInConditionSize()
371 void StatsdStats::noteMatcherMatched(const ConfigKey& key, const int64_t& id) { in noteMatcherMatched()
[all …]
/aosp12/packages/modules/StatsD/statsd/src/
H A DStatsLogProcessor.h52 void OnConfigRemoved(const ConfigKey& key);
54 size_t GetMetricsSize(const ConfigKey& key) const;
58 void onDumpReport(const ConfigKey& key, const int64_t dumpTimeNs,
63 void onDumpReport(const ConfigKey& key, const int64_t dumpTimeNs,
134 int64_t getLastReportTimeNs(const ConfigKey& key);
142 void noteOnDiskData(const ConfigKey& key);
167 std::unordered_map<ConfigKey, int64_t> mLastBroadcastTimes;
173 std::unordered_map<ConfigKey, int64_t> mLastByteSizeTimes;
176 std::set<ConfigKey> mOnDiskDataConfigs;
217 const ConfigKey& key, const int64_t dumpTimeStampNs,
[all …]
H A DStatsLogProcessor.cpp377 std::vector<ConfigKey> configKeys; in resetConfigsLocked()
564 size_t StatsLogProcessor::GetMetricsSize(const ConfigKey& key) const { in GetMetricsSize()
659 const ConfigKey& key, const int64_t dumpTimeStampNs, in onConfigMetricsReportLocked()
718 const std::vector<ConfigKey>& configs) { in resetConfigsLocked()
736 std::vector<ConfigKey> configKeysTtlExpired; in resetIfConfigTtlExpiredLocked()
748 void StatsLogProcessor::OnConfigRemoved(const ConfigKey& key) { in OnConfigRemoved()
778 void StatsLogProcessor::flushIfNecessaryLocked(const ConfigKey& key, in flushIfNecessaryLocked()
824 void StatsLogProcessor::WriteDataToDiskLocked(const ConfigKey& key, in WriteDataToDiskLocked()
1030 ConfigKey key(config.uid(), config.id()); in SetConfigsActiveStateLocked()
1072 int64_t StatsLogProcessor::getLastReportTimeNs(const ConfigKey& key) { in getLastReportTimeNs()
[all …]
/aosp12/packages/modules/StatsD/statsd/src/storage/
H A DStorageManager.h96 const std::function<void(const ConfigKey&)>& sendBroadcast);
101 static bool hasConfigMetricsReport(const ConfigKey& key);
117 static void appendConfigMetricsReport(const ConfigKey& key, ProtoOutputStream* proto,
123 static void readConfigFromDisk(std::map<ConfigKey, StatsdConfig>& configsMap);
129 static bool readConfigFromDisk(const ConfigKey& key, StatsdConfig* config);
130 static bool readConfigFromDisk(const ConfigKey& key, string* config);
141 static bool hasIdenticalConfig(const ConfigKey& key,
/aosp12/packages/modules/StatsD/service/java/com/android/server/stats/
H A DStatsManagerService.java75 private static class ConfigKey { class in StatsManagerService
79 ConfigKey(int uid, long configId) { in ConfigKey() method in StatsManagerService.ConfigKey
99 if (obj instanceof ConfigKey) { in equals()
100 ConfigKey other = (ConfigKey) obj; in equals()
241 ConfigKey key = new ConfigKey(callingUid, configId); in setDataFetchOperation()
263 ConfigKey key = new ConfigKey(callingUid, configId); in removeDataFetchOperation()
330 ConfigKey key = new ConfigKey(callingUid, configId); in setBroadcastSubscriber()
356 ConfigKey key = new ConfigKey(callingUid, configId); in unsetBroadcastSubscriber()
621 ArrayMap<ConfigKey, PendingIntentRef> dataFetchCopy; in registerAllDataFetchOperations()
627 ConfigKey key = entry.getKey(); in registerAllDataFetchOperations()
[all …]
/aosp12/packages/modules/StatsD/statsd/src/external/
H A DStatsPullerManager.h72 virtual void RegisterReceiver(int tagId, const ConfigKey& configKey,
77 virtual void UnRegisterReceiver(int tagId, const ConfigKey& configKey,
82 virtual void RegisterPullUidProvider(const ConfigKey& configKey, wp<PullUidProvider> provider);
85 virtual void UnregisterPullUidProvider(const ConfigKey& configKey,
104 virtual bool Pull(int tagId, const ConfigKey& configKey, const int64_t eventTimeNs,
135 const ConfigKey configKey;
152 std::map<ConfigKey, wp<PullUidProvider>> mPullUidProviders;
154 bool PullLocked(int tagId, const ConfigKey& configKey, const int64_t eventTimeNs,
H A DPerfetto.h23 class ConfigKey; variable
33 const ConfigKey& configKey);
H A DStatsPullerManager.cpp94 bool StatsPullerManager::Pull(int tagId, const ConfigKey& configKey, const int64_t eventTimeNs, in Pull()
106 bool StatsPullerManager::PullLocked(int tagId, const ConfigKey& configKey, in PullLocked()
181 void StatsPullerManager::RegisterReceiver(int tagId, const ConfigKey& configKey, in RegisterReceiver()
217 void StatsPullerManager::UnRegisterReceiver(int tagId, const ConfigKey& configKey, in UnRegisterReceiver()
235 void StatsPullerManager::RegisterPullUidProvider(const ConfigKey& configKey, in RegisterPullUidProvider()
241 void StatsPullerManager::UnregisterPullUidProvider(const ConfigKey& configKey, in UnregisterPullUidProvider()
/aosp12/packages/modules/StatsD/statsd/src/subscriber/
H A DSubscriberReporter.h59 void setBroadcastSubscriber(const ConfigKey& configKey,
66 void unsetBroadcastSubscriber(const ConfigKey& configKey, int64_t subscriberId);
73 void alertBroadcastSubscriber(const ConfigKey& configKey,
83 unordered_map<ConfigKey, unordered_map<int64_t, shared_ptr<IPendingIntentRef>>> mIntentMap;
90 const ConfigKey& configKey,
H A DSubscriberReporter.cpp58 void SubscriberReporter::setBroadcastSubscriber(const ConfigKey& configKey, in setBroadcastSubscriber()
78 void SubscriberReporter::unsetBroadcastSubscriber(const ConfigKey& configKey, in unsetBroadcastSubscriber()
91 void SubscriberReporter::alertBroadcastSubscriber(const ConfigKey& configKey, in alertBroadcastSubscriber()
133 const ConfigKey& configKey, in sendBroadcastLocked()
/aosp12/packages/modules/StatsD/statsd/tests/metrics/
H A Dmetrics_test_helper.h37 void(int tagId, const ConfigKey& key, wp<PullDataReceiver> receiver,
40 void(int tagId, const ConfigKey& key, wp<PullDataReceiver> receiver));
41 MOCK_METHOD4(Pull, bool(const int pullCode, const ConfigKey& key, const int64_t eventTimeNs,
46 void(const ConfigKey& configKey, wp<PullUidProvider> provider));
48 void(const ConfigKey& configKey, wp<PullUidProvider> provider));
H A DValueMetricProducer_test.cpp46 const ConfigKey kConfigKey(0, 12345);
282 .WillOnce(Invoke([](int tagId, const ConfigKey&, const int64_t, in TEST()
419 .WillOnce(Invoke([](int tagId, const ConfigKey&, const int64_t, in TEST()
1670 .WillOnce(Invoke([](int tagId, const ConfigKey&, const int64_t, in TEST()
1746 .WillOnce(Invoke([](int tagId, const ConfigKey&, const int64_t, in TEST()
1855 .WillOnce(Invoke([](int tagId, const ConfigKey&, const int64_t, in TEST()
1958 .WillOnce(Invoke([](int tagId, const ConfigKey&, const int64_t, in TEST()
2077 .WillOnce(Invoke([](int tagId, const ConfigKey&, const int64_t, in TEST()
2120 .WillOnce(Invoke([](int tagId, const ConfigKey&, const int64_t, in TEST()
2232 .WillOnce(Invoke([](int tagId, const ConfigKey&, const int64_t, in TEST()
[all …]
/aosp12/packages/modules/StatsD/statsd/tests/subscriber/
H A DSubscriberReporter_test.cpp35 const ConfigKey configKey1(0, 12345);
36 const ConfigKey configKey2(0, 123456);
74 unordered_map<ConfigKey, unordered_map<int64_t, shared_ptr<IPendingIntentRef>>> in TEST_F()
84 unordered_map<ConfigKey, unordered_map<int64_t, shared_ptr<IPendingIntentRef>>> in TEST_F()
97 unordered_map<ConfigKey, unordered_map<int64_t, shared_ptr<IPendingIntentRef>>> in TEST_F()
/aosp12/packages/modules/StatsD/statsd/src/metrics/parsing_utils/
H A Dmetrics_manager_util.h53 const ConfigKey& key, const Predicate& predicate, const int index,
99 const ConfigKey& key, const StatsdConfig& config, const int64_t timeBaseNs,
118 const ConfigKey& key, const StatsdConfig& config, const int64_t timeBaseNs,
137 const ConfigKey& key, const StatsdConfig& config, const int64_t timeBaseNs,
154 const ConfigKey& key, const StatsdConfig& config, const int64_t timeBaseNs,
175 const ConfigKey& key, const StatsdConfig& config, const int64_t timeBaseNs,
257 bool initConditions(const ConfigKey& key, const StatsdConfig& config,
293 const ConfigKey& key, const StatsdConfig& config, const int64_t timeBaseTimeNs,
312 bool initAlarms(const StatsdConfig& config, const ConfigKey& key,
318 bool initStatsdConfig(const ConfigKey& key, const StatsdConfig& config, const sp<UidMap>& uidMap,
/aosp12/packages/modules/StatsD/statsd/src/packages/
H A DUidMap.h125 void OnConfigUpdated(const ConfigKey& key);
128 void OnConfigRemoved(const ConfigKey& key);
139 void appendUidMap(const int64_t& timestamp, const ConfigKey& key, std::set<string>* str_set,
198 std::unordered_map<ConfigKey, int64_t> mLastUpdatePerConfigKey;
/aosp12/packages/modules/StatsD/statsd/tests/storage/
H A DStorageManager_test.cpp143 StorageManager::appendConfigMetricsReport(ConfigKey(1066, 1), &out, false /*erase?*/, in TEST()
158 StorageManager::appendConfigMetricsReport(ConfigKey(1066, 1), &out, true /*erase?*/, in TEST()
173 StorageManager::appendConfigMetricsReport(ConfigKey(1066, 1), &out, false /*erase?*/, in TEST()
188 StorageManager::appendConfigMetricsReport(ConfigKey(1066, 1), &out, true /*erase?*/, in TEST()
/aosp12/packages/modules/StatsD/statsd/tests/e2e/
H A DConfigUpdate_e2e_ab_test.cpp74 ConfigKey cfgKey(0, 12345); in TEST_P()
116 ConfigKey cfgKey(0, 12345); in TEST_P()
149 ConfigKey cfgKey(0, 12345); in TEST_P()
176 ConfigKey cfgKey(0, 12345); in TEST_P()
223 ConfigKey cfgKey(0, 12345); in TEST_P()
249 ConfigKey cfgKey(0, 12345); in TEST_P()
288 ConfigKey cfgKey(0, 12345); in TEST_P()
321 ConfigKey key(123, 987); in TEST_P()

12345