Home
last modified time | relevance | path

Searched refs:XmlUtil (Results 1 – 21 of 21) sorted by relevance

/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointXmlUtils.java26 import com.android.server.wifi.util.XmlUtil;
133 XmlUtil.writeNextValue(out, XML_TAG_UPDATE_IDENTIFIER, config.getUpdateIdentifier()); in serializePasspointConfiguration()
134 XmlUtil.writeNextValue(out, XML_TAG_CREDENTIAL_PRIORITY, config.getCredentialPriority()); in serializePasspointConfiguration()
135 XmlUtil.writeNextValue(out, XML_TAG_TRUST_ROOT_CERT_LIST, config.getTrustRootCertList()); in serializePasspointConfiguration()
136 XmlUtil.writeNextValue(out, XML_TAG_SUBSCRIPTION_CREATION_TIME, in serializePasspointConfiguration()
138 XmlUtil.writeNextValue(out, XML_TAG_SUBSCRIPTION_EXPIRATION_TIME, in serializePasspointConfiguration()
140 XmlUtil.writeNextValue(out, XML_TAG_SUBSCRIPTION_TYPE, config.getSubscriptionType()); in serializePasspointConfiguration()
141 XmlUtil.writeNextValue(out, XML_TAG_USAGE_LIMIT_TIME_PERIOD, in serializePasspointConfiguration()
143 XmlUtil.writeNextValue(out, XML_TAG_USAGE_LIMIT_START_TIME, in serializePasspointConfiguration()
145 XmlUtil.writeNextValue(out, XML_TAG_USAGE_LIMIT_DATA_LIMIT, in serializePasspointConfiguration()
[all …]
DPasspointConfigUserStoreData.java29 import com.android.server.wifi.util.XmlUtil;
182 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_PASSPOINT_PROVIDER_LIST); in serializeProviderList()
186 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_PASSPOINT_PROVIDER_LIST); in serializeProviderList()
199 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_PASSPOINT_PROVIDER); in serializeProvider()
200 XmlUtil.writeNextValue(out, XML_TAG_PROVIDER_ID, provider.getProviderId()); in serializeProvider()
201 XmlUtil.writeNextValue(out, XML_TAG_CREATOR_UID, provider.getCreatorUid()); in serializeProvider()
203 XmlUtil.writeNextValue(out, XML_TAG_PACKAGE_NAME, provider.getPackageName()); in serializeProvider()
205 XmlUtil.writeNextValue(out, XML_TAG_CA_CERTIFICATE_ALIASES, in serializeProvider()
207 XmlUtil.writeNextValue(out, XML_TAG_CLIENT_PRIVATE_KEY_AND_CERT_ALIAS, in serializeProvider()
209 XmlUtil.writeNextValue(out, XML_TAG_HAS_EVER_CONNECTED, provider.getHasEverConnected()); in serializeProvider()
[all …]
DPasspointConfigSharedStoreData.java24 import com.android.server.wifi.util.XmlUtil;
131 XmlUtil.writeNextValue(out, XML_TAG_PROVIDER_INDEX, mDataSource.getProviderIndex()); in serializeShareData()
144 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in deserializeShareData()
146 Object value = XmlUtil.readCurrentValue(in, valueName); in deserializeShareData()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java78 public class XmlUtil { class
397 XmlUtil.writeNextValue(out, XML_TAG_WEP_KEYS, wepKeysToWrite); in writeWepKeysToXml()
399 XmlUtil.writeNextValue(out, XML_TAG_WEP_KEYS, null); in writeWepKeysToXml()
424 XmlUtil.writeNextSectionStart(out, XML_TAG_PRE_SHARED_KEY); in writePreSharedKeyToXml()
426 XmlUtil.writeNextSectionEnd(out, XML_TAG_PRE_SHARED_KEY); in writePreSharedKeyToXml()
428 XmlUtil.writeNextValue(out, XML_TAG_PRE_SHARED_KEY, preSharedKey); in writePreSharedKeyToXml()
435 XmlUtil.writeNextSectionStart(out, XML_TAG_SECURITY_PARAMS_LIST); in writeSecurityParamsListToXml()
437 XmlUtil.writeNextSectionStart(out, XML_TAG_SECURITY_PARAMS); in writeSecurityParamsListToXml()
438 XmlUtil.writeNextValue( in writeSecurityParamsListToXml()
441 XmlUtil.writeNextValue( in writeSecurityParamsListToXml()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSoftApStoreData.java32 import com.android.server.wifi.util.XmlUtil;
122 XmlUtil.writeNextValue(out, XML_TAG_SSID, softApConfig.getSsid()); in serializeData()
124 XmlUtil.writeNextValue(out, XML_TAG_BSSID, softApConfig.getBssid().toString()); in serializeData()
128 XmlUtil.writeNextValue(out, XML_TAG_AP_BAND, softApConfig.getBand()); in serializeData()
129 XmlUtil.writeNextValue(out, XML_TAG_CHANNEL, softApConfig.getChannel()); in serializeData()
131 XmlUtil.writeNextValue(out, XML_TAG_HIDDEN_SSID, softApConfig.isHiddenSsid()); in serializeData()
132 XmlUtil.writeNextValue(out, XML_TAG_SECURITY_TYPE, softApConfig.getSecurityType()); in serializeData()
134 XmlUtil.writeNextValue(out, XML_TAG_PASSPHRASE, in serializeData()
138 XmlUtil.writeNextValue(out, XML_TAG_MAX_NUMBER_OF_CLIENTS, in serializeData()
140 XmlUtil.writeNextValue(out, XML_TAG_CLIENT_CONTROL_BY_USER, in serializeData()
[all …]
DNetworkSuggestionStoreData.java35 import com.android.server.wifi.util.XmlUtil;
36 import com.android.server.wifi.util.XmlUtil.WifiConfigurationXmlUtil;
179 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_NETWORK_SUGGESTION_PER_APP); in serializeNetworkSuggestionsMap()
180 XmlUtil.writeNextValue(out, XML_TAG_SUGGESTOR_PACKAGE_NAME, packageName); in serializeNetworkSuggestionsMap()
181 XmlUtil.writeNextValue(out, XML_TAG_SUGGESTOR_FEATURE_ID, featureId); in serializeNetworkSuggestionsMap()
182 XmlUtil.writeNextValue(out, XML_TAG_SUGGESTOR_HAS_USER_APPROVED, hasUserApproved); in serializeNetworkSuggestionsMap()
183 XmlUtil.writeNextValue(out, XML_TAG_SUGGESTOR_MAX_SIZE, maxSize); in serializeNetworkSuggestionsMap()
184 XmlUtil.writeNextValue(out, XML_TAG_SUGGESTOR_UID, uid); in serializeNetworkSuggestionsMap()
185 XmlUtil.writeNextValue(out, XML_TAG_SUGGESTOR_CARRIER_ID, carrierId); in serializeNetworkSuggestionsMap()
187 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_NETWORK_SUGGESTION_PER_APP); in serializeNetworkSuggestionsMap()
[all …]
DWakeupConfigStoreData.java26 import com.android.server.wifi.util.XmlUtil;
125 XmlUtil.writeNextSectionStart(out, XML_TAG_FEATURE_STATE_SECTION); in writeFeatureState()
127 XmlUtil.writeNextValue(out, XML_TAG_IS_ACTIVE, mIsActiveDataSource.getData()); in writeFeatureState()
128 XmlUtil.writeNextValue(out, XML_TAG_IS_ONBOARDED, mIsOnboardedDataSource.getData()); in writeFeatureState()
129 XmlUtil.writeNextValue(out, XML_TAG_NOTIFICATIONS_SHOWN, in writeFeatureState()
132 XmlUtil.writeNextSectionEnd(out, XML_TAG_FEATURE_STATE_SECTION); in writeFeatureState()
138 XmlUtil.writeNextSectionStart(out, XML_TAG_SECURITY_PARAMS_LIST); in writeSecurityParamsList()
140 XmlUtil.writeNextSectionStart(out, XML_TAG_SECURITY_PARAMS); in writeSecurityParamsList()
141 XmlUtil.writeNextValue( in writeSecurityParamsList()
144 XmlUtil.writeNextValue( in writeSecurityParamsList()
[all …]
DNetworkRequestStoreData.java25 import com.android.server.wifi.util.XmlUtil;
26 import com.android.server.wifi.util.XmlUtil.WifiConfigurationXmlUtil;
145 XmlUtil.writeNextSectionStart(out, in serializeApprovedAccessPointsMap()
147 XmlUtil.writeNextValue(out, XML_TAG_REQUESTOR_PACKAGE_NAME, packageName); in serializeApprovedAccessPointsMap()
149 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_APPROVED_ACCESS_POINTS_PER_APP); in serializeApprovedAccessPointsMap()
176 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_ACCESS_POINT); in serializeApprovedAccessPoint()
177 XmlUtil.writeNextValue(out, XML_TAG_ACCESS_POINT_SSID, approvedAccessPoint.ssid); in serializeApprovedAccessPoint()
178 XmlUtil.writeNextValue(out, XML_TAG_ACCESS_POINT_BSSID, in serializeApprovedAccessPoint()
180 XmlUtil.writeNextValue(out, XML_TAG_ACCESS_POINT_NETWORK_TYPE, in serializeApprovedAccessPoint()
182 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_ACCESS_POINT); in serializeApprovedAccessPoint()
[all …]
DNetworkListStoreData.java32 import com.android.server.wifi.util.XmlUtil;
33 import com.android.server.wifi.util.XmlUtil.IpConfigurationXmlUtil;
34 import com.android.server.wifi.util.XmlUtil.NetworkSelectionStatusXmlUtil;
35 import com.android.server.wifi.util.XmlUtil.WifiConfigurationXmlUtil;
36 import com.android.server.wifi.util.XmlUtil.WifiEnterpriseConfigXmlUtil;
159 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_NETWORK); in serializeNetwork()
162 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_WIFI_CONFIGURATION); in serializeNetwork()
164 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_WIFI_CONFIGURATION); in serializeNetwork()
167 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_NETWORK_STATUS); in serializeNetwork()
169 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_NETWORK_STATUS); in serializeNetwork()
[all …]
DWifiBackupRestore.java31 import com.android.server.wifi.util.XmlUtil;
32 import com.android.server.wifi.util.XmlUtil.IpConfigurationXmlUtil;
33 import com.android.server.wifi.util.XmlUtil.WifiConfigurationXmlUtil;
179 XmlUtil.writeDocumentStart(out, XML_TAG_DOCUMENT_HEADER); in retrieveBackupDataFromConfigurations()
183 XmlUtil.writeNextValue(out, XML_TAG_VERSION, version.floatValue()); in retrieveBackupDataFromConfigurations()
187 XmlUtil.writeDocumentEnd(out, XML_TAG_DOCUMENT_HEADER); in retrieveBackupDataFromConfigurations()
210 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_NETWORK_LIST); in writeNetworkConfigurationsToXml()
222 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_NETWORK); in writeNetworkConfigurationsToXml()
224 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_NETWORK); in writeNetworkConfigurationsToXml()
226 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_NETWORK_LIST); in writeNetworkConfigurationsToXml()
[all …]
DWifiBackupDataV1Parser.java34 import com.android.server.wifi.util.XmlUtil;
35 import com.android.server.wifi.util.XmlUtil.IpConfigurationXmlUtil;
36 import com.android.server.wifi.util.XmlUtil.WifiConfigurationXmlUtil;
167 XmlUtil.gotoNextSectionWithName(in, WifiBackupRestore.XML_TAG_SECTION_HEADER_NETWORK_LIST, in parseNetworkConfigurationsFromXml()
172 while (XmlUtil.gotoNextSectionWithNameOrEnd( in parseNetworkConfigurationsFromXml()
202 XmlUtil.gotoNextSectionWithName( in parseNetworkConfigurationFromXml()
211 XmlUtil.gotoNextSectionWithName( in parseNetworkConfigurationFromXml()
308 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in parseWifiConfigurationFromXmlInternal()
313 value = XmlUtil.readCurrentValue(in, valueName); in parseWifiConfigurationFromXmlInternal()
456 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in parseSecurityParamsFromXml()
[all …]
DWifiConfigStore.java41 import com.android.server.wifi.util.XmlUtil;
462 XmlUtil.writeDocumentStart(out, XML_TAG_DOCUMENT_HEADER); in serializeData()
464 XmlUtil.writeNextValue(out, XML_TAG_VERSION, CURRENT_CONFIG_STORE_DATA_VERSION); in serializeData()
467 XmlUtil.writeNextSectionStart(out, tag); in serializeData()
469 XmlUtil.writeNextSectionEnd(out, tag); in serializeData()
471 XmlUtil.writeDocumentEnd(out, XML_TAG_DOCUMENT_HEADER); in serializeData()
748 XmlUtil.gotoDocumentStart(in, XML_TAG_DOCUMENT_HEADER); in deserializeData()
758 while (XmlUtil.gotoNextSectionOrEnd(in, headerName, rootTagDepth)) { in deserializeData()
790 int version = (int) XmlUtil.readNextValueWithName(in, XML_TAG_VERSION); in parseVersionFromXml()
806 XmlUtil.gotoNextSectionWithName(in, XML_TAG_HEADER_INTEGRITY, outerTagDepth); in parseAndDiscardIntegrityDataFromXml()
[all …]
DWifiCarrierInfoStoreManagerData.java23 import com.android.server.wifi.util.XmlUtil;
106 XmlUtil.writeNextValue(out, XML_TAG_MERGED_CARRIER_NETWORK_OFFLOAD_MAP, in serializeData()
108 XmlUtil.writeNextValue(out, XML_TAG_UNMERGED_CARRIER_NETWORK_OFFLOAD_MAP, in serializeData()
126 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in parseWifiCarrierInfoStoreMaps()
128 Object value = XmlUtil.readCurrentValue(in, valueName); in parseWifiCarrierInfoStoreMaps()
DRandomizedMacStoreData.java23 import com.android.server.wifi.util.XmlUtil;
52 XmlUtil.writeNextValue(out, XML_TAG_MAC_MAP, mMacMapping); in serializeData()
65 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in deserializeData()
67 Object value = XmlUtil.readCurrentValue(in, valueName); in deserializeData()
DSsidSetStoreData.java24 import com.android.server.wifi.util.XmlUtil;
86 XmlUtil.writeNextValue(out, XML_TAG_SSID_SET, mDataSource.getSsids()); in serializeData()
99 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in deserializeData()
101 Object value = XmlUtil.readCurrentValue(in, valueName); in deserializeData()
DImsiPrivacyProtectionExemptionStoreData.java23 import com.android.server.wifi.util.XmlUtil;
77 XmlUtil.writeNextValue(out, XML_TAG_CARRIER_EXEMPTION_MAP, dataToSerialize); in serializeData()
96 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in parseCarrierImsiProtectionExemptionMap()
98 Object value = XmlUtil.readCurrentValue(in, valueName); in parseCarrierImsiProtectionExemptionMap()
DWifiSettingsConfigStore.java30 import com.android.server.wifi.util.XmlUtil;
345 XmlUtil.writeNextValue(out, XML_TAG_VALUES, mSettings); in serializeData()
361 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in deserializeData()
363 Object value = XmlUtil.readCurrentValue(in, valueName); in deserializeData()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java36 import com.android.server.wifi.util.XmlUtil.IpConfigurationXmlUtil;
37 import com.android.server.wifi.util.XmlUtil.NetworkSelectionStatusXmlUtil;
38 import com.android.server.wifi.util.XmlUtil.WifiConfigurationXmlUtil;
39 import com.android.server.wifi.util.XmlUtil.WifiEnterpriseConfigXmlUtil;
484 XmlUtil.writeDocumentStart(out, mXmlDocHeader); in testCaptivePortalNeverDetected_DefaultToFalse()
485 XmlUtil.writeDocumentEnd(out, mXmlDocHeader); in testCaptivePortalNeverDetected_DefaultToFalse()
508 XmlUtil.writeDocumentStart(out, mXmlDocHeader); in testMacRandomizationSettingDefaultToRandomizationNone()
509 XmlUtil.writeDocumentEnd(out, mXmlDocHeader); in testMacRandomizationSettingDefaultToRandomizationNone()
533 XmlUtil.writeDocumentStart(out, mXmlDocHeader); in testMacRandomizationSettingUpgradeToRandomizationAuto()
535 XmlUtil.writeNextValue(out, WifiConfigurationXmlUtil.XML_TAG_MAC_RANDOMIZATION_SETTING, in testMacRandomizationSettingUpgradeToRandomizationAuto()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiSettingsConfigStoreTest.java41 import com.android.server.wifi.util.XmlUtil;
166 XmlUtil.writeDocumentStart(out, "Test"); in createSettingsTestXmlForParsing()
167 XmlUtil.writeNextValue(out, "Values", settings); in createSettingsTestXmlForParsing()
168 XmlUtil.writeDocumentEnd(out, "Test"); in createSettingsTestXmlForParsing()
174 XmlUtil.gotoDocumentStart(in, "Test"); in createSettingsTestXmlForParsing()
DWifiConfigStoreTest.java43 import com.android.server.wifi.util.XmlUtil;
1112 XmlUtil.writeNextValue(out, XML_TAG_TEST_DATA, mData); in serializeData()
1122 mData = (String) XmlUtil.readNextValueWithName(in, XML_TAG_TEST_DATA); in deserializeData()
/packages/modules/Wifi/service/tests/wifitests/
DAndroid.bp957 "com.android.server.wifi.util.XmlUtil",
958 "com.android.server.wifi.util.XmlUtil$*",
959 "com.android.server.wifi.util.XmlUtil.**",