Home
last modified time | relevance | path

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

12345

/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsXmlV1.java25 import com.android.internal.util.XmlUtils;
94 stats.mLastTimeUsed = statsOut.beginTime + XmlUtils.readLongAttribute( in loadUsageStats()
98 stats.mLastTimeVisible = statsOut.beginTime + XmlUtils.readLongAttribute( in loadUsageStats()
105 stats.mLastTimeForegroundServiceUsed = statsOut.beginTime + XmlUtils.readLongAttribute( in loadUsageStats()
111 stats.mTotalTimeInForeground = XmlUtils.readLongAttribute(parser, TOTAL_TIME_ACTIVE_ATTR); in loadUsageStats()
114 stats.mTotalTimeVisible = XmlUtils.readLongAttribute(parser, TOTAL_TIME_VISIBLE_ATTR); in loadUsageStats()
120 stats.mTotalTimeForegroundServiceUsed = XmlUtils.readLongAttribute(parser, in loadUsageStats()
126 stats.mLastEvent = XmlUtils.readIntAttribute(parser, LAST_EVENT_ATTR); in loadUsageStats()
127 stats.mAppLaunchCount = XmlUtils.readIntAttribute(parser, APP_LAUNCH_COUNT_ATTR, in loadUsageStats()
139 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/core/java/com/android/server/
DSystemConfig.java39 import com.android.internal.util.XmlUtils;
541 XmlUtils.nextElement(parser); in readPermissionsFromXml()
548 XmlUtils.skipCurrentTag(parser); in readPermissionsFromXml()
565 XmlUtils.skipCurrentTag(parser); in readPermissionsFromXml()
573 XmlUtils.skipCurrentTag(parser); in readPermissionsFromXml()
580 XmlUtils.skipCurrentTag(parser); in readPermissionsFromXml()
589 XmlUtils.skipCurrentTag(parser); in readPermissionsFromXml()
596 XmlUtils.skipCurrentTag(parser); in readPermissionsFromXml()
604 XmlUtils.skipCurrentTag(parser); in readPermissionsFromXml()
617 XmlUtils.skipCurrentTag(parser); in readPermissionsFromXml()
[all …]
/frameworks/base/services/core/java/com/android/server/om/
DOverlayManagerSettings.java33 import com.android.internal.util.XmlUtils;
402 XmlUtils.beginDocument(parser, TAG_OVERLAYS); in restore()
403 int version = XmlUtils.readIntAttribute(parser, ATTR_VERSION); in restore()
409 while (XmlUtils.nextElementWithin(parser, depth)) { in restore()
435 final String packageName = XmlUtils.readStringAttribute(parser, ATTR_PACKAGE_NAME); in restoreRow()
436 final int userId = XmlUtils.readIntAttribute(parser, ATTR_USER_ID); in restoreRow()
437 final String targetPackageName = XmlUtils.readStringAttribute(parser, in restoreRow()
439 final String targetOverlayableName = XmlUtils.readStringAttribute(parser, in restoreRow()
441 final String baseCodePath = XmlUtils.readStringAttribute(parser, ATTR_BASE_CODE_PATH); in restoreRow()
442 final int state = XmlUtils.readIntAttribute(parser, ATTR_STATE); in restoreRow()
[all …]
/frameworks/base/core/java/android/content/pm/
DSuspendDialogInfo.java33 import com.android.internal.util.XmlUtils;
128 XmlUtils.writeIntAttribute(out, XML_ATTR_ICON_RES_ID, mIconResId); in saveToXml()
131 XmlUtils.writeIntAttribute(out, XML_ATTR_TITLE_RES_ID, mTitleResId); in saveToXml()
134 XmlUtils.writeIntAttribute(out, XML_ATTR_DIALOG_MESSAGE_RES_ID, mDialogMessageResId); in saveToXml()
136 XmlUtils.writeStringAttribute(out, XML_ATTR_DIALOG_MESSAGE, mDialogMessage); in saveToXml()
139 XmlUtils.writeIntAttribute(out, XML_ATTR_BUTTON_TEXT_RES_ID, mNeutralButtonTextResId); in saveToXml()
149 final int iconId = XmlUtils.readIntAttribute(in, XML_ATTR_ICON_RES_ID, ID_NULL); in restoreFromXml()
150 final int titleId = XmlUtils.readIntAttribute(in, XML_ATTR_TITLE_RES_ID, ID_NULL); in restoreFromXml()
151 final int buttonTextId = XmlUtils.readIntAttribute(in, XML_ATTR_BUTTON_TEXT_RES_ID, in restoreFromXml()
153 final int dialogMessageResId = XmlUtils.readIntAttribute( in restoreFromXml()
[all …]
/frameworks/base/core/java/android/security/net/config/
DXmlConfigSource.java11 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/
DConfigurationProcessor.java25 import com.android.internal.util.XmlUtils;
43 XmlUtils.beginDocument(parser, "devices"); in processExcludedDeviceNames()
45 XmlUtils.nextElement(parser); in processExcludedDeviceNames()
95 XmlUtils.beginDocument(parser, "ports"); in processInputPortAssociations()
98 XmlUtils.nextElement(parser); in processInputPortAssociations()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DXmlUtilsTest.java43 XmlUtils.writeMapXml(map, baos); in testMapWithNullKeys()
46 HashMap<String, ?> deserialized = XmlUtils.readMapXml(mapInput); in testMapWithNullKeys()
58 XmlUtils.writeValueXml(testByteArray, "testByteArray", serializer); in testreadWriteXmlByteArrayValue()
65 byte[] testByteArrayDeserialized = (byte[]) XmlUtils.readValueXml(pullParser, name); in testreadWriteXmlByteArrayValue()
/frameworks/layoutlib/bridge/src/android/util/
DBridgeXmlPullAttributes.java22 import com.android.internal.util.XmlUtils;
132 return XmlUtils.convertValueToList(value, options, defaultValue); in getAttributeListValue()
149 return XmlUtils.convertValueToBoolean(value, defaultValue); in getAttributeBooleanValue()
180 return XmlUtils.convertValueToInt(value, defaultValue); in getAttributeIntValue()
214 return XmlUtils.convertValueToUnsignedInt(value, defaultValue); in getAttributeUnsignedIntValue()
240 return XmlUtils.convertValueToList( in getAttributeListValue()
254 return XmlUtils.convertValueToBoolean(value, defaultValue); in getAttributeBooleanValue()
283 return XmlUtils.convertValueToUnsignedInt(value, defaultValue); in getAttributeUnsignedIntValue()
/frameworks/base/services/core/java/com/android/server/pm/
DModuleInfoProvider.java35 import com.android.internal.util.XmlUtils;
125 XmlUtils.beginDocument(parser, "module-metadata"); in loadModuleMetadata()
127 XmlUtils.nextElement(parser); in loadModuleMetadata()
145 final String modulePackageName = XmlUtils.readStringAttribute(parser, in loadModuleMetadata()
147 final boolean isHidden = XmlUtils.readBooleanAttribute(parser, "isHidden"); in loadModuleMetadata()
DPersistentPreferredActivity.java19 import com.android.internal.util.XmlUtils;
70 XmlUtils.skipCurrentTag(parser); in PersistentPreferredActivity()
80 XmlUtils.skipCurrentTag(parser); in PersistentPreferredActivity()
DPackageSignatures.java25 import com.android.internal.util.XmlUtils;
117 XmlUtils.skipCurrentTag(parser); in readXml()
260 XmlUtils.skipCurrentTag(parser); in readCertsListXml()
269 XmlUtils.skipCurrentTag(parser); in readCertsListXml()
298 XmlUtils.skipCurrentTag(parser); in readCertsListXml()
304 XmlUtils.skipCurrentTag(parser); in readCertsListXml()
DCrossProfileIntentFilter.java19 import com.android.internal.util.XmlUtils;
87 XmlUtils.skipCurrentTag(parser); in CrossProfileIntentFilter()
97 XmlUtils.skipCurrentTag(parser); in CrossProfileIntentFilter()
/frameworks/base/core/java/android/content/res/
DConfiguration.java65 import com.android.internal.util.XmlUtils;
2604 XmlUtils.readIntAttribute(parser, XML_ATTR_FONT_SCALE, 0)); in readXmlAttrs()
2605 configOut.mcc = XmlUtils.readIntAttribute(parser, XML_ATTR_MCC, 0); in readXmlAttrs()
2606 configOut.mnc = XmlUtils.readIntAttribute(parser, XML_ATTR_MNC, 0); in readXmlAttrs()
2608 final String localesStr = XmlUtils.readStringAttribute(parser, XML_ATTR_LOCALES); in readXmlAttrs()
2612 configOut.touchscreen = XmlUtils.readIntAttribute(parser, XML_ATTR_TOUCHSCREEN, in readXmlAttrs()
2614 configOut.keyboard = XmlUtils.readIntAttribute(parser, XML_ATTR_KEYBOARD, in readXmlAttrs()
2616 configOut.keyboardHidden = XmlUtils.readIntAttribute(parser, XML_ATTR_KEYBOARD_HIDDEN, in readXmlAttrs()
2619 XmlUtils.readIntAttribute(parser, XML_ATTR_HARD_KEYBOARD_HIDDEN, in readXmlAttrs()
2621 configOut.navigation = XmlUtils.readIntAttribute(parser, XML_ATTR_NAVIGATION, in readXmlAttrs()
[all …]
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerBackupHelper.java39 import com.android.internal.util.XmlUtils;
224 while (XmlUtils.nextElementWithin(parser, permissionsOuterDepth)) { in restoreAccountAccessPermissions()
229 while (XmlUtils.nextElementWithin(parser, permissionOuterDepth)) { in restoreAccountAccessPermissions()
235 XmlUtils.skipCurrentTag(parser); in restoreAccountAccessPermissions()
239 XmlUtils.skipCurrentTag(parser); in restoreAccountAccessPermissions()
243 XmlUtils.skipCurrentTag(parser); in restoreAccountAccessPermissions()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DVoiceMailConstants.java23 import com.android.internal.telephony.util.XmlUtils;
93 XmlUtils.beginDocument(parser, "voicemail"); in loadVoiceMail()
96 XmlUtils.nextElement(parser); in loadVoiceMail()
/frameworks/base/services/core/java/com/android/server/firewall/
DFilterList.java19 import com.android.internal.util.XmlUtils;
31 while (XmlUtils.nextElementWithin(parser, outerDepth)) { in readFromXml()
DNotFilter.java21 import com.android.internal.util.XmlUtils;
47 while (XmlUtils.nextElementWithin(parser, outerDepth)) {
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DTestConferenceEventPackageParser.java24 import com.android.internal.telephony.util.XmlUtils;
96 while (XmlUtils.nextElementWithin(parser, outerDepth)) { in parse()
135 while (XmlUtils.nextElementWithin(parser, outerDepth)) { in parseParticipant()
/frameworks/base/core/java/android/os/
DPersistableBundle.java27 import com.android.internal.util.XmlUtils;
47 XmlUtils.WriteMapCallback {
252 XmlUtils.writeMapXml(mMap, out, this); in saveToXml()
256 static class MyReadMapCallback implements XmlUtils.ReadMapCallback {
301 XmlUtils.readThisArrayMapXml(in, startTag, tagName, in restoreFromXml()
/frameworks/base/telephony/java/com/android/internal/telephony/util/
DXmlUtils.java25 public final class XmlUtils { class
26 private XmlUtils() {} in XmlUtils() method in XmlUtils
/frameworks/base/services/core/java/com/android/server/policy/
DGlobalKeyManager.java28 import com.android.internal.util.XmlUtils;
96 XmlUtils.beginDocument(parser, TAG_GLOBAL_KEYS); in loadGlobalKeys()
100 XmlUtils.nextElement(parser); in loadGlobalKeys()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DWatchlistSettings.java28 import com.android.internal.util.XmlUtils;
97 XmlUtils.beginDocument(parser, "network-watchlist-settings"); in reloadSettings()
99 while (XmlUtils.nextElementWithin(parser, outerDepth)) { in reloadSettings()
/frameworks/base/services/core/java/com/android/server/tv/
DPersistentDataStore.java32 import com.android.internal.util.XmlUtils;
243 XmlUtils.beginDocument(parser, TAG_TV_INPUT_MANAGER_STATE); in loadFromXml()
245 while (XmlUtils.nextElementWithin(parser, outerDepth)) { in loadFromXml()
262 while (XmlUtils.nextElementWithin(parser, outerDepth)) { in loadBlockedRatingsFromXml()
/frameworks/base/services/core/java/com/android/server/slice/
DSliceFullAccessList.java24 import com.android.internal.util.XmlUtils;
103 int xmlVersion = XmlUtils.readIntAttribute(parser, ATT_VERSION, 0); in readXml()
120 final int userId = XmlUtils.readIntAttribute(parser, ATT_USER_ID, 0); in readXml()

12345