Home
last modified time | relevance | path

Searched refs:doc (Results 1 – 25 of 94) sorted by relevance

1234

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/
DMoSerializer.java64 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 …]
DDevDetailMo.java168 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 …]
DDevInfoMo.java65 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/
DEngineConfig.cpp64 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/
DXmlActionExecutor_test.cpp43 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()
DXmlActionExecutor.cpp92 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/
DXmlIdCollector_test.cpp28 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()
DInlineXmlFormatParser.cpp115 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()
DInlineXmlFormatParser.h50 bool Consume(IAaptContext* context, xml::XmlResource* doc) override;
/frameworks/base/tools/aapt2/format/binary/
DXmlFlattener_test.cpp58 ::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/
DXmlCompatVersioner.cpp103 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()
DManifestFixer_test.cpp70 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()
DXmlCompatVersioner.h61 xml::XmlResource* doc,
68 xml::XmlResource* doc,
DManifestFixer.h86 bool Consume(IAaptContext* context, xml::XmlResource* doc) override;
/frameworks/rs/script_api/
DAndroid.bp1 // Build API doc generator ====================
4 name: "rs-api-doc-generator",
/frameworks/av/media/libeffects/config/src/
DEffectsConfig.cpp256 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/
DFontTestUtils.cpp51 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/
DFileSystemProvider.java127 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/
Dlayout_validation_test.cc25 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/
DBuilders.cpp228 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/
Dmake_test_output.py72 doc, tag, text = Doc().tagtext()
87 return doc.getvalue()
/frameworks/base/tools/aapt2/
DLoadedApk.cpp312 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()
DDebug.h40 static void DumpXml(const xml::XmlResource& doc, text::Printer* printer);
/frameworks/base/
Dpathmap.mk52 extensions/library/src/doc
/frameworks/base/tools/aapt2/cmd/
DUtil_test.cpp47 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

1234