Home
last modified time | relevance | path

Searched refs:configKey (Results 1 – 25 of 57) sorted by relevance

123

/packages/apps/Dialer/java/com/android/voicemail/impl/configui/
DConfigOverrideFragment.java113 String configKey = key.substring(CONFIG_OVERRIDE_KEY_PREFIX.length()); in loadCurrentConfig() local
115 if (configKey.endsWith("bool")) { in loadCurrentConfig()
116 ((SwitchPreference) preference).setChecked(config.getBoolean(configKey)); in loadCurrentConfig()
117 } else if (configKey.endsWith("int")) { in loadCurrentConfig()
118 ((EditTextPreference) preference).setText(String.valueOf(config.getInt(configKey))); in loadCurrentConfig()
119 } else if (configKey.endsWith("string")) { in loadCurrentConfig()
120 ((EditTextPreference) preference).setText(config.getString(configKey)); in loadCurrentConfig()
121 } else if (configKey.endsWith("string_array")) { in loadCurrentConfig()
122 ((EditTextPreference) preference).setText(toCsv(config.getStringArray(configKey))); in loadCurrentConfig()
124 throw Assert.createAssertionFailException("unknown type for key " + configKey); in loadCurrentConfig()
[all …]
/packages/modules/StatsD/statsd/src/subscriber/
DSubscriberReporter.cpp58 void SubscriberReporter::setBroadcastSubscriber(const ConfigKey& configKey, in setBroadcastSubscriber() argument
63 configKey.ToString().c_str(), (long long)subscriberId); in setBroadcastSubscriber()
66 mIntentMap[configKey][subscriberId] = pir; in setBroadcastSubscriber()
78 void SubscriberReporter::unsetBroadcastSubscriber(const ConfigKey& configKey, in unsetBroadcastSubscriber() argument
82 auto subscriberMapIt = mIntentMap.find(configKey); in unsetBroadcastSubscriber()
86 mIntentMap.erase(configKey); in unsetBroadcastSubscriber()
91 void SubscriberReporter::alertBroadcastSubscriber(const ConfigKey& configKey, in alertBroadcastSubscriber() argument
118 auto it1 = mIntentMap.find(configKey); in alertBroadcastSubscriber()
120 ALOGW("Cannot inform subscriber for missing config key %s ", configKey.ToString().c_str()); in alertBroadcastSubscriber()
126 configKey.ToString().c_str(), (long long)subscriberId); in alertBroadcastSubscriber()
[all …]
DIncidentdReporter.cpp58 int64_t metricValue, const ConfigKey& configKey, const string& reason, in getProtoData() argument
65 headerProto.write(FIELD_TYPE_INT32 | FIELD_ID_CONFIG_KEY_UID, configKey.GetUid()); in getProtoData()
66 headerProto.write(FIELD_TYPE_INT64 | FIELD_ID_CONFIG_KEY_ID, (long long)configKey.GetId()); in getProtoData()
128 const ConfigKey& configKey) { in GenerateIncidentReport() argument
131 configKey.GetUid(), (long long)configKey.GetId()); in GenerateIncidentReport()
138 getProtoData(rule_id, metricId, dimensionKey, metricValue, configKey, in GenerateIncidentReport()
DSubscriberReporter.h59 void setBroadcastSubscriber(const ConfigKey& configKey,
66 void unsetBroadcastSubscriber(const ConfigKey& configKey, int64_t subscriberId);
73 void alertBroadcastSubscriber(const ConfigKey& configKey,
90 const ConfigKey& configKey,
/packages/modules/StatsD/framework/java/android/app/
DStatsManager.java167 public void addConfig(long configKey, byte[] config) throws StatsUnavailableException { in addConfig() argument
172 service.addConfiguration(configKey, config, mContext.getOpPackageName()); in addConfig()
191 public boolean addConfiguration(long configKey, byte[] config) { in addConfiguration() argument
193 addConfig(configKey, config); in addConfiguration()
209 public void removeConfig(long configKey) throws StatsUnavailableException { in removeConfig() argument
213 service.removeConfiguration(configKey, mContext.getOpPackageName()); in removeConfig()
232 public boolean removeConfiguration(long configKey) { in removeConfiguration() argument
234 removeConfig(configKey); in removeConfiguration()
273 PendingIntent pendingIntent, long configKey, long subscriberId) in setBroadcastSubscriber() argument
279 service.setBroadcastSubscriber(configKey, subscriberId, pendingIntent, in setBroadcastSubscriber()
[all …]
/packages/services/Car/service/src/com/android/car/telemetry/publisher/
DStatsPublisher.java224 long configKey = buildConfigKey(subscriber); in addDataSubscriber() local
225 mConfigKeyToSubscribers.put(configKey, subscriber); in addDataSubscriber()
226 addStatsConfig(configKey, subscriber); in addDataSubscriber()
238 long configKey, @NonNull StatsLogProto.ConfigMetricsReportList report) { in processReport() argument
243 DataSubscriber subscriber = mConfigKeyToSubscribers.get(configKey); in processReport()
245 Slogf.w(CarLog.TAG_TELEMETRY, "No subscribers found for config " + configKey); in processReport()
257 Slogf.e(CarLog.TAG_TELEMETRY, "Stats conversion exception for config " + configKey, ex); in processReport()
296 + ") for config " + configKey); in processReport()
369 for (long configKey : getActiveConfigKeys()) { in pullReportsPeriodically()
370 processReport(configKey, StatsLogProto.ConfigMetricsReportList.parseFrom( in pullReportsPeriodically()
[all …]
DStatsManagerImpl.java34 public byte[] getReports(long configKey) throws StatsUnavailableException { in getReports() argument
35 return mStatsManager.getReports(configKey); in getReports()
39 public void addConfig(long configKey, @NonNull byte[] data) throws StatsUnavailableException { in addConfig() argument
40 mStatsManager.addConfig(configKey, data); in addConfig()
44 public void removeConfig(long configKey) throws StatsUnavailableException { in removeConfig() argument
45 mStatsManager.removeConfig(configKey); in removeConfig()
DStatsManagerProxy.java28 byte[] getReports(long configKey) throws StatsUnavailableException; in getReports() argument
31 void addConfig(long configKey, @NonNull byte[] data) throws StatsUnavailableException; in addConfig() argument
34 void removeConfig(long configKey) throws StatsUnavailableException; in removeConfig() argument
/packages/modules/StatsD/statsd/tests/metrics/
DRestrictedEventMetricProducer_test.cpp23 const ConfigKey configKey(/*uid=*/0, /*id=*/12345); variable
34 return dbutils::query(configKey, query.str(), rows, columnTypes, columnNames, err); in metricTableExist()
49 dbutils::deleteDb(configKey); in TearDown()
58 RestrictedEventMetricProducer producer(configKey, metric, in TEST_F()
76 dbutils::query(configKey, query.str(), rows, columnTypes, columnNames, err); in TEST_F()
92 RestrictedEventMetricProducer producer(configKey, metric, in TEST_F()
118 EXPECT_TRUE(dbutils::query(configKey, query.str(), rows, columnTypes, columnNames, err)); in TEST_F()
135 RestrictedEventMetricProducer producer(configKey, metric, in TEST_F()
156 dbutils::query(configKey, query.str(), rows, columnTypes, columnNames, err); in TEST_F()
169 RestrictedEventMetricProducer producer(configKey, metric, in TEST_F()
[all …]
Dmetrics_test_helper.h46 void(const ConfigKey& configKey, const wp<PullUidProvider>& provider));
48 void(const ConfigKey& configKey, const wp<PullUidProvider>& provider));
/packages/modules/StatsD/statsd/src/external/
DStatsPullerManager.cpp55 bool StatsPullerManager::Pull(int tagId, const ConfigKey& configKey, const int64_t eventTimeNs, in Pull() argument
59 return PullLocked(tagId, configKey, eventTimeNs, data); in Pull()
69 bool StatsPullerManager::PullLocked(int tagId, const ConfigKey& configKey, in PullLocked() argument
72 const auto& uidProviderIt = mPullUidProviders.find(configKey); in PullLocked()
75 configKey.ToString().c_str()); in PullLocked()
82 configKey.ToString().c_str()); in PullLocked()
152 void StatsPullerManager::RegisterReceiver(int tagId, const ConfigKey& configKey, in RegisterReceiver() argument
156 auto& receivers = mReceivers[{.atomTag = tagId, .configKey = configKey}]; in RegisterReceiver()
188 void StatsPullerManager::UnRegisterReceiver(int tagId, const ConfigKey& configKey, in UnRegisterReceiver() argument
191 auto receiversIt = mReceivers.find({.atomTag = tagId, .configKey = configKey}); in UnRegisterReceiver()
[all …]
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,
86 virtual void UnregisterPullUidProvider(const ConfigKey& configKey,
105 virtual bool Pull(int tagId, const ConfigKey& configKey, int64_t eventTimeNs,
136 const ConfigKey configKey; member
139 return atomTag == that.atomTag ? configKey < that.configKey : atomTag < that.atomTag;
155 bool PullLocked(int tagId, const ConfigKey& configKey, int64_t eventTimeNs,
DPerfetto.cpp40 const ConfigKey& configKey) { in CollectPerfettoTraceAndUploadToDropbox() argument
54 snprintf(configId, sizeof(configId), "%" PRId64, configKey.GetId()); in CollectPerfettoTraceAndUploadToDropbox()
55 snprintf(configUid, sizeof(configUid), "%d", configKey.GetUid()); in CollectPerfettoTraceAndUploadToDropbox()
/packages/modules/StatsD/statsd/tests/e2e/
DRestrictedEventMetric_e2e_test.cpp44 const ConfigKey configKey(config_app_uid, configId);
119 processor = CreateStatsLogProcessor(baseTimeNs, configAddedTimeNs, config, configKey, in SetUp()
130 dbutils::deleteDb(configKey); in TearDown()
336 CreateStatsLogProcessor(/*baseTimeNs=*/0, configAddedTimeNs, config, configKey, in TEST_F()
554 EXPECT_TRUE(dbutils::query(configKey, query.str(), rows, columnTypes, columnNames, err)); in TEST_F()
575 processor->OnConfigRemoved(configKey); in TEST_F()
581 EXPECT_FALSE(dbutils::query(configKey, query.str(), rows, columnTypes, columnNames, err)); in TEST_F()
595 processor->OnConfigRemoved(configKey); in TEST_F()
603 EXPECT_FALSE(dbutils::query(configKey, query.str(), rows, columnTypes, columnNames, err)); in TEST_F()
619 processor->OnConfigUpdated(configAddedTimeNs + 1 * NS_PER_SEC, configKey, config); in TEST_F()
[all …]
/packages/modules/StatsD/aidl/android/os/
DIStatsManagerService.aidl79 void setBroadcastSubscriber(long configKey, long subscriberId, in PendingIntent pendingIntent, in setBroadcastSubscriber() argument
89 void unsetBroadcastSubscriber(long configKey, long subscriberId, in String packageName); in unsetBroadcastSubscriber() argument
144 in long configKey, in String configPackage); in querySql() argument
154 long[] setRestrictedMetricsChangedOperation(in PendingIntent pendingIntent, in long configKey, in setRestrictedMetricsChangedOperation() argument
162 void removeRestrictedMetricsChangedOperation(in long configKey, in String configPackage); in removeRestrictedMetricsChangedOperation() argument
DIStatsd.aidl253 in long configKey, in String configPackage, in int callingUid); in querySql() argument
263 long[] setRestrictedMetricsChangedOperation(in long configKey, in String configPackage, in setRestrictedMetricsChangedOperation() argument
271 void removeRestrictedMetricsChangedOperation(in long configKey, in String configPackage, in removeRestrictedMetricsChangedOperation() argument
/packages/modules/StatsD/statsd/src/anomaly/
Dsubscriber_util.cpp33 const ConfigKey& configKey, in triggerSubscribers() argument
52 dimensionKey, metricValue, configKey)) { in triggerSubscribers()
58 subscription.id(), ruleId, configKey)) { in triggerSubscribers()
68 SubscriberReporter::getInstance().alertBroadcastSubscriber(configKey, subscription, in triggerSubscribers()
DAlarmTracker.cpp34 const Alarm& alarm, const ConfigKey& configKey, in AlarmTracker() argument
37 mConfigKey(configKey), in AlarmTracker()
/packages/modules/StatsD/statsd/tests/external/
DStatsPullerManager_test.cpp41 ConfigKey configKey(50, 12345); variable
121 pullerManager->RegisterPullUidProvider(configKey, uidProvider); in TEST()
130 pullerManager->RegisterPullUidProvider(configKey, uidProvider); in TEST()
133 EXPECT_TRUE(pullerManager->Pull(pullTagId1, configKey, /*timestamp =*/1, &data)); in TEST()
142 pullerManager->RegisterPullUidProvider(configKey, uidProvider); in TEST()
145 EXPECT_FALSE(pullerManager->Pull(pullTagId2, configKey, /*timestamp =*/1, &data)); in TEST()
/packages/modules/StatsD/statsd/tests/
DStatsService_test.cpp80 ConfigKey configKey(kCallingUid, kConfigKey); in TEST() local
81 service->mProcessor->onDumpReport(configKey, getElapsedRealtimeNs(), in TEST()
96 ConfigKey configKey(kCallingUid, kConfigKey); in TEST() local
97 service->mProcessor->onDumpReport(configKey, getElapsedRealtimeNs(), in TEST()
183 ConfigKey configKey(kCallingUid, kConfigKey); in TEST_F() local
184 service->mProcessor->onDumpReport(configKey, dumpReportTsNanos, in TEST_F()
/packages/modules/StatsD/statsd/src/
DStatsService.cpp340 for (const ConfigKey& configKey : mConfigManager->GetAllConfigKeys()) { in dumpIncidentSection() local
346 mProcessor->onDumpReport(configKey, getElapsedRealtimeNs(), getWallClockNs(), in dumpIncidentSection()
1220 ConfigKey configKey(callingUid, key); in getDataChecked() local
1223 mProcessor->onDumpReport(configKey, getElapsedRealtimeNs(), getWallClockNs(), in getDataChecked()
1249 ConfigKey configKey(uid, key); in addConfigurationChecked() local
1256 mConfigManager->UpdateConfig(configKey, cfg); in addConfigurationChecked()
1264 ConfigKey configKey(callingUid, key); in removeDataFetchOperation() local
1265 mConfigManager->RemoveConfigReceiver(configKey); in removeDataFetchOperation()
1275 ConfigKey configKey(callingUid, key); in setDataFetchOperation() local
1276 mConfigManager->SetConfigReceiver(configKey, pir); in setDataFetchOperation()
[all …]
/packages/modules/StatsD/service/java/com/android/server/stats/
DStatsManagerService.java608 IStatsQueryCallback queryCallback, long configKey, String configPackage) { in querySql() argument
620 configKey, in querySql()
821 ConfigKey configKey = entry.getKey(); in registerAllBroadcastSubscribers() local
823 statsd.setBroadcastSubscriber(configKey.getConfigId(), subscriberEntry.getKey(), in registerAllBroadcastSubscribers()
824 subscriberEntry.getValue(), configKey.getUid()); in registerAllBroadcastSubscribers()
845 ConfigKeyWithPackage configKey = entry.getKey(); in registerAllRestrictedMetricsChangedOperations() local
847 statsd.setRestrictedMetricsChangedOperation(configKey.getConfigId(), in registerAllRestrictedMetricsChangedOperations()
848 configKey.getConfigPackage(), uidEntry.getValue(), uidEntry.getKey()); in registerAllRestrictedMetricsChangedOperations()
860 private static void getDataFdFromStatsd(IStatsd service, long configKey, int callingUid, in getDataFdFromStatsd() argument
877 service.getDataFd(configKey, callingUid, writeFd); in getDataFdFromStatsd()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DIpConfigStoreTestWriter.java48 public static boolean writeConfig(DataOutputStream out, String configKey, in writeConfig() argument
131 out.writeInt(Integer.valueOf(configKey)); in writeConfig()
133 out.writeUTF(configKey); in writeConfig()
/packages/modules/Connectivity/service-t/src/com/android/server/net/
DIpConfigStore.java79 private static boolean writeConfig(DataOutputStream out, String configKey, in writeConfig() argument
81 return writeConfig(out, configKey, config, IPCONFIG_FILE_VERSION); in writeConfig()
88 public static boolean writeConfig(DataOutputStream out, String configKey, in writeConfig() argument
172 out.writeInt(Integer.valueOf(configKey)); in writeConfig()
174 out.writeUTF(configKey); in writeConfig()
/packages/modules/StatsD/statsd/src/guardrail/
DStatsdStats.h669 void noteRestrictedMetricInsertError(const ConfigKey& configKey, int64_t metricId);
672 void noteRestrictedMetricTableCreationError(const ConfigKey& configKey, int64_t metricId);
675 void noteRestrictedMetricTableDeletionError(const ConfigKey& configKey, int64_t metricId);
678 void noteRestrictedMetricFlushLatency(const ConfigKey& configKey, int64_t metricId,
682 void noteRestrictedMetricCategoryChanged(const ConfigKey& configKey, int64_t metricId);
685 void noteRestrictedConfigFlushLatency(const ConfigKey& configKey,
689 void noteRestrictedConfigDbSize(const ConfigKey& configKey, int64_t elapsedTimeNs,

123