/frameworks/support/core-utils/tests/java/android/support/v4/provider/ |
D | DocumentFileTest.java | 115 public void exec(DocumentFile doc) throws Exception; in exec() argument 121 public void exec(DocumentFile doc) throws Exception { in testSimple() 123 assertTrue("isDirectory", doc.isDirectory()); in testSimple() 124 assertFalse("isFile", doc.isFile()); in testSimple() 125 assertFalse("isVirtual", doc.isVirtual()); in testSimple() 126 assertTrue("canRead", doc.canRead()); in testSimple() 127 assertTrue("canWrite", doc.canWrite()); in testSimple() 128 assertTrue("exists", doc.exists()); in testSimple() 139 public void exec(DocumentFile doc) throws Exception { in testTraverse() 143 final DocumentFile foo = doc.findFile(FOO); in testTraverse() [all …]
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | Serializer.h | 55 static status_t deserialize(_xmlDoc *doc, const _xmlNode *root, PtrElement &element, 81 static status_t deserialize(_xmlDoc *doc, const _xmlNode *root, PtrElement &element, 102 static status_t deserialize(_xmlDoc *doc, const _xmlNode *root, PtrElement &element, 126 static status_t deserialize(_xmlDoc *doc, const _xmlNode *root, PtrElement &element, 148 static status_t deserialize(_xmlDoc *doc, const _xmlNode *root, PtrElement &element, 172 static status_t deserialize(_xmlDoc *doc, const _xmlNode *root, PtrElement &element, 209 static status_t deserialize(_xmlDoc *doc, const _xmlNode *root, PtrElement &element,
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | Serializer.cpp | 77 static status_t deserializeCollection(_xmlDoc *doc, const _xmlNode *cur, in deserializeCollection() argument 95 status_t status = Trait::deserialize(doc, child, element, serializingContext); in deserializeCollection() 221 status_t MixPortTraits::deserialize(_xmlDoc *doc, const _xmlNode *child, PtrElement &mixPort, in deserialize() argument 241 deserializeCollection<AudioProfileTraits>(doc, child, profiles, NULL); in deserialize() 264 deserializeCollection<AudioGainTraits>(doc, child, gains, NULL); in deserialize() 279 status_t DevicePortTraits::deserialize(_xmlDoc *doc, const _xmlNode *root, PtrElement &deviceDesc, in deserialize() argument 319 deserializeCollection<AudioProfileTraits>(doc, root, profiles, NULL); in deserialize() 331 deserializeCollection<AudioGainTraits>(doc, root, deviceDesc->mGains, NULL); in deserialize() 415 status_t ModuleTraits::deserialize(xmlDocPtr doc, const xmlNode *root, PtrElement &module, in deserialize() argument 437 deserializeCollection<MixPortTraits>(doc, root, mixPorts, NULL); in deserialize() [all …]
|
/frameworks/base/tools/aapt2/xml/ |
D | XmlActionExecutor_test.cpp | 41 std::unique_ptr<XmlResource> doc = in TEST() local 46 executor.Execute(XmlActionExecutorPolicy::kNone, &diag, doc.get())); in TEST() 58 std::unique_ptr<XmlResource> doc = in TEST() local 62 executor.Execute(XmlActionExecutorPolicy::kWhitelist, &diag, doc.get())); in TEST()
|
D | XmlActionExecutor.cpp | 78 XmlResource* doc) const { in Execute() 79 SourcePathDiagnostics source_diag(doc->file.source, diag); in Execute() 81 Element* el = FindRootElement(doc); in Execute()
|
D | XmlActionExecutor.h | 93 bool Execute(XmlActionExecutorPolicy policy, IDiagnostics* diag, XmlResource* doc) const;
|
/frameworks/base/tools/aapt2/compile/ |
D | InlineXmlFormatParser.cpp | 124 xml::XmlResource* doc) { in Consume() argument 125 Visitor visitor(context, doc); in Consume() 126 doc->root->Accept(&visitor); in Consume() 135 new_doc->file.config = doc->file.config; in Consume() 136 new_doc->file.source = doc->file.source.WithLine(decl.el->line_number); in Consume() 137 new_doc->file.name = doc->file.name; in Consume() 152 const Source child_source = doc->file.source.WithLine(child->line_number); in Consume()
|
D | XmlIdCollector_test.cpp | 28 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(R"EOF( in TEST() local 62 ASSERT_TRUE(collector.Consume(context.get(), doc.get())); in TEST() 64 EXPECT_TRUE(doc->file.exported_symbols.empty()); in TEST()
|
D | InlineXmlFormatParser.h | 54 bool Consume(IAaptContext* context, xml::XmlResource* doc) override;
|
D | InlineXmlFormatParser_test.cpp | 25 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(R"EOF( local
|
/frameworks/base/tools/aapt2/link/ |
D | XmlCompatVersioner.cpp | 103 ApiVersion target_api, ApiVersion max_api, xml::XmlResource* doc, in ProcessDoc() argument 107 std::unique_ptr<xml::XmlResource> cloned_doc = util::make_unique<xml::XmlResource>(doc->file); in ProcessDoc() 110 cloned_doc->root = doc->root->Clone([&](const xml::Element& el, xml::Element* out_el) { in ProcessDoc() 131 IAaptContext* context, xml::XmlResource* doc, util::Range<ApiVersion> api_range) { in Process() argument 134 api_range.start = std::max(api_range.start, static_cast<ApiVersion>(doc->file.config.sdkVersion)); in Process() 138 versioned_docs.push_back(ProcessDoc(api_range.start, api_range.end, doc, &apis_referenced)); in Process() 142 versioned_docs.back()->file.config.sdkVersion = doc->file.config.sdkVersion; in Process() 147 versioned_docs.push_back(ProcessDoc(api, api_range.end, doc, &dummy)); in Process()
|
D | ManifestFixer_test.cpp | 64 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(str); in VerifyWithOptions() local 66 if (fixer.Consume(mContext.get(), doc.get())) { in VerifyWithOptions() 67 return doc; in VerifyWithOptions() 93 auto doc = Verify(R"EOF( in TEST_F() local 342 std::unique_ptr<xml::XmlResource> doc = in TEST_F() local 344 ASSERT_NE(nullptr, doc); in TEST_F() 346 xml::Element* el = xml::FindRootElement(doc.get()); in TEST_F()
|
D | XmlCompatVersioner.h | 61 xml::XmlResource* doc, 68 xml::XmlResource* doc,
|
D | ManifestFixer.cpp | 382 bool ManifestFixer::Consume(IAaptContext* context, xml::XmlResource* doc) { in Consume() argument 383 xml::Element* root = xml::FindRootElement(doc->root.get()); in Consume() 385 context->GetDiagnostics()->Error(DiagMessage(doc->file.source) in Consume() 405 if (!executor.Execute(xml::XmlActionExecutorPolicy::kWhitelist, context->GetDiagnostics(), doc)) { in Consume()
|
D | ManifestFixer.h | 49 bool Consume(IAaptContext* context, xml::XmlResource* doc) override;
|
D | XmlNamespaceRemover_test.cpp | 70 std::unique_ptr<xml::XmlResource> doc = local
|
/frameworks/base/tools/aapt2/flatten/ |
D | XmlFlattener_test.cpp | 52 ::testing::AssertionResult Flatten(xml::XmlResource* doc, in Flatten() argument 59 if (!flattener.Consume(context_.get(), doc)) { 75 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(R"EOF( in TEST_F() local 153 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(R"EOF( in TEST_F() local 180 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(R"EOF( in TEST_F() local 204 ASSERT_TRUE(Flatten(doc.get(), &tree)); in TEST_F() 216 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom("<View package=\"\"/>"); in TEST_F() local 219 ASSERT_TRUE(Flatten(doc.get(), &tree)); in TEST_F() 239 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDomForPackageName(context_.get(), R"EOF( local
|
/frameworks/minikin/tests/util/ |
D | FontTestUtils.cpp | 32 xmlDoc* doc = xmlReadFile(fontXml, NULL, 0); in getFontFamilies() local 33 xmlNode* familySet = xmlDocGetRootElement(doc); in getFontFamilies() 62 xmlChar* fontFileName = xmlNodeListGetString(doc, fontNode->xmlChildrenNode, 1); in getFontFamilies() 93 xmlFreeDoc(doc); in getFontFamilies()
|
/frameworks/base/core/java/com/android/internal/content/ |
D | FileSystemProvider.java | 93 final File doc = getFileForDocId(docId).getCanonicalFile(); in isChildDocument() local 94 return FileUtils.contains(parent, doc); in isChildDocument() 101 protected final List<String> findDocumentPath(File parent, File doc) in findDocumentPath() argument 104 if (!doc.exists()) { in findDocumentPath() 105 throw new FileNotFoundException(doc + " is not found."); in findDocumentPath() 108 if (!FileUtils.contains(parent, doc)) { in findDocumentPath() 109 throw new FileNotFoundException(doc + " is not found under " + parent); in findDocumentPath() 113 while (doc != null && FileUtils.contains(parent, doc)) { in findDocumentPath() 114 path.addFirst(getDocIdForFile(doc)); in findDocumentPath() 116 doc = doc.getParentFile(); in findDocumentPath()
|
/frameworks/support/core-utils/java/android/support/v4/provider/ |
D | DocumentFile.java | 321 for (DocumentFile doc : listFiles()) { in findFile() 322 if (displayName.equals(doc.getName())) { in findFile() 323 return doc; in findFile()
|
/frameworks/base/tools/aapt2/ |
D | Debug.h | 39 static void DumpXml(xml::XmlResource* doc); 40 static std::string ToString(xml::XmlResource* doc);
|
/frameworks/base/tools/aapt2/test/ |
D | Builders.h | 257 std::unique_ptr<xml::XmlResource> doc = in BuildXmlDom() local 259 CHECK(doc != nullptr) << "failed to parse inline XML string"; in BuildXmlDom() 260 return doc; in BuildXmlDom() 265 std::unique_ptr<xml::XmlResource> doc = BuildXmlDom(str); in BuildXmlDomForPackageName() local 266 doc->file.name.package = context->GetCompilationPackage(); in BuildXmlDomForPackageName() 267 return doc; in BuildXmlDomForPackageName()
|
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/store/ |
D | LayoutFileParser.java | 394 Document doc = builder.parse(xml); in stripFile() local 407 boolean changed = isBindingLayout(doc, xPath); in stripFile() 415 private boolean isBindingLayout(Document doc, XPath xPath) throws XPathExpressionException { in isBindingLayout() argument 416 return !get(doc, xPath, XPATH_BINDING_LAYOUT).isEmpty(); in isBindingLayout() 419 private List<Node> get(Document doc, XPath xPath, String pattern) in get() argument 422 return toList((NodeList) expr.evaluate(doc, XPathConstants.NODESET)); in get()
|
/frameworks/base/ |
D | pathmap.mk | 57 extensions/library/src/doc
|
/frameworks/base/tools/aapt2/cmd/ |
D | Link.cpp | 456 xml::XmlResource* doc = file_op->xml_to_flatten.get(); in LinkAndVersionXmlFile() local 457 const Source& src = doc->file.source; in LinkAndVersionXmlFile() 464 if (!xml_linker.Consume(context_, doc)) { in LinkAndVersionXmlFile() 468 if (options_.update_proguard_spec && !proguard::CollectProguardRules(src, doc, keep_set_)) { in LinkAndVersionXmlFile() 474 if (!namespace_remover.Consume(context_, doc)) { in LinkAndVersionXmlFile() 485 xml::Element* el = xml::FindRootElement(doc); in LinkAndVersionXmlFile() 500 return xml_compat_versioner.Process(context_, doc, api_range); in LinkAndVersionXmlFile() 577 for (std::unique_ptr<xml::XmlResource>& doc : versioned_docs) { in Flatten() 579 if (doc->file.config != file_op.config) { in Flatten() 582 context_->GetDiagnostics()->Note(DiagMessage(doc->file.source) in Flatten() [all …]
|