Home
last modified time | relevance | path

Searched refs:configKey (Results 1 – 25 of 56) 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.java159 public void addConfig(long configKey, byte[] config) throws StatsUnavailableException { in addConfig() argument
164 service.addConfiguration(configKey, config, mContext.getOpPackageName()); in addConfig()
183 public boolean addConfiguration(long configKey, byte[] config) { in addConfiguration() argument
185 addConfig(configKey, config); in addConfiguration()
201 public void removeConfig(long configKey) throws StatsUnavailableException { in removeConfig() argument
205 service.removeConfiguration(configKey, mContext.getOpPackageName()); in removeConfig()
224 public boolean removeConfiguration(long configKey) { in removeConfiguration() argument
226 removeConfig(configKey); in removeConfiguration()
265 PendingIntent pendingIntent, long configKey, long subscriberId) in setBroadcastSubscriber() argument
271 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.cpp26 const ConfigKey configKey(/*uid=*/0, /*id=*/12345); variable
37 return dbutils::query(configKey, query.str(), rows, columnTypes, columnNames, err); in metricTableExist()
52 dbutils::deleteDb(configKey); in TearDown()
60 RestrictedEventMetricProducer producer(configKey, metric, in TEST_F()
78 dbutils::query(configKey, query.str(), rows, columnTypes, columnNames, err); in TEST_F()
93 RestrictedEventMetricProducer producer(configKey, metric, in TEST_F()
119 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()
168 RestrictedEventMetricProducer producer(configKey, metric, in TEST_F()
[all …]
/packages/modules/StatsD/statsd/src/external/
DStatsPullerManager.cpp55 bool StatsPullerManager::Pull(int tagId, const ConfigKey& configKey, const int64_t eventTimeNs, in Pull() argument
58 return PullLocked(tagId, configKey, eventTimeNs, data); in Pull()
67 bool StatsPullerManager::PullLocked(int tagId, const ConfigKey& configKey, in PullLocked() argument
70 const auto& uidProviderIt = mPullUidProviders.find(configKey); in PullLocked()
73 configKey.ToString().c_str()); in PullLocked()
80 configKey.ToString().c_str()); in PullLocked()
150 void StatsPullerManager::RegisterReceiver(int tagId, const ConfigKey& configKey, in RegisterReceiver() argument
154 auto& receivers = mReceivers[{.atomTag = tagId, .configKey = configKey}]; in RegisterReceiver()
186 void StatsPullerManager::UnRegisterReceiver(int tagId, const ConfigKey& configKey, in UnRegisterReceiver() argument
189 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, 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; member
138 return atomTag == that.atomTag ? configKey < that.configKey : atomTag < that.atomTag;
154 bool PullLocked(int tagId, const ConfigKey& configKey, const 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.cpp46 const ConfigKey configKey(config_app_uid, configId);
123 processor = CreateStatsLogProcessor(baseTimeNs, configAddedTimeNs, config, configKey, in SetUp()
134 dbutils::deleteDb(configKey); in TearDown()
340 CreateStatsLogProcessor(/*baseTimeNs=*/0, configAddedTimeNs, config, configKey, in TEST_F()
558 EXPECT_TRUE(dbutils::query(configKey, query.str(), rows, columnTypes, columnNames, err)); in TEST_F()
579 processor->OnConfigRemoved(configKey); in TEST_F()
585 EXPECT_FALSE(dbutils::query(configKey, query.str(), rows, columnTypes, columnNames, err)); in TEST_F()
599 processor->OnConfigRemoved(configKey); in TEST_F()
607 EXPECT_FALSE(dbutils::query(configKey, query.str(), rows, columnTypes, columnNames, err)); in TEST_F()
623 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
143 in long configKey, in String configPackage); in querySql() argument
153 long[] setRestrictedMetricsChangedOperation(in PendingIntent pendingIntent, in long configKey, in setRestrictedMetricsChangedOperation() argument
161 void removeRestrictedMetricsChangedOperation(in long configKey, in String configPackage); in removeRestrictedMetricsChangedOperation() argument
DIStatsd.aidl252 in long configKey, in String configPackage, in int callingUid); in querySql() argument
262 long[] setRestrictedMetricsChangedOperation(in long configKey, in String configPackage, in setRestrictedMetricsChangedOperation() argument
270 void removeRestrictedMetricsChangedOperation(in long configKey, in String configPackage, in removeRestrictedMetricsChangedOperation() argument
/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/src/anomaly/
Dsubscriber_util.cpp29 int64_t metricValue, const ConfigKey& configKey, in triggerSubscribers() argument
48 dimensionKey, metricValue, configKey)) { in triggerSubscribers()
54 subscription.id(), ruleId, configKey)) { in triggerSubscribers()
59 SubscriberReporter::getInstance().alertBroadcastSubscriber(configKey, subscription, in triggerSubscribers()
/packages/modules/StatsD/statsd/src/
DStatsService.cpp344 for (const ConfigKey& configKey : mConfigManager->GetAllConfigKeys()) { in dumpIncidentSection() local
350 mProcessor->onDumpReport(configKey, getElapsedRealtimeNs(), getWallClockNs(), in dumpIncidentSection()
1194 ConfigKey configKey(callingUid, key); in getData() local
1197 mProcessor->onDumpReport(configKey, getElapsedRealtimeNs(), getWallClockNs(), in getData()
1222 ConfigKey configKey(uid, key); in addConfigurationChecked() local
1229 mConfigManager->UpdateConfig(configKey, cfg); in addConfigurationChecked()
1236 ConfigKey configKey(callingUid, key); in removeDataFetchOperation() local
1237 mConfigManager->RemoveConfigReceiver(configKey); in removeDataFetchOperation()
1246 ConfigKey configKey(callingUid, key); in setDataFetchOperation() local
1247 mConfigManager->SetConfigReceiver(configKey, pir); in setDataFetchOperation()
[all …]
/packages/modules/StatsD/statsd/tests/
DStatsService_test.cpp82 ConfigKey configKey(kCallingUid, kConfigKey); in TEST() local
83 service->mProcessor->onDumpReport(configKey, getElapsedRealtimeNs(), in TEST()
98 ConfigKey configKey(kCallingUid, kConfigKey); in TEST() local
99 service->mProcessor->onDumpReport(configKey, getElapsedRealtimeNs(), in TEST()
216 ConfigKey configKey(kCallingUid, kConfigKey); in TEST_P() local
217 service->mProcessor->onDumpReport(configKey, dumpReportTsNanos, in TEST_P()
/packages/modules/StatsD/statsd/src/guardrail/
DStatsdStats.h593 void noteRestrictedMetricInsertError(const ConfigKey& configKey, int64_t metricId);
596 void noteRestrictedMetricTableCreationError(const ConfigKey& configKey, const int64_t metricId);
599 void noteRestrictedMetricTableDeletionError(const ConfigKey& configKey, const int64_t metricId);
602 void noteRestrictedMetricFlushLatency(const ConfigKey& configKey, const int64_t metricId,
606 void noteRestrictedMetricCategoryChanged(const ConfigKey& configKey, const int64_t metricId);
609 void noteRestrictedConfigFlushLatency(const ConfigKey& configKey,
613 void noteRestrictedConfigDbSize(const ConfigKey& configKey, const int64_t elapsedTimeNs,
DStatsdStats.cpp711 void StatsdStats::noteRestrictedMetricInsertError(const ConfigKey& configKey, in noteRestrictedMetricInsertError() argument
714 auto it = mConfigStats.find(configKey); in noteRestrictedMetricInsertError()
720 void StatsdStats::noteRestrictedMetricTableCreationError(const ConfigKey& configKey, in noteRestrictedMetricTableCreationError() argument
723 auto it = mConfigStats.find(configKey); in noteRestrictedMetricTableCreationError()
729 void StatsdStats::noteRestrictedMetricTableDeletionError(const ConfigKey& configKey, in noteRestrictedMetricTableDeletionError() argument
732 auto it = mConfigStats.find(configKey); in noteRestrictedMetricTableDeletionError()
738 void StatsdStats::noteRestrictedMetricFlushLatency(const ConfigKey& configKey, in noteRestrictedMetricFlushLatency() argument
742 auto it = mConfigStats.find(configKey); in noteRestrictedMetricFlushLatency()
744 ALOGE("Config key %s not found!", configKey.ToString().c_str()); in noteRestrictedMetricFlushLatency()
754 void StatsdStats::noteRestrictedConfigFlushLatency(const ConfigKey& configKey, in noteRestrictedConfigFlushLatency() argument
[all …]
/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/StatsD/service/java/com/android/server/stats/
DStatsManagerService.java574 IStatsQueryCallback queryCallback, long configKey, String configPackage) { in querySql() argument
586 configKey, in querySql()
787 ConfigKey configKey = entry.getKey(); in registerAllBroadcastSubscribers() local
789 statsd.setBroadcastSubscriber(configKey.getConfigId(), subscriberEntry.getKey(), in registerAllBroadcastSubscribers()
790 subscriberEntry.getValue(), configKey.getUid()); in registerAllBroadcastSubscribers()
811 ConfigKeyWithPackage configKey = entry.getKey(); in registerAllRestrictedMetricsChangedOperations() local
813 statsd.setRestrictedMetricsChangedOperation(configKey.getConfigId(), in registerAllRestrictedMetricsChangedOperations()
814 configKey.getConfigPackage(), uidEntry.getValue(), uidEntry.getKey()); in registerAllRestrictedMetricsChangedOperations()
/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/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DAnomalyDetectionReceiver.java37 final long configKey = intent.getLongExtra(StatsManager.EXTRA_STATS_CONFIG_KEY, -1); in onReceive() local
41 + configKey + " subscriptionId = " + subscriptionId); in onReceive()

123