/frameworks/base/tools/aapt2/cmd/ |
D | Link.cpp | 168 explicit FeatureSplitSymbolTableDelegate(IAaptContext* context) : context_(context) { in FeatureSplitSymbolTableDelegate() 192 context_->GetDiagnostics()->Error(DiagMessage() << "Failed to rewrite " << name in FindByName() 197 if (context_->IsVerbose()) { in FindByName() 198 context_->GetDiagnostics()->Note(DiagMessage() << "rewriting " << name << " (" << *id in FindByName() 211 IAaptContext* context_; member in aapt::FeatureSplitSymbolTableDelegate 330 IAaptContext* context_; member in aapt::ResourceFileFlattener 337 : options_(options), context_(context), keep_set_(keep_set) { in ResourceFileFlattener() 338 SymbolTable* symm = context_->GetExternalSymbols(); in ResourceFileFlattener() 431 if (context_->IsVerbose()) { in LinkAndVersionXmlFile() 432 context_->GetDiagnostics()->Note(DiagMessage() in LinkAndVersionXmlFile() [all …]
|
D | Optimize.cpp | 122 : options_(options), context_(context) { in Optimizer() 126 if (context_->IsVerbose()) { in Run() 127 context_->GetDiagnostics()->Note(DiagMessage() << "Optimizing APK..."); in Run() 131 if (!filter.Consume(context_, apk->GetResourceTable())) { in Run() 132 context_->GetDiagnostics()->Error(DiagMessage() << "failed filtering resources"); in Run() 138 if (!collapser.Consume(context_, apk->GetResourceTable())) { in Run() 143 if (!deduper.Consume(context_, apk->GetResourceTable())) { in Run() 144 context_->GetDiagnostics()->Error(DiagMessage() << "failed deduping resources"); in Run() 150 if (!shortener.Consume(context_, apk->GetResourceTable())) { in Run() 151 context_->GetDiagnostics()->Error(DiagMessage() << "failed shortening resource paths"); in Run() [all …]
|
D | Convert.cpp | 46 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/ |
D | MultiApkGenerator.cpp | 57 : 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 IAaptContext* context_; member in aapt::ContextWrapper [all …]
|
D | ResourceDeduper.cpp | 47 : context_(context), entry_(entry) {} in DominatedKeyValueRemover() 78 if (context_->IsVerbose()) { in VisitConfig() 79 context_->GetDiagnostics()->Note( in VisitConfig() 83 context_->GetDiagnostics()->Note( in VisitConfig() 92 IAaptContext* context_; member in aapt::__anoncbc5f1a20111::DominatedKeyValueRemover
|
D | MultiApkGenerator.h | 62 return context_->GetDiagnostics(); in GetDiagnostics() 74 IAaptContext* context_; variable
|
/frameworks/base/tools/aapt2/link/ |
D | XmlReferenceLinker.cpp | 45 : 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() 109 context_->GetDiagnostics()->Error(error_msg); in Visit() 127 context_->GetDiagnostics()->Error(msg); in Visit() 145 IAaptContext* context_; member in aapt::__anondb2bbb330111::XmlVisitor
|
D | TableMerger_test.cpp | 35 std::unique_ptr<IAaptContext> context_; member 38 context_ = in SetUp() 70 TableMerger merger(context_.get(), &final_table, TableMergerOptions{}); in TEST_F() 93 TableMerger merger(context_.get(), &final_table, options); in TEST_F() 113 TableMerger merger(context_.get(), &final_table, options); in TEST_F() 140 TableMerger merger(context_.get(), &final_table, TableMergerOptions{}); in TEST_F() 171 TableMerger merger(context_.get(), &final_table, options); in TEST_F() 211 TableMerger merger(context_.get(), &final_table, options); in TEST_F() 239 TableMerger merger(context_.get(), &final_table, options); in TEST_F() 260 TableMerger merger(context_.get(), &final_table, options); in TEST_F() [all …]
|
D | TableMerger.cpp | 34 : 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() 230 if (!MergeType(context_, src, dst_type, src_type.get())) { in DoMerge() 251 context_->GetDiagnostics()->Error(DiagMessage(src) in DoMerge() 254 context_->GetDiagnostics()->Note(DiagMessage(src) << "define an <add-resource> tag or use " in DoMerge() 260 if (!MergeEntry(context_, src, dst_entry, src_entry.get(), options_.strict_visibility)) { in DoMerge() 272 MergeConfigValue(context_, res_name, overlay, dst_config_value, in DoMerge()
|
D | XmlNamespaceRemover_test.cpp | 62 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(
|
D | XmlReferenceLinker_test.cpp | 29 context_ = test::ContextBuilder() in SetUp() 78 std::unique_ptr<IAaptContext> context_; member in aapt::XmlReferenceLinkerTest 82 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDomForPackageName(context_.get(), R"(
|
D | XmlCompatVersioner_test.cpp | 49 context_ = in SetUp() 74 std::unique_ptr<IAaptContext> context_; member in aapt::XmlCompatVersionerTest 78 auto doc = test::BuildXmlDomForPackageName(context_.get(), R"(
|
D | ReferenceLinker.cpp | 54 context_(context), in ReferenceLinkerVisitor() 60 if (!ReferenceLinker::LinkReference(callsite_, ref, context_, symbols_, package_decls_)) { in Visit() 106 context_->GetDiagnostics()->Error(msg); in Visit() 115 context_->GetDiagnostics()->Error(msg); in Visit() 154 IAaptContext* context_; member in aapt::__anonfa9393220111::ReferenceLinkerVisitor
|
D | TableMerger.h | 80 IAaptContext* context_; variable
|
/frameworks/base/tools/aapt2/test/ |
D | Context.h | 101 context_->package_type_ = type; in SetPackageType() 106 context_->compilation_package_ = package.to_string(); in SetCompilationPackage() 111 context_->package_id_ = id; in SetPackageId() 116 context_->name_mangler_ = NameMangler(policy); in SetNameManglerPolicy() 121 context_->GetExternalSymbols()->AppendSource(std::move(src)); in AddSymbolSource() 126 context_->min_sdk_version_ = min_sdk; in SetMinSdkVersion() 130 std::unique_ptr<Context> Build() { return std::move(context_); } in Build() 133 std::unique_ptr<Context> context_ = std::unique_ptr<Context>(new Context());
|
/frameworks/base/tools/aapt2/compile/ |
D | InlineXmlFormatParser.cpp | 42 : 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/ |
D | dex_layout_compiler.cc | 47 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()
|
D | dex_layout_compiler.h | 99 dex::Value const context_; variable
|
/frameworks/base/tools/aapt2/format/binary/ |
D | TableFlattener_test.cpp | 40 context_ = in SetUp() 150 std::unique_ptr<IAaptContext> context_; member in aapt::TableFlattenerTest 171 ASSERT_TRUE(Flatten(context_.get(), {}, table.get(), &res_table)); in TEST_F() 211 ASSERT_TRUE(Flatten(context_.get(), {}, table.get(), &res_table)); in TEST_F() 231 ASSERT_TRUE(Flatten(context_.get(), {}, table.get(), &result)); in TEST_F() 254 ASSERT_TRUE(Flatten(context_.get(), {}, table.get(), &result)); in TEST_F() 543 ASSERT_TRUE(Flatten(context_.get(), options, table.get(), &res_table)); in TEST_F() 598 ASSERT_TRUE(Flatten(context_.get(), options, table.get(), &res_table)); in TEST_F() 645 ASSERT_TRUE(Flatten(context_.get(), {}, table.get(), &output_table)); in TEST_F() 686 ASSERT_TRUE(Flatten(context_.get(), {}, table.get(), &output_table)); in TEST_F() [all …]
|
D | TableFlattener.cpp | 232 : context_(context), in PackageFlattener() 249 if (context_->GetPackageType() != PackageType::kApp && in FlattenPackage() 363 sparse_encode && (context_->GetMinSdkVersion() >= SDK_O || config.sdkVersion >= SDK_O); in FlattenConfig() 463 context_->GetDiagnostics()->Error(DiagMessage(item.overlayable->source) in FlattenOverlayable() 466 context_->GetDiagnostics()->Error(DiagMessage(chunk.source) in FlattenOverlayable() 476 context_->GetDiagnostics()->Error(DiagMessage(item.overlayable->source) in FlattenOverlayable() 707 IAaptContext* context_; member in aapt::__anonc862aeca0111::PackageFlattener
|
D | XmlFlattener_test.cpp | 39 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/ |
D | ProguardRules.cpp | 346 bool CollectProguardRules(IAaptContext* context_, xml::XmlResource* res, KeepSet* keep_set) { in CollectProguardRules() argument 365 NavigationVisitor visitor(res->file, keep_set, context_->GetCompilationPackage()); in CollectProguardRules() 474 : context_(context), from_(from), keep_set_(keep_set) { in ReferenceVisitor() 481 reference_name = ResourceName(context_->GetCompilationPackage(), reference_name.type, in Visit() 489 aapt::IAaptContext* context_; member in aapt::proguard::ReferenceVisitor
|
D | JavaClassGenerator.h | 114 IAaptContext* context_; variable
|
D | JavaClassGenerator.cpp | 192 : context_(context), table_(table), options_(options) {} in JavaClassGenerator() 271 const SymbolTable::Symbol* symbol = context_->GetExternalSymbols()->FindByReference(ref); in ProcessStyleable() 443 if (context_->GetMinSdkVersion() < SDK_O && name.type == ResourceType::kId && in ProcessResource()
|
/frameworks/base/tools/aapt2/ |
D | ResourceParser_test.cpp | 63 context_ = test::ContextBuilder().Build(); in SetUp() 72 ResourceParser parser(context_->GetDiagnostics(), &table_, Source{"test"}, config, in TestParse() 89 std::unique_ptr<IAaptContext> context_; member in aapt::ResourceParserTest
|