Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/cmd/
DLink.cpp177 explicit FeatureSplitSymbolTableDelegate(IAaptContext* context) : context_(context) { in FeatureSplitSymbolTableDelegate()
201 context_->GetDiagnostics()->Error(DiagMessage() << "Failed to rewrite " << name in FindByName()
206 if (context_->IsVerbose()) { in FindByName()
207 context_->GetDiagnostics()->Note(DiagMessage() << "rewriting " << name << " (" << *id in FindByName()
220 IAaptContext* context_; member in aapt::FeatureSplitSymbolTableDelegate
357 IAaptContext* context_; member in aapt::ResourceFileFlattener
364 : options_(options), context_(context), keep_set_(keep_set) { in ResourceFileFlattener()
365 SymbolTable* symm = context_->GetExternalSymbols(); in ResourceFileFlattener()
438 if (context_->IsVerbose()) { in LinkAndVersionXmlFile()
439 context_->GetDiagnostics()->Note(DiagMessage() in LinkAndVersionXmlFile()
[all …]
DOptimize.cpp128 : options_(options), context_(context) { in Optimizer()
132 if (context_->IsVerbose()) { in Run()
133 context_->GetDiagnostics()->Note(DiagMessage() << "Optimizing APK..."); in Run()
137 if (!filter.Consume(context_, apk->GetResourceTable())) { in Run()
138 context_->GetDiagnostics()->Error(DiagMessage() << "failed filtering resources"); in Run()
144 if (!collapser.Consume(context_, apk->GetResourceTable())) { in Run()
149 if (!deduper.Consume(context_, apk->GetResourceTable())) { in Run()
150 context_->GetDiagnostics()->Error(DiagMessage() << "failed deduping resources"); in Run()
156 if (!shortener.Consume(context_, apk->GetResourceTable())) { in Run()
157 context_->GetDiagnostics()->Error(DiagMessage() << "failed shortening resource paths"); in Run()
[all …]
DConvert.cpp46 IApkSerializer(IAaptContext* context, const Source& source) : context_(context), in IApkSerializer()
57 IAaptContext* context_; member in aapt::IApkSerializer
75 if (!flattener.Consume(context_, xml)) { in SerializeXml()
80 return io::CopyInputStreamToArchive(context_, &input_stream, path, compression_flags, writer); in SerializeXml()
86 if (!table_flattener.Consume(context_, table)) { in SerializeTable()
91 return io::CopyInputStreamToArchive(context_, &input_stream, kApkResourceTablePath, in SerializeTable()
99 context_->GetDiagnostics()->Error(DiagMessage(source_) in SerializeFile()
107 context_->GetDiagnostics()->Error(DiagMessage(source_) in SerializeFile()
115 context_->GetDiagnostics()->Error(DiagMessage(source_) in SerializeFile()
123 context_->GetDiagnostics()->Error(DiagMessage(source_) in SerializeFile()
[all …]
/frameworks/base/tools/aapt2/optimize/
DMultiApkGenerator.cpp57 : context_(context), min_sdk_(context_->GetMinSdkVersion()) { in ContextWrapper()
61 return context_->GetPackageType(); in GetPackageType()
65 return context_->GetExternalSymbols(); in GetExternalSymbols()
72 return context_->GetDiagnostics(); in GetDiagnostics()
76 return context_->GetCompilationPackage(); in GetCompilationPackage()
80 return context_->GetPackageId(); in GetPackageId()
84 return context_->GetNameMangler(); in GetNameMangler()
88 return context_->IsVerbose(); in IsVerbose()
101 util::make_unique<SourcePathDiagnostics>(Source{source}, context_->GetDiagnostics()); in SetSource()
105 return context_->GetSplitNameDependencies(); in GetSplitNameDependencies()
[all …]
DResourceDeduper.cpp47 : context_(context), entry_(entry) {} in DominatedKeyValueRemover()
79 if (context_->IsVerbose()) { in VisitConfig()
80 context_->GetDiagnostics()->Note( in VisitConfig()
84 context_->GetDiagnostics()->Note( in VisitConfig()
93 IAaptContext* context_; member in aapt::__anoncbc5f1a20111::DominatedKeyValueRemover
DMultiApkGenerator.h62 return context_->GetDiagnostics(); in GetDiagnostics()
74 IAaptContext* context_; variable
/frameworks/base/tools/aapt2/link/
DXmlReferenceLinker.cpp45 : callsite_(callsite), context_(context), symbols_(symbols), decls_(decls), error_(false) {} in ReferenceVisitor()
48 if (!ReferenceLinker::LinkReference(callsite_, ref, context_, symbols_, decls_)) { in Visit()
61 IAaptContext* context_; member in aapt::__anondb2bbb330111::ReferenceVisitor
76 context_(context), in XmlVisitor()
89 if (el->name == "gradient" && context_->GetMinSdkVersion() <= SDK_Q) { in Visit()
111 ReferenceLinker::CompileXmlAttribute(attr_ref, callsite_, context_, symbols_, &err_str); in Visit()
118 context_->GetDiagnostics()->Error(error_msg); in Visit()
136 context_->GetDiagnostics()->Error(msg); in Visit()
154 IAaptContext* context_; member in aapt::__anondb2bbb330111::XmlVisitor
DTableMerger_test.cpp37 std::unique_ptr<IAaptContext> context_; member
40 context_ = in SetUp()
72 TableMerger merger(context_.get(), &final_table, TableMergerOptions{}); in TEST_F()
95 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
115 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
142 TableMerger merger(context_.get(), &final_table, TableMergerOptions{}); in TEST_F()
173 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
213 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
241 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
262 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
[all …]
DTableMerger.cpp34 : context_(context), master_table_(out_table), options_(options) { in TableMerger()
37 master_table_->CreatePackage(context_->GetCompilationPackage(), context_->GetPackageId()); in TableMerger()
56 if (package->name.empty() || context_->GetCompilationPackage() == package->name) { in MergeImpl()
75 context_->GetDiagnostics()->Warn(DiagMessage(src) << "ignoring package " << package->name); in MergeAndMangle()
79 bool mangle = package_name != context_->GetCompilationPackage(); in MergeAndMangle()
239 if (!MergeType(context_, src, dst_type, src_type.get())) { in DoMerge()
260 context_->GetDiagnostics()->Error(DiagMessage(src) in DoMerge()
263 context_->GetDiagnostics()->Note(DiagMessage(src) << "define an <add-resource> tag or use " in DoMerge()
269 if (!MergeEntry(context_, src, dst_entry, src_entry.get(), options_.strict_visibility)) { in DoMerge()
281 context_, res_name, overlay, options_.override_styles_instead_of_overlaying, in DoMerge()
DXmlNamespaceRemover_test.cpp62 context_ = test::ContextBuilder().SetCompilationPackage("com.app.test").Build(); in SetUp()
66 std::unique_ptr<IAaptContext> context_; member in aapt::XmlNamespaceRemoverTest
71 test::BuildXmlDomForPackageName(context_.get(), R"EOF(
DXmlCompatVersioner_test.cpp49 context_ = in SetUp()
74 std::unique_ptr<IAaptContext> context_; member in aapt::XmlCompatVersionerTest
78 auto doc = test::BuildXmlDomForPackageName(context_.get(), R"(
DXmlReferenceLinker_test.cpp29 context_ = test::ContextBuilder() in SetUp()
80 std::unique_ptr<test::Context> context_; member in aapt::XmlReferenceLinkerTest
84 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDomForPackageName(context_.get(), R"(
DReferenceLinker.cpp56 context_(context), in ReferenceLinkerVisitor()
62 if (!ReferenceLinker::LinkReference(callsite_, ref, context_, symbols_, package_decls_)) { in Visit()
86 transformed_reference, callsite_, context_, symbols_, &err_str); in Visit()
108 context_->GetDiagnostics()->Error(msg); in Visit()
117 context_->GetDiagnostics()->Error(msg); in Visit()
156 IAaptContext* context_; member in aapt::__anonfa9393220111::ReferenceLinkerVisitor
DTableMerger.h82 IAaptContext* context_; variable
/frameworks/base/tools/aapt2/test/
DContext.h110 context_->package_type_ = type; in SetPackageType()
115 context_->compilation_package_ = package.to_string(); in SetCompilationPackage()
120 context_->package_id_ = id; in SetPackageId()
125 context_->name_mangler_ = NameMangler(policy); in SetNameManglerPolicy()
130 context_->GetExternalSymbols()->AppendSource(std::move(src)); in AddSymbolSource()
135 context_->min_sdk_version_ = min_sdk; in SetMinSdkVersion()
140 context_->split_name_dependencies_ = split_name_dependencies; in SetSplitNameDependencies()
144 std::unique_ptr<Context> Build() { return std::move(context_); } in Build()
147 std::unique_ptr<Context> context_ = std::unique_ptr<Context>(new Context());
/frameworks/base/tools/aapt2/compile/
DInlineXmlFormatParser.cpp42 : context_(context), xml_resource_(xml_resource) {} in Visitor()
54 context_->GetDiagnostics()->Error(DiagMessage(src) << "missing 'name' attribute"); in Visit()
61 context_->GetDiagnostics()->Error(DiagMessage(src) << "invalid XML attribute '" << attr->value in Visit()
70 context_->GetDiagnostics()->Error(DiagMessage(src) in Visit()
107 IAaptContext* context_; member in aapt::__anon877bf72f0111::Visitor
/frameworks/base/startop/view_compiler/
Ddex_layout_compiler.cc47 context_{Value::Parameter(0)},
72 method_->AddInstruction(Instruction::InvokeStaticObject(layout_inflater_from.id, dest, context_)); in BuildGetLayoutInflater()
79 method_->AddInstruction(Instruction::InvokeVirtualObject(get_resources.id, dest, context_)); in BuildGetResources()
131 try_create_view_.id, dest, inflater_, parent, classname, context_, attrs_)); in BuildTryCreateView()
160 context_, in StartView()
Ddex_layout_compiler.h99 dex::Value const context_; variable
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp42 context_ = in SetUp()
152 std::unique_ptr<IAaptContext> context_; member in aapt::TableFlattenerTest
173 ASSERT_TRUE(Flatten(context_.get(), {}, table.get(), &res_table)); in TEST_F()
213 ASSERT_TRUE(Flatten(context_.get(), {}, table.get(), &res_table)); in TEST_F()
233 ASSERT_TRUE(Flatten(context_.get(), {}, table.get(), &result)); in TEST_F()
256 ASSERT_TRUE(Flatten(context_.get(), {}, table.get(), &result)); in TEST_F()
586 ASSERT_TRUE(Flatten(context_.get(), options, table.get(), &res_table)); in TEST_F()
641 ASSERT_TRUE(Flatten(context_.get(), options, table.get(), &res_table)); in TEST_F()
689 ASSERT_TRUE(Flatten(context_.get(), {}, table.get(), &output_table)); in TEST_F()
730 ASSERT_TRUE(Flatten(context_.get(), {}, table.get(), &output_table)); in TEST_F()
[all …]
DTableFlattener.cpp245 : context_(context), in PackageFlattener()
262 if (context_->GetPackageType() != PackageType::kApp && in FlattenPackage()
376 sparse_encode && (context_->GetMinSdkVersion() >= SDK_O || config.sdkVersion >= SDK_O); in FlattenConfig()
476 context_->GetDiagnostics()->Error(DiagMessage(item.overlayable->source) in FlattenOverlayable()
479 context_->GetDiagnostics()->Error(DiagMessage(chunk.source) in FlattenOverlayable()
489 context_->GetDiagnostics()->Error(DiagMessage(item.overlayable->source) in FlattenOverlayable()
699 IAaptContext* context_; member in aapt::__anonc862aeca0111::PackageFlattener
DXmlFlattener_test.cpp39 context_ = test::ContextBuilder() in SetUp()
64 if (!flattener.Consume(context_.get(), doc)) {
76 std::unique_ptr<test::Context> context_; member in aapt::XmlFlattenerTest
/frameworks/base/tools/aapt2/java/
DProguardRules.cpp357 bool CollectProguardRules(IAaptContext* context_, xml::XmlResource* res, KeepSet* keep_set) { in CollectProguardRules() argument
376 NavigationVisitor visitor(res->file, keep_set, context_->GetCompilationPackage()); in CollectProguardRules()
495 : context_(context), from_(from), keep_set_(keep_set) { in ReferenceVisitor()
502 reference_name = ResourceName(context_->GetCompilationPackage(), reference_name.type, in Visit()
510 aapt::IAaptContext* context_; member in aapt::proguard::ReferenceVisitor
DJavaClassGenerator.h114 IAaptContext* context_; variable
DJavaClassGenerator.cpp192 : context_(context), table_(table), options_(options) {} in JavaClassGenerator()
271 const SymbolTable::Symbol* symbol = context_->GetExternalSymbols()->FindByReference(ref); in ProcessStyleable()
445 if (context_->GetMinSdkVersion() < SDK_O && name.type == ResourceType::kId && in ProcessResource()
/frameworks/base/tools/aapt2/
DResourceParser_test.cpp65 context_ = test::ContextBuilder().Build(); in SetUp()
74 ResourceParser parser(context_->GetDiagnostics(), &table_, Source{"test"}, config, in TestParse()
91 std::unique_ptr<IAaptContext> context_; member in aapt::ResourceParserTest