Searched defs:xml (Results 1 - 25 of 26) sorted by path

12

/frameworks/av/media/libmedia/
H A DMediaProfiles.cpp595 if (property_get("media.settings.xml", value, NULL) <= 0) {
596 const char *defaultXmlFile = "/etc/media_profiles.xml";
599 ALOGW("could not find media config xml file");
773 // media_profiles.xml file, We assume that the default camera id
842 MediaProfiles::createInstanceFromXmlFile(const char *xml) argument
845 CHECK((fp = fopen(xml, "r")));
859 ALOGE("failed to enable DTD support in the xml file");
885 if (bytes_read == 0) break; // done parsing the xml file
/frameworks/base/core/java/android/app/
H A DSearchableInfo.java528 XmlResourceParser xml =
530 if (xml == null) {
535 SearchableInfo searchable = getActivityMetaData(userContext, xml, cName);
536 xml.close();
559 * @param xml XML parser for reading attributes
564 private static SearchableInfo getActivityMetaData(Context context, XmlPullParser xml, argument
573 int tagType = xml.next();
576 if (xml.getName().equals(MD_XML_ELEMENT_SEARCHABLE)) {
577 AttributeSet attr = Xml.asAttributeSet(xml);
587 } else if (xml
[all...]
/frameworks/base/core/java/android/content/
H A DRestrictionsManager.java70 * &lt;?xml version="1.0" encoding="utf-8"?&gt;
113 * android:resource="@xml/app_restrictions" /&gt;
546 XmlResourceParser xml =
548 return loadManifestRestrictions(packageName, xml);
552 XmlResourceParser xml) {
563 int tagType = xml.next();
566 restriction = loadRestrictionElement(appContext, xml);
571 tagType = xml.next();
584 private RestrictionEntry loadRestrictionElement(Context appContext, XmlResourceParser xml) argument
586 if (xml
551 loadManifestRestrictions(String packageName, XmlResourceParser xml) argument
597 loadRestriction(Context appContext, TypedArray a, XmlResourceParser xml) argument
[all...]
/frameworks/base/core/java/android/content/res/
H A DConfiguration.java1979 * @param xml The serializer to which to write the attributes.
1983 public static void writeXmlAttrs(XmlSerializer xml, Configuration config) throws IOException { argument
1984 XmlUtils.writeIntAttribute(xml, XML_ATTR_FONT_SCALE,
1987 XmlUtils.writeIntAttribute(xml, XML_ATTR_MCC, config.mcc);
1990 XmlUtils.writeIntAttribute(xml, XML_ATTR_MNC, config.mnc);
1994 XmlUtils.writeStringAttribute(xml, XML_ATTR_LOCALES, config.mLocaleList.toLanguageTags());
1997 XmlUtils.writeIntAttribute(xml, XML_ATTR_TOUCHSCREEN, config.touchscreen);
2000 XmlUtils.writeIntAttribute(xml, XML_ATTR_KEYBOARD, config.keyboard);
2003 XmlUtils.writeIntAttribute(xml, XML_ATTR_KEYBOARD_HIDDEN, config.keyboardHidden);
2006 XmlUtils.writeIntAttribute(xml, XML_ATTR_HARD_KEYBOARD_HIDDE
[all...]
/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/packages/Osu/src/com/android/hotspot2/omadm/
H A DMOManager.java21 import org.xml.sax.SAXException;
211 public static HomeSP buildSP(String xml) throws IOException, SAXException { argument
213 MOTree tree = omaParser.parse(xml, OMAConstants.PPS_URN);
221 public HomeSP addSP(String xml, OSUManager osuManager) throws IOException, SAXException { argument
223 return addSP(omaParser.parse(xml, OMAConstants.PPS_URN), osuManager);
/frameworks/base/services/usage/java/com/android/server/usage/
H A DUsageStatsXmlV1.java120 private static void writeUsageStats(XmlSerializer xml, final IntervalStats stats, argument
122 xml.startTag(null, PACKAGE_TAG);
125 XmlUtils.writeLongAttribute(xml, LAST_TIME_ACTIVE_ATTR,
128 XmlUtils.writeStringAttribute(xml, PACKAGE_ATTR, usageStats.mPackageName);
129 XmlUtils.writeLongAttribute(xml, TOTAL_TIME_ACTIVE_ATTR, usageStats.mTotalTimeInForeground);
130 XmlUtils.writeIntAttribute(xml, LAST_EVENT_ATTR, usageStats.mLastEvent);
132 xml.endTag(null, PACKAGE_TAG);
135 private static void writeConfigStats(XmlSerializer xml, final IntervalStats stats, argument
137 xml.startTag(null, CONFIG_TAG);
140 XmlUtils.writeLongAttribute(xml, LAST_TIME_ACTIVE_ATT
155 writeEvent(XmlSerializer xml, final IntervalStats stats, final UsageEvents.Event event) argument
228 write(XmlSerializer xml, IntervalStats stats) argument
[all...]
/frameworks/base/tools/aapt2/process/
H A DIResourceTableConsumer.h52 namespace xml { namespace in namespace:aapt
59 virtual bool consume(IAaptContext* context, xml::XmlResource* resource) = 0;
/frameworks/base/tools/aapt2/
H A Dpublic_attr_map.py4 import xml.etree.ElementTree as ET namespace
/frameworks/base/tools/aapt2/xml/
H A DXmlActionExecutor.cpp17 #include "xml/XmlActionExecutor.h"
20 namespace xml { namespace in namespace:aapt
111 } // namespace xml
H A DXmlActionExecutor.h21 #include "xml/XmlDom.h"
30 namespace xml { namespace in namespace:aapt
105 } // namespace xml
H A DXmlActionExecutor_test.cpp18 #include "xml/XmlActionExecutor.h"
21 namespace xml { namespace in namespace:aapt
61 } // namespace xml
H A DXmlDom.cpp29 namespace xml { namespace in namespace:aapt
34 std::unique_ptr<xml::Node> root;
35 std::stack<xml::Node*> nodeStack;
443 } // namespace xml
H A DXmlDom.h25 #include "xml/XmlUtil.h"
33 namespace xml { namespace in namespace:aapt
96 xml::Element* findChild(const StringPiece16& ns, const StringPiece16& name);
97 xml::Element* findChildWithAttribute(const StringPiece16& ns, const StringPiece16& name,
101 std::vector<xml::Element*> getChildElements();
116 std::unique_ptr<xml::Node> root;
217 } // namespace xml
H A DXmlPullParser.cpp19 #include "xml/XmlPullParser.h"
20 #include "xml/XmlUtil.h"
26 namespace xml { namespace in namespace:aapt
307 } // namespace xml
H A DXmlPullParser.h24 #include "xml/XmlUtil.h"
36 namespace xml { namespace in namespace:aapt
295 } // namespace xml
H A DXmlUtil.cpp19 #include "xml/XmlUtil.h"
24 namespace xml { namespace in namespace:aapt
66 } // namespace xml
H A DXmlUtil.h26 namespace xml { namespace in namespace:aapt
82 } // namespace xml
/frameworks/base/tools/layoutlib/rename_font/
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.
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
/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/data-binding/compilerCommon/src/main/java/android/databinding/tool/store/
H A DLayoutFileParser.java40 import org.xml.sax.SAXException;
51 import javax.xml.parsers.DocumentBuilder;
52 import javax.xml.parsers.DocumentBuilderFactory;
53 import javax.xml.parsers.ParserConfigurationException;
54 import javax.xml.xpath.XPath;
55 import javax.xml.xpath.XPathConstants;
56 import javax.xml.xpath.XPathExpression;
57 import javax.xml.xpath.XPathExpressionException;
58 import javax.xml.xpath.XPathFactory;
290 private void parseData(File xml, XMLParse argument
341 getViewNode(File xml, XMLParser.ElementContext root) argument
388 stripFile(File xml, File out, String encoding, LayoutXmlProcessor.OriginalFileLookup originalFileLookup) argument
433 stripBindingTags(File xml, File output, String newTag, String encoding) argument
[all...]
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jar ... org.apache.commons/commons-lang3/pom.xml org/ org/apache/ org/apache/commons/ org/apache/commons/lang3 ...
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/
H A DPasspointManagementObjectManager.java20 import org.xml.sax.SAXException;
209 public static HomeSP buildSP(String xml) throws IOException, SAXException { argument
211 MOTree tree = omaParser.parse(xml, OMAConstants.PPS_URN);
219 public HomeSP addSP(String xml) throws IOException, SAXException { argument
221 return addSP(omaParser.parse(xml, OMAConstants.PPS_URN));

Completed in 7652 milliseconds

12