Home
last modified time | relevance | path

Searched refs:decl (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/tools/aapt2/compile/
DInlineXmlFormatParser.cpp79 InlineDeclaration decl; in Visit() local
80 decl.el = el; in Visit()
81 decl.attr_name = name.entry; in Visit()
87 decl.attr_namespace_uri = xml::kSchemaAuto; in Visit()
89 decl.attr_namespace_uri = xml::BuildPackageNamespace(pkg.package, private_namespace); in Visit()
93 inline_declarations_.push_back(std::move(decl)); in Visit()
123 for (const InlineDeclaration& decl : visitor.GetInlineDeclarations()) { in Consume() local
128 new_doc->file.source.line = decl.el->line_number; in Consume()
138 for (std::unique_ptr<xml::Node>& child : decl.el->children) { in Consume()
161 xml::Element* parent_el = decl.el->parent; in Consume()
[all …]
/frameworks/base/tools/aapt2/xml/
DXmlDom.cpp83 NamespaceDecl decl; in StartNamespaceHandler() local
84 decl.line_number = XML_GetCurrentLineNumber(parser); in StartNamespaceHandler()
85 decl.column_number = XML_GetCurrentColumnNumber(parser); in StartNamespaceHandler()
86 decl.prefix = prefix ? prefix : ""; in StartNamespaceHandler()
87 decl.uri = uri ? uri : ""; in StartNamespaceHandler()
92 stack->pending_element->namespace_decls.push_back(std::move(decl)); in StartNamespaceHandler()
291 NamespaceDecl decl; in Inflate() local
292 decl.line_number = tree.getLineNumber(); in Inflate()
297 decl.prefix = util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate()
302 decl.uri = util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate()
[all …]
DXmlUtil.cpp84 [](const NamespaceDecl& decl) -> bool { return decl.uri == kSchemaTools; }); in Visit() argument
/frameworks/base/startop/view_compiler/
Ddex_builder.cc299 ir::MethodDecl* decl = parent_->GetOrDeclareMethod(type_descriptor_, name, prototype).decl; in CreateMethod() local
301 return MethodBuilder{parent_, class_, decl}; in CreateMethod()
308 MethodBuilder::MethodBuilder(DexBuilder* dex, ir::Class* class_def, ir::MethodDecl* decl) in MethodBuilder() argument
309 : dex_{dex}, class_{class_def}, decl_{decl} {} in MethodBuilder()
313 method->decl = decl_; in Encode()
662 if (entry.decl == nullptr) { in GetOrDeclareMethod()
664 ir::MethodDecl* decl = dex_file_->Alloc<ir::MethodDecl>(); in GetOrDeclareMethod() local
669 decl->name = dex_name; in GetOrDeclareMethod()
670 decl->parent = GetOrAddType(type.descriptor()); in GetOrDeclareMethod()
671 decl->prototype = GetOrEncodeProto(prototype); in GetOrDeclareMethod()
[all …]
Ddex_builder.h327 ir::MethodDecl* decl; member
333 MethodBuilder(DexBuilder* dex, ir::Class* class_def, ir::MethodDecl* decl);
/frameworks/base/tools/aapt2/format/binary/
DXmlFlattener.cpp108 for (const xml::NamespaceDecl& decl : node->namespace_decls) { in Visit() local
110 if (decl.uri != xml::kSchemaTools) { in Visit()
111 WriteNamespace(decl, android::RES_XML_START_NAMESPACE_TYPE); in Visit()
186 void WriteNamespace(const xml::NamespaceDecl& decl, uint16_t type) { in WriteNamespace() argument
190 flatNode->lineNumber = util::HostToDevice32(decl.line_number); in WriteNamespace()
194 AddString(decl.prefix, kLowPriority, &flat_ns->prefix); in WriteNamespace()
195 AddString(decl.uri, kLowPriority, &flat_ns->uri); in WriteNamespace()
/frameworks/base/tools/aapt2/link/
DReferenceLinker.h36 xml::IPackageDeclStack* decl) in ReferenceLinkerTransformer() argument
42 package_decls_(decl) { in ReferenceLinkerTransformer()
/frameworks/base/tools/aapt2/cmd/
DUtil.cpp143 xml::NamespaceDecl decl; in CreateAndroidNamespaceDecl() local
144 decl.prefix = "android"; in CreateAndroidNamespaceDecl()
145 decl.uri = xml::kSchemaAndroid; in CreateAndroidNamespaceDecl()
146 return decl; in CreateAndroidNamespaceDecl()
/frameworks/native/opengl/tools/glgen/src/
DJniCodeEmitter.java1104 String decl = type.getDeclaration(); in emitJniCode() local
1106 decl + " " + cname + "_native = (" + in emitJniCode()
1107 decl + ") fromEGLHandle(_env, " + in emitJniCode()
1141 String decl = type.getDeclaration(); in emitJniCode() local
1144 decl + in emitJniCode()
1145 (decl.endsWith("*") ? "" : " ") + in emitJniCode()
1147 "_base = (" + decl + ") 0;"); in emitJniCode()
1154 decl + in emitJniCode()
1155 (decl.endsWith("*") ? "" : " ") + in emitJniCode()
1157 " = (" + decl + ") 0;"); in emitJniCode()
[all …]
/frameworks/compile/libbcc/lib/
DRSAddDebugInfoPass.cpp243 llvm::Instruction *decl = DebugInfo.insertDeclare( in attachDebugInfo() local
246 indexVar->moveBefore(decl); in attachDebugInfo()
/frameworks/base/tools/aapt2/format/proto/
DProtoDeserialize.cpp1023 xml::NamespaceDecl decl; in DeserializeXmlFromPb() local
1024 decl.uri = pb_ns.uri(); in DeserializeXmlFromPb()
1025 decl.prefix = pb_ns.prefix(); in DeserializeXmlFromPb()
1026 decl.line_number = pb_ns.source().line_number(); in DeserializeXmlFromPb()
1027 decl.column_number = pb_ns.source().column_number(); in DeserializeXmlFromPb()
1028 out_el->namespace_decls.push_back(std::move(decl)); in DeserializeXmlFromPb()
DProtoSerialize_test.cpp259 xml::NamespaceDecl decl; in TEST() local
260 decl.prefix = "android"; in TEST()
261 decl.uri = xml::kSchemaAndroid; in TEST()
262 decl.line_number = 21; in TEST()
263 decl.column_number = 24; in TEST()
265 element.namespace_decls.push_back(decl); in TEST()
/frameworks/base/tools/aapt2/
DDebug.cpp462 for (const xml::NamespaceDecl& decl : el->namespace_decls) { in Visit() local
463 printer_->Println(StringPrintf("N: %s=%s (line=%zu)", decl.prefix.c_str(), decl.uri.c_str(), in Visit()
464 decl.line_number)); in Visit()
DResourceParser.cpp909 for (const auto& decl : parser->package_decls()) { in ParseMacro() local
911 Macro::Namespace{.alias = decl.prefix, in ParseMacro()
912 .package_name = decl.package.package, in ParseMacro()
913 .is_private = decl.package.private_namespace}); in ParseMacro()