/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsXmlV1.java | 25 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/ |
D | XmlPullAttributes.java | 21 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/ |
D | SoftApConfToXmlMigrationUtil.java | 27 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 …]
|
/frameworks/base/apex/blobstore/framework/java/android/app/blob/ |
D | BlobHandle.java | 32 import com.android.internal.util.XmlUtils; 287 XmlUtils.writeStringAttribute(out, ATTR_ALGO, algorithm); in writeToXml() 288 XmlUtils.writeByteArrayAttribute(out, ATTR_DIGEST, digest); in writeToXml() 289 XmlUtils.writeStringAttribute(out, ATTR_LABEL, label); in writeToXml() 290 XmlUtils.writeLongAttribute(out, ATTR_EXPIRY_TIME, expiryTimeMillis); in writeToXml() 291 XmlUtils.writeStringAttribute(out, ATTR_TAG, tag); in writeToXml() 297 final String algo = XmlUtils.readStringAttribute(in, ATTR_ALGO); in createFromXml() 298 final byte[] digest = XmlUtils.readByteArrayAttribute(in, ATTR_DIGEST); in createFromXml() 299 final CharSequence label = XmlUtils.readStringAttribute(in, ATTR_LABEL); in createFromXml() 300 final long expiryTimeMs = XmlUtils.readLongAttribute(in, ATTR_EXPIRY_TIME); in createFromXml() [all …]
|
/frameworks/base/core/java/com/android/server/ |
D | SystemConfig.java | 46 import com.android.internal.util.XmlUtils; 684 XmlUtils.nextElement(parser); in readPermissionsFromXml() 691 XmlUtils.skipCurrentTag(parser); in readPermissionsFromXml() 708 XmlUtils.skipCurrentTag(parser); in readPermissionsFromXml() 716 XmlUtils.skipCurrentTag(parser); in readPermissionsFromXml() 723 XmlUtils.skipCurrentTag(parser); in readPermissionsFromXml() 732 XmlUtils.skipCurrentTag(parser); in readPermissionsFromXml() 739 XmlUtils.skipCurrentTag(parser); in readPermissionsFromXml() 747 XmlUtils.skipCurrentTag(parser); in readPermissionsFromXml() 760 XmlUtils.skipCurrentTag(parser); in readPermissionsFromXml() [all …]
|
/frameworks/base/core/java/android/security/net/config/ |
D | XmlConfigSource.java | 11 import com.android.internal.util.XmlUtils; 143 while (XmlUtils.nextElementWithin(parser, outerDepth)) { in parsePinSet() 148 XmlUtils.skipCurrentTag(parser); in parsePinSet() 198 XmlUtils.skipCurrentTag(parser); in parseCertificatesEntry() 207 while (XmlUtils.nextElementWithin(parser, outerDepth)) { in parseTrustAnchors() 212 XmlUtils.skipCurrentTag(parser); in parseTrustAnchors() 249 while (XmlUtils.nextElementWithin(parser, outerDepth)) { in parseConfigEntry() 283 XmlUtils.skipCurrentTag(parser); in parseConfigEntry() 315 XmlUtils.beginDocument(parser, "network-security-config"); in parseNetworkSecurityConfig() 317 while (XmlUtils.nextElementWithin(parser, outerDepth)) { in parseNetworkSecurityConfig() [all …]
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | ConfigurationProcessor.java | 25 import com.android.internal.util.XmlUtils; 41 XmlUtils.beginDocument(parser, "devices"); in processExcludedDeviceNames() 43 XmlUtils.nextElement(parser); in processExcludedDeviceNames() 92 XmlUtils.beginDocument(parser, "ports"); in processInputPortAssociations() 95 XmlUtils.nextElement(parser); in processInputPortAssociations()
|
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/ |
D | BlobAccessMode.java | 32 import com.android.internal.util.XmlUtils; 154 XmlUtils.writeIntAttribute(out, ATTR_TYPE, mAccessType); in writeToXml() 158 XmlUtils.writeStringAttribute(out, ATTR_PACKAGE, packageIdentifier.packageName); in writeToXml() 159 XmlUtils.writeByteArrayAttribute(out, ATTR_CERTIFICATE, packageIdentifier.certificate); in writeToXml() 169 final int accessType = XmlUtils.readIntAttribute(in, ATTR_TYPE); in createFromXml() 173 while (XmlUtils.nextElementWithin(in, depth)) { in createFromXml() 175 final String packageName = XmlUtils.readStringAttribute(in, ATTR_PACKAGE); in createFromXml() 176 final byte[] certificate = XmlUtils.readByteArrayAttribute(in, ATTR_CERTIFICATE); in createFromXml()
|
D | BlobMetadata.java | 71 import com.android.internal.util.XmlUtils; 707 XmlUtils.writeLongAttribute(out, ATTR_ID, mBlobId); in writeToXml() 730 final long blobId = XmlUtils.readLongAttribute(in, ATTR_ID); in createFromXml() 732 XmlUtils.readIntAttribute(in, ATTR_USER_ID); in createFromXml() 739 while (XmlUtils.nextElementWithin(in, depth)) { in createFromXml() 787 XmlUtils.writeStringAttribute(out, ATTR_PACKAGE, packageName); in writeToXml() 788 XmlUtils.writeIntAttribute(out, ATTR_UID, uid); in writeToXml() 789 XmlUtils.writeLongAttribute(out, ATTR_COMMIT_TIME_MS, commitTimeMs); in writeToXml() 799 final String packageName = XmlUtils.readStringAttribute(in, ATTR_PACKAGE); in createFromXml() 800 final int uid = XmlUtils.readIntAttribute(in, ATTR_UID); in createFromXml() [all …]
|
D | BlobStoreSession.java | 64 import com.android.internal.util.XmlUtils; 578 XmlUtils.writeLongAttribute(out, ATTR_ID, mSessionId); in writeToXml() 579 XmlUtils.writeStringAttribute(out, ATTR_PACKAGE, mOwnerPackageName); in writeToXml() 580 XmlUtils.writeIntAttribute(out, ATTR_UID, mOwnerUid); in writeToXml() 581 XmlUtils.writeLongAttribute(out, ATTR_CREATION_TIME_MS, mCreationTimeMs); in writeToXml() 597 final long sessionId = XmlUtils.readLongAttribute(in, ATTR_ID); in createFromXml() 598 final String ownerPackageName = XmlUtils.readStringAttribute(in, ATTR_PACKAGE); in createFromXml() 599 final int ownerUid = XmlUtils.readIntAttribute(in, ATTR_UID); in createFromXml() 601 ? XmlUtils.readLongAttribute(in, ATTR_CREATION_TIME_MS) in createFromXml() 607 while (XmlUtils.nextElementWithin(in, depth)) { in createFromXml()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | XmlUtilsTest.java | 42 XmlUtils.writeMapXml(map, baos); in testMapWithNullKeys() 45 HashMap<String, ?> deserialized = XmlUtils.readMapXml(mapInput); in testMapWithNullKeys() 57 XmlUtils.writeValueXml(testByteArray, "testByteArray", serializer); in testreadWriteXmlByteArrayValue() 64 byte[] testByteArrayDeserialized = (byte[]) XmlUtils.readValueXml(pullParser, name); in testreadWriteXmlByteArrayValue()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserTypeFactory.java | 49 import com.android.internal.util.XmlUtils; 311 XmlUtils.beginDocument(parser, "user-types"); in customizeBuilders() 312 for (XmlUtils.nextElement(parser); in customizeBuilders() 314 XmlUtils.nextElement(parser)) { in customizeBuilders() 323 XmlUtils.skipCurrentTag(parser); in customizeBuilders() 328 XmlUtils.skipCurrentTag(parser); in customizeBuilders() 336 XmlUtils.skipCurrentTag(parser); in customizeBuilders() 381 while (XmlUtils.nextElementWithin(parser, depth)) { in customizeBuilders() 385 .readRestrictions(XmlUtils.makeTyped(parser)); in customizeBuilders() 460 while (XmlUtils.nextElementWithin(parser, depth)) { in setResAttributeArray() [all …]
|
D | ModuleInfoProvider.java | 35 import com.android.internal.util.XmlUtils; 128 XmlUtils.beginDocument(parser, "module-metadata"); in loadModuleMetadata() 130 XmlUtils.nextElement(parser); in loadModuleMetadata() 148 final String modulePackageName = XmlUtils.readStringAttribute(parser, in loadModuleMetadata() 150 final boolean isHidden = XmlUtils.readBooleanAttribute(parser, "isHidden"); in loadModuleMetadata()
|
/frameworks/base/core/java/android/content/pm/ |
D | XmlSerializerAndParser.java | 23 import com.android.internal.util.XmlUtils; 38 writeAsXml(item, XmlUtils.makeTyped(out)); in writeAsXml() 43 return createFromXml(XmlUtils.makeTyped(parser)); in createFromXml()
|
D | SuspendDialogInfo.java | 36 import com.android.internal.util.XmlUtils; 202 XmlUtils.writeStringAttribute(out, XML_ATTR_TITLE, mTitle); in saveToXml() 207 XmlUtils.writeStringAttribute(out, XML_ATTR_DIALOG_MESSAGE, mDialogMessage); in saveToXml() 212 XmlUtils.writeStringAttribute(out, XML_ATTR_BUTTON_TEXT, mNeutralButtonText); in saveToXml() 225 final String title = XmlUtils.readStringAttribute(in, XML_ATTR_TITLE); in restoreFromXml() 228 final String buttonText = XmlUtils.readStringAttribute(in, XML_ATTR_BUTTON_TEXT); in restoreFromXml() 233 final String dialogMessage = XmlUtils.readStringAttribute(in, XML_ATTR_DIALOG_MESSAGE); in restoreFromXml()
|
/frameworks/base/errorprone/refaster/ |
D | EfficientXml.java | 20 import com.android.internal.util.XmlUtils; 43 XmlUtils.writeIntAttribute(out, n, v); in beforeUtils() 82 return XmlUtils.readIntAttribute(in, n); in beforeUtils() 99 return XmlUtils.readIntAttribute(in, n, d); in before() 133 XmlUtils.writeLongAttribute(out, n, v); in beforeUtils() 172 return XmlUtils.readLongAttribute(in, n); in beforeUtils() 189 return XmlUtils.readLongAttribute(in, n, d); in before() 223 XmlUtils.writeFloatAttribute(out, n, v); in beforeUtils() 240 return XmlUtils.readFloatAttribute(in, n); in beforeUtils() 327 return XmlUtils.readBooleanAttribute(in, n); in beforeUtils() [all …]
|
/frameworks/layoutlib/bridge/src/android/util/ |
D | BridgeXmlPullAttributes.java | 22 import com.android.internal.util.XmlUtils; 128 return XmlUtils.convertValueToList(value, options, defaultValue); in getAttributeListValue() 145 return XmlUtils.convertValueToBoolean(value, defaultValue); in getAttributeBooleanValue() 176 return XmlUtils.convertValueToInt(value, defaultValue); in getAttributeIntValue() 210 return XmlUtils.convertValueToUnsignedInt(value, defaultValue); in getAttributeUnsignedIntValue() 236 return XmlUtils.convertValueToList( in getAttributeListValue() 250 return XmlUtils.convertValueToBoolean(value, defaultValue); in getAttributeBooleanValue() 279 return XmlUtils.convertValueToUnsignedInt(value, defaultValue); in getAttributeUnsignedIntValue()
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayManagerSettings.java | 38 import com.android.internal.util.XmlUtils; 471 XmlUtils.beginDocument(parser, TAG_OVERLAYS); 478 while (XmlUtils.nextElementWithin(parser, depth)) { 506 XmlUtils.readStringAttribute(parser, ATTR_PACKAGE_NAME), 507 XmlUtils.readStringAttribute(parser, ATTR_OVERLAY_NAME)); 509 final String targetPackageName = XmlUtils.readStringAttribute(parser, 511 final String targetOverlayableName = XmlUtils.readStringAttribute(parser, 513 final String baseCodePath = XmlUtils.readStringAttribute(parser, ATTR_BASE_CODE_PATH); 518 final String category = XmlUtils.readStringAttribute(parser, ATTR_CATEGORY); 546 XmlUtils.writeStringAttribute(xml, ATTR_PACKAGE_NAME, item.mOverlay.getPackageName()); [all …]
|
/frameworks/base/core/java/android/os/ |
D | PersistableBundle.java | 29 import com.android.internal.util.XmlUtils; 48 XmlUtils.WriteMapCallback { 254 saveToXml(XmlUtils.makeTyped(out)); in saveToXml() 260 XmlUtils.writeMapXml(mMap, out, this); in saveToXml() 264 static class MyReadMapCallback implements XmlUtils.ReadMapCallback { 301 return restoreFromXml(XmlUtils.makeTyped(in)); in restoreFromXml() 315 XmlUtils.readThisArrayMapXml(in, startTag, tagName, in restoreFromXml()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/storage/ |
D | BubbleXmlHelper.kt | 23 import com.android.internal.util.XmlUtils in <lambda>() 100 XmlUtils.beginDocument(parser, TAG_BUBBLES) in readXml() 104 while (XmlUtils.nextElementWithin(parser, veryOuterDepth)) { in readXml() 108 while (XmlUtils.nextElementWithin(parser, outerDepth)) { in readXml() 119 while (XmlUtils.nextElementWithin(parser, outerDepth)) { in readXml()
|
/frameworks/base/services/core/java/com/android/server/firewall/ |
D | FilterList.java | 19 import com.android.internal.util.XmlUtils; 31 while (XmlUtils.nextElementWithin(parser, outerDepth)) { in readFromXml()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerBackupHelper.java | 38 import com.android.internal.util.XmlUtils; 220 while (XmlUtils.nextElementWithin(parser, permissionsOuterDepth)) { in restoreAccountAccessPermissions() 225 while (XmlUtils.nextElementWithin(parser, permissionOuterDepth)) { in restoreAccountAccessPermissions() 231 XmlUtils.skipCurrentTag(parser); in restoreAccountAccessPermissions() 235 XmlUtils.skipCurrentTag(parser); in restoreAccountAccessPermissions() 239 XmlUtils.skipCurrentTag(parser); in restoreAccountAccessPermissions()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | XmlTest.java | 31 import com.android.internal.util.XmlUtils; 45 doLargeValues(XmlUtils.makeTyped(Xml.newSerializer()), in testLargeValues_Normal() 46 XmlUtils.makeTyped(Xml.newPullParser())); in testLargeValues_Normal() 100 doPersistableBundle(XmlUtils.makeTyped(Xml.newSerializer()), in testPersistableBundle_Normal() 101 XmlUtils.makeTyped(Xml.newPullParser())); in testPersistableBundle_Normal() 188 doVerify(XmlUtils.makeTyped(Xml.newSerializer()), in testVerify_Normal() 189 XmlUtils.makeTyped(Xml.newPullParser())); in testVerify_Normal()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbUserSettingsManager.java | 44 import com.android.internal.util.XmlUtils; 111 XmlUtils.nextElement(parser); in canBeDefault() 120 XmlUtils.nextElement(parser); in canBeDefault() 153 XmlUtils.nextElement(parser); in canBeDefault() 162 XmlUtils.nextElement(parser); in canBeDefault()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | VoiceMailConstants.java | 24 import com.android.internal.telephony.util.XmlUtils; 94 XmlUtils.beginDocument(parser, "voicemail"); in loadVoiceMail() 97 XmlUtils.nextElement(parser); in loadVoiceMail()
|