Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointXmlUtils.java25 import com.android.server.wifi.util.XmlUtil;
127 XmlUtil.writeNextValue(out, XML_TAG_UPDATE_IDENTIFIER, config.getUpdateIdentifier()); in serializePasspointConfiguration()
128 XmlUtil.writeNextValue(out, XML_TAG_CREDENTIAL_PRIORITY, config.getCredentialPriority()); in serializePasspointConfiguration()
129 XmlUtil.writeNextValue(out, XML_TAG_TRUST_ROOT_CERT_LIST, config.getTrustRootCertList()); in serializePasspointConfiguration()
130 XmlUtil.writeNextValue(out, XML_TAG_SUBSCRIPTION_CREATION_TIME, in serializePasspointConfiguration()
132 XmlUtil.writeNextValue(out, XML_TAG_SUBSCRIPTION_EXPIRATION_TIME, in serializePasspointConfiguration()
134 XmlUtil.writeNextValue(out, XML_TAG_SUBSCRIPTION_TYPE, config.getSubscriptionType()); in serializePasspointConfiguration()
135 XmlUtil.writeNextValue(out, XML_TAG_USAGE_LIMIT_TIME_PERIOD, in serializePasspointConfiguration()
137 XmlUtil.writeNextValue(out, XML_TAG_USAGE_LIMIT_START_TIME, in serializePasspointConfiguration()
139 XmlUtil.writeNextValue(out, XML_TAG_USAGE_LIMIT_DATA_LIMIT, in serializePasspointConfiguration()
[all …]
DPasspointConfigUserStoreData.java28 import com.android.server.wifi.util.XmlUtil;
177 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_PASSPOINT_PROVIDER_LIST); in serializeProviderList()
181 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_PASSPOINT_PROVIDER_LIST); in serializeProviderList()
194 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_PASSPOINT_PROVIDER); in serializeProvider()
195 XmlUtil.writeNextValue(out, XML_TAG_PROVIDER_ID, provider.getProviderId()); in serializeProvider()
196 XmlUtil.writeNextValue(out, XML_TAG_CREATOR_UID, provider.getCreatorUid()); in serializeProvider()
198 XmlUtil.writeNextValue(out, XML_TAG_PACKAGE_NAME, provider.getPackageName()); in serializeProvider()
200 XmlUtil.writeNextValue(out, XML_TAG_CA_CERTIFICATE_ALIASES, in serializeProvider()
202 XmlUtil.writeNextValue(out, XML_TAG_CLIENT_PRIVATE_KEY_AND_CERT_ALIAS, in serializeProvider()
204 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()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java74 public class XmlUtil { class
380 XmlUtil.writeNextValue(out, XML_TAG_WEP_KEYS, wepKeysToWrite); in writeWepKeysToXml()
382 XmlUtil.writeNextValue(out, XML_TAG_WEP_KEYS, null); in writeWepKeysToXml()
407 XmlUtil.writeNextSectionStart(out, XML_TAG_PRE_SHARED_KEY); in writePreSharedKeyToXml()
409 XmlUtil.writeNextSectionEnd(out, XML_TAG_PRE_SHARED_KEY); in writePreSharedKeyToXml()
411 XmlUtil.writeNextValue(out, XML_TAG_PRE_SHARED_KEY, preSharedKey); in writePreSharedKeyToXml()
428 XmlUtil.writeNextValue(out, XML_TAG_CONFIG_KEY, configuration.getKey()); in writeCommonElementsToXml()
429 XmlUtil.writeNextValue(out, XML_TAG_SSID, configuration.SSID); in writeCommonElementsToXml()
432 XmlUtil.writeNextValue(out, XML_TAG_WEP_TX_KEY_INDEX, configuration.wepTxKeyIndex); in writeCommonElementsToXml()
433 XmlUtil.writeNextValue(out, XML_TAG_HIDDEN_SSID, configuration.hiddenSSID); in writeCommonElementsToXml()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSoftApStoreData.java30 import com.android.server.wifi.util.XmlUtil;
113 XmlUtil.writeNextValue(out, XML_TAG_SSID, softApConfig.getSsid()); in serializeData()
115 XmlUtil.writeNextValue(out, XML_TAG_BSSID, softApConfig.getBssid().toString()); in serializeData()
117 XmlUtil.writeNextValue(out, XML_TAG_AP_BAND, softApConfig.getBand()); in serializeData()
118 XmlUtil.writeNextValue(out, XML_TAG_CHANNEL, softApConfig.getChannel()); in serializeData()
119 XmlUtil.writeNextValue(out, XML_TAG_HIDDEN_SSID, softApConfig.isHiddenSsid()); in serializeData()
120 XmlUtil.writeNextValue(out, XML_TAG_SECURITY_TYPE, softApConfig.getSecurityType()); in serializeData()
122 XmlUtil.writeNextValue(out, XML_TAG_PASSPHRASE, in serializeData()
126 XmlUtil.writeNextValue(out, XML_TAG_MAX_NUMBER_OF_CLIENTS, in serializeData()
128 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;
176 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_NETWORK_SUGGESTION_PER_APP); in serializeNetworkSuggestionsMap()
177 XmlUtil.writeNextValue(out, XML_TAG_SUGGESTOR_PACKAGE_NAME, packageName); in serializeNetworkSuggestionsMap()
178 XmlUtil.writeNextValue(out, XML_TAG_SUGGESTOR_FEATURE_ID, featureId); in serializeNetworkSuggestionsMap()
179 XmlUtil.writeNextValue(out, XML_TAG_SUGGESTOR_HAS_USER_APPROVED, hasUserApproved); in serializeNetworkSuggestionsMap()
180 XmlUtil.writeNextValue(out, XML_TAG_SUGGESTOR_MAX_SIZE, maxSize); in serializeNetworkSuggestionsMap()
181 XmlUtil.writeNextValue(out, XML_TAG_SUGGESTOR_UID, uid); in serializeNetworkSuggestionsMap()
182 XmlUtil.writeNextValue(out, XML_TAG_SUGGESTOR_CARRIER_ID, carrierId); in serializeNetworkSuggestionsMap()
184 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_NETWORK_SUGGESTION_PER_APP); in serializeNetworkSuggestionsMap()
[all …]
DWakeupConfigStoreData.java25 import com.android.server.wifi.util.XmlUtil;
118 XmlUtil.writeNextSectionStart(out, XML_TAG_FEATURE_STATE_SECTION); in writeFeatureState()
120 XmlUtil.writeNextValue(out, XML_TAG_IS_ACTIVE, mIsActiveDataSource.getData()); in writeFeatureState()
121 XmlUtil.writeNextValue(out, XML_TAG_IS_ONBOARDED, mIsOnboardedDataSource.getData()); in writeFeatureState()
122 XmlUtil.writeNextValue(out, XML_TAG_NOTIFICATIONS_SHOWN, in writeFeatureState()
125 XmlUtil.writeNextSectionEnd(out, XML_TAG_FEATURE_STATE_SECTION); in writeFeatureState()
138 XmlUtil.writeNextSectionStart(out, XML_TAG_NETWORK_SECTION); in writeNetwork()
140 XmlUtil.writeNextValue(out, XML_TAG_SSID, scanResultMatchInfo.networkSsid); in writeNetwork()
141 XmlUtil.writeNextValue(out, XML_TAG_SECURITY, scanResultMatchInfo.networkType); in writeNetwork()
143 XmlUtil.writeNextSectionEnd(out, XML_TAG_NETWORK_SECTION); in writeNetwork()
[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 …]
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()
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.java33 import com.android.server.wifi.util.XmlUtil;
34 import com.android.server.wifi.util.XmlUtil.IpConfigurationXmlUtil;
35 import com.android.server.wifi.util.XmlUtil.WifiConfigurationXmlUtil;
152 XmlUtil.gotoNextSectionWithName(in, WifiBackupRestore.XML_TAG_SECTION_HEADER_NETWORK_LIST, in parseNetworkConfigurationsFromXml()
157 while (XmlUtil.gotoNextSectionWithNameOrEnd( in parseNetworkConfigurationsFromXml()
187 XmlUtil.gotoNextSectionWithName( in parseNetworkConfigurationFromXml()
196 XmlUtil.gotoNextSectionWithName( in parseNetworkConfigurationFromXml()
293 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in parseWifiConfigurationFromXmlInternal()
295 Object value = XmlUtil.readCurrentValue(in, valueName); in parseWifiConfigurationFromXmlInternal()
453 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in parseIpConfigurationFromXml()
[all …]
DImsiPrivacyProtectionExemptionStoreData.java24 import com.android.server.wifi.util.XmlUtil;
86 XmlUtil.writeNextValue(out, XML_TAG_CARRIER_EXEMPTION_MAP, dataToSerialize); in serializeData()
109 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in parseCarrierImsiProtectionExemptionMap()
111 Object value = XmlUtil.readCurrentValue(in, valueName); in parseCarrierImsiProtectionExemptionMap()
DWifiConfigStore.java41 import com.android.server.wifi.util.XmlUtil;
461 XmlUtil.writeDocumentStart(out, XML_TAG_DOCUMENT_HEADER); in serializeData()
463 XmlUtil.writeNextValue(out, XML_TAG_VERSION, CURRENT_CONFIG_STORE_DATA_VERSION); in serializeData()
466 XmlUtil.writeNextSectionStart(out, tag); in serializeData()
468 XmlUtil.writeNextSectionEnd(out, tag); in serializeData()
470 XmlUtil.writeDocumentEnd(out, XML_TAG_DOCUMENT_HEADER); in serializeData()
747 XmlUtil.gotoDocumentStart(in, XML_TAG_DOCUMENT_HEADER); in deserializeData()
757 while (XmlUtil.gotoNextSectionOrEnd(in, headerName, rootTagDepth)) { in deserializeData()
789 int version = (int) XmlUtil.readNextValueWithName(in, XML_TAG_VERSION); in parseVersionFromXml()
805 XmlUtil.gotoNextSectionWithName(in, XML_TAG_HEADER_INTEGRITY, outerTagDepth); in parseAndDiscardIntegrityDataFromXml()
[all …]
DWifiSettingsConfigStore.java30 import com.android.server.wifi.util.XmlUtil;
327 XmlUtil.writeNextValue(out, XML_TAG_VALUES, mSettings); in serializeData()
343 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in deserializeData()
345 Object value = XmlUtil.readCurrentValue(in, valueName); in deserializeData()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java35 import com.android.server.wifi.util.XmlUtil.IpConfigurationXmlUtil;
36 import com.android.server.wifi.util.XmlUtil.NetworkSelectionStatusXmlUtil;
37 import com.android.server.wifi.util.XmlUtil.WifiConfigurationXmlUtil;
38 import com.android.server.wifi.util.XmlUtil.WifiEnterpriseConfigXmlUtil;
501 XmlUtil.writeDocumentStart(out, mXmlDocHeader); in testMacRandomizationSettingDefaultToRandomizationNone()
502 XmlUtil.writeDocumentEnd(out, mXmlDocHeader); in testMacRandomizationSettingDefaultToRandomizationNone()
518 XmlUtil.writeDocumentStart(out, mXmlDocHeader); in serializeWifiConfigurationForBackup()
520 XmlUtil.writeDocumentEnd(out, mXmlDocHeader); in serializeWifiConfigurationForBackup()
530 XmlUtil.writeDocumentStart(out, mXmlDocHeader); in serializeWifiConfigurationForConfigStore()
533 XmlUtil.writeDocumentEnd(out, mXmlDocHeader); in serializeWifiConfigurationForConfigStore()
[all …]
/frameworks/opt/net/wifi/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.java42 import com.android.server.wifi.util.XmlUtil;
1042 XmlUtil.writeNextValue(out, XML_TAG_TEST_DATA, mData); in serializeData()
1052 mData = (String) XmlUtil.readNextValueWithName(in, XML_TAG_TEST_DATA); in deserializeData()
/frameworks/base/tools/aapt2/
DAndroid.bp151 "xml/XmlUtil.cpp",
/frameworks/opt/net/wifi/tests/wifitests/
DAndroid.bp927 "com.android.server.wifi.util.XmlUtil",
928 "com.android.server.wifi.util.XmlUtil$*",
929 "com.android.server.wifi.util.XmlUtil.**",