/frameworks/base/cmds/statsd/src/config/ |
D | ConfigKey.cpp | 23 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()
|
D | ConfigKey.h | 33 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 {
|
D | ConfigManager.h | 63 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;
|
D | ConfigManager.cpp | 46 ConfigReceiverDeathCookie(const wp<ConfigManager>& configManager, const ConfigKey& configKey, in ConfigReceiverDeathCookie() 52 ConfigKey mConfigKey; 63 ConfigKey& configKey = cookie_->mConfigKey; in configReceiverDied() 123 map<ConfigKey, StatsdConfig> configsFromDisk; in Startup() 139 void ConfigManager::UpdateConfig(const ConfigKey& key, const StatsdConfig& config) { in UpdateConfig() 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() [all …]
|
D | ConfigListener.h | 41 virtual void OnConfigUpdated(const int64_t timestampNs, const ConfigKey& key, 47 virtual void OnConfigRemoved(const ConfigKey& key) = 0;
|
/frameworks/base/cmds/statsd/tests/ |
D | ConfigManager_test.cpp | 47 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 …]
|
D | StatsLogProcessor_test.cpp | 51 : MetricsManager(ConfigKey(1, 12345), StatsdConfig(), 1000, 1000, new UidMap(), in MockMetricsManager() 73 [](const ConfigKey& key) { return true; }, in TEST() 78 ConfigKey key(100, 12345); in TEST() 94 [&broadcastCount](const ConfigKey& key) { in TEST() 102 ConfigKey key(100, 12345); in TEST() 126 [&broadcastCount](const ConfigKey& key) { in TEST() 134 ConfigKey key(100, 12345); in TEST() 171 [&broadcastCount](const ConfigKey& key) { in TEST() 176 ConfigKey key(3, 4); in TEST() 202 [&broadcastCount](const ConfigKey& key) { in TEST() [all …]
|
D | UidMap_test.cpp | 50 [](const ConfigKey& key) { return true; }, in TEST() 192 ConfigKey config1(1, StringToId("config1")); in TEST() 222 ConfigKey config1(1, StringToId("config1")); in TEST() 250 ConfigKey config1(1, StringToId("config1")); in TEST() 290 ConfigKey config1(1, StringToId("config1")); in TEST() 291 ConfigKey config2(1, StringToId("config2")); in TEST() 359 ConfigKey config1(1, StringToId("config1")); in TEST() 390 ConfigKey config1(1, StringToId("config1")); in TEST()
|
/frameworks/base/cmds/statsd/src/guardrail/ |
D | StatsdStats.h | 200 void noteConfigReceived(const ConfigKey& key, int metricsCount, int conditionsCount, 207 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); 235 void noteMetricsReportSent(const ConfigKey& key, const size_t num_bytes); 247 void noteConditionDimensionSize(const ConfigKey& key, const int64_t& id, int size); 259 void noteMetricDimensionSize(const ConfigKey& key, const int64_t& id, int size); 271 void noteMetricDimensionInConditionSize(const ConfigKey& key, const int64_t& id, int size); [all …]
|
D | StatsdStats.cpp | 142 const ConfigKey& key, int metricsCount, int conditionsCount, int matchersCount, in noteConfigReceived() 172 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() 229 void StatsdStats::noteActiveStatusChanged(const ConfigKey& key, bool activated, int32_t timeSec) { in noteActiveStatusChanged() 257 void StatsdStats::noteDataDropped(const ConfigKey& key, const size_t totalBytes) { in noteDataDropped() [all …]
|
/frameworks/base/cmds/statsd/src/ |
D | StatsLogProcessor.h | 43 const std::function<bool(const ConfigKey&)>& sendBroadcast, 50 void OnConfigUpdated(const int64_t timestampNs, const ConfigKey& key, 52 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, 139 int64_t getLastReportTimeNs(const ConfigKey& key); 149 void noteOnDiskData(const ConfigKey& key); 163 std::unordered_map<ConfigKey, sp<MetricsManager>> mMetricsManagers; 165 std::unordered_map<ConfigKey, int64_t> mLastBroadcastTimes; [all …]
|
D | StatsLogProcessor.cpp | 91 const std::function<bool(const ConfigKey&)>& sendBroadcast, in StatsLogProcessor() 377 std::vector<ConfigKey> configKeys; in resetConfigsLocked() 511 void StatsLogProcessor::OnConfigUpdated(const int64_t timestampNs, const ConfigKey& key, in OnConfigUpdated() 519 const int64_t timestampNs, const ConfigKey& key, const StatsdConfig& config) { in OnConfigUpdatedLocked() 538 size_t StatsLogProcessor::GetMetricsSize(const ConfigKey& key) const { in GetMetricsSize() 565 void StatsLogProcessor::onDumpReport(const ConfigKey& key, const int64_t dumpTimeStampNs, in onDumpReport() 611 void StatsLogProcessor::onDumpReport(const ConfigKey& key, const int64_t dumpTimeStampNs, in onDumpReport() 633 const ConfigKey& key, const int64_t dumpTimeStampNs, in onConfigMetricsReportLocked() 692 const std::vector<ConfigKey>& configs) { in resetConfigsLocked() 709 std::vector<ConfigKey> configKeysTtlExpired; in resetIfConfigTtlExpiredLocked() [all …]
|
/frameworks/base/cmds/statsd/src/storage/ |
D | StorageManager.h | 96 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,
|
D | StorageManager.cpp | 460 const std::function<void(const ConfigKey&)>& sendBroadcast) { in sendBroadcast() 476 sendBroadcast(ConfigKey((int)output.mUid, output.mConfigId)); in sendBroadcast() 480 bool StorageManager::hasConfigMetricsReport(const ConfigKey& key) { in hasConfigMetricsReport() 508 void StorageManager::appendConfigMetricsReport(const ConfigKey& key, ProtoOutputStream* proto, in appendConfigMetricsReport() 570 void StorageManager::readConfigFromDisk(map<ConfigKey, StatsdConfig>& configsMap) { in readConfigFromDisk() argument 593 configsMap[ConfigKey(output.mUid, output.mConfigId)] = config; in readConfigFromDisk() 603 bool StorageManager::readConfigFromDisk(const ConfigKey& key, StatsdConfig* config) { in readConfigFromDisk() 609 bool StorageManager::readConfigFromDisk(const ConfigKey& key, string* content) { in readConfigFromDisk() 642 bool StorageManager::hasIdenticalConfig(const ConfigKey& key, in hasIdenticalConfig()
|
/frameworks/base/cmds/statsd/src/subscriber/ |
D | SubscriberReporter.h | 59 void setBroadcastSubscriber(const ConfigKey& configKey, 66 void unsetBroadcastSubscriber(const ConfigKey& configKey, int64_t subscriberId); 73 void alertBroadcastSubscriber(const ConfigKey& configKey, 77 shared_ptr<IPendingIntentRef> getBroadcastSubscriber(const ConfigKey& configKey, 86 unordered_map<ConfigKey, unordered_map<int64_t, shared_ptr<IPendingIntentRef>>> mIntentMap; 93 const ConfigKey& configKey,
|
D | SubscriberReporter.cpp | 31 BroadcastSubscriberDeathCookie(const ConfigKey& configKey, int64_t subscriberId, in BroadcastSubscriberDeathCookie() 37 ConfigKey mConfigKey; 44 ConfigKey& configKey = cookie_->mConfigKey; in broadcastSubscriberDied() 74 void SubscriberReporter::setBroadcastSubscriber(const ConfigKey& configKey, in setBroadcastSubscriber() 86 void SubscriberReporter::unsetBroadcastSubscriber(const ConfigKey& configKey, in unsetBroadcastSubscriber() 99 void SubscriberReporter::alertBroadcastSubscriber(const ConfigKey& configKey, in alertBroadcastSubscriber() 141 const ConfigKey& configKey, in sendBroadcastLocked() 155 shared_ptr<IPendingIntentRef> SubscriberReporter::getBroadcastSubscriber(const ConfigKey& configKey, in getBroadcastSubscriber()
|
/frameworks/base/apex/statsd/service/java/com/android/server/stats/ |
D | StatsManagerService.java | 62 private ArrayMap<ConfigKey, PendingIntentRef> mDataFetchPirMap = new ArrayMap<>(); 66 private ArrayMap<ConfigKey, ArrayMap<Long, PendingIntentRef>> mBroadcastSubscriberPirMap = 74 private static class ConfigKey { class in StatsManagerService 78 ConfigKey(int uid, long configId) { in ConfigKey() method in StatsManagerService.ConfigKey 98 if (obj instanceof ConfigKey) { in equals() 99 ConfigKey other = (ConfigKey) obj; in equals() 240 ConfigKey key = new ConfigKey(callingUid, configId); in setDataFetchOperation() 262 ConfigKey key = new ConfigKey(callingUid, configId); in removeDataFetchOperation() 329 ConfigKey key = new ConfigKey(callingUid, configId); in setBroadcastSubscriber() 355 ConfigKey key = new ConfigKey(callingUid, configId); in unsetBroadcastSubscriber() [all …]
|
/frameworks/base/cmds/statsd/tests/metrics/ |
D | metrics_test_helper.h | 37 void(int tagId, const ConfigKey& key, wp<PullDataReceiver> receiver, 40 void(int tagId, const ConfigKey& key, wp<PullDataReceiver> receiver)); 41 MOCK_METHOD5(Pull, bool(const int pullCode, const ConfigKey& key, const int64_t eventTimeNs, 47 void(const ConfigKey& configKey, wp<PullUidProvider> provider)); 49 void(const ConfigKey& configKey, wp<PullUidProvider> provider));
|
D | ValueMetricProducer_test.cpp | 46 const ConfigKey kConfigKey(0, 12345); 298 .WillOnce(Invoke([](int tagId, const ConfigKey&, const int64_t, in TEST() 373 .WillOnce(Invoke([](int tagId, const ConfigKey&, const int64_t eventTimeNs, in TEST_P() 382 int tagId, const ConfigKey&, const int64_t eventTimeNs, in TEST_P() argument 438 .WillOnce(Invoke([](int tagId, const ConfigKey&, const int64_t, in TEST() 625 .WillOnce(Invoke([](int tagId, const ConfigKey&, const int64_t eventTimeNs, in TEST() 632 .WillOnce(Invoke([](int tagId, const ConfigKey&, const int64_t eventTimeNs, in TEST() argument 639 .WillOnce(Invoke([](int tagId, const ConfigKey&, const int64_t eventTimeNs, in TEST() argument 776 int tagId, const ConfigKey&, const int64_t eventTimeNs, in TEST_P() 858 .WillOnce(Invoke([](int tagId, const ConfigKey&, const int64_t eventTimeNs, in TEST_P() [all …]
|
/frameworks/base/cmds/statsd/src/external/ |
D | Perfetto.h | 23 class ConfigKey; variable 33 const ConfigKey& configKey);
|
D | StatsPullerManager.cpp | 94 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() 200 void StatsPullerManager::RegisterReceiver(int tagId, const ConfigKey& configKey, in RegisterReceiver() 236 void StatsPullerManager::UnRegisterReceiver(int tagId, const ConfigKey& configKey, in UnRegisterReceiver() 254 void StatsPullerManager::RegisterPullUidProvider(const ConfigKey& configKey, in RegisterPullUidProvider() 260 void StatsPullerManager::UnregisterPullUidProvider(const ConfigKey& configKey, in UnregisterPullUidProvider()
|
/frameworks/base/cmds/statsd/src/packages/ |
D | UidMap.h | 126 void OnConfigUpdated(const ConfigKey& key); 129 void OnConfigRemoved(const ConfigKey& key); 140 void appendUidMap(const int64_t& timestamp, const ConfigKey& key, std::set<string>* str_set, 199 std::unordered_map<ConfigKey, int64_t> mLastUpdatePerConfigKey;
|
/frameworks/base/cmds/statsd/src/anomaly/ |
D | AlarmTracker.h | 36 const Alarm& alarm, const ConfigKey& configKey, 60 const ConfigKey mConfigKey;
|
/frameworks/base/cmds/statsd/tests/storage/ |
D | StorageManager_test.cpp | 143 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()
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | metrics_manager_util.h | 64 bool initConditions(const ConfigKey& key, const StatsdConfig& config, 99 const ConfigKey& key, const StatsdConfig& config, const int64_t timeBaseTimeNs, 119 bool initStatsdConfig(const ConfigKey& key, const StatsdConfig& config, UidMap& uidMap,
|