HomeSort by relevance Sort by last modified time
    Searched refs:Xml (Results 1 - 25 of 120) sorted by null

1 2 3 4 5

  /frameworks/base/cmds/idmap2/include/idmap2/
Xml.h 30 class Xml {
32 static std::unique_ptr<const Xml> Create(const uint8_t* data, size_t size, bool copyData = false);
36 ~Xml();
39 Xml() {
44 DISALLOW_COPY_AND_ASSIGN(Xml);
  /frameworks/base/cmds/idmap2/libidmap2/
Xml.cpp 17 #include "idmap2/Xml.h"
26 std::unique_ptr<const Xml> Xml::Create(const uint8_t* data, size_t size, bool copyData) {
27 std::unique_ptr<Xml> xml(new Xml());
28 if (xml->xml_.setTo(data, size, copyData) != NO_ERROR) {
31 return xml;
34 std::unique_ptr<std::map<std::string, std::string>> Xml::FindTag(const std::string& name) const {
76 Xml::~Xml()
    [all...]
ResourceUtils.cpp 25 #include "idmap2/Xml.h"
30 using android::idmap2::Xml;
63 std::unique_ptr<const MemoryChunk> entry = zip->Uncompress("AndroidManifest.xml");
65 return Error("failed to uncompress AndroidManifest.xml from %s", path.c_str());
68 std::unique_ptr<const Xml> xml = Xml::Create(entry->buf, entry->size); local
69 if (!xml) {
70 return Error("failed to parse AndroidManifest.xml from %s", path.c_str());
74 const auto tag = xml->FindTag("overlay")
    [all...]
  /frameworks/base/cmds/idmap2/tests/
XmlTests.cpp 22 #include "idmap2/Xml.h"
34 auto data = zip->Uncompress("AndroidManifest.xml");
37 auto xml = Xml::Create(data->buf, data->size); local
38 ASSERT_THAT(xml, NotNull());
42 auto fail = Xml::Create(reinterpret_cast<const uint8_t*>(not_xml), strlen(not_xml));
50 auto data = zip->Uncompress("res/xml/test.xml");
53 auto xml = Xml::Create(data->buf, data->size) local
    [all...]
  /device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Xml/
PackageSurfaceAreaXml.py 18 from xml.dom import minidom
21 from Library.Xml.XmlRoutines import XmlElement
22 from Library.Xml.XmlRoutines import XmlNode
23 from Library.Xml.XmlRoutines import XmlList
24 from Library.Xml.XmlRoutines import CreateXmlElement
28 from Xml.CommonXml import ClonedFromXml
29 from Xml.CommonXml import PackageHeaderXml
30 from Xml.CommonXml import HelpTextXml
31 from Xml.CommonXml import CommonDefinesXml
32 from Xml.CommonXml import LibraryClassXml
    [all...]
GuidProtocolPpiXml.py 2 # This file is used to parse a xml file of .PKG file
21 from Library.Xml.XmlRoutines import XmlElement
22 from Library.Xml.XmlRoutines import XmlAttribute
23 from Library.Xml.XmlRoutines import XmlNode
24 from Library.Xml.XmlRoutines import XmlList
25 from Library.Xml.XmlRoutines import CreateXmlElement
31 from Xml.CommonXml import CommonDefinesXml
32 from Xml.CommonXml import HelpTextXml
34 from Xml.XmlParserMisc import GetHelpTextList
115 #GUID Xml
    [all...]
ModuleSurfaceAreaXml.py 18 from xml.dom import minidom
24 from Library.Xml.XmlRoutines import XmlElement
25 from Library.Xml.XmlRoutines import XmlAttribute
26 from Library.Xml.XmlRoutines import XmlNode
27 from Library.Xml.XmlRoutines import XmlList
28 from Library.Xml.XmlRoutines import CreateXmlElement
41 from Xml.CommonXml import ClonedFromXml
42 from Xml.CommonXml import HeaderXml
43 from Xml.CommonXml import HelpTextXml
44 from Xml.CommonXml import CommonDefinesXml
    [all...]
  /cts/tests/tests/util/src/android/util/cts/
XmlTest.java 25 import android.util.Xml;
33 import org.xml.sax.Attributes;
34 import org.xml.sax.ContentHandler;
35 import org.xml.sax.Locator;
36 import org.xml.sax.SAXException;
51 * TestCase for android.util.Xml.
80 // used for ContentHandler to pause XML.
99 Xml.parse(xmlStr, dc);
214 Xml.parse(reader, dc);
248 Xml.parse(new ByteArrayInputStream(sourceStr.getBytes(STR_US_ASCII))
    [all...]
XmlEncodingTest.java 22 import android.util.Xml;
29 import org.xml.sax.Attributes;
30 import org.xml.sax.ContentHandler;
31 import org.xml.sax.Locator;
32 import org.xml.sax.SAXException;
39 * TestCases for android.util.Xml.Encoding.
67 // used for ContentHandler to pause XML.
83 Xml.parse(new ByteArrayInputStream(sourceStr.getBytes(STR_US_ASCII)),
84 Xml.Encoding.US_ASCII, dc);
115 Xml.parse(new ByteArrayInputStream(sourceStr.getBytes(STR_UTF_8))
    [all...]
  /cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
FontScaleActivity.java 28 import android.util.Xml;
51 final AttributeSet attrs = Xml.asAttributeSet(parser);
  /cts/tests/tests/widget/src/android/widget/cts/
AnalogClockTest.java 21 import android.util.Xml;
48 mAttrSet = Xml.asAttributeSet(parser);
ButtonTest.java 21 import android.util.Xml;
39 AttributeSet attrs = Xml.asAttributeSet(parser);
AbsListView_LayoutParamsTest.java 23 import android.util.Xml;
49 mAttributeSet = Xml.asAttributeSet(parser);
AbsoluteLayout_LayoutParamsTest.java 24 import android.util.Xml;
55 return Xml.asAttributeSet(parser);
AbsoluteLayoutTest.java 27 import android.util.Xml;
77 return Xml.asAttributeSet(parser);
DigitalClockTest.java 28 import android.util.Xml;
131 AttributeSet attr = Xml.asAttributeSet(parser);
FrameLayout_LayoutParamsTest.java 23 import android.util.Xml;
57 return Xml.asAttributeSet(parser);
  /external/setupcompat/main/java/com/google/android/setupcompat/template/
FooterButtonInflater.java 24 import android.util.Xml;
47 * Inflates a new hierarchy from the specified XML resource. Throws InflaterException if there is
50 * @param resId ID for an XML resource to load (e.g. <code>R.xml.my_xml</code>)
63 * Inflates a new hierarchy from the specified XML node. Throws InflaterException if there is an
67 * relies heavily on pre-processing of XML files that is done at build time. Therefore, it is not
68 * currently possible to use inflater with an XmlPullParser over a plain XML file at runtime.
70 * @param parser XML dom node containing the description of the hierarchy.
74 final AttributeSet attrs = Xml.asAttributeSet(parser);
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
LevelListDrawableTest.java 33 import android.util.Xml;
130 getResourceParser(R.xml.level_list_correct);
131 getResourceParser(R.xml.level_list_missing_item_drawable);
136 XmlResourceParser parser = getResourceParser(R.xml.level_list_correct);
139 mLevelListDrawable.inflate(mResources, parser, Xml.asAttributeSet(parser));
151 parser = getResourceParser(R.xml.level_list_missing_item_minlevel_maxlevel);
152 mLevelListDrawable.inflate(mResources, parser, Xml.asAttributeSet(parser));
163 XmlResourceParser parser = getResourceParser(R.xml.level_list_missing_item_drawable);
165 mLevelListDrawable.inflate(mResources, parser, Xml.asAttributeSet(parser));
170 XmlResourceParser parser = getResourceParser(R.xml.level_list_correct)
    [all...]
RippleDrawableTest.java 34 import android.util.Xml;
96 preloadedDrawable.inflate(res, parser, Xml.asAttributeSet(parser));
  /cts/tests/tests/view/src/android/view/animation/cts/
AlphaAnimationTest.java 25 import android.util.Xml;
54 AttributeSet attrs = Xml.asAttributeSet(parser);
AccelerateDecelerateInterpolatorTest.java 27 import android.util.Xml;
73 AttributeSet attrs = Xml.asAttributeSet(parser);
81 // XML file of R.anim.accelerate_decelerate_alpha
  /developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/rich/
RichFeedUtil.java 23 import android.util.Xml;
74 XmlPullParser parser = Xml.newPullParser();
  /external/setupdesign/main/src/com/google/android/setupdesign/items/
SimpleInflater.java 24 import android.util.Xml;
31 * A simple XML inflater, which takes care of moving the parser to the correct position. Subclasses
59 * Inflate a new hierarchy from the specified XML resource. Throws InflaterException if there is
62 * @param resId ID for an XML resource to load (e.g. <code>R.xml.my_xml</code>)
75 * Inflate a new hierarchy from the specified XML node. Throws InflaterException if there is an
79 * relies heavily on pre-processing of XML files that is done at build time. Therefore, it is not
80 * currently possible to use inflater with an XmlPullParser over a plain XML file at runtime.
82 * @param parser XML dom node containing the description of the hierarchy.
86 final AttributeSet attrs = Xml.asAttributeSet(parser)
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/
TestReport.java 20 import android.util.Xml;
33 * Handles all the XML to print to the user.
68 * Produces the XML for the test.
70 * @return the XML of the test to display.
77 XmlSerializer xml = Xml.newSerializer(); local
79 xml.setOutput(outputStream, "utf-8");
80 xml.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true);
81 xml.startDocument("utf-8", true);
83 xml.startTag(null, TEST_RESULTS_REPORT_TAG)
    [all...]

Completed in 896 milliseconds

1 2 3 4 5