Home
last modified time | relevance | path

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

1234

/frameworks/base/cmds/statsd/src/config/
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 {
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()
DConfigManager.h62 void UpdateConfig(const ConfigKey& key, const StatsdConfig& data);
67 void SetConfigReceiver(const ConfigKey& key, const sp<IBinder>& intentSender);
72 const sp<android::IBinder> GetConfigReceiver(const ConfigKey& key) const;
77 std::vector<ConfigKey> GetAllConfigKeys() const;
82 void RemoveConfigReceiver(const ConfigKey& key);
106 void RemoveConfig(const ConfigKey& key);
129 void update_saved_configs_locked(const ConfigKey& key,
136 void remove_saved_configs(const ConfigKey& key);
141 std::map<int, std::set<ConfigKey>> mConfigs;
147 std::map<ConfigKey, sp<android::IBinder>> mConfigReceivers;
DConfigManager.cpp56 map<ConfigKey, StatsdConfig> configsFromDisk; in Startup()
72 void ConfigManager::UpdateConfig(const ConfigKey& key, const StatsdConfig& config) { in UpdateConfig()
121 void ConfigManager::SetConfigReceiver(const ConfigKey& key, const sp<IBinder>& intentSender) { in SetConfigReceiver()
126 void ConfigManager::RemoveConfigReceiver(const ConfigKey& key) { in RemoveConfigReceiver()
142 void ConfigManager::RemoveConfig(const ConfigKey& key) { in RemoveConfig()
182 void ConfigManager::remove_saved_configs(const ConfigKey& key) { in remove_saved_configs()
188 vector<ConfigKey> removed; in RemoveConfigs()
227 vector<ConfigKey> removed; in RemoveAllConfigs()
257 vector<ConfigKey> ConfigManager::GetAllConfigKeys() const { in GetAllConfigKeys()
260 vector<ConfigKey> ret; in GetAllConfigKeys()
[all …]
DConfigListener.h43 virtual void OnConfigUpdated(const int64_t timestampNs, const ConfigKey& key,
49 virtual void OnConfigRemoved(const ConfigKey& key) = 0;
/frameworks/base/cmds/statsd/tests/
DConfigManager_test.cpp47 MOCK_METHOD3(OnConfigUpdated, void(const int64_t timestampNs, const ConfigKey& key,
49 MOCK_METHOD1(OnConfigRemoved, void(const ConfigKey& key));
95 manager->UpdateConfig(ConfigKey(1, StringToId("zzz")), config91); in TEST()
101 manager->UpdateConfig(ConfigKey(1, StringToId("zzz")), config92); in TEST()
107 manager->UpdateConfig(ConfigKey(1, StringToId("yyy")), config93); in TEST()
113 manager->UpdateConfig(ConfigKey(2, StringToId("zzz")), config94); 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()
[all …]
DUidMap_test.cpp49 [](const ConfigKey& key) { return true; }, in TEST()
198 ConfigKey config1(1, StringToId("config1")); in TEST()
228 ConfigKey config1(1, StringToId("config1")); in TEST()
256 ConfigKey config1(1, StringToId("config1")); in TEST()
296 ConfigKey config1(1, StringToId("config1")); in TEST()
297 ConfigKey config2(1, StringToId("config2")); in TEST()
365 ConfigKey config1(1, StringToId("config1")); in TEST()
396 ConfigKey config1(1, StringToId("config1")); in TEST()
DStatsLogProcessor_test.cpp50 : MetricsManager(ConfigKey(1, 12345), StatsdConfig(), 1000, 1000, new UidMap(), in MockMetricsManager()
70 [](const ConfigKey& key) { return true; }, in TEST()
75 ConfigKey key(100, 12345); in TEST()
91 [&broadcastCount](const ConfigKey& key) { in TEST()
99 ConfigKey key(100, 12345); in TEST()
123 [&broadcastCount](const ConfigKey& key) { in TEST()
131 ConfigKey key(100, 12345); in TEST()
168 [&broadcastCount](const ConfigKey& key) { in TEST()
173 ConfigKey key(3, 4); in TEST()
199 [&broadcastCount](const ConfigKey& key) { in TEST()
[all …]
/frameworks/base/cmds/statsd/src/
DStatsLogProcessor.h41 const std::function<bool(const ConfigKey&)>& sendBroadcast,
48 void OnConfigUpdated(const int64_t timestampNs, const ConfigKey& key,
50 void OnConfigRemoved(const ConfigKey& key);
52 size_t GetMetricsSize(const ConfigKey& key) const;
56 void onDumpReport(const ConfigKey& key, const int64_t dumpTimeNs,
61 void onDumpReport(const ConfigKey& key, const int64_t dumpTimeNs,
105 int64_t getLastReportTimeNs(const ConfigKey& key);
115 void noteOnDiskData(const ConfigKey& key);
129 std::unordered_map<ConfigKey, sp<MetricsManager>> mMetricsManagers;
131 std::unordered_map<ConfigKey, long> mLastBroadcastTimes;
[all …]
DStatsLogProcessor.cpp86 const std::function<bool(const ConfigKey&)>& sendBroadcast, in StatsLogProcessor()
193 std::vector<ConfigKey> configKeys; in resetConfigsLocked()
307 void StatsLogProcessor::OnConfigUpdated(const int64_t timestampNs, const ConfigKey& key, in OnConfigUpdated()
315 const int64_t timestampNs, const ConfigKey& key, const StatsdConfig& config) { in OnConfigUpdatedLocked()
336 size_t StatsLogProcessor::GetMetricsSize(const ConfigKey& key) const { in GetMetricsSize()
363 void StatsLogProcessor::onDumpReport(const ConfigKey& key, const int64_t dumpTimeStampNs, in onDumpReport()
409 void StatsLogProcessor::onDumpReport(const ConfigKey& key, const int64_t dumpTimeStampNs, in onDumpReport()
431 const ConfigKey& key, const int64_t dumpTimeStampNs, in onConfigMetricsReportLocked()
490 const std::vector<ConfigKey>& configs) { in resetConfigsLocked()
507 std::vector<ConfigKey> configKeysTtlExpired; in resetIfConfigTtlExpiredLocked()
[all …]
/frameworks/base/cmds/statsd/src/guardrail/
DStatsdStats.h190 void noteConfigReceived(const ConfigKey& key, int metricsCount, int conditionsCount,
197 void noteConfigRemoved(const ConfigKey& key);
201 void noteConfigReset(const ConfigKey& key);
206 void noteBroadcastSent(const ConfigKey& key);
213 void noteActiveStatusChanged(const ConfigKey& key, bool activate);
218 void noteDataDropped(const ConfigKey& key, const size_t totalBytes);
225 void noteMetricsReportSent(const ConfigKey& key, const size_t num_bytes);
237 void noteConditionDimensionSize(const ConfigKey& key, const int64_t& id, int size);
249 void noteMetricDimensionSize(const ConfigKey& key, const int64_t& id, int size);
261 void noteMetricDimensionInConditionSize(const ConfigKey& key, const int64_t& id, int size);
[all …]
DStatsdStats.cpp141 const ConfigKey& key, int metricsCount, int conditionsCount, int matchersCount, in noteConfigReceived()
171 void StatsdStats::noteConfigRemovedInternalLocked(const ConfigKey& key) { in noteConfigRemovedInternalLocked()
181 void StatsdStats::noteConfigRemoved(const ConfigKey& key) { in noteConfigRemoved()
186 void StatsdStats::noteConfigResetInternalLocked(const ConfigKey& key) { in noteConfigResetInternalLocked()
193 void StatsdStats::noteConfigReset(const ConfigKey& key) { in noteConfigReset()
207 void StatsdStats::noteBroadcastSent(const ConfigKey& key) { in noteBroadcastSent()
211 void StatsdStats::noteBroadcastSent(const ConfigKey& key, int32_t timeSec) { in noteBroadcastSent()
224 void StatsdStats::noteActiveStatusChanged(const ConfigKey& key, bool activated) { in noteActiveStatusChanged()
228 void StatsdStats::noteActiveStatusChanged(const ConfigKey& key, bool activated, int32_t timeSec) { in noteActiveStatusChanged()
256 void StatsdStats::noteDataDropped(const ConfigKey& key, const size_t totalBytes) { in noteDataDropped()
[all …]
/frameworks/base/cmds/statsd/src/storage/
DStorageManager.h87 const std::function<void(const ConfigKey&)>& sendBroadcast);
92 static bool hasConfigMetricsReport(const ConfigKey& key);
108 static void appendConfigMetricsReport(const ConfigKey& key, ProtoOutputStream* proto,
114 static void readConfigFromDisk(std::map<ConfigKey, StatsdConfig>& configsMap);
120 static bool readConfigFromDisk(const ConfigKey& key, StatsdConfig* config);
121 static bool readConfigFromDisk(const ConfigKey& key, string* config);
132 static bool hasIdenticalConfig(const ConfigKey& key,
DStorageManager.cpp361 const std::function<void(const ConfigKey&)>& sendBroadcast) { in sendBroadcast()
377 sendBroadcast(ConfigKey((int)output.mUid, output.mConfigId)); in sendBroadcast()
381 bool StorageManager::hasConfigMetricsReport(const ConfigKey& key) { in hasConfigMetricsReport()
409 void StorageManager::appendConfigMetricsReport(const ConfigKey& key, ProtoOutputStream* proto, in appendConfigMetricsReport()
471 void StorageManager::readConfigFromDisk(map<ConfigKey, StatsdConfig>& configsMap) { in readConfigFromDisk() argument
494 configsMap[ConfigKey(output.mUid, output.mConfigId)] = config; in readConfigFromDisk()
504 bool StorageManager::readConfigFromDisk(const ConfigKey& key, StatsdConfig* config) { in readConfigFromDisk()
510 bool StorageManager::readConfigFromDisk(const ConfigKey& key, string* content) { in readConfigFromDisk()
543 bool StorageManager::hasIdenticalConfig(const ConfigKey& key, in hasIdenticalConfig()
/frameworks/base/cmds/statsd/src/subscriber/
DSubscriberReporter.h64 void setBroadcastSubscriber(const ConfigKey& configKey,
71 void unsetBroadcastSubscriber(const ConfigKey& configKey, int64_t subscriberId);
74 void removeConfig(const ConfigKey& configKey);
81 void alertBroadcastSubscriber(const ConfigKey& configKey,
96 std::unordered_map<ConfigKey,
104 const ConfigKey& configKey,
DSubscriberReporter.cpp32 void SubscriberReporter::setBroadcastSubscriber(const ConfigKey& configKey, in setBroadcastSubscriber()
40 void SubscriberReporter::unsetBroadcastSubscriber(const ConfigKey& configKey, in unsetBroadcastSubscriber()
53 void SubscriberReporter::removeConfig(const ConfigKey& configKey) { in removeConfig()
59 void SubscriberReporter::alertBroadcastSubscriber(const ConfigKey& configKey, in alertBroadcastSubscriber()
101 const ConfigKey& configKey, in sendBroadcastLocked()
/frameworks/base/cmds/statsd/src/external/
DPerfprofd.h25 class ConfigKey; variable
34 const ConfigKey& configKey);
DPerfetto.h27 class ConfigKey; variable
37 const ConfigKey& configKey);
/frameworks/base/cmds/statsd/src/metrics/
Dmetrics_manager_util.h64 bool initConditions(const ConfigKey& key, const StatsdConfig& config,
84 const ConfigKey& key, const StatsdConfig& config, const int64_t timeBaseTimeNs,
98 bool initStatsdConfig(const ConfigKey& key, const StatsdConfig& config, UidMap& uidMap,
/frameworks/base/cmds/statsd/src/packages/
DUidMap.h129 void OnConfigUpdated(const ConfigKey& key);
132 void OnConfigRemoved(const ConfigKey& key);
143 void appendUidMap(const int64_t& timestamp, const ConfigKey& key, std::set<string>* str_set,
204 std::unordered_map<ConfigKey, int64_t> mLastUpdatePerConfigKey;
/frameworks/base/cmds/statsd/src/anomaly/
DAlarmTracker.h39 const Alarm& alarm, const ConfigKey& configKey,
63 const ConfigKey mConfigKey;
DAnomalyTracker.h41 AnomalyTracker(const Alert& alert, const ConfigKey& configKey);
132 const ConfigKey mConfigKey;
/frameworks/base/cmds/statsd/tests/storage/
DStorageManager_test.cpp171 StorageManager::appendConfigMetricsReport(ConfigKey(1066, 1), &out, false /*erase?*/, in TEST()
186 StorageManager::appendConfigMetricsReport(ConfigKey(1066, 1), &out, true /*erase?*/, in TEST()
201 StorageManager::appendConfigMetricsReport(ConfigKey(1066, 1), &out, false /*erase?*/, in TEST()
216 StorageManager::appendConfigMetricsReport(ConfigKey(1066, 1), &out, true /*erase?*/, in TEST()
/frameworks/base/cmds/statsd/tests/e2e/
DWakelockDuration_e2e_test.cpp119 ConfigKey cfgKey; in TEST()
156 ConfigKey cfgKey; in TEST()
193 ConfigKey cfgKey; in TEST()
240 ConfigKey cfgKey; in TEST()
270 ConfigKey cfgKey; in TEST()
302 ConfigKey cfgKey; in TEST()
/frameworks/base/cmds/statsd/src/condition/
DStateTracker.h30 StateTracker(const ConfigKey& key, const int64_t& id, const int index,
104 const ConfigKey mConfigKey;

1234