Searched defs:doc (Results 1 - 20 of 20) sorted by relevance

/frameworks/base/tools/aapt2/cmd/
H A DUtil_test.cpp30 const auto doc = GenerateSplitManifest(app_info, split_constraints); local
31 const auto &root = doc->root;
H A DDump.cpp81 std::unique_ptr<xml::XmlResource> doc; local
97 doc = DeserializeXmlResourceFromPb(pb_node, &err);
98 if (doc == nullptr) {
111 doc = xml::Inflate(data->data(), data->size(), &err);
112 if (doc == nullptr) {
119 Debug::DumpXml(*doc, printer);
H A DUtil.cpp227 std::unique_ptr<xml::XmlResource> doc = util::make_unique<xml::XmlResource>(); local
228 doc->root = std::move(manifest_el);
229 return doc;
H A DLink.cpp472 xml::XmlResource* doc = file_op->xml_to_flatten.get(); local
473 const Source& src = doc->file.source;
477 << "linking " << src.path << " (" << doc->file.name << ")");
482 xml::StripAndroidStudioAttributes(doc->root.get());
485 if (!xml_linker.Consume(context_, doc)) {
489 if (options_.update_proguard_spec && !proguard::CollectProguardRules(doc, keep_set_)) {
495 if (!namespace_remover.Consume(context_, doc)) {
506 xml::Element* el = doc->root.get();
521 return xml_compat_versioner.Process(context_, doc, api_range);
639 for (std::unique_ptr<xml::XmlResource>& doc
[all...]
/frameworks/base/tools/aapt2/compile/
H A DXmlIdCollector_test.cpp28 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(R"EOF( local
37 ASSERT_TRUE(collector.Consume(context.get(), doc.get()));
40 1, std::count(doc->file.exported_symbols.begin(),
41 doc->file.exported_symbols.end(),
45 1, std::count(doc->file.exported_symbols.begin(),
46 doc->file.exported_symbols.end(),
50 1, std::count(doc->file.exported_symbols.begin(),
51 doc->file.exported_symbols.end(),
58 std::unique_ptr<xml::XmlResource> doc =
62 ASSERT_TRUE(collector.Consume(context.get(), doc
[all...]
H A DInlineXmlFormatParser.cpp115 bool InlineXmlFormatParser::Consume(IAaptContext* context, xml::XmlResource* doc) { argument
116 Visitor visitor(context, doc);
117 doc->root->Accept(&visitor);
125 auto new_doc = util::make_unique<xml::XmlResource>(doc->file);
139 const Source child_source = doc->file.source.WithLine(child->line_number);
154 new_doc->root->namespace_decls = doc->root->namespace_decls;
/frameworks/base/tools/aapt2/link/
H A DManifestFixer_test.cpp70 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(str); local
72 if (fixer.Consume(mContext.get(), doc.get())) {
73 return doc;
97 auto doc = Verify(R"EOF( local
111 ASSERT_THAT(doc, NotNull());
119 std::unique_ptr<xml::XmlResource> doc = VerifyWithOptions(R"EOF(
125 ASSERT_THAT(doc, NotNull());
130 el = doc->root.get();
141 doc = VerifyWithOptions(R"EOF(
147 ASSERT_THAT(doc, NotNul
[all...]
H A DXmlCompatVersioner.cpp103 ApiVersion target_api, ApiVersion max_api, xml::XmlResource* doc,
107 std::unique_ptr<xml::XmlResource> cloned_doc = util::make_unique<xml::XmlResource>(doc->file);
110 cloned_doc->root = doc->root->CloneElement([&](const xml::Element& el, xml::Element* out_el) {
131 IAaptContext* context, xml::XmlResource* doc, util::Range<ApiVersion> api_range) {
134 api_range.start = std::max(api_range.start, static_cast<ApiVersion>(doc->file.config.sdkVersion));
138 versioned_docs.push_back(ProcessDoc(api_range.start, api_range.end, doc, &apis_referenced));
142 versioned_docs.back()->file.config.sdkVersion = doc->file.config.sdkVersion;
147 versioned_docs.push_back(ProcessDoc(api, api_range.end, doc, &dummy));
102 ProcessDoc( ApiVersion target_api, ApiVersion max_api, xml::XmlResource* doc, std::set<ApiVersion>* out_apis_referenced) argument
130 Process( IAaptContext* context, xml::XmlResource* doc, util::Range<ApiVersion> api_range) argument
/frameworks/base/tools/aapt2/xml/
H A DXmlActionExecutor_test.cpp43 std::unique_ptr<XmlResource> doc = local
47 ASSERT_TRUE(executor.Execute(XmlActionExecutorPolicy::kNone, &diag, doc.get()));
59 std::unique_ptr<XmlResource> doc; local
62 doc = test::BuildXmlDom("<manifest><application /><activity /></manifest>");
63 ASSERT_FALSE(executor.Execute(XmlActionExecutorPolicy::kWhitelist, &diag, doc.get()));
65 doc = test::BuildXmlDom("<manifest><application><activity /></application></manifest>");
66 ASSERT_FALSE(executor.Execute(XmlActionExecutorPolicy::kWhitelist, &diag, doc.get()));
/frameworks/base/tools/aapt2/format/binary/
H A DXmlFlattener_test.cpp58 ::testing::AssertionResult Flatten(xml::XmlResource* doc, android::ResXMLTree* out_tree, argument
64 if (!flattener.Consume(context_.get(), doc)) {
80 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(R"( local
87 ASSERT_TRUE(Flatten(doc.get(), &tree));
139 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(R"( local
146 ASSERT_TRUE(Flatten(doc.get(), &tree));
160 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(R"( local
167 ASSERT_TRUE(Flatten(doc.get(), &tree));
181 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(R"(<View package="android"/>)");
184 ASSERT_TRUE(Flatten(doc
290 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom( local
342 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom( local
449 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(R"(<element foo="bar" />)"); local
470 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(R"(<element foo="bar" />)"); local
493 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(R"(<element foo="true" />)"); local
513 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(R"(<element foo="true" />)"); local
[all...]
/frameworks/minikin/tests/util/
H A DFontTestUtils.cpp51 xmlDoc* doc = xmlReadFile(xmlPath.c_str(), NULL, 0); local
52 xmlNode* familySet = xmlDocGetRootElement(doc);
82 xmlChar* fontFileName = xmlNodeListGetString(doc, fontNode->xmlChildrenNode, 1);
116 xmlFreeDoc(doc);
/frameworks/av/media/libeffects/config/src/
H A DEffectsConfig.cpp255 XMLDocument doc; local
256 doc.LoadFile(path);
257 if (doc.Error()) {
259 doc.ErrorID(), doc.ErrorStr());
268 for (auto& xmlConfig : getChildren(doc, "audio_effects_conf")) {
/frameworks/base/tools/aapt2/
H A DDebug.cpp486 void Debug::DumpXml(const xml::XmlResource& doc, Printer* printer) { argument
488 doc.root->Accept(&xml_visitor);
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/store/
H A DLayoutFileParser.java394 Document doc = builder.parse(xml);
407 boolean changed = isBindingLayout(doc, xPath);
415 private boolean isBindingLayout(Document doc, XPath xPath) throws XPathExpressionException { argument
416 return !get(doc, xPath, XPATH_BINDING_LAYOUT).isEmpty();
419 private List<Node> get(Document doc, XPath xPath, String pattern) argument
422 return toList((NodeList) expr.evaluate(doc, XPathConstants.NODESET));
/frameworks/base/tools/aapt2/configuration/
H A DConfigurationParser.cpp292 std::unique_ptr<xml::XmlResource> doc = xml::Inflate(&in, diag, Source(config_path)); local
293 if (!doc) {
298 Element* root = doc->root.get();
337 if (!executor.Execute(XmlActionExecutorPolicy::kNone, diag, doc.get())) {
/frameworks/base/tools/aapt2/test/
H A DBuilders.cpp219 std::unique_ptr<xml::XmlResource> doc = xml::Inflate(&in, &diag, Source("test.xml")); local
220 CHECK(doc != nullptr && doc->root != nullptr) << "failed to parse inline XML string";
221 return doc;
226 std::unique_ptr<xml::XmlResource> doc = BuildXmlDom(str); local
227 doc->file.name.package = context->GetCompilationPackage();
228 return doc;
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DSerializer.cpp77 static status_t deserializeCollection(_xmlDoc *doc, const _xmlNode *cur, argument
95 status_t status = Trait::deserialize(doc, child, element, serializingContext);
126 status_t AudioGainTraits::deserialize(_xmlDoc */*doc*/, const _xmlNode *root, PtrElement &gain,
195 status_t AudioProfileTraits::deserialize(_xmlDoc */*doc*/, const _xmlNode *root, PtrElement &profile,
223 status_t MixPortTraits::deserialize(_xmlDoc *doc, const _xmlNode *child, PtrElement &mixPort, argument
243 deserializeCollection<AudioProfileTraits>(doc, child, profiles, NULL);
274 deserializeCollection<AudioGainTraits>(doc, child, gains, NULL);
289 status_t DevicePortTraits::deserialize(_xmlDoc *doc, const _xmlNode *root, PtrElement &deviceDesc, argument
329 deserializeCollection<AudioProfileTraits>(doc, root, profiles, NULL);
341 deserializeCollection<AudioGainTraits>(doc, roo
425 deserialize(xmlDocPtr doc, const xmlNode *root, PtrElement &module, PtrSerializingCtx ctx) argument
530 deserialize(_xmlDoc *doc, const _xmlNode *root, PtrElement &element, PtrSerializingCtx ) argument
600 xmlDocPtr doc; local
[all...]
/frameworks/base/core/java/com/android/internal/content/
H A DFileSystemProvider.java112 final File doc = getFileForDocId(docId).getCanonicalFile();
113 return FileUtils.contains(parent, doc);
158 protected final List<String> findDocumentPath(File parent, File doc) argument
161 if (!doc.exists()) {
162 throw new FileNotFoundException(doc + " is not found.");
165 if (!FileUtils.contains(parent, doc)) {
166 throw new FileNotFoundException(doc + " is not found under " + parent);
170 while (doc != null && FileUtils.contains(parent, doc)) {
171 path.addFirst(getDocIdForFile(doc));
[all...]
/frameworks/opt/setupwizard/tools/docs/
H A Ddoclava.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/ccil/ org/ccil/cowan/ org/ccil/cowan/tagsoup/ ...
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 253 milliseconds