/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/ |
D | MoSerializer.java | 64 String serialize(@NonNull Document doc) { in serialize() argument 70 transformer.transform(new DOMSource(doc), new StreamResult(writer)); in serialize() 94 Element createMgmtTree(@NonNull Document doc) { in createMgmtTree() argument 96 Element rootElement = doc.createElement(TAG_MGMT_TREE); in createMgmtTree() 97 doc.appendChild(rootElement); in createMgmtTree() 108 Element writeVersion(@NonNull Document doc) { in writeVersion() argument 109 Element dtdElement = doc.createElement(TAG_VERSION); in writeVersion() 110 dtdElement.appendChild(doc.createTextNode(DM_VERSION)); in writeVersion() 122 Element createNode(@NonNull Document doc, @NonNull String nodeName) { in createNode() argument 123 Element node = doc.createElement(TAG_NODE); in createNode() [all …]
|
D | DevDetailMo.java | 168 Document doc = moSerializer.createNewDocument(); in serializeToXml() local 169 Element rootElement = moSerializer.createMgmtTree(doc); in serializeToXml() 170 rootElement.appendChild(moSerializer.writeVersion(doc)); in serializeToXml() 172 Element moNode = moSerializer.createNode(doc, MO_NAME); in serializeToXml() 175 moNode.appendChild(moSerializer.createNodeForUrn(doc, URN)); in serializeToXml() 177 Element extNode = moSerializer.createNode(doc, TAG_EXT); in serializeToXml() 179 Element orgNode = moSerializer.createNode(doc, TAG_ORG_WIFI); in serializeToXml() 180 orgNode.appendChild(moSerializer.createNodeForUrn(doc, HS20_URN)); in serializeToXml() 182 Element wifiNode = moSerializer.createNode(doc, TAG_WIFI); in serializeToXml() 184 Element eapMethodListNode = moSerializer.createNode(doc, TAG_EAP_METHOD_LIST); in serializeToXml() [all …]
|
D | DevInfoMo.java | 65 Document doc = moSerializer.createNewDocument(); in serializeToXml() local 66 Element rootElement = moSerializer.createMgmtTree(doc); in serializeToXml() 67 rootElement.appendChild(moSerializer.writeVersion(doc)); in serializeToXml() 68 Element moNode = moSerializer.createNode(doc, MO_NAME); in serializeToXml() 69 moNode.appendChild(moSerializer.createNodeForUrn(doc, URN)); in serializeToXml() 72 moSerializer.createNodeForValue(doc, TAG_DEVID, systemInfo.getDeviceId())); in serializeToXml() 74 rootElement.appendChild(moSerializer.createNodeForValue(doc, TAG_MANUFACTURE, in serializeToXml() 77 moSerializer.createNodeForValue(doc, TAG_MODEL, systemInfo.getDeviceModel())); in serializeToXml() 79 moSerializer.createNodeForValue(doc, TAG_DM_VERSION, MoSerializer.DM_VERSION)); in serializeToXml() 81 moSerializer.createNodeForValue(doc, TAG_LANGUAGE, systemInfo.getLanguage())); in serializeToXml() [all …]
|
/frameworks/av/services/audiopolicy/engine/config/src/ |
D | EngineConfig.cpp | 64 static android::status_t deserialize(_xmlDoc *doc, const _xmlNode *root, Collection &ps); 74 static android::status_t deserialize(_xmlDoc *doc, const _xmlNode *root, Collection &ps); 85 static android::status_t deserialize(_xmlDoc *doc, const _xmlNode *root, 97 static android::status_t deserialize(_xmlDoc *doc, const _xmlNode *root, 110 static android::status_t deserialize(_xmlDoc *doc, const _xmlNode *root, 124 static android::status_t deserialize(_xmlDoc *doc, const _xmlNode *root, 138 static android::status_t deserialize(_xmlDoc *doc, const _xmlNode *root, 174 static status_t deserializeCollection(_xmlDoc *doc, const _xmlNode *cur, in deserializeCollection() argument 189 status_t status = Trait::deserialize(doc, child, collection); in deserializeCollection() 246 static status_t deserializeAttributes(_xmlDoc *doc, const _xmlNode *cur, in deserializeAttributes() argument [all …]
|
/frameworks/base/tools/aapt2/xml/ |
D | XmlActionExecutor_test.cpp | 43 std::unique_ptr<XmlResource> doc = in TEST() local 47 ASSERT_TRUE(executor.Execute(XmlActionExecutorPolicy::kNone, &diag, doc.get())); in TEST() 59 std::unique_ptr<XmlResource> doc; in TEST() local 62 doc = test::BuildXmlDom("<manifest><application /><activity /></manifest>"); in TEST() 63 ASSERT_FALSE(executor.Execute(XmlActionExecutorPolicy::kWhitelist, &diag, doc.get())); in TEST() 65 doc = test::BuildXmlDom("<manifest><application><activity /></application></manifest>"); in TEST() 66 ASSERT_FALSE(executor.Execute(XmlActionExecutorPolicy::kWhitelist, &diag, doc.get())); in TEST()
|
D | XmlActionExecutor.cpp | 92 XmlResource* doc) const { in Execute() 93 SourcePathDiagnostics source_diag(doc->file.source, diag); in Execute() 95 Element* el = doc->root.get(); in Execute()
|
/frameworks/base/tools/aapt2/compile/ |
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() 70 std::unique_ptr<xml::XmlResource> doc = in TEST() local 74 ASSERT_FALSE(collector.Consume(context.get(), doc.get())); in TEST()
|
D | InlineXmlFormatParser.cpp | 115 bool InlineXmlFormatParser::Consume(IAaptContext* context, xml::XmlResource* doc) { in Consume() argument 116 Visitor visitor(context, doc); in Consume() 117 doc->root->Accept(&visitor); in Consume() 125 auto new_doc = util::make_unique<xml::XmlResource>(doc->file); in Consume() 139 const Source child_source = doc->file.source.WithLine(child->line_number); in Consume() 154 new_doc->root->namespace_decls = doc->root->namespace_decls; in Consume()
|
D | InlineXmlFormatParser.h | 50 bool Consume(IAaptContext* context, xml::XmlResource* doc) override;
|
/frameworks/base/tools/aapt2/format/binary/ |
D | XmlFlattener_test.cpp | 58 ::testing::AssertionResult Flatten(xml::XmlResource* doc, android::ResXMLTree* out_tree, in Flatten() argument 64 if (!flattener.Consume(context_.get(), doc)) { 80 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(R"( in TEST_F() local 139 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(R"( in TEST_F() local 160 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(R"( in TEST_F() local 290 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom( in TEST_F() local 303 ASSERT_TRUE(Flatten(doc.get(), &tree, options)); in TEST_F() 342 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom( in TEST_F() local 372 ASSERT_TRUE(Flatten(doc.get(), &tree, options)); in TEST_F() 456 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(R"(<element foo="bar" />)"); in TEST_F() local [all …]
|
/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->CloneElement([&](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 | 70 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(str); in VerifyWithOptions() local 72 if (fixer.Consume(mContext.get(), doc.get())) { in VerifyWithOptions() 73 return doc; in VerifyWithOptions() 97 auto doc = Verify(R"EOF( in TEST_F() local 550 std::unique_ptr<xml::XmlResource> doc = in TEST_F() local 552 ASSERT_THAT(doc, NotNull()); in TEST_F() 554 xml::Element* el = doc->root.get(); in TEST_F()
|
D | XmlCompatVersioner.h | 61 xml::XmlResource* doc, 68 xml::XmlResource* doc,
|
D | ManifestFixer.h | 86 bool Consume(IAaptContext* context, xml::XmlResource* doc) override;
|
/frameworks/rs/script_api/ |
D | Android.bp | 1 // Build API doc generator ==================== 4 name: "rs-api-doc-generator",
|
/frameworks/av/media/libeffects/config/src/ |
D | EffectsConfig.cpp | 256 XMLDocument doc; in parseWithPath() local 257 doc.LoadFile(path.c_str()); in parseWithPath() 258 if (doc.Error()) { in parseWithPath() 260 doc.ErrorID(), doc.ErrorStr()); in parseWithPath() 269 for (auto& xmlConfig : getChildren(doc, "audio_effects_conf")) { in parseWithPath()
|
/frameworks/minikin/tests/util/ |
D | FontTestUtils.cpp | 51 xmlDoc* doc = xmlReadFile(xmlPath.c_str(), NULL, 0); in getFontFamilies() local 52 xmlNode* familySet = xmlDocGetRootElement(doc); in getFontFamilies() 82 xmlChar* fontFileName = xmlNodeListGetString(doc, fontNode->xmlChildrenNode, 1); in getFontFamilies() 117 xmlFreeDoc(doc); in getFontFamilies()
|
/frameworks/base/core/java/com/android/internal/content/ |
D | FileSystemProvider.java | 127 final File doc = getFileForDocId(docId).getCanonicalFile(); in isChildDocument() local 128 return FileUtils.contains(parent, doc); in isChildDocument() 211 protected final List<String> findDocumentPath(File parent, File doc) in findDocumentPath() argument 214 if (!doc.exists()) { in findDocumentPath() 215 throw new FileNotFoundException(doc + " is not found."); in findDocumentPath() 218 if (!FileUtils.contains(parent, doc)) { in findDocumentPath() 219 throw new FileNotFoundException(doc + " is not found under " + parent); in findDocumentPath() 223 while (doc != null && FileUtils.contains(parent, doc)) { in findDocumentPath() 224 path.addFirst(getDocIdForFile(doc)); in findDocumentPath() 226 doc = doc.getParentFile(); in findDocumentPath()
|
/frameworks/base/startop/view_compiler/ |
D | layout_validation_test.cc | 25 tinyxml2::XMLDocument doc; in ValidateXmlText() local 26 doc.Parse(xml.c_str()); in ValidateXmlText() 27 EXPECT_EQ(CanCompileLayout(doc), expected); in ValidateXmlText()
|
/frameworks/base/tools/aapt2/test/ |
D | Builders.cpp | 228 std::unique_ptr<xml::XmlResource> doc = xml::Inflate(&in, &diag, Source("test.xml")); in BuildXmlDom() local 229 CHECK(doc != nullptr && doc->root != nullptr) << "failed to parse inline XML string"; in BuildXmlDom() 230 return doc; in BuildXmlDom() 235 std::unique_ptr<xml::XmlResource> doc = BuildXmlDom(str); in BuildXmlDomForPackageName() local 236 doc->file.name.package = context->GetCompilationPackage(); in BuildXmlDomForPackageName() 237 return doc; in BuildXmlDomForPackageName()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/jenkins/ |
D | make_test_output.py | 72 doc, tag, text = Doc().tagtext() 87 return doc.getvalue()
|
/frameworks/base/tools/aapt2/ |
D | LoadedApk.cpp | 312 std::unique_ptr<xml::XmlResource> doc; in LoadXml() local 328 doc = DeserializeXmlResourceFromPb(pb_node, &err); in LoadXml() 329 if (!doc) { in LoadXml() 341 doc = xml::Inflate(data->data(), data->size(), &err); in LoadXml() 342 if (!doc) { in LoadXml() 348 return doc; in LoadXml()
|
D | Debug.h | 40 static void DumpXml(const xml::XmlResource& doc, text::Printer* printer);
|
/frameworks/base/ |
D | pathmap.mk | 52 extensions/library/src/doc
|
/frameworks/base/tools/aapt2/cmd/ |
D | Util_test.cpp | 47 const auto doc = GenerateSplitManifest(app_info, split_constraints); in TEST() local 48 const auto &root = doc->root; in TEST() 57 auto doc = test::BuildXmlDom(R"( in TEST() local
|