Searched defs:xml (Results 1 - 12 of 12) sorted by relevance

/frameworks/webview/chromium/tools/
H A Dgenerate_local_manifest.py15 import xml.etree.ElementTree as ET namespace
41 method='xml')
51 manifest_filename = 'default.xml'
58 '.repo/local_manifest.xml')
/frameworks/base/tools/layoutlib/rename_font/
H A Dtest.py6 We then use ttx to dump the new font to its xml and check if rename was successful
17 import xml.etree.ElementTree as etree namespace
H A Dbuild_font.py31 import xml.etree.ElementTree as etree namespace
87 elif extension == '.xml':
104 # run ttx to generate an xml file in the output folder which represents all
108 # now parse the xml file to change its PS name.
H A Dbuild_font_single.py32 import xml.etree.ElementTree as etree namespace
66 EXTENSIONS = ['.ttf', '.otf', '.xml']
88 # run ttx to generate an xml file in the output folder which represents all
92 # now parse the xml file to change its PS name.
/frameworks/base/core/java/android/util/
H A DXml.java24 import org.apache.harmony.xml.ExpatReader;
26 import org.xml.sax.ContentHandler;
27 import org.xml.sax.InputSource;
28 import org.xml.sax.SAXException;
29 import org.xml.sax.XMLReader;
50 * Parses the given xml string and fires events on the given SAX handler.
52 public static void parse(String xml, ContentHandler contentHandler) argument
57 reader.parse(new InputSource(new StringReader(xml)));
64 * Parses xml from the given reader and fires events on the given SAX
75 * Parses xml fro
[all...]
/frameworks/base/services/usage/java/com/android/server/usage/
H A DUsageStatsXmlV1.java121 private static void writeUsageStats(XmlSerializer xml, final IntervalStats stats, argument
123 xml.startTag(null, PACKAGE_TAG);
126 XmlUtils.writeLongAttribute(xml, LAST_TIME_ACTIVE_ATTR,
129 XmlUtils.writeStringAttribute(xml, PACKAGE_ATTR, usageStats.mPackageName);
130 XmlUtils.writeLongAttribute(xml, TOTAL_TIME_ACTIVE_ATTR, usageStats.mTotalTimeInForeground);
131 XmlUtils.writeIntAttribute(xml, LAST_EVENT_ATTR, usageStats.mLastEvent);
133 xml.endTag(null, PACKAGE_TAG);
136 private static void writeConfigStats(XmlSerializer xml, final IntervalStats stats, argument
138 xml.startTag(null, CONFIG_TAG);
141 XmlUtils.writeLongAttribute(xml, LAST_TIME_ACTIVE_ATT
156 writeEvent(XmlSerializer xml, final IntervalStats stats, final UsageEvents.Event event) argument
229 write(XmlSerializer xml, IntervalStats stats) argument
[all...]
/frameworks/base/core/java/android/content/
H A DRestrictionsManager.java68 * <?xml version="1.0" encoding="utf-8"?>
105 * android:resource="@xml/app_restrictions" />
538 XmlResourceParser xml =
540 List<RestrictionEntry> restrictions = loadManifestRestrictions(packageName, xml);
546 XmlResourceParser xml) {
557 int tagType = xml.next();
560 if (xml.getName().equals(TAG_RESTRICTION)) {
561 AttributeSet attrSet = Xml.asAttributeSet(xml);
572 tagType = xml.next();
545 loadManifestRestrictions(String packageName, XmlResourceParser xml) argument
/frameworks/base/tools/split-select/
H A DMain.cpp131 Asset* asset = assetManager.openNonAsset(cookie, "AndroidManifest.xml", Asset::ACCESS_BUFFER);
136 ResXMLTree xml; local
137 if (xml.setTo(asset->getBuffer(true), asset->getLength(), false) != NO_ERROR) {
151 while ((event = xml.next()) != ResXMLParser::BAD_DOCUMENT &&
158 const char16_t* name = xml.getElementName(&len);
161 ssize_t idx = xml.indexOfAttribute(
165 outInfo.versionCode = xml.getAttributeData(idx);
169 ssize_t idx = xml.indexOfAttribute(
173 outInfo.multiArch = xml.getAttributeData(idx) != 0;
177 ssize_t idx = xml
[all...]
/frameworks/base/core/java/android/app/
H A DSearchableInfo.java526 XmlResourceParser xml =
528 if (xml == null) {
533 SearchableInfo searchable = getActivityMetaData(userContext, xml, cName);
534 xml.close();
557 * @param xml XML parser for reading attributes
562 private static SearchableInfo getActivityMetaData(Context context, XmlPullParser xml, argument
571 int tagType = xml.next();
574 if (xml.getName().equals(MD_XML_ELEMENT_SEARCHABLE)) {
575 AttributeSet attr = Xml.asAttributeSet(xml);
585 } else if (xml
[all...]
/frameworks/av/media/libmedia/
H A DMediaProfiles.cpp644 if (property_get("media.settings.xml", value, NULL) <= 0) {
645 const char *defaultXmlFile = "/etc/media_profiles.xml";
648 ALOGW("could not find media config xml file");
817 // media_profiles.xml file, We assume that the default camera id
914 MediaProfiles::createInstanceFromXmlFile(const char *xml) argument
917 CHECK((fp = fopen(xml, "r")));
931 ALOGE("failed to enable DTD support in the xml file");
957 if (bytes_read == 0) break; // done parsing the xml file
/frameworks/base/core/java/android/content/res/
H A DConfiguration.java1743 * @param xml The serializer to which to write the attributes.
1747 public static void writeXmlAttrs(XmlSerializer xml, Configuration config) throws IOException { argument
1748 XmlUtils.writeIntAttribute(xml, XML_ATTR_FONT_SCALE,
1751 XmlUtils.writeIntAttribute(xml, XML_ATTR_MCC, config.mcc);
1754 XmlUtils.writeIntAttribute(xml, XML_ATTR_MNC, config.mnc);
1757 XmlUtils.writeStringAttribute(xml, XML_ATTR_LOCALE, config.locale.toLanguageTag());
1760 XmlUtils.writeIntAttribute(xml, XML_ATTR_TOUCHSCREEN, config.touchscreen);
1763 XmlUtils.writeIntAttribute(xml, XML_ATTR_KEYBOARD, config.keyboard);
1766 XmlUtils.writeIntAttribute(xml, XML_ATTR_KEYBOARD_HIDDEN, config.keyboardHidden);
1769 XmlUtils.writeIntAttribute(xml, XML_ATTR_HARD_KEYBOARD_HIDDE
[all...]
/frameworks/base/services/core/java/com/android/server/pm/
H A DUserManagerService.java114 private static final String USER_LIST_FILENAME = "userlist.xml";
118 private static final String XML_SUFFIX = ".xml";
1062 private void writeBoolean(XmlSerializer xml, Bundle restrictions, String restrictionKey) argument
1065 xml.attribute(null, restrictionKey,

Completed in 551 milliseconds