Home
last modified time | relevance | path

Searched refs:XmlParser (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/cmds/idmap2/libidmap2/
DXmlParser.cpp32 XmlParser::Node::Node(const ResXMLTree& tree) : Node(tree, get_tree_position(tree)) { in Node()
34 XmlParser::Node::Node(const ResXMLTree& tree, const ResXMLParser::ResXMLPosition& pos) in Node()
39 bool XmlParser::Node::operator==(const XmlParser::Node& rhs) const { in operator ==()
46 bool XmlParser::Node::operator!=(const XmlParser::Node& rhs) const { in operator !=()
50 ResXMLParser::ResXMLPosition XmlParser::Node::get_position() const { in get_position()
54 void XmlParser::Node::set_position(const ResXMLParser::ResXMLPosition& pos) { in set_position()
58 bool XmlParser::Node::Seek(bool inner_child) { in Seek()
59 if (parser_.getEventType() == XmlParser::Event::END_TAG) { in Seek()
64 XmlParser::Event code; in Seek()
65 while ((code = parser_.next()) != XmlParser::Event::BAD_DOCUMENT && in Seek()
[all …]
DResourceContainer.cpp73 Result<XmlParser> OpenXmlParser(const std::string& entry_path, const ZipAssetsProvider* zip) { in OpenXmlParser()
85 return XmlParser::Create(buffer.unsafe_ptr(), size, true /* copyData */); in OpenXmlParser()
88 Result<XmlParser> OpenXmlParser(ResourceId id, const ZipAssetsProvider* zip, in OpenXmlParser()
116 Result<XmlParser> xml = OpenXmlParser("AndroidManifest.xml", zip); in ExtractOverlayManifestInfo()
122 if (manifest_it->event() != XmlParser::Event::START_TAG || manifest_it->name() != "manifest") { in ExtractOverlayManifestInfo()
134 if (it.event() != XmlParser::Event::START_TAG || it.name() != "overlay") { in ExtractOverlayManifestInfo()
189 if (root_it->event() != XmlParser::Event::START_TAG || root_it->name() != "overlay") { in CreateResourceMapping()
195 if (overlay_it->event() == XmlParser::Event::BAD_DOCUMENT) { in CreateResourceMapping()
199 if (overlay_it->event() != XmlParser::Event::START_TAG) { in CreateResourceMapping()
/frameworks/base/cmds/idmap2/tests/
DXmlParserTests.cpp28 Result<XmlParser> CreateTestParser(const std::string& test_file) { in CreateTestParser()
39 return XmlParser::Create(data->getBuffer(true /* aligned*/), data->getLength(), in CreateTestParser()
49 auto fail = XmlParser::Create(reinterpret_cast<const uint8_t*>(not_xml), strlen(not_xml)); in TEST()
58 ASSERT_EQ(root_iter->event(), XmlParser::Event::START_TAG); in TEST()
62 ASSERT_EQ(a_iter->event(), XmlParser::Event::START_TAG); in TEST()
66 ASSERT_EQ(c_iter->event(), XmlParser::Event::START_TAG); in TEST()
70 ASSERT_EQ(c_iter->event(), XmlParser::Event::END_TAG); in TEST()
74 ASSERT_EQ(a_iter->event(), XmlParser::Event::START_TAG); in TEST()
79 ASSERT_EQ(a_iter->event(), XmlParser::Event::END_TAG); in TEST()
/frameworks/base/cmds/idmap2/include/idmap2/
DXmlParser.h31 struct XmlParser { struct
123 friend XmlParser; argument
127 static Result<XmlParser> Create(const void* data, size_t size, bool copy_data = false);
138 explicit XmlParser(std::unique_ptr<ResXMLTree> tree); argument
/frameworks/base/omapi/aidl/vts/functional/config/schema/
Dcurrent.txt22 public class XmlParser {
23 ctor public XmlParser();
/frameworks/base/services/core/xsd/schema/
Dcurrent.txt28 public class XmlParser {
29 ctor public XmlParser();
/frameworks/base/services/core/xsd/platform-compat/config/schema/
Dcurrent.txt31 public class XmlParser {
32 ctor public XmlParser();
/frameworks/base/core/java/com/android/internal/vibrator/persistence/
DXmlParser.java33 public interface XmlParser<T> { interface
/frameworks/base/services/core/xsd/display-layout-config/schema/
Dcurrent.txt42 public class XmlParser {
43 ctor public XmlParser();
/frameworks/base/services/core/xsd/device-state-config/schema/
Dcurrent.txt60 public class XmlParser {
61 ctor public XmlParser();
/frameworks/base/services/core/xsd/platform-compat/overrides/schema/
Dcurrent.txt56 public class XmlParser {
57 ctor public XmlParser();
/frameworks/base/services/core/java/com/android/server/display/
DDeviceStateToLayoutMap.java29 import com.android.server.display.config.layout.XmlParser;
130 final Layouts layouts = XmlParser.read(in); in loadLayoutsFromConfig()
DDisplayDeviceConfig.java84 import com.android.server.display.config.XmlParser;
971 defaultConfig = XmlParser.read(in); in loadDefaultConfigurationXml()
1730 final DisplayConfiguration config = XmlParser.read(in); in initFromFile()
/frameworks/base/core/xsd/vibrator/vibration/schema/
Dcurrent.txt80 public class XmlParser {
81 ctor public XmlParser();
/frameworks/av/media/libmedia/xsd/api/
Dcurrent.txt141 public class XmlParser {
142 ctor public XmlParser();
/frameworks/av/media/libstagefright/xmlparser/api/
Dcurrent.txt172 public class XmlParser {
173 ctor public XmlParser();
/frameworks/base/core/xsd/schema/
Dcurrent.txt245 public class XmlParser {
246 ctor public XmlParser();
/frameworks/base/core/java/com/android/internal/content/om/
DOverlayConfig.java29 import com.android.apex.XmlParser;
448 List<ApexInfo> apexInfos = XmlParser.readApexInfoList(stream).getApexInfo(); in getActiveApexes()
/frameworks/base/services/core/java/com/android/server/compat/
DCompatConfig.java695 Config config = com.android.server.compat.config.XmlParser.read(in); in readConfig()
750 Overrides overrides = com.android.server.compat.overrides.XmlParser.read(in); in loadOverrides()
/frameworks/base/services/core/java/com/android/server/policy/
DDeviceStateProviderImpl.java52 import com.android.server.policy.devicestate.config.XmlParser;
800 return XmlParser.read(bin); in parseConfig()
/frameworks/base/libs/androidfw/tests/
DAttributeResolution_test.cpp159 TEST_F(AttributeResolutionXmlTest, XmlParser) { in TEST_F() argument
/frameworks/base/services/core/xsd/display-device-config/schema/
Dcurrent.txt487 public class XmlParser {
488 ctor public XmlParser();
/frameworks/base/boot/
Dpreloaded-classes10367 com.android.apex.XmlParser
/frameworks/base/config/
Dpreloaded-classes10398 com.android.apex.XmlParser
/frameworks/base/services/
Dart-wear-profile399 Lcom/android/server/compat/config/XmlParser;
9149 HSPLcom/android/server/compat/config/XmlParser;->read(Ljava/io/InputStream;)Lcom/android/server/com…
9150 HSPLcom/android/server/compat/config/XmlParser;->readText(Lorg/xmlpull/v1/XmlPullParser;)Ljava/lang…

12