Home
last modified time | relevance | path

Searched refs:XmlUtils (Results 1 – 25 of 188) sorted by relevance

12345678

/frameworks/base/tools/app_metadata_bundles/src/lib/java/com/android/asllib/marshallable/
DAppInfoFactory.java21 import com.android.asllib.util.XmlUtils;
32 Element appInfoEle = XmlUtils.getSingleElement(elements); in createFromHrElements()
38 String title = XmlUtils.getStringAttr(appInfoEle, XmlUtils.HR_ATTR_TITLE, true); in createFromHrElements()
39 String description = XmlUtils.getStringAttr(appInfoEle, XmlUtils.HR_ATTR_DESCRIPTION, true); in createFromHrElements()
40 Boolean containsAds = XmlUtils.getBoolAttr(appInfoEle, XmlUtils.HR_ATTR_CONTAINS_ADS, true); in createFromHrElements()
41 Boolean obeyAps = XmlUtils.getBoolAttr(appInfoEle, XmlUtils.HR_ATTR_OBEY_APS, true); in createFromHrElements()
43 XmlUtils.getBoolAttr(appInfoEle, XmlUtils.HR_ATTR_ADS_FINGERPRINTING, true); in createFromHrElements()
45 XmlUtils.getBoolAttr(appInfoEle, XmlUtils.HR_ATTR_SECURITY_FINGERPRINTING, true); in createFromHrElements()
47 XmlUtils.getStringAttr(appInfoEle, XmlUtils.HR_ATTR_PRIVACY_POLICY, true); in createFromHrElements()
49 XmlUtils.getPipelineSplitAttr( in createFromHrElements()
[all …]
DDeveloperInfoFactory.java21 import com.android.asllib.util.XmlUtils;
32 Element developerInfoEle = XmlUtils.getSingleElement(elements); in createFromHrElements()
37 String name = XmlUtils.getStringAttr(developerInfoEle, XmlUtils.HR_ATTR_NAME, true); in createFromHrElements()
38 String email = XmlUtils.getStringAttr(developerInfoEle, XmlUtils.HR_ATTR_EMAIL, true); in createFromHrElements()
39 String address = XmlUtils.getStringAttr(developerInfoEle, XmlUtils.HR_ATTR_ADDRESS, true); in createFromHrElements()
41 XmlUtils.getStringAttr(developerInfoEle, XmlUtils.HR_ATTR_COUNTRY_REGION, true); in createFromHrElements()
44 XmlUtils.getStringAttr( in createFromHrElements()
45 developerInfoEle, XmlUtils.HR_ATTR_DEVELOPER_RELATIONSHIP, true)); in createFromHrElements()
46 String website = XmlUtils.getStringAttr(developerInfoEle, XmlUtils.HR_ATTR_WEBSITE, false); in createFromHrElements()
48 XmlUtils.getStringAttr( in createFromHrElements()
[all …]
DAppInfo.java19 import com.android.asllib.util.XmlUtils;
74 Element appInfoEle = XmlUtils.createPbundleEleWithName(doc, XmlUtils.OD_NAME_APP_INFO); in toOdDomElements()
76 appInfoEle.appendChild(XmlUtils.createOdStringEle(doc, XmlUtils.OD_NAME_TITLE, mTitle)); in toOdDomElements()
80 XmlUtils.createOdStringEle(doc, XmlUtils.OD_NAME_DESCRIPTION, mDescription)); in toOdDomElements()
84 XmlUtils.createOdBooleanEle(doc, XmlUtils.OD_NAME_CONTAINS_ADS, mContainsAds)); in toOdDomElements()
88 XmlUtils.createOdBooleanEle(doc, XmlUtils.OD_NAME_OBEY_APS, mObeyAps)); in toOdDomElements()
92 XmlUtils.createOdBooleanEle( in toOdDomElements()
93 doc, XmlUtils.OD_NAME_ADS_FINGERPRINTING, mAdsFingerprinting)); in toOdDomElements()
97 XmlUtils.createOdBooleanEle( in toOdDomElements()
99 XmlUtils.OD_NAME_SECURITY_FINGERPRINTING, in toOdDomElements()
[all …]
DSafetyLabelsFactory.java21 import com.android.asllib.util.XmlUtils;
32 Element safetyLabelsEle = XmlUtils.getSingleElement(elements); in createFromHrElements()
37 long version = XmlUtils.tryGetVersion(safetyLabelsEle); in createFromHrElements()
42 XmlUtils.listOf( in createFromHrElements()
43 XmlUtils.getSingleChildElement( in createFromHrElements()
45 XmlUtils.HR_TAG_DATA_LABELS, in createFromHrElements()
50 XmlUtils.listOf( in createFromHrElements()
51 XmlUtils.getSingleChildElement( in createFromHrElements()
53 XmlUtils.HR_TAG_SECURITY_LABELS, in createFromHrElements()
58 XmlUtils.listOf( in createFromHrElements()
[all …]
DAndroidSafetyLabelFactory.java20 import com.android.asllib.util.XmlUtils;
32 Element appMetadataBundlesEle = XmlUtils.getSingleElement(appMetadataBundles); in createFromHrElements()
33 long version = XmlUtils.tryGetVersion(appMetadataBundlesEle); in createFromHrElements()
36 XmlUtils.getSingleChildElement( in createFromHrElements()
37 appMetadataBundlesEle, XmlUtils.HR_TAG_SAFETY_LABELS, false); in createFromHrElements()
39 new SafetyLabelsFactory().createFromHrElements(XmlUtils.listOf(safetyLabelsEle)); in createFromHrElements()
42 XmlUtils.getSingleChildElement( in createFromHrElements()
43 appMetadataBundlesEle, XmlUtils.HR_TAG_SYSTEM_APP_SAFETY_LABEL, false); in createFromHrElements()
46 .createFromHrElements(XmlUtils.listOf(systemAppSafetyLabelEle)); in createFromHrElements()
49 XmlUtils.getSingleChildElement( in createFromHrElements()
[all …]
DDeveloperInfo.java19 import com.android.asllib.util.XmlUtils;
103 XmlUtils.createPbundleEleWithName(doc, XmlUtils.OD_NAME_DEVELOPER_INFO); in toOdDomElements()
106 XmlUtils.createOdStringEle(doc, XmlUtils.OD_NAME_NAME, mName)); in toOdDomElements()
110 XmlUtils.createOdStringEle(doc, XmlUtils.OD_NAME_EMAIL, mEmail)); in toOdDomElements()
114 XmlUtils.createOdStringEle(doc, XmlUtils.OD_NAME_ADDRESS, mAddress)); in toOdDomElements()
118 XmlUtils.createOdStringEle( in toOdDomElements()
119 doc, XmlUtils.OD_NAME_COUNTRY_REGION, mCountryRegion)); in toOdDomElements()
123 XmlUtils.createOdLongEle( in toOdDomElements()
125 XmlUtils.OD_NAME_DEVELOPER_RELATIONSHIP, in toOdDomElements()
130 XmlUtils.createOdStringEle(doc, XmlUtils.OD_NAME_WEBSITE, mWebsite)); in toOdDomElements()
[all …]
DDataTypeFactory.java20 import com.android.asllib.util.XmlUtils;
33 hrDataTypeEle.getAttribute(XmlUtils.HR_ATTR_DATA_TYPE); in createFromHrElements()
34 String[] strs = dataCategoryAndTypeCombinedStr.split(XmlUtils.DATA_TYPE_SEPARATOR); in createFromHrElements()
45 XmlUtils.getPipelineSplitAttr(hrDataTypeEle, XmlUtils.HR_ATTR_PURPOSES, true) in createFromHrElements()
57 XmlUtils.getBoolAttr(hrDataTypeEle, XmlUtils.HR_ATTR_IS_COLLECTION_OPTIONAL, false); in createFromHrElements()
59 XmlUtils.getBoolAttr(hrDataTypeEle, XmlUtils.HR_ATTR_IS_SHARING_OPTIONAL, false); in createFromHrElements()
68 Element odDataTypeEle = XmlUtils.getSingleElement(elements); in createFromOdElements()
69 String dataTypeName = odDataTypeEle.getAttribute(XmlUtils.OD_ATTR_NAME); in createFromOdElements()
71 XmlUtils.getOdIntArray(odDataTypeEle, XmlUtils.OD_NAME_PURPOSES, true); in createFromOdElements()
82 XmlUtils.getOdBoolEle( in createFromOdElements()
[all …]
DTransparencyInfoFactory.java21 import com.android.asllib.util.XmlUtils;
33 Element transparencyInfoEle = XmlUtils.getSingleElement(elements); in createFromHrElements()
40 XmlUtils.getSingleChildElement( in createFromHrElements()
41 transparencyInfoEle, XmlUtils.HR_TAG_DEVELOPER_INFO, false); in createFromHrElements()
43 new DeveloperInfoFactory().createFromHrElements(XmlUtils.listOf(developerInfoEle)); in createFromHrElements()
46 XmlUtils.getSingleChildElement( in createFromHrElements()
47 transparencyInfoEle, XmlUtils.HR_TAG_APP_INFO, false); in createFromHrElements()
48 AppInfo appInfo = new AppInfoFactory().createFromHrElements(XmlUtils.listOf(appInfoEle)); in createFromHrElements()
57 Element transparencyInfoEle = XmlUtils.getSingleElement(elements); in createFromOdElements()
64 XmlUtils.getOdPbundleWithName( in createFromOdElements()
[all …]
DDataLabels.java20 import com.android.asllib.util.XmlUtils;
62 XmlUtils.createPbundleEleWithName(doc, XmlUtils.OD_NAME_DATA_LABELS); in toOdDomElements()
64 maybeAppendDataUsages(doc, dataLabelsEle, mDataCollected, XmlUtils.OD_NAME_DATA_COLLECTED); in toOdDomElements()
65 maybeAppendDataUsages(doc, dataLabelsEle, mDataShared, XmlUtils.OD_NAME_DATA_SHARED); in toOdDomElements()
67 return XmlUtils.listOf(dataLabelsEle); in toOdDomElements()
73 Element dataLabelsEle = doc.createElement(XmlUtils.HR_TAG_DATA_LABELS); in toHrDomElements()
75 doc, dataLabelsEle, mDataCollected, XmlUtils.HR_TAG_DATA_COLLECTED, false); in toHrDomElements()
77 doc, dataLabelsEle, mDataCollected, XmlUtils.HR_TAG_DATA_COLLECTED_EPHEMERAL, true); in toHrDomElements()
79 doc, dataLabelsEle, mDataShared, XmlUtils.HR_TAG_DATA_SHARED, false); in toHrDomElements()
80 return XmlUtils.listOf(dataLabelsEle); in toHrDomElements()
[all …]
DSafetyLabels.java19 import com.android.asllib.util.XmlUtils;
59 XmlUtils.createPbundleEleWithName(doc, XmlUtils.OD_NAME_SAFETY_LABELS); in toOdDomElements()
61 XmlUtils.createOdLongEle(doc, XmlUtils.OD_NAME_VERSION, mVersion)); in toOdDomElements()
63 XmlUtils.appendChildren(safetyLabelsEle, mDataLabels.toOdDomElements(doc)); in toOdDomElements()
66 XmlUtils.appendChildren(safetyLabelsEle, mSecurityLabels.toOdDomElements(doc)); in toOdDomElements()
69 XmlUtils.appendChildren(safetyLabelsEle, mThirdPartyVerification.toOdDomElements(doc)); in toOdDomElements()
71 return XmlUtils.listOf(safetyLabelsEle); in toOdDomElements()
77 Element safetyLabelsEle = doc.createElement(XmlUtils.HR_TAG_SAFETY_LABELS); in toHrDomElements()
78 safetyLabelsEle.setAttribute(XmlUtils.HR_ATTR_VERSION, String.valueOf(mVersion)); in toHrDomElements()
81 XmlUtils.appendChildren(safetyLabelsEle, mDataLabels.toHrDomElements(doc)); in toHrDomElements()
[all …]
DAndroidSafetyLabel.java19 import com.android.asllib.util.XmlUtils;
51 Element aslEle = doc.createElement(XmlUtils.OD_TAG_BUNDLE); in toOdDomElements()
52 aslEle.appendChild(XmlUtils.createOdLongEle(doc, XmlUtils.OD_NAME_VERSION, mVersion)); in toOdDomElements()
54 XmlUtils.appendChildren(aslEle, mSafetyLabels.toOdDomElements(doc)); in toOdDomElements()
57 XmlUtils.appendChildren(aslEle, mSystemAppSafetyLabel.toOdDomElements(doc)); in toOdDomElements()
60 XmlUtils.appendChildren(aslEle, mTransparencyInfo.toOdDomElements(doc)); in toOdDomElements()
62 return XmlUtils.listOf(aslEle); in toOdDomElements()
68 Element aslEle = doc.createElement(XmlUtils.HR_TAG_APP_METADATA_BUNDLES); in toHrDomElements()
69 aslEle.setAttribute(XmlUtils.HR_ATTR_VERSION, String.valueOf(mVersion)); in toHrDomElements()
71 XmlUtils.appendChildren(aslEle, mSafetyLabels.toHrDomElements(doc)); in toHrDomElements()
[all …]
DSecurityLabels.java19 import com.android.asllib.util.XmlUtils;
40 Element ele = XmlUtils.createPbundleEleWithName(doc, XmlUtils.OD_NAME_SECURITY_LABELS); in toOdDomElements()
43 XmlUtils.createOdBooleanEle( in toOdDomElements()
44 doc, XmlUtils.OD_NAME_IS_DATA_DELETABLE, mIsDataDeletable)); in toOdDomElements()
48 XmlUtils.createOdBooleanEle( in toOdDomElements()
49 doc, XmlUtils.OD_NAME_IS_DATA_ENCRYPTED, mIsDataEncrypted)); in toOdDomElements()
51 return XmlUtils.listOf(ele); in toOdDomElements()
57 Element ele = doc.createElement(XmlUtils.HR_TAG_SECURITY_LABELS); in toHrDomElements()
59 ele.setAttribute(XmlUtils.HR_ATTR_IS_DATA_DELETABLE, String.valueOf(mIsDataDeletable)); in toHrDomElements()
62 ele.setAttribute(XmlUtils.HR_ATTR_IS_DATA_ENCRYPTED, String.valueOf(mIsDataEncrypted)); in toHrDomElements()
[all …]
DSystemAppSafetyLabel.java19 import com.android.asllib.util.XmlUtils;
39 XmlUtils.createPbundleEleWithName(doc, XmlUtils.OD_NAME_SYSTEM_APP_SAFETY_LABEL); in toOdDomElements()
41 XmlUtils.createOdBooleanEle(doc, XmlUtils.OD_NAME_DECLARATION, mDeclaration)); in toOdDomElements()
42 return XmlUtils.listOf(systemAppSafetyLabelEle); in toOdDomElements()
49 doc.createElement(XmlUtils.HR_TAG_SYSTEM_APP_SAFETY_LABEL); in toHrDomElements()
50 XmlUtils.maybeSetHrBoolAttr( in toHrDomElements()
51 systemAppSafetyLabelEle, XmlUtils.HR_ATTR_DECLARATION, mDeclaration); in toHrDomElements()
52 return XmlUtils.listOf(systemAppSafetyLabelEle); in toHrDomElements()
DSecurityLabelsFactory.java21 import com.android.asllib.util.XmlUtils;
33 Element ele = XmlUtils.getSingleElement(elements); in createFromHrElements()
39 XmlUtils.getBoolAttr(ele, XmlUtils.HR_ATTR_IS_DATA_DELETABLE, false); in createFromHrElements()
41 XmlUtils.getBoolAttr(ele, XmlUtils.HR_ATTR_IS_DATA_ENCRYPTED, false); in createFromHrElements()
49 Element ele = XmlUtils.getSingleElement(elements); in createFromOdElements()
55 XmlUtils.getOdBoolEle(ele, XmlUtils.OD_NAME_IS_DATA_DELETABLE, false); in createFromOdElements()
57 XmlUtils.getOdBoolEle(ele, XmlUtils.OD_NAME_IS_DATA_ENCRYPTED, false); in createFromOdElements()
DThirdPartyVerification.java19 import com.android.asllib.util.XmlUtils;
39 XmlUtils.createPbundleEleWithName(doc, XmlUtils.OD_NAME_THIRD_PARTY_VERIFICATION); in toOdDomElements()
40 ele.appendChild(XmlUtils.createOdStringEle(doc, XmlUtils.OD_NAME_URL, mUrl)); in toOdDomElements()
41 return XmlUtils.listOf(ele); in toOdDomElements()
47 Element ele = doc.createElement(XmlUtils.HR_TAG_THIRD_PARTY_VERIFICATION); in toHrDomElements()
48 ele.setAttribute(XmlUtils.HR_ATTR_URL, mUrl); in toHrDomElements()
49 return XmlUtils.listOf(ele); in toHrDomElements()
DTransparencyInfo.java19 import com.android.asllib.util.XmlUtils;
51 XmlUtils.createPbundleEleWithName(doc, XmlUtils.OD_NAME_TRANSPARENCY_INFO); in toOdDomElements()
53 XmlUtils.appendChildren(transparencyInfoEle, mDeveloperInfo.toOdDomElements(doc)); in toOdDomElements()
56 XmlUtils.appendChildren(transparencyInfoEle, mAppInfo.toOdDomElements(doc)); in toOdDomElements()
58 return XmlUtils.listOf(transparencyInfoEle); in toOdDomElements()
64 Element transparencyInfoEle = doc.createElement(XmlUtils.HR_TAG_TRANSPARENCY_INFO); in toHrDomElements()
66 XmlUtils.appendChildren(transparencyInfoEle, mDeveloperInfo.toHrDomElements(doc)); in toHrDomElements()
69 XmlUtils.appendChildren(transparencyInfoEle, mAppInfo.toHrDomElements(doc)); in toHrDomElements()
71 return XmlUtils.listOf(transparencyInfoEle); in toHrDomElements()
DThirdPartyVerificationFactory.java21 import com.android.asllib.util.XmlUtils;
34 Element ele = XmlUtils.getSingleElement(elements); in createFromHrElements()
40 String url = XmlUtils.getStringAttr(ele, XmlUtils.HR_ATTR_URL, true); in createFromHrElements()
48 Element ele = XmlUtils.getSingleElement(elements); in createFromOdElements()
54 String url = XmlUtils.getOdStringEle(ele, XmlUtils.OD_NAME_URL, true); in createFromOdElements()
DSystemAppSafetyLabelFactory.java21 import com.android.asllib.util.XmlUtils;
33 Element systemAppSafetyLabelEle = XmlUtils.getSingleElement(elements); in createFromHrElements()
40 XmlUtils.getBoolAttr(systemAppSafetyLabelEle, XmlUtils.HR_ATTR_DECLARATION, true); in createFromHrElements()
48 Element systemAppSafetyLabelEle = XmlUtils.getSingleElement(elements); in createFromOdElements()
54 XmlUtils.getOdBoolEle(systemAppSafetyLabelEle, XmlUtils.OD_NAME_DECLARATION, true); in createFromOdElements()
DDataLabelsFactory.java23 import com.android.asllib.util.XmlUtils;
36 Element ele = XmlUtils.getSingleElement(elements); in createFromHrElements()
42 getDataCategoriesWithTag(ele, XmlUtils.HR_TAG_DATA_COLLECTED, false); in createFromHrElements()
44 getDataCategoriesWithTag(ele, XmlUtils.HR_TAG_DATA_COLLECTED_EPHEMERAL, true); in createFromHrElements()
46 getDataCategoriesWithTag(ele, XmlUtils.HR_TAG_DATA_SHARED, null); in createFromHrElements()
88 Element dataLabelsEle = XmlUtils.getSingleElement(elements); in createFromOdElements()
94 getOdDataCategoriesWithTag(dataLabelsEle, XmlUtils.OD_NAME_DATA_COLLECTED); in createFromOdElements()
96 getOdDataCategoriesWithTag(dataLabelsEle, XmlUtils.OD_NAME_DATA_SHARED); in createFromOdElements()
106 XmlUtils.getOdPbundleWithName(dataLabelsEle, dataCategoryUsageTypeTag, false); in getOdDataCategoriesWithTag()
110 List<Element> dataCategoryEles = XmlUtils.asElementList(dataUsageEle.getChildNodes()); in getOdDataCategoriesWithTag()
[all …]
DDataCategoryFactory.java21 import com.android.asllib.util.XmlUtils;
32 Element dataCategoryEle = XmlUtils.getSingleElement(elements); in createFromOdElements()
34 String categoryName = dataCategoryEle.getAttribute(XmlUtils.OD_ATTR_NAME); in createFromOdElements()
35 var odDataTypes = XmlUtils.asElementList(dataCategoryEle.getChildNodes()); in createFromOdElements()
37 String dataTypeName = odDataTypeEle.getAttribute(XmlUtils.OD_ATTR_NAME); in createFromOdElements()
50 new DataTypeFactory().createFromOdElements(XmlUtils.listOf(odDataTypeEle))); in createFromOdElements()
DDataType.java19 import com.android.asllib.util.XmlUtils;
176 Element dataTypeEle = XmlUtils.createPbundleEleWithName(doc, this.getDataTypeName()); in toOdDomElements()
179 XmlUtils.createOdArray( in toOdDomElements()
181 XmlUtils.OD_TAG_INT_ARRAY, in toOdDomElements()
182 XmlUtils.OD_NAME_PURPOSES, in toOdDomElements()
192 XmlUtils.OD_NAME_IS_COLLECTION_OPTIONAL); in toOdDomElements()
197 XmlUtils.OD_NAME_IS_SHARING_OPTIONAL); in toOdDomElements()
198 maybeAddBoolToOdElement(doc, dataTypeEle, this.getEphemeral(), XmlUtils.OD_NAME_EPHEMERAL); in toOdDomElements()
199 return XmlUtils.listOf(dataTypeEle); in toOdDomElements()
215 Element ele = XmlUtils.createOdBooleanEle(doc, odName, b); in maybeAddBoolToOdElement()
/frameworks/base/tools/app_metadata_bundles/src/lib/java/com/android/asllib/util/
DXmlUtils.java29 public class XmlUtils { class
130 var elements = XmlUtils.asElementList(parentEle.getChildNodes()); in getChildrenByTagName()
204 var ele = doc.createElement(XmlUtils.OD_TAG_PBUNDLE_AS_MAP); in createPbundleEleWithName()
205 ele.setAttribute(XmlUtils.OD_ATTR_NAME, name); in createPbundleEleWithName()
211 var ele = doc.createElement(XmlUtils.OD_TAG_BOOLEAN); in createOdBooleanEle()
212 ele.setAttribute(XmlUtils.OD_ATTR_NAME, name); in createOdBooleanEle()
213 ele.setAttribute(XmlUtils.OD_ATTR_VALUE, String.valueOf(b)); in createOdBooleanEle()
226 var ele = doc.createElement(XmlUtils.OD_TAG_LONG); in createOdLongEle()
227 ele.setAttribute(XmlUtils.OD_ATTR_NAME, name); in createOdLongEle()
228 ele.setAttribute(XmlUtils.OD_ATTR_VALUE, String.valueOf(l)); in createOdLongEle()
[all …]
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsXmlV1.java25 import com.android.internal.util.XmlUtils;
93 stats.mLastTimeUsed = statsOut.beginTime + XmlUtils.readLongAttribute( in loadUsageStats()
97 stats.mLastTimeVisible = statsOut.beginTime + XmlUtils.readLongAttribute( in loadUsageStats()
104 stats.mLastTimeForegroundServiceUsed = statsOut.beginTime + XmlUtils.readLongAttribute( in loadUsageStats()
110 stats.mTotalTimeInForeground = XmlUtils.readLongAttribute(parser, TOTAL_TIME_ACTIVE_ATTR); in loadUsageStats()
113 stats.mTotalTimeVisible = XmlUtils.readLongAttribute(parser, TOTAL_TIME_VISIBLE_ATTR); in loadUsageStats()
119 stats.mTotalTimeForegroundServiceUsed = XmlUtils.readLongAttribute(parser, in loadUsageStats()
125 stats.mLastEvent = XmlUtils.readIntAttribute(parser, LAST_EVENT_ATTR); in loadUsageStats()
126 stats.mAppLaunchCount = XmlUtils.readIntAttribute(parser, APP_LAUNCH_COUNT_ATTR, in loadUsageStats()
138 String action = XmlUtils.readStringAttribute(parser, NAME); in loadUsageStats()
[all …]
/frameworks/base/core/java/android/util/
DXmlPullAttributes.java21 import com.android.internal.util.XmlUtils;
64 return XmlUtils.convertValueToList( in getAttributeListValue()
70 return XmlUtils.convertValueToBoolean( in getAttributeBooleanValue()
76 return XmlUtils.convertValueToInt( in getAttributeResourceValue()
82 return XmlUtils.convertValueToInt( in getAttributeIntValue()
88 return XmlUtils.convertValueToUnsignedInt( in getAttributeUnsignedIntValue()
103 return XmlUtils.convertValueToList( in getAttributeListValue()
108 return XmlUtils.convertValueToBoolean( in getAttributeBooleanValue()
113 return XmlUtils.convertValueToInt( in getAttributeResourceValue()
118 return XmlUtils.convertValueToInt( in getAttributeIntValue()
[all …]
/frameworks/base/wifi/java/src/android/net/wifi/
DSoftApConfToXmlMigrationUtil.java27 import com.android.internal.util.XmlUtils;
194 XmlUtils.writeValueXml(CONFIG_STORE_DATA_VERSION, XML_TAG_VERSION, out); in convertConfToXml()
198 XmlUtils.writeValueXml(softApConf.getSsid(), XML_TAG_SSID, out); in convertConfToXml()
200 XmlUtils.writeValueXml(softApConf.getBssid().toString(), XML_TAG_BSSID, out); in convertConfToXml()
202 XmlUtils.writeValueXml(softApConf.getBand(), XML_TAG_AP_BAND, out); in convertConfToXml()
203 XmlUtils.writeValueXml(softApConf.getChannel(), XML_TAG_CHANNEL, out); in convertConfToXml()
204 XmlUtils.writeValueXml(softApConf.isHiddenSsid(), XML_TAG_HIDDEN_SSID, out); in convertConfToXml()
205 XmlUtils.writeValueXml(softApConf.getSecurityType(), XML_TAG_SECURITY_TYPE, out); in convertConfToXml()
207 XmlUtils.writeValueXml(softApConf.getPassphrase(), XML_TAG_PASSPHRASE, out); in convertConfToXml()
209 XmlUtils.writeValueXml(softApConf.getMaxNumberOfClients(), in convertConfToXml()
[all …]

12345678