Home
last modified time | relevance | path

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

123

/frameworks/base/tools/aapt2/cmd/
DLink.cpp168 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 …]
DOptimize.cpp122 : 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 …]
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/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/java/
Djava_generator_factory.cc56 Context* context) : context_(context) { in ImmutableGeneratorFactory()
62 if (HasDescriptorMethods(descriptor, context_->EnforceLite())) { in NewMessageGenerator()
63 return new ImmutableMessageGenerator(descriptor, context_); in NewMessageGenerator()
65 return new ImmutableMessageLiteGenerator(descriptor, context_); in NewMessageGenerator()
71 if (HasDescriptorMethods(descriptor->file(), context_->EnforceLite())) { in NewExtensionGenerator()
72 return new ImmutableExtensionGenerator(descriptor, context_); in NewExtensionGenerator()
74 return new ImmutableExtensionLiteGenerator(descriptor, context_); in NewExtensionGenerator()
80 return new ImmutableServiceGenerator(descriptor, context_); in NewServiceGenerator()
Djava_message.cc94 : MessageGenerator(descriptor), context_(context), in ImmutableMessageGenerator()
96 field_generators_(descriptor, context_) { in ImmutableMessageGenerator()
149 ImmutableMessageGenerator(descriptor_->nested_type(i), context_) in GenerateStaticVariables()
186 ImmutableMessageGenerator(descriptor_->nested_type(i), context_) in GenerateStaticVariableInitializers()
231 const FieldGeneratorInfo* info = context_->GetFieldGeneratorInfo(field); in GenerateFieldAccessorTableInitializer()
239 const OneofGeneratorInfo* info = context_->GetOneofGeneratorInfo(oneof); in GenerateFieldAccessorTableInitializer()
252 MaybePrintGeneratedAnnotation(context_, printer, descriptor_, in GenerateInterface()
286 context_->GetOneofGeneratorInfo( in GenerateInterface()
289 context_->GetNameResolver()->GetImmutableClassName( in GenerateInterface()
309 MaybePrintGeneratedAnnotation(context_, printer, descriptor_, in Generate()
[all …]
Djava_message_lite.cc87 : MessageGenerator(descriptor), context_(context), in ImmutableMessageLiteGenerator()
89 field_generators_(descriptor, context_) { in ImmutableMessageLiteGenerator()
102 ImmutableMessageLiteGenerator(descriptor_->nested_type(i), context_) in GenerateStaticVariables()
114 ImmutableMessageLiteGenerator(descriptor_->nested_type(i), context_) in GenerateStaticVariableInitializers()
123 MaybePrintGeneratedAnnotation(context_, printer, descriptor_, in GenerateInterface()
158 context_->GetOneofGeneratorInfo( in GenerateInterface()
161 context_->GetNameResolver()->GetImmutableClassName(descriptor_)); in GenerateInterface()
179 MaybePrintGeneratedAnnotation(context_, printer, descriptor_, in Generate()
211 EnumLiteGenerator(descriptor_->enum_type(i), true, context_) in Generate()
219 descriptor_->nested_type(i), context_); in Generate()
[all …]
Djava_message_builder.cc81 : descriptor_(descriptor), context_(context), in MessageBuilderGenerator()
83 field_generators_(descriptor, context_) { in MessageBuilderGenerator()
119 if (context_->HasGeneratedMethods(descriptor_)) { in Generate()
127 vars["oneof_name"] = context_->GetOneofGeneratorInfo( in Generate()
129 vars["oneof_capitalized_name"] = context_->GetOneofGeneratorInfo( in Generate()
241 const FieldGeneratorInfo* info = context_->GetFieldGeneratorInfo(field); in GenerateDescriptorMethods()
267 context_->GetFieldGeneratorInfo(field); in GenerateDescriptorMethods()
357 "oneof_name", context_->GetOneofGeneratorInfo( in GenerateCommonBuilderMethods()
444 "oneof_name", context_->GetOneofGeneratorInfo( in GenerateCommonBuilderMethods()
517 if (context_->HasGeneratedMethods(descriptor_)) { in GenerateCommonBuilderMethods()
[all …]
Djava_file.cc204 context_(new Context(file, options)), in FileGenerator()
205 name_resolver_(context_->GetNameResolver()), in FileGenerator()
210 new ImmutableGeneratorFactory(context_.get())); in FileGenerator()
284 if (HasDescriptorMethods(file_, context_->EnforceLite())) { in Generate()
303 if (HasDescriptorMethods(file_, context_->EnforceLite())) { in Generate()
304 EnumGenerator(file_->enum_type(i), immutable_api_, context_.get()) in Generate()
307 EnumLiteGenerator(file_->enum_type(i), immutable_api_, context_.get()) in Generate()
315 if (HasGenericServices(file_, context_->EnforceLite())) { in Generate()
341 if (HasDescriptorMethods(file_, context_->EnforceLite())) { in Generate()
590 if (HasDescriptorMethods(file_, context_->EnforceLite())) { in GenerateSiblings()
[all …]
Djava_message_builder_lite.cc81 : descriptor_(descriptor), context_(context), in MessageBuilderLiteGenerator()
83 field_generators_(descriptor, context_) { in MessageBuilderLiteGenerator()
111 vars["oneof_name"] = context_->GetOneofGeneratorInfo( in Generate()
113 vars["oneof_capitalized_name"] = context_->GetOneofGeneratorInfo( in Generate()
Djava_enum.cc67 context_(context), in EnumGenerator()
89 MaybePrintGeneratedAnnotation(context_, printer, descriptor_, immutable_api_); in Generate()
228 if (HasDescriptorMethods(descriptor_, context_->EnforceLite())) { in Generate()
365 if (HasDescriptorMethods(descriptor_, context_->EnforceLite()) && in Generate()
Djava_string_field_lite.h88 Context* context_; variable
146 Context* context_; variable
/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 IAaptContext* context_; member in aapt::ContextWrapper
[all …]
DResourceDeduper.cpp47 : 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::__anon734897eb0111::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::__anon5c5e3c5c0111::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::__anon5c5e3c5c0111::XmlVisitor
DTableMerger_test.cpp35 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 …]
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()
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()
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(
DXmlReferenceLinker_test.cpp29 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"(
DXmlCompatVersioner_test.cpp49 context_ = in SetUp()
74 std::unique_ptr<IAaptContext> context_; member in aapt::XmlCompatVersionerTest
78 auto doc = test::BuildXmlDomForPackageName(context_.get(), R"(
DReferenceLinker.cpp54 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::__anon9b947ceb0111::ReferenceLinkerVisitor
/frameworks/base/tools/aapt2/test/
DContext.h101 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/
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::__anon12def3180111::Visitor
/frameworks/base/startop/view_compiler/
Ddex_layout_compiler.cc47 context_{dex::Value::Parameter(0)},
86 dex::Instruction::InvokeStaticObject(layout_inflater_from.id, /*dest=*/inflater_, context_)); in Start()
93 method_->AddInstruction(dex::Instruction::InvokeVirtualObject(get_resources.id, xml_, context_)); in Start()
143 try_create_view_.id, view, inflater_, null, classname_tmp_, context_, attrs_)); in StartView()
147 try_create_view_.id, view, inflater_, GetCurrentView(), classname_tmp_, context_, attrs_)); in StartView()
160 context_, in StartView()
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp40 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 …]

123