/frameworks/base/tools/aapt2/cmd/ |
D | Link.cpp | 205 FeatureSplitSymbolTableDelegate(IAaptContext* context) : context_(context) { in FeatureSplitSymbolTableDelegate() 229 context_->GetDiagnostics()->Error(DiagMessage() << "Failed to rewrite " << name in FindByName() 234 if (context_->IsVerbose()) { in FindByName() 235 context_->GetDiagnostics()->Note(DiagMessage() << "rewriting " << name << " (" << *id in FindByName() 248 IAaptContext* context_; member in aapt::FeatureSplitSymbolTableDelegate 363 IAaptContext* context_; member in aapt::ResourceFileFlattener 370 : options_(options), context_(context), keep_set_(keep_set) { in ResourceFileFlattener() 371 SymbolTable* symm = context_->GetExternalSymbols(); in ResourceFileFlattener() 459 if (context_->IsVerbose()) { in LinkAndVersionXmlFile() 460 context_->GetDiagnostics()->Note(DiagMessage() << "linking " << src.path); in LinkAndVersionXmlFile() [all …]
|
D | Optimize.cpp | 120 : options_(options), context_(context) { in OptimizeCommand() 124 if (context_->IsVerbose()) { in Run() 125 context_->GetDiagnostics()->Note(DiagMessage() << "Optimizing APK..."); in Run() 129 if (!collapser.Consume(context_, apk->GetResourceTable())) { in Run() 134 if (!deduper.Consume(context_, apk->GetResourceTable())) { in Run() 135 context_->GetDiagnostics()->Error(DiagMessage() << "failed deduping resources"); in Run() 142 AdjustSplitConstraintsForMinSdk(context_->GetMinSdkVersion(), options_.split_constraints); in Run() 147 if (!splitter.VerifySplitConstraints(context_)) { in Run() 155 if (context_->IsVerbose()) { in Run() 156 context_->GetDiagnostics()->Note( in Run() [all …]
|
/frameworks/base/tools/aapt2/unflatten/ |
D | BinaryResourceParser.cpp | 82 : context_(context), in BinaryResourceParser() 94 context_->GetDiagnostics()->Error(DiagMessage(source_) in Parse() 100 context_->GetDiagnostics()->Error(DiagMessage(source_) in Parse() 112 context_->GetDiagnostics()->Warn( in Parse() 115 context_->GetDiagnostics()->Warn( in Parse() 131 context_->GetDiagnostics()->Error(DiagMessage(source_) in ParseTable() 145 context_->GetDiagnostics()->Error( in ParseTable() 155 context_->GetDiagnostics()->Warn( in ParseTable() 167 context_->GetDiagnostics()->Warn( in ParseTable() 176 context_->GetDiagnostics()->Error( in ParseTable() [all …]
|
D | BinaryResourceParser.h | 97 IAaptContext* context_; variable
|
/frameworks/base/tools/aapt2/link/ |
D | XmlReferenceLinker.cpp | 47 : callsite_(callsite), context_(context), symbols_(symbols), decls_(decls), error_(false) {} in ReferenceVisitor() 50 if (!ReferenceLinker::LinkReference(callsite_, ref, context_, symbols_, decls_)) { in Visit() 61 IAaptContext* context_; member in aapt::__anondb2bbb330111::ReferenceVisitor 78 context_(context), in XmlVisitor() 103 attribute_package = context_->GetCompilationPackage(); in Visit() 114 context_->GetDiagnostics()->Error(DiagMessage(source) << "attribute '" in Visit() 138 context_->GetDiagnostics()->Error(msg); in Visit() 154 IAaptContext* context_; member in aapt::__anondb2bbb330111::XmlVisitor
|
D | TableMerger_test.cpp | 34 std::unique_ptr<IAaptContext> context_; member 37 context_ = in SetUp() 69 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() 137 TableMerger merger(context_.get(), &final_table, TableMergerOptions{}); in TEST_F() 168 TableMerger merger(context_.get(), &final_table, options); in TEST_F() 195 TableMerger merger(context_.get(), &final_table, options); in TEST_F() 218 TableMerger merger(context_.get(), &final_table, options); in TEST_F() 241 TableMerger merger(context_.get(), &final_table, options); in TEST_F() [all …]
|
D | TableMerger.cpp | 33 : context_(context), master_table_(out_table), options_(options) { in TableMerger() 36 context_->GetCompilationPackage(), context_->GetPackageId()); in TableMerger() 62 if (package->name.empty() || context_->GetCompilationPackage() == package->name) { in MergeImpl() 71 context_->GetDiagnostics()->Error(DiagMessage(src) in MergeImpl() 104 context_->GetDiagnostics()->Warn(DiagMessage(src) << "ignoring package " in MergeAndMangle() 109 bool mangle = package_name != context_->GetCompilationPackage(); in MergeAndMangle() 118 context_->GetDiagnostics()->Error( in MergeAndMangle() 252 if (!MergeType(context_, src, dst_type, src_type.get())) { in DoMerge() 273 context_->GetDiagnostics()->Error(DiagMessage(src) in DoMerge() 276 context_->GetDiagnostics()->Note(DiagMessage(src) << "define an <add-resource> tag or use " in DoMerge() [all …]
|
D | XmlNamespaceRemover_test.cpp | 61 context_ = in SetUp() 66 std::unique_ptr<IAaptContext> context_; member in aapt::XmlNamespaceRemoverTest 71 test::BuildXmlDomForPackageName(context_.get(), R"EOF(
|
D | XmlCompatVersioner_test.cpp | 42 context_ = in SetUp() 67 std::unique_ptr<IAaptContext> context_; member in aapt::XmlCompatVersionerTest 71 auto doc = test::BuildXmlDomForPackageName(context_.get(), R"EOF(
|
D | ReferenceLinker.cpp | 57 context_(context), in ReferenceLinkerVisitor() 63 if (!ReferenceLinker::LinkReference(callsite_, ref, context_, symbols_, package_decls_)) { in Visit() 92 context_->GetCompilationPackage(), in Visit() 124 context_->GetDiagnostics()->Error(msg); in Visit() 133 context_->GetDiagnostics()->Error(msg); in Visit() 173 IAaptContext* context_; member in aapt::__anonfa9393220111::ReferenceLinkerVisitor
|
D | XmlReferenceLinker_test.cpp | 26 context_ = test::ContextBuilder() in SetUp() 75 std::unique_ptr<IAaptContext> context_; member in aapt::XmlReferenceLinkerTest 79 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDomForPackageName(context_.get(), R"EOF(
|
D | TableMerger.h | 120 IAaptContext* context_; variable
|
/frameworks/base/tools/aapt2/optimize/ |
D | ResourceDeduper.cpp | 44 : context_(context), entry_(entry) {} in DominatedKeyValueRemover() 75 if (context_->IsVerbose()) { in VisitConfig() 76 context_->GetDiagnostics()->Note( in VisitConfig() 80 context_->GetDiagnostics()->Note( in VisitConfig() 89 IAaptContext* context_; member in aapt::__anoncbc5f1a20111::DominatedKeyValueRemover
|
/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/flatten/ |
D | XmlFlattener_test.cpp | 33 context_ = test::ContextBuilder() in SetUp() 59 if (!flattener.Consume(context_.get(), doc)) { 71 std::unique_ptr<test::Context> context_; member in aapt::XmlFlattenerTest 235 context_->SetCompilationPackage("com.app.test.feature"); 236 context_->SetPackageId(0x80); 237 context_->SetNameManglerPolicy({"com.app.test.feature"}); 239 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDomForPackageName(context_.get(), R"EOF(
|
D | TableFlattener_test.cpp | 34 context_ = test::ContextBuilder() in SetUp() 142 std::unique_ptr<IAaptContext> context_; member in aapt::TableFlattenerTest 167 ASSERT_TRUE(Flatten(context_.get(), {}, table.get(), &res_table)); in TEST_F() 214 ASSERT_TRUE(Flatten(context_.get(), {}, table.get(), &res_table)); in TEST_F() 236 ASSERT_TRUE(Flatten(context_.get(), {}, table.get(), &result)); in TEST_F()
|
D | TableFlattener.cpp | 222 : context_(context), in PackageFlattener() 235 if (context_->GetPackageType() != PackageType::kApp && in FlattenPackage() 347 sparse_encode && (context_->GetMinSdkVersion() >= SDK_O || config.sdkVersion >= SDK_O); in FlattenConfig() 548 IAaptContext* context_; member in aapt::__anonca738c7b0111::PackageFlattener
|
/frameworks/base/tools/aapt2/compile/ |
D | InlineXmlFormatParser.cpp | 48 : context_(context), xml_resource_(xml_resource) {} in Visitor() 60 context_->GetDiagnostics()->Error(DiagMessage(src) in Visit() 68 context_->GetDiagnostics()->Error( in Visit() 84 context_->GetDiagnostics()->Error(DiagMessage(src) in Visit() 115 IAaptContext* context_; member in aapt::__anon877bf72f0111::Visitor
|
/frameworks/base/tools/aapt2/java/ |
D | JavaClassGenerator.cpp | 190 : context_(context), table_(table), options_(options) {} in JavaClassGenerator() 259 const SymbolTable::Symbol* symbol = context_->GetExternalSymbols()->FindByReference(attr); in ProcessStyleable() 306 : context_->GetCompilationPackage()) in ProcessStyleable() 380 package_name = context_->GetCompilationPackage(); in ProcessStyleable() 435 if (context_->GetMinSdkVersion() < SDK_O && name.type == ResourceType::kId && in ProcessResource()
|
D | JavaClassGenerator.h | 111 IAaptContext* context_; variable
|
/frameworks/base/tools/aapt2/ |
D | ResourceParser_test.cpp | 51 context_ = test::ContextBuilder().Build(); in SetUp() 62 ResourceParser parser(context_->GetDiagnostics(), &table_, Source{"test"}, config, in TestParse() 73 std::unique_ptr<IAaptContext> context_; member in aapt::ResourceParserTest
|