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

123

/frameworks/base/cmds/statsd/src/subscriber/
H A DIncidentdReporter.h30 const ConfigKey& configKey);
H A DSubscriberReporter.cpp32 void SubscriberReporter::setBroadcastSubscriber(const ConfigKey& configKey, argument
37 mIntentMap[configKey][subscriberId] = intentSender;
40 void SubscriberReporter::unsetBroadcastSubscriber(const ConfigKey& configKey, argument
44 auto subscriberMapIt = mIntentMap.find(configKey);
48 mIntentMap.erase(configKey);
53 void SubscriberReporter::removeConfig(const ConfigKey& configKey) { argument
56 mIntentMap.erase(configKey);
59 void SubscriberReporter::alertBroadcastSubscriber(const ConfigKey& configKey, argument
86 auto it1 = mIntentMap.find(configKey);
88 ALOGW("Cannot inform subscriber for missing config key %s ", configKey
100 sendBroadcastLocked(const sp<IBinder>& intentSender, const ConfigKey& configKey, const Subscription& subscription, const vector<String16>& cookies, const MetricDimensionKey& dimKey) const argument
[all...]
H A DIncidentdReporter.cpp32 const ConfigKey& configKey) {
35 configKey.GetUid(), (long long) configKey.GetId());
43 header.mutable_config_key()->set_uid(configKey.GetUid());
44 header.mutable_config_key()->set_id(configKey.GetId());
31 GenerateIncidentReport(const IncidentdDetails& config, const int64_t& rule_id, const ConfigKey& configKey) argument
H A DSubscriberReporter.h61 * Stores the given intentSender, associating it with the given (configKey, subscriberId) pair.
64 void setBroadcastSubscriber(const ConfigKey& configKey,
69 * Erases any intentSender information from the given (configKey, subscriberId) pair.
71 void unsetBroadcastSubscriber(const ConfigKey& configKey, int64_t subscriberId);
74 void removeConfig(const ConfigKey& configKey);
78 * given (configKey, subscriberId) pair by setBroadcastSubscriber.
81 void alertBroadcastSubscriber(const ConfigKey& configKey,
104 const ConfigKey& configKey,
/frameworks/base/core/java/android/os/
H A DIStatsManager.aidl100 void addConfiguration(in long configKey, in byte[] config, in String packageName);
109 void setDataFetchOperation(long configKey, in IBinder intentSender, in String packageName);
116 void removeDataFetchOperation(long configKey, in String packageName);
124 void removeConfiguration(in long configKey, in String packageName);
130 * Suppose that the calling uid has added a config with key configKey, and that in this config
144 void setBroadcastSubscriber(long configKey, long subscriberId, in IBinder intentSender,
148 * Undoes setBroadcastSubscriber() for the (configKey, subscriberId) pair.
150 * No-op if this (configKey, subsriberId) pair was not associated with an IntentSender.
154 void unsetBroadcastSubscriber(long configKey, long subscriberId, in String packageName);
/frameworks/base/cmds/statsd/src/anomaly/
H A Dsubscriber_util.cpp35 const ConfigKey& configKey,
53 if (!GenerateIncidentReport(subscription.incidentd_details(), rule_id, configKey)) {
59 rule_id, configKey)) {
64 SubscriberReporter::getInstance().alertBroadcastSubscriber(configKey, subscription,
33 triggerSubscribers(const int64_t rule_id, const MetricDimensionKey& dimensionKey, const ConfigKey& configKey, const std::vector<Subscription>& subscriptions) argument
H A Dsubscriber_util.h29 const ConfigKey& configKey,
H A DAlarmTracker.cpp35 const Alarm& alarm, const ConfigKey& configKey,
38 mConfigKey(configKey),
33 AlarmTracker(const int64_t startMillis, const int64_t currentMillis, const Alarm& alarm, const ConfigKey& configKey, const sp<AlarmMonitor>& alarmMonitor) argument
H A DDurationAnomalyTracker.cpp27 DurationAnomalyTracker::DurationAnomalyTracker(const Alert& alert, const ConfigKey& configKey, argument
29 : AnomalyTracker(alert, configKey), mAlarmMonitor(alarmMonitor) {
H A DAlarmTracker.h39 const Alarm& alarm, const ConfigKey& configKey,
H A DDurationAnomalyTracker.h30 DurationAnomalyTracker(const Alert& alert, const ConfigKey& configKey,
/frameworks/base/core/java/android/app/
H A DStatsManager.java51 * Long extra of the relevant stats config's configKey.
93 * Adds the given configuration and associates it with the given configKey. If a config with the
94 * given configKey already exists for the caller's uid, it is replaced with the new one.
96 * @param configKey An arbitrary integer that allows clients to track the configuration.
103 public void addConfig(long configKey, byte[] config) throws StatsUnavailableException { argument
108 service.addConfiguration(configKey, config, mContext.getOpPackageName());
123 public boolean addConfiguration(long configKey, byte[] config) { argument
125 addConfig(configKey, config);
135 * @param configKey Configuration key to remove.
139 public void removeConfig(long configKey) throw argument
158 removeConfiguration(long configKey) argument
197 setBroadcastSubscriber( PendingIntent pendingIntent, long configKey, long subscriberId) argument
226 setBroadcastSubscriber( long configKey, long subscriberId, PendingIntent pendingIntent) argument
251 setFetchReportsOperation(PendingIntent pendingIntent, long configKey) argument
279 setDataFetchOperation(long configKey, PendingIntent pendingIntent) argument
297 getReports(long configKey) argument
316 getData(long configKey) argument
[all...]
/frameworks/base/cmds/statsd/src/external/
H A DPerfetto.h36 const ConfigKey& configKey);
H A DPerfetto.cpp43 const ConfigKey& configKey) {
55 snprintf(configId, sizeof(configId), "%" PRId64, configKey.GetId());
56 snprintf(configUid, sizeof(configUid), "%d", configKey.GetUid());
41 CollectPerfettoTraceAndUploadToDropbox(const PerfettoDetails& config, int64_t alert_id, const ConfigKey& configKey) argument
/frameworks/wilhelm/src/android/
H A DAudioRecorder_to_android.h31 extern SLresult android_audioRecorder_setConfig(CAudioRecorder* ar, const SLchar *configKey,
43 extern SLresult android_audioRecorder_getConfig(CAudioRecorder* ar, const SLchar *configKey,
H A DAudioPlayer_to_android.h52 extern SLresult android_audioPlayer_setConfig(CAudioPlayer *pAudioPlayer, const SLchar *configKey,
64 extern SLresult android_audioPlayer_getConfig(CAudioPlayer *pAudioPlayer, const SLchar *configKey,
H A DAudioRecorder_to_android.cpp432 SLresult android_audioRecorder_setConfig(CAudioRecorder* ar, const SLchar *configKey, argument
437 assert(NULL != ar && NULL != configKey && NULL != pConfigValue);
438 if (strcmp((const char*)configKey, (const char*)SL_ANDROID_KEY_RECORDING_PRESET) == 0) {
448 } else if (strcmp((const char*)configKey, (const char*)SL_ANDROID_KEY_PERFORMANCE_MODE) == 0) {
467 SLresult android_audioRecorder_getConfig(CAudioRecorder* ar, const SLchar *configKey, argument
472 assert(NULL != ar && NULL != configKey && NULL != pValueSize);
473 if (strcmp((const char*)configKey, (const char*)SL_ANDROID_KEY_RECORDING_PRESET) == 0) {
486 } else if (strcmp((const char*)configKey, (const char*)SL_ANDROID_KEY_PERFORMANCE_MODE) == 0) {
/frameworks/wilhelm/src/itf/
H A DIAndroidConfiguration.cpp27 const SLchar *configKey,
34 if (NULL == configKey || NULL == pConfigValue || valueSize == 0) {
45 configKey, valueSize);
46 result = android_audioRecorder_setConfig((CAudioRecorder *) thiz->mThis, configKey,
51 configKey, valueSize);
52 result = android_audioPlayer_setConfig((CAudioPlayer *) thiz->mThis, configKey,
68 const SLchar *configKey,
76 if (NULL == configKey || NULL == pValueSize) {
85 result = android_audioRecorder_getConfig((CAudioRecorder *) thiz->mThis, configKey,
89 result = android_audioPlayer_getConfig((CAudioPlayer *) thiz->mThis, configKey,
26 IAndroidConfiguration_SetConfiguration(SLAndroidConfigurationItf self, const SLchar *configKey, const void *pConfigValue, SLuint32 valueSize) argument
67 IAndroidConfiguration_GetConfiguration(SLAndroidConfigurationItf self, const SLchar *configKey, SLuint32 *pValueSize, void *pConfigValue) argument
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DNetworkListStoreDataTest.java270 openNetwork.configKey().replaceAll("\"", "&quot;"),
275 eapNetwork.configKey().replaceAll("\"", "&quot;"),
430 openNetwork.configKey().replaceAll("\"", "&quot;"),
492 openNetwork.configKey().replaceAll("\"", "&quot;"),
499 assertEquals(openNetwork.configKey(), deserializedNetworks.get(0).configKey());
520 openNetwork.configKey().replaceAll("\"", "&quot;"),
527 assertEquals(openNetwork.configKey(), deserializedNetworks.get(0).configKey());
547 openNetwork.configKey()
[all...]
H A DWifiConfigStoreLegacyTest.java160 * Verify loading of network configurations from legacy stores with a null configKey.
175 // Return the config data with null configKey.
198 config.configKey().hashCode(),
208 pskMap.put(config.configKey(), config.preSharedKey);
218 wepKeyMap.put(config.configKey(), config.wepKeys[0]);
228 wepKeyMap.put(config.configKey(), config.wepKeys[1]);
238 wepKeyMap.put(config.configKey(), config.wepKeys[2]);
248 wepKeyMap.put(config.configKey(), config.wepKeys[3]);
258 eapPasswordMap.put(config.configKey(), config.enterpriseConfig.getPassword());
268 configurationMap.put(config.configKey(tru
[all...]
H A DWifiNetworkSelectorTestUtil.java155 String configKey = ssids[index] + Integer.toString(securities[index]);
158 id = netIdMap.get(configKey);
161 netIdMap.put(configKey, id);
195 public WifiConfiguration answer(String configKey) {
197 if (TextUtils.equals(config.configKey(), configKey)) {
261 public boolean answer(int netId, String configKey, long timestamp) {
263 configs[netId].getNetworkSelectionStatus().setConnectChoice(configKey);
/frameworks/base/cmds/statsd/src/
H A DStatsService.cpp893 ConfigKey configKey(ipc->getCallingUid(), key);
894 mProcessor->onDumpReport(configKey, getElapsedRealtimeNs(), false /* include_current_bucket*/,
924 ConfigKey configKey(uid, key);
931 mConfigManager->UpdateConfig(configKey, cfg);
939 ConfigKey configKey(ipc->getCallingUid(), key);
940 mConfigManager->RemoveConfigReceiver(configKey);
950 ConfigKey configKey(ipc->getCallingUid(), key);
951 mConfigManager->SetConfigReceiver(configKey, intentSender);
952 if (StorageManager::hasConfigMetricsReport(configKey)) {
953 VLOG("StatsService::setDataFetchOperation marking configKey
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiConfigManager.java536 * @param configKey configKey of the requested network.
539 public WifiConfiguration getConfiguredNetwork(String configKey) { argument
540 WifiConfiguration config = getInternalConfiguredNetwork(configKey);
599 * else it attempts to find a matching configuration using the configKey.
606 internalConfig = mConfiguredNetworks.getByConfigKeyForCurrentUser(config.configKey());
609 + " or configKey " + config.configKey());
631 * provided configKey in our database.
633 private WifiConfiguration getInternalConfiguredNetwork(String configKey) { argument
[all...]
H A DWifiBackupRestore.java192 + configuration.configKey());
372 if (configuration.configKey().hashCode() == id) {
661 String configKey = extras.get(
665 if (configKey == null) {
669 if (!configKey.equals(configuration.configKey())) {
672 Log.w(TAG, "Configuration key does not match. Retrieved: " + configKey
673 + ", Calculated: " + configuration.configKey());
682 + configuration.configKey());
744 Log.v(TAG, "Parsed Configuration: " + wifiConfiguration.configKey());
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
H A DIpConfigStoreTest.java108 private static void writeDhcpConfigV2(DataOutputStream out, int configKey, argument
121 out.writeInt(configKey);

Completed in 432 milliseconds

123