Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/app/
DStatsManager.java110 public void addConfig(long configKey, byte[] config) throws StatsUnavailableException { in addConfig() argument
115 service.addConfiguration(configKey, config, mContext.getOpPackageName()); in addConfig()
131 public boolean addConfiguration(long configKey, byte[] config) { in addConfiguration() argument
133 addConfig(configKey, config); in addConfiguration()
147 public void removeConfig(long configKey) throws StatsUnavailableException { in removeConfig() argument
151 service.removeConfiguration(configKey, mContext.getOpPackageName()); in removeConfig()
167 public boolean removeConfiguration(long configKey) { in removeConfiguration() argument
169 removeConfig(configKey); in removeConfiguration()
207 PendingIntent pendingIntent, long configKey, long subscriberId) in setBroadcastSubscriber() argument
215 service.setBroadcastSubscriber(configKey, subscriberId, intentSender, in setBroadcastSubscriber()
[all …]
/frameworks/base/cmds/statsd/src/subscriber/
DSubscriberReporter.cpp32 void SubscriberReporter::setBroadcastSubscriber(const ConfigKey& configKey, in setBroadcastSubscriber() argument
37 mIntentMap[configKey][subscriberId] = intentSender; in setBroadcastSubscriber()
40 void SubscriberReporter::unsetBroadcastSubscriber(const ConfigKey& configKey, in unsetBroadcastSubscriber() argument
44 auto subscriberMapIt = mIntentMap.find(configKey); in unsetBroadcastSubscriber()
48 mIntentMap.erase(configKey); in unsetBroadcastSubscriber()
53 void SubscriberReporter::removeConfig(const ConfigKey& configKey) { in removeConfig() argument
56 mIntentMap.erase(configKey); in removeConfig()
59 void SubscriberReporter::alertBroadcastSubscriber(const ConfigKey& configKey, in alertBroadcastSubscriber() argument
86 auto it1 = mIntentMap.find(configKey); in alertBroadcastSubscriber()
88 ALOGW("Cannot inform subscriber for missing config key %s ", configKey.ToString().c_str()); in alertBroadcastSubscriber()
[all …]
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,
104 const ConfigKey& configKey,
DIncidentdReporter.cpp62 int64_t metricValue, const ConfigKey& configKey, const string& reason, in getProtoData() argument
69 headerProto.write(FIELD_TYPE_INT32 | FIELD_ID_CONFIG_KEY_UID, configKey.GetUid()); in getProtoData()
70 headerProto.write(FIELD_TYPE_INT64 | FIELD_ID_CONFIG_KEY_ID, (long long)configKey.GetId()); in getProtoData()
139 const ConfigKey& configKey) { in GenerateIncidentReport() argument
142 configKey.GetUid(), (long long)configKey.GetId()); in GenerateIncidentReport()
149 getProtoData(rule_id, metricId, dimensionKey, metricValue, configKey, in GenerateIncidentReport()
/frameworks/base/cmds/statsd/src/anomaly/
Dsubscriber_util.cpp34 int64_t metricValue, const ConfigKey& configKey, in triggerSubscribers() argument
53 dimensionKey, metricValue, configKey)) { in triggerSubscribers()
59 subscription.id(), ruleId, configKey)) { in triggerSubscribers()
64 SubscriberReporter::getInstance().alertBroadcastSubscriber(configKey, subscription, in triggerSubscribers()
69 ruleId, configKey)) { in triggerSubscribers()
DAlarmTracker.cpp35 const Alarm& alarm, const ConfigKey& configKey, in AlarmTracker() argument
38 mConfigKey(configKey), in AlarmTracker()
DDurationAnomalyTracker.cpp27 DurationAnomalyTracker::DurationAnomalyTracker(const Alert& alert, const ConfigKey& configKey, in DurationAnomalyTracker() argument
29 : AnomalyTracker(alert, configKey), mAlarmMonitor(alarmMonitor) { in DurationAnomalyTracker()
/frameworks/base/core/java/android/os/
DIStatsManager.aidl107 void addConfiguration(in long configKey, in byte[] config, in String packageName); in addConfiguration() argument
116 void setDataFetchOperation(long configKey, in IBinder intentSender, in String packageName); in setDataFetchOperation() argument
123 void removeDataFetchOperation(long configKey, in String packageName); in removeDataFetchOperation() argument
148 void removeConfiguration(in long configKey, in String packageName); in removeConfiguration() argument
168 void setBroadcastSubscriber(long configKey, long subscriberId, in IBinder intentSender, in setBroadcastSubscriber() argument
178 void unsetBroadcastSubscriber(long configKey, long subscriberId, in String packageName); in unsetBroadcastSubscriber() argument
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DNetworkListStoreDataTest.java274 openNetwork.configKey().replaceAll("\"", """), in getTestNetworksXmlBytes()
279 eapNetwork.configKey().replaceAll("\"", """), in getTestNetworksXmlBytes()
414 openNetwork.configKey().replaceAll("\"", """), in parseNetworkWithUnknownTag()
476 openNetwork.configKey().replaceAll("\"", """), in parseNetworkWithInvalidCreatorUidResetsToSystem()
483 assertEquals(openNetwork.configKey(), deserializedNetworks.get(0).configKey()); in parseNetworkWithInvalidCreatorUidResetsToSystem()
504 openNetwork.configKey().replaceAll("\"", """), in parseNetworkWithInvalidCreatorNameResetsToPackageNameForCreatorUid()
511 assertEquals(openNetwork.configKey(), deserializedNetworks.get(0).configKey()); in parseNetworkWithInvalidCreatorNameResetsToPackageNameForCreatorUid()
531 openNetwork.configKey().replaceAll("\"", """), in parseNetworkWithNullCreatorNameResetsToPackageNameForCreatorUid()
538 assertEquals(openNetwork.configKey(), deserializedNetworks.get(0).configKey()); in parseNetworkWithNullCreatorNameResetsToPackageNameForCreatorUid()
552 openNetwork.configKey().replaceAll("\"", """), in parseNetworkWithValidCreatorUid()
[all …]
DWifiNetworkSelectorTestUtil.java168 String configKey = ssids[index] + Integer.toString(securities[index]); in generateWifiConfigurations() local
171 id = netIdMap.get(configKey); in generateWifiConfigurations()
174 netIdMap.put(configKey, id); in generateWifiConfigurations()
212 public WifiConfiguration answer(String configKey) { in prepareConfigStore()
214 if (TextUtils.equals(config.configKey(), configKey)) { in prepareConfigStore()
278 public boolean answer(int netId, String configKey, long timestamp) { in prepareConfigStore()
280 configs[netId].getNetworkSelectionStatus().setConnectChoice(configKey); in prepareConfigStore()
DCarrierNetworkEvaluatorTest.java111 mConfigs.put(config.configKey(), networkId); in addConfig()
117 Integer networkId = mConfigs.get(config.configKey()); in answer()
263 assertEquals(config2.configKey(), selected.configKey()); // SSID2 has the highest RSSI in testSelectOneFromMultiple()
377 when(mWifiConfigManager.getConfiguredNetwork(eq(blacklisted.configKey()))) in testAvailableButBlacklisted()
384 verify(mWifiConfigManager).getConfiguredNetwork(eq(blacklisted.configKey())); in testAvailableButBlacklisted()
414 assertEquals(carrierConfig.configKey(), selected.configKey()); in testSupportsEncryptedImsi()
DConfigurationMapTest.java153 assertEquals(config, mConfigs.getByConfigKeyForCurrentUser(config.configKey())); in verifyGetters()
166 assertNull(mConfigs.getByConfigKeyForCurrentUser(config.configKey())); in verifyGetters()
200 assertEquals(config.configKey(), retrievedConfig.configKey()); in verifyScanResultMatchWithNetwork()
DNetworkSuggestionEvaluatorTest.java404 suggestions[0].wifiConfiguration.configKey())); in testSelectNetworkSuggestionForOneMatchButFailToAddToWifiConfigManager()
439 when(mWifiConfigManager.getConfiguredNetwork(suggestions[0].wifiConfiguration.configKey())) in testSelectNetworkSuggestionForOneMatchForExistingNetwork()
457 verify(mWifiConfigManager).getConfiguredNetwork(candidate.configKey()); in testSelectNetworkSuggestionForOneMatchForExistingNetwork()
546 when(mWifiConfigManager.getConfiguredNetwork(suggestions[0].wifiConfiguration.configKey())) in testSelectNetworkSuggestionForOneMatchForExistingNetworkButTempDisabled()
562 suggestions[0].wifiConfiguration.configKey())); in testSelectNetworkSuggestionForOneMatchForExistingNetworkButTempDisabled()
604 when(mWifiConfigManager.getConfiguredNetwork(suggestions[0].wifiConfiguration.configKey())) in testSelectNetworkSuggestionForOneMatchForExistingNetworkButTempDisableExpired()
624 suggestions[0].wifiConfiguration.configKey())); in testSelectNetworkSuggestionForOneMatchForExistingNetworkButTempDisableExpired()
658 return mConfig.configKey().equals(otherConfig.configKey()); in matches()
/frameworks/wilhelm/src/itf/
DIAndroidConfiguration.cpp35 const SLchar *configKey, in IAndroidConfiguration_SetConfiguration() argument
42 if (NULL == configKey || NULL == pConfigValue || valueSize == 0) { in IAndroidConfiguration_SetConfiguration()
53 configKey, valueSize); in IAndroidConfiguration_SetConfiguration()
54 result = android_audioRecorder_setConfig((CAudioRecorder *) thiz->mThis, configKey, in IAndroidConfiguration_SetConfiguration()
59 configKey, valueSize); in IAndroidConfiguration_SetConfiguration()
60 result = android_audioPlayer_setConfig((CAudioPlayer *) thiz->mThis, configKey, in IAndroidConfiguration_SetConfiguration()
76 const SLchar *configKey, in IAndroidConfiguration_GetConfiguration() argument
84 if (NULL == configKey || NULL == pValueSize) { in IAndroidConfiguration_GetConfiguration()
93 result = android_audioRecorder_getConfig((CAudioRecorder *) thiz->mThis, configKey, in IAndroidConfiguration_GetConfiguration()
97 result = android_audioPlayer_getConfig((CAudioPlayer *) thiz->mThis, configKey, in IAndroidConfiguration_GetConfiguration()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigManager.java693 public WifiConfiguration getConfiguredNetwork(String configKey) { in getConfiguredNetwork() argument
694 WifiConfiguration config = getInternalConfiguredNetwork(configKey); in getConfiguredNetwork()
760 internalConfig = mConfiguredNetworks.getByConfigKeyForCurrentUser(config.configKey()); in getInternalConfiguredNetwork()
763 + " or configKey " + config.configKey()); in getInternalConfiguredNetwork()
787 private WifiConfiguration getInternalConfiguredNetwork(String configKey) { in getInternalConfiguredNetwork() argument
789 mConfiguredNetworks.getByConfigKeyForCurrentUser(configKey); in getInternalConfiguredNetwork()
791 Log.e(TAG, "Cannot find network with configKey " + configKey); in getInternalConfiguredNetwork()
1176 existingInternalConfig = getInternalConfiguredNetwork(newInternalConfig.configKey()); in addOrUpdateNetworkInternal()
1188 + config.configKey()); in addOrUpdateNetworkInternal()
1200 + config.configKey() + ". Must have NETWORK_SETTINGS," in addOrUpdateNetworkInternal()
[all …]
DWifiBackupRestore.java192 + configuration.configKey()); in writeNetworkConfigurationsToXml()
372 if (configuration.configKey().hashCode() == id) { in retrieveConfigurationsFromSupplicantBackupData()
661 String configKey = extras.get( in createWifiConfiguration() local
665 if (configKey == null) { in createWifiConfiguration()
669 if (!configKey.equals(configuration.configKey())) { in createWifiConfiguration()
672 Log.w(TAG, "Configuration key does not match. Retrieved: " + configKey in createWifiConfiguration()
673 + ", Calculated: " + configuration.configKey()); in createWifiConfiguration()
682 + configuration.configKey()); in createWifiConfiguration()
744 Log.v(TAG, "Parsed Configuration: " + wifiConfiguration.configKey()); in retrieveWifiConfigurations()
DNetworkListStoreData.java257 String configKeyCalculated = configuration.configKey(); in parseNetwork()
266 Log.e(TAG, "Invalid creatorUid for saved network " + configuration.configKey() in parseNetwork()
272 Log.w(TAG, "Invalid creatorName for saved network " + configuration.configKey() in parseNetwork()
/frameworks/base/cmds/statsd/src/external/
DPerfetto.cpp44 const ConfigKey& configKey) { in CollectPerfettoTraceAndUploadToDropbox() argument
58 snprintf(configId, sizeof(configId), "%" PRId64, configKey.GetId()); in CollectPerfettoTraceAndUploadToDropbox()
59 snprintf(configUid, sizeof(configUid), "%d", configKey.GetUid()); in CollectPerfettoTraceAndUploadToDropbox()
DPerfprofd.h34 const ConfigKey& configKey);
/frameworks/wilhelm/src/android/
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,
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,
DAudioRecorder_to_android.cpp433 SLresult android_audioRecorder_setConfig(CAudioRecorder* ar, const SLchar *configKey, in android_audioRecorder_setConfig() argument
438 assert(NULL != ar && NULL != configKey && NULL != pConfigValue); in android_audioRecorder_setConfig()
439 if (strcmp((const char*)configKey, (const char*)SL_ANDROID_KEY_RECORDING_PRESET) == 0) { in android_audioRecorder_setConfig()
449 } else if (strcmp((const char*)configKey, (const char*)SL_ANDROID_KEY_PERFORMANCE_MODE) == 0) { in android_audioRecorder_setConfig()
468 SLresult android_audioRecorder_getConfig(CAudioRecorder* ar, const SLchar *configKey, in android_audioRecorder_getConfig() argument
473 assert(NULL != ar && NULL != configKey && NULL != pValueSize); in android_audioRecorder_getConfig()
474 if (strcmp((const char*)configKey, (const char*)SL_ANDROID_KEY_RECORDING_PRESET) == 0) { in android_audioRecorder_getConfig()
487 } else if (strcmp((const char*)configKey, (const char*)SL_ANDROID_KEY_PERFORMANCE_MODE) == 0) { in android_audioRecorder_getConfig()
/frameworks/base/cmds/statsd/src/
DStatsService.cpp336 for (const ConfigKey& configKey : mConfigManager->GetAllConfigKeys()) { in dumpIncidentSection() local
339 mProcessor->onDumpReport(configKey, getElapsedRealtimeNs(), in dumpIncidentSection()
1134 ConfigKey configKey(ipc->getCallingUid(), key); in getData() local
1137 mProcessor->onDumpReport(configKey, getElapsedRealtimeNs(), false /* include_current_bucket*/, in getData()
1167 ConfigKey configKey(uid, key); in addConfigurationChecked() local
1174 mConfigManager->UpdateConfig(configKey, cfg); in addConfigurationChecked()
1182 ConfigKey configKey(ipc->getCallingUid(), key); in removeDataFetchOperation() local
1183 mConfigManager->RemoveConfigReceiver(configKey); in removeDataFetchOperation()
1193 ConfigKey configKey(ipc->getCallingUid(), key); in setDataFetchOperation() local
1194 mConfigManager->SetConfigReceiver(configKey, intentSender); in setDataFetchOperation()
[all …]
/frameworks/base/services/core/java/com/android/server/location/
DGnssConfiguration.java319 for (String configKey : configs.keySet()) { in loadPropertiesFromCarrierConfig()
320 if (configKey.startsWith(CarrierConfigManager.Gps.KEY_PREFIX)) { in loadPropertiesFromCarrierConfig()
321 String key = configKey in loadPropertiesFromCarrierConfig()
324 Object value = configs.get(configKey); in loadPropertiesFromCarrierConfig()
/frameworks/base/services/core/java/com/android/server/net/
DIpConfigStore.java73 private static boolean writeConfig(DataOutputStream out, String configKey, in writeConfig() argument
75 return writeConfig(out, configKey, config, IPCONFIG_FILE_VERSION); in writeConfig()
79 public static boolean writeConfig(DataOutputStream out, String configKey, in writeConfig() argument
162 out.writeInt(Integer.valueOf(configKey)); in writeConfig()
164 out.writeUTF(configKey); in writeConfig()

123