Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointXmlUtils.java26 import com.android.server.wifi.util.XmlUtil;
124 XmlUtil.writeNextValue(out, XML_TAG_UPDATE_IDENTIFIER, config.getUpdateIdentifier()); in serializePasspointConfiguration()
125 XmlUtil.writeNextValue(out, XML_TAG_CREDENTIAL_PRIORITY, config.getCredentialPriority()); in serializePasspointConfiguration()
126 XmlUtil.writeNextValue(out, XML_TAG_TRUST_ROOT_CERT_LIST, config.getTrustRootCertList()); in serializePasspointConfiguration()
127 XmlUtil.writeNextValue(out, XML_TAG_SUBSCRIPTION_CREATION_TIME, in serializePasspointConfiguration()
129 XmlUtil.writeNextValue(out, XML_TAG_SUBSCRIPTION_EXPIRATION_TIME, in serializePasspointConfiguration()
131 XmlUtil.writeNextValue(out, XML_TAG_SUBSCRIPTION_TYPE, config.getSubscriptionType()); in serializePasspointConfiguration()
132 XmlUtil.writeNextValue(out, XML_TAG_USAGE_LIMIT_TIME_PERIOD, in serializePasspointConfiguration()
134 XmlUtil.writeNextValue(out, XML_TAG_USAGE_LIMIT_START_TIME, in serializePasspointConfiguration()
136 XmlUtil.writeNextValue(out, XML_TAG_USAGE_LIMIT_DATA_LIMIT, in serializePasspointConfiguration()
[all …]
DPasspointConfigUserStoreData.java26 import com.android.server.wifi.util.XmlUtil;
170 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_PASSPOINT_PROVIDER_LIST); in serializeProviderList()
177 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_PASSPOINT_PROVIDER_LIST); in serializeProviderList()
190 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_PASSPOINT_PROVIDER); in serializeProvider()
191 XmlUtil.writeNextValue(out, XML_TAG_PROVIDER_ID, provider.getProviderId()); in serializeProvider()
192 XmlUtil.writeNextValue(out, XML_TAG_CREATOR_UID, provider.getCreatorUid()); in serializeProvider()
194 XmlUtil.writeNextValue(out, XML_TAG_PACKAGE_NAME, provider.getPackageName()); in serializeProvider()
196 XmlUtil.writeNextValue(out, XML_TAG_CA_CERTIFICATE_ALIASES, in serializeProvider()
198 XmlUtil.writeNextValue(out, XML_TAG_CLIENT_CERTIFICATE_ALIAS, in serializeProvider()
200 XmlUtil.writeNextValue(out, XML_TAG_CLIENT_PRIVATE_KEY_ALIAS, in serializeProvider()
[all …]
DPasspointConfigSharedStoreData.java20 import com.android.server.wifi.util.XmlUtil;
123 XmlUtil.writeNextValue(out, XML_TAG_PROVIDER_INDEX, mDataSource.getProviderIndex()); in serializeShareData()
136 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in deserializeShareData()
138 Object value = XmlUtil.readCurrentValue(in, valueName); in deserializeShareData()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java68 public class XmlUtil { class
373 XmlUtil.writeNextValue(out, XML_TAG_WEP_KEYS, wepKeysToWrite); in writeWepKeysToXml()
375 XmlUtil.writeNextValue(out, XML_TAG_WEP_KEYS, null); in writeWepKeysToXml()
389 XmlUtil.writeNextValue(out, XML_TAG_CONFIG_KEY, configuration.configKey()); in writeCommonElementsToXml()
390 XmlUtil.writeNextValue(out, XML_TAG_SSID, configuration.SSID); in writeCommonElementsToXml()
391 XmlUtil.writeNextValue(out, XML_TAG_BSSID, configuration.BSSID); in writeCommonElementsToXml()
392 XmlUtil.writeNextValue(out, XML_TAG_PRE_SHARED_KEY, configuration.preSharedKey); in writeCommonElementsToXml()
394 XmlUtil.writeNextValue(out, XML_TAG_WEP_TX_KEY_INDEX, configuration.wepTxKeyIndex); in writeCommonElementsToXml()
395 XmlUtil.writeNextValue(out, XML_TAG_HIDDEN_SSID, configuration.hiddenSSID); in writeCommonElementsToXml()
396 XmlUtil.writeNextValue(out, XML_TAG_REQUIRE_PMF, configuration.requirePMF); in writeCommonElementsToXml()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DNetworkSuggestionStoreData.java29 import com.android.server.wifi.util.XmlUtil;
30 import com.android.server.wifi.util.XmlUtil.WifiConfigurationXmlUtil;
154 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_NETWORK_SUGGESTION_PER_APP); in serializeNetworkSuggestionsMap()
155 XmlUtil.writeNextValue(out, XML_TAG_SUGGESTOR_PACKAGE_NAME, packageName); in serializeNetworkSuggestionsMap()
156 XmlUtil.writeNextValue(out, XML_TAG_SUGGESTOR_HAS_USER_APPROVED, hasUserApproved); in serializeNetworkSuggestionsMap()
157 XmlUtil.writeNextValue(out, XML_TAG_SUGGESTOR_MAX_SIZE, maxSize); in serializeNetworkSuggestionsMap()
159 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_NETWORK_SUGGESTION_PER_APP); in serializeNetworkSuggestionsMap()
186 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_NETWORK_SUGGESTION); in serializeNetworkSuggestion()
189 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_WIFI_CONFIGURATION); in serializeNetworkSuggestion()
191 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_WIFI_CONFIGURATION); in serializeNetworkSuggestion()
[all …]
DWakeupConfigStoreData.java23 import com.android.server.wifi.util.XmlUtil;
115 XmlUtil.writeNextSectionStart(out, XML_TAG_FEATURE_STATE_SECTION); in writeFeatureState()
117 XmlUtil.writeNextValue(out, XML_TAG_IS_ACTIVE, mIsActiveDataSource.getData()); in writeFeatureState()
118 XmlUtil.writeNextValue(out, XML_TAG_IS_ONBOARDED, mIsOnboardedDataSource.getData()); in writeFeatureState()
119 XmlUtil.writeNextValue(out, XML_TAG_NOTIFICATIONS_SHOWN, in writeFeatureState()
122 XmlUtil.writeNextSectionEnd(out, XML_TAG_FEATURE_STATE_SECTION); in writeFeatureState()
135 XmlUtil.writeNextSectionStart(out, XML_TAG_NETWORK_SECTION); in writeNetwork()
137 XmlUtil.writeNextValue(out, XML_TAG_SSID, scanResultMatchInfo.networkSsid); in writeNetwork()
138 XmlUtil.writeNextValue(out, XML_TAG_SECURITY, scanResultMatchInfo.networkType); in writeNetwork()
140 XmlUtil.writeNextSectionEnd(out, XML_TAG_NETWORK_SECTION); in writeNetwork()
[all …]
DNetworkListStoreData.java28 import com.android.server.wifi.util.XmlUtil;
29 import com.android.server.wifi.util.XmlUtil.IpConfigurationXmlUtil;
30 import com.android.server.wifi.util.XmlUtil.NetworkSelectionStatusXmlUtil;
31 import com.android.server.wifi.util.XmlUtil.WifiConfigurationXmlUtil;
32 import com.android.server.wifi.util.XmlUtil.WifiEnterpriseConfigXmlUtil;
143 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_NETWORK); in serializeNetwork()
146 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_WIFI_CONFIGURATION); in serializeNetwork()
148 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_WIFI_CONFIGURATION); in serializeNetwork()
151 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_NETWORK_STATUS); in serializeNetwork()
153 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_NETWORK_STATUS); in serializeNetwork()
[all …]
DNetworkRequestStoreData.java23 import com.android.server.wifi.util.XmlUtil;
24 import com.android.server.wifi.util.XmlUtil.WifiConfigurationXmlUtil;
140 XmlUtil.writeNextSectionStart(out, in serializeApprovedAccessPointsMap()
142 XmlUtil.writeNextValue(out, XML_TAG_REQUESTOR_PACKAGE_NAME, packageName); in serializeApprovedAccessPointsMap()
144 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_APPROVED_ACCESS_POINTS_PER_APP); in serializeApprovedAccessPointsMap()
171 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_ACCESS_POINT); in serializeApprovedAccessPoint()
172 XmlUtil.writeNextValue(out, XML_TAG_ACCESS_POINT_SSID, approvedAccessPoint.ssid); in serializeApprovedAccessPoint()
173 XmlUtil.writeNextValue(out, XML_TAG_ACCESS_POINT_BSSID, in serializeApprovedAccessPoint()
175 XmlUtil.writeNextValue(out, XML_TAG_ACCESS_POINT_NETWORK_TYPE, in serializeApprovedAccessPoint()
177 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_ACCESS_POINT); in serializeApprovedAccessPoint()
[all …]
DRandomizedMacStoreData.java19 import com.android.server.wifi.util.XmlUtil;
46 XmlUtil.writeNextValue(out, XML_TAG_MAC_MAP, mMacMapping); in serializeData()
57 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in deserializeData()
59 Object value = XmlUtil.readCurrentValue(in, valueName); in deserializeData()
DSsidSetStoreData.java21 import com.android.server.wifi.util.XmlUtil;
81 XmlUtil.writeNextValue(out, XML_TAG_SSID_SET, mDataSource.getSsids()); in serializeData()
92 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in deserializeData()
94 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;
155 XmlUtil.writeDocumentStart(out, XML_TAG_DOCUMENT_HEADER); in retrieveBackupDataFromConfigurations()
157 XmlUtil.writeNextValue(out, XML_TAG_VERSION, CURRENT_BACKUP_DATA_VERSION); in retrieveBackupDataFromConfigurations()
161 XmlUtil.writeDocumentEnd(out, XML_TAG_DOCUMENT_HEADER); in retrieveBackupDataFromConfigurations()
184 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_NETWORK_LIST); in writeNetworkConfigurationsToXml()
196 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_NETWORK); in writeNetworkConfigurationsToXml()
198 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_NETWORK); in writeNetworkConfigurationsToXml()
200 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_NETWORK_LIST); in writeNetworkConfigurationsToXml()
[all …]
DDeletedEphemeralSsidsStoreData.java19 import com.android.server.wifi.util.XmlUtil;
50 XmlUtil.writeNextValue(out, XML_TAG_SSID_LIST, mSsidToTimeMap); in serializeData()
61 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in deserializeData()
63 Object value = XmlUtil.readCurrentValue(in, valueName); in deserializeData()
DWifiBackupDataV1Parser.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;
143 XmlUtil.gotoNextSectionWithName(in, WifiBackupRestore.XML_TAG_SECTION_HEADER_NETWORK_LIST, in parseNetworkConfigurationsFromXml()
148 while (XmlUtil.gotoNextSectionWithNameOrEnd( in parseNetworkConfigurationsFromXml()
173 XmlUtil.gotoNextSectionWithName( in parseNetworkConfigurationFromXml()
182 XmlUtil.gotoNextSectionWithName( in parseNetworkConfigurationFromXml()
279 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in parseWifiConfigurationFromXmlInternal()
281 Object value = XmlUtil.readCurrentValue(in, valueName); in parseWifiConfigurationFromXmlInternal()
428 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in parseIpConfigurationFromXml()
[all …]
DWifiConfigStore.java39 import com.android.server.wifi.util.XmlUtil;
411 XmlUtil.writeDocumentStart(out, XML_TAG_DOCUMENT_HEADER); in serializeData()
412 XmlUtil.writeNextValue(out, XML_TAG_VERSION, CURRENT_CONFIG_STORE_DATA_VERSION); in serializeData()
415 XmlUtil.writeNextSectionStart(out, tag); in serializeData()
417 XmlUtil.writeNextSectionEnd(out, tag); in serializeData()
419 XmlUtil.writeDocumentEnd(out, XML_TAG_DOCUMENT_HEADER); in serializeData()
576 while (XmlUtil.gotoNextSectionOrEnd(in, headerName, rootTagDepth)) { in deserializeData()
606 XmlUtil.gotoDocumentStart(in, XML_TAG_DOCUMENT_HEADER); in parseDocumentStartAndVersionFromXml()
607 int version = (int) XmlUtil.readNextValueWithName(in, XML_TAG_VERSION); in parseDocumentStartAndVersionFromXml()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java33 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;
446 XmlUtil.writeDocumentStart(out, mXmlDocHeader); in testMacRandomizationSettingDefaultToRandomizationNone()
447 XmlUtil.writeDocumentEnd(out, mXmlDocHeader); in testMacRandomizationSettingDefaultToRandomizationNone()
463 XmlUtil.writeDocumentStart(out, mXmlDocHeader); in serializeWifiConfigurationForBackup()
465 XmlUtil.writeDocumentEnd(out, mXmlDocHeader); in serializeWifiConfigurationForBackup()
475 XmlUtil.writeDocumentStart(out, mXmlDocHeader); in serializeWifiConfigurationForConfigStore()
477 XmlUtil.writeDocumentEnd(out, mXmlDocHeader); in serializeWifiConfigurationForConfigStore()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigStoreTest.java34 import com.android.server.wifi.util.XmlUtil;
817 XmlUtil.writeNextValue(out, XML_TAG_TEST_DATA, mData); in serializeData()
826 mData = (String) XmlUtil.readNextValueWithName(in, XML_TAG_TEST_DATA); in deserializeData()
/frameworks/base/tools/aapt2/
DAndroid.bp150 "xml/XmlUtil.cpp",