Home
last modified time | relevance | path

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

12

/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointXmlUtils.java28 import com.android.server.wifi.util.XmlUtil;
140 XmlUtil.writeNextValue(out, XML_TAG_UPDATE_IDENTIFIER, config.getUpdateIdentifier()); in serializePasspointConfiguration()
141 XmlUtil.writeNextValue(out, XML_TAG_CREDENTIAL_PRIORITY, config.getCredentialPriority()); in serializePasspointConfiguration()
142 XmlUtil.writeNextValue(out, XML_TAG_TRUST_ROOT_CERT_LIST, config.getTrustRootCertList()); in serializePasspointConfiguration()
143 XmlUtil.writeNextValue(out, XML_TAG_SUBSCRIPTION_CREATION_TIME, in serializePasspointConfiguration()
145 XmlUtil.writeNextValue(out, XML_TAG_SUBSCRIPTION_EXPIRATION_TIME, in serializePasspointConfiguration()
147 XmlUtil.writeNextValue(out, XML_TAG_SUBSCRIPTION_TYPE, config.getSubscriptionType()); in serializePasspointConfiguration()
148 XmlUtil.writeNextValue(out, XML_TAG_USAGE_LIMIT_TIME_PERIOD, in serializePasspointConfiguration()
150 XmlUtil.writeNextValue(out, XML_TAG_USAGE_LIMIT_START_TIME, in serializePasspointConfiguration()
152 XmlUtil.writeNextValue(out, XML_TAG_USAGE_LIMIT_DATA_LIMIT, in serializePasspointConfiguration()
[all …]
DPasspointConfigUserStoreData.java29 import com.android.server.wifi.util.XmlUtil;
183 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_PASSPOINT_PROVIDER_LIST); in serializeProviderList()
187 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_PASSPOINT_PROVIDER_LIST); in serializeProviderList()
200 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_PASSPOINT_PROVIDER); in serializeProvider()
201 XmlUtil.writeNextValue(out, XML_TAG_PROVIDER_ID, provider.getProviderId()); in serializeProvider()
202 XmlUtil.writeNextValue(out, XML_TAG_CREATOR_UID, provider.getCreatorUid()); in serializeProvider()
204 XmlUtil.writeNextValue(out, XML_TAG_PACKAGE_NAME, provider.getPackageName()); in serializeProvider()
206 XmlUtil.writeNextValue(out, XML_TAG_CA_CERTIFICATE_ALIASES, in serializeProvider()
208 XmlUtil.writeNextValue(out, XML_TAG_CLIENT_PRIVATE_KEY_AND_CERT_ALIAS, in serializeProvider()
210 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.java90 public class XmlUtil { class
428 XmlUtil.writeNextValue(out, XML_TAG_WEP_KEYS, null); in writeWepKeysToXml()
432 XmlUtil.writeNextValue(out, XML_TAG_WEP_KEYS, wepKeysToWrite); in writeWepKeysToXml()
445 XmlUtil.writeNextValue(out, XML_TAG_WEP_KEYS, wepKeysToWrite); in writeWepKeysToXml()
450 XmlUtil.writeNextSectionStart(out, XML_TAG_WEP_KEYS); in writeWepKeysToXml()
452 XmlUtil.EncryptedDataXmlUtil.writeToXml(out, encryptedDataArray[i]); in writeWepKeysToXml()
454 XmlUtil.writeNextSectionEnd(out, XML_TAG_WEP_KEYS); in writeWepKeysToXml()
495 XmlUtil.writeNextSectionStart(out, XML_TAG_SECURITY_PARAMS_LIST); in writeSecurityParamsListToXml()
497 XmlUtil.writeNextSectionStart(out, XML_TAG_SECURITY_PARAMS); in writeSecurityParamsListToXml()
498 XmlUtil.writeNextValue( in writeSecurityParamsListToXml()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
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 …]
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 …]
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.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.NetworkSelectionStatusXmlUtil;
36 import com.android.server.wifi.util.XmlUtil.WifiConfigurationXmlUtil;
37 import com.android.server.wifi.util.XmlUtil.WifiEnterpriseConfigXmlUtil;
160 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_NETWORK); in serializeNetwork()
163 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_WIFI_CONFIGURATION); in serializeNetwork()
165 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_WIFI_CONFIGURATION); in serializeNetwork()
168 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_NETWORK_STATUS); in serializeNetwork()
170 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_NETWORK_STATUS); in serializeNetwork()
[all …]
DWifiSettingsBackupRestore.java21 import com.android.server.wifi.util.XmlUtil;
71 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_WIFI_SETTINGS_DATA); in retrieveBackupDataFromSettingsConfigStore()
72 XmlUtil.writeNextSectionStart(out, in retrieveBackupDataFromSettingsConfigStore()
79 XmlUtil.writeNextValue(out, WifiSettingsConfigStore.StoreData.XML_TAG_VALUES, in retrieveBackupDataFromSettingsConfigStore()
82 XmlUtil.writeNextSectionEnd(out, in retrieveBackupDataFromSettingsConfigStore()
84 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_WIFI_SETTINGS_DATA); in retrieveBackupDataFromSettingsConfigStore()
102 XmlUtil.gotoNextSectionWithName(in, in restoreSettingsFromBackupData()
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;
180 XmlUtil.writeDocumentStart(out, XML_TAG_DOCUMENT_HEADER); in retrieveBackupDataFromConfigurations()
184 XmlUtil.writeNextValue(out, XML_TAG_VERSION, version.floatValue()); in retrieveBackupDataFromConfigurations()
188 XmlUtil.writeDocumentEnd(out, XML_TAG_DOCUMENT_HEADER); in retrieveBackupDataFromConfigurations()
211 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_NETWORK_LIST); in writeNetworkConfigurationsToXml()
233 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_NETWORK); in writeNetworkConfigurationsToXml()
235 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_NETWORK); in writeNetworkConfigurationsToXml()
237 XmlUtil.writeNextSectionEnd(out, XML_TAG_SECTION_HEADER_NETWORK_LIST); in writeNetworkConfigurationsToXml()
[all …]
DWifiCarrierInfoStoreManagerData.java24 import com.android.server.wifi.util.XmlUtil;
111 XmlUtil.writeNextValue(out, XML_TAG_MERGED_CARRIER_NETWORK_OFFLOAD_MAP, in serializeData()
113 XmlUtil.writeNextValue(out, XML_TAG_UNMERGED_CARRIER_NETWORK_OFFLOAD_MAP, in serializeData()
115 XmlUtil.writeNextValue(out, XML_TAG_AUTO_JOIN_FLIPPED_ON_OOB_PSEUDONYM_ENABLED, in serializeData()
133 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in parseWifiCarrierInfoStoreMaps()
135 Object value = XmlUtil.readCurrentValue(in, valueName); in parseWifiCarrierInfoStoreMaps()
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;
194 XmlUtil.gotoNextSectionWithName(in, WifiBackupRestore.XML_TAG_SECTION_HEADER_NETWORK_LIST, in parseNetworkConfigurationsFromXml()
199 while (XmlUtil.gotoNextSectionWithNameOrEnd( in parseNetworkConfigurationsFromXml()
229 XmlUtil.gotoNextSectionWithName( in parseNetworkConfigurationFromXml()
238 XmlUtil.gotoNextSectionWithName( in parseNetworkConfigurationFromXml()
335 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in parseWifiConfigurationFromXmlInternal()
340 value = XmlUtil.readCurrentValue(in, valueName); in parseWifiConfigurationFromXmlInternal()
501 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in parseSecurityParamsFromXml()
[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()
DBackupRestoreController.java23 import com.android.server.wifi.util.XmlUtil;
80 XmlUtil.writeDocumentStart(out, XML_TAG_DOCUMENT_HEADER); in retrieveBackupData()
84 XmlUtil.writeDocumentEnd(out, XML_TAG_DOCUMENT_HEADER); in retrieveBackupData()
126 XmlUtil.gotoDocumentStart(in, XML_TAG_DOCUMENT_HEADER); in parserBackupDataAndDispatch()
129 while (XmlUtil.gotoNextSectionOrEnd(in, sectionName, sectionDepth)) { in parserBackupDataAndDispatch()
DWifiRoamingConfigStore.java27 import com.android.server.wifi.util.XmlUtil;
170 XmlUtil.writeNextValue(out, XML_TAG_DEVICE_ADMIN_POLICIES, mDeviceAdminRoamingPolicies); in serializeData()
171 XmlUtil.writeNextValue(out, XML_TAG_NON_ADMIN_POLICIES, mNonAdminRoamingPolicies); in serializeData()
186 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in deserializeData()
188 Object value = XmlUtil.readCurrentValue(in, valueName); in deserializeData()
DWifiConfigStore.java38 import com.android.server.wifi.util.XmlUtil;
411 XmlUtil.writeDocumentStart(out, XML_TAG_DOCUMENT_HEADER); in serializeData()
413 XmlUtil.writeNextValue(out, XML_TAG_VERSION, CURRENT_CONFIG_STORE_DATA_VERSION); in serializeData()
416 XmlUtil.writeNextSectionStart(out, tag); in serializeData()
418 XmlUtil.writeNextSectionEnd(out, tag); in serializeData()
420 XmlUtil.writeDocumentEnd(out, XML_TAG_DOCUMENT_HEADER); in serializeData()
671 XmlUtil.gotoDocumentStart(in, XML_TAG_DOCUMENT_HEADER); in deserializeData()
681 while (XmlUtil.gotoNextSectionOrEnd(in, headerName, rootTagDepth)) { in deserializeData()
713 int version = (int) XmlUtil.readNextValueWithName(in, XML_TAG_VERSION); in parseVersionFromXml()
729 XmlUtil.gotoNextSectionWithName(in, XML_TAG_HEADER_INTEGRITY, outerTagDepth); in parseAndDiscardIntegrityDataFromXml()
[all …]
DImsiPrivacyProtectionExemptionStoreData.java23 import com.android.server.wifi.util.XmlUtil;
78 XmlUtil.writeNextValue(out, XML_TAG_CARRIER_EXEMPTION_MAP, dataToSerialize); in serializeData()
98 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in parseCarrierImsiProtectionExemptionMap()
100 Object value = XmlUtil.readCurrentValue(in, valueName); in parseCarrierImsiProtectionExemptionMap()
DSoftApBackupRestore.java34 import com.android.server.wifi.util.XmlUtil;
103 XmlUtil.writeDocumentStart(xmlOut, XML_TAG_DOCUMENT_HEADER); in retrieveBackupDataFromSoftApConfiguration()
106 XmlUtil.SoftApConfigurationXmlUtil.writeSoftApConfigurationToXml(xmlOut, config, in retrieveBackupDataFromSoftApConfiguration()
109 XmlUtil.writeDocumentEnd(xmlOut, XML_TAG_DOCUMENT_HEADER); in retrieveBackupDataFromSoftApConfiguration()
180 XmlUtil.gotoDocumentStart(xmlIn, XML_TAG_DOCUMENT_HEADER); in retrieveSoftApConfigurationFromBackupData()
182 return XmlUtil.SoftApConfigurationXmlUtil in retrieveSoftApConfigurationFromBackupData()
DSoftApStoreData.java25 import com.android.server.wifi.util.XmlUtil;
91 XmlUtil.SoftApConfigurationXmlUtil.writeSoftApConfigurationToXml(out, softApConfig, in serializeData()
106 SoftApConfiguration softApConfig = XmlUtil.SoftApConfigurationXmlUtil.parseFromXml( in deserializeData()
DWifiSettingsConfigStore.java32 import com.android.server.wifi.util.XmlUtil;
485 XmlUtil.writeNextValue(out, XML_TAG_VALUES, mSettings); in serializeData()
517 while (!XmlUtil.isNextSectionEnd(in, outerTagDepth)) { in deserializeSettingsData()
519 Object value = XmlUtil.readCurrentValue(in, valueName); in deserializeSettingsData()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java45 import com.android.server.wifi.util.XmlUtil.IpConfigurationXmlUtil;
46 import com.android.server.wifi.util.XmlUtil.NetworkSelectionStatusXmlUtil;
47 import com.android.server.wifi.util.XmlUtil.WifiConfigurationXmlUtil;
48 import com.android.server.wifi.util.XmlUtil.WifiEnterpriseConfigXmlUtil;
549 XmlUtil.writeDocumentStart(out, mXmlDocHeader); in testCaptivePortalNeverDetected_DefaultToFalse()
550 XmlUtil.writeDocumentEnd(out, mXmlDocHeader); in testCaptivePortalNeverDetected_DefaultToFalse()
576 XmlUtil.writeDocumentStart(out, mXmlDocHeader); in testMacRandomizationSettingDefaultToRandomizationNone()
577 XmlUtil.writeDocumentEnd(out, mXmlDocHeader); in testMacRandomizationSettingDefaultToRandomizationNone()
601 XmlUtil.writeDocumentStart(out, mXmlDocHeader); in testMacRandomizationSettingUpgradeToRandomizationAuto()
603 XmlUtil.writeNextValue(out, WifiConfigurationXmlUtil.XML_TAG_MAC_RANDOMIZATION_SETTING, in testMacRandomizationSettingUpgradeToRandomizationAuto()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiRoamingConfigStoreTest.java34 import com.android.server.wifi.util.XmlUtil;
150 XmlUtil.writeDocumentStart(out, "RoamingPolicies"); in createRoamingPolicyTestXmlForParsing()
151 XmlUtil.writeNextValue(out, isDeviceOwner ? "DeviceAdminPolicies" : "NonAdminPolicies", in createRoamingPolicyTestXmlForParsing()
153 XmlUtil.writeDocumentEnd(out, "RoamingPolicies"); in createRoamingPolicyTestXmlForParsing()
159 XmlUtil.gotoDocumentStart(in, "RoamingPolicies"); in createRoamingPolicyTestXmlForParsing()
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;
1033 XmlUtil.writeNextValue(out, XML_TAG_TEST_DATA, mData); in serializeData()
1043 mData = (String) XmlUtil.readNextValueWithName(in, XML_TAG_TEST_DATA); in deserializeData()

12