Home
last modified time | relevance | path

Searched refs:table_ (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/tools/aapt2/
DResourceParser_test.cpp72 ResourceParser parser(context_->GetDiagnostics(), &table_, Source{"test"}, config, in TestParse()
88 ResourceTable table_; member in aapt::ResourceParserTest
95 String* str = test::GetValue<String>(&table_, "string/foo"); in TEST_F()
101 str = test::GetValue<String>(&table_, "string/bar"); in TEST_F()
137 StyledString* str = test::GetValue<StyledString>(&table_, "string/foo"); in TEST_F()
156 String* str = test::GetValue<String>(&table_, "string/foo"); in TEST_F()
163 str = test::GetValue<String>(&table_, "string/foo2"); in TEST_F()
172 String* str = test::GetValue<String>(&table_, "string/foo"); in TEST_F()
180 str = test::GetValue<String>(&table_, "string/foo2"); in TEST_F()
188 str = test::GetValue<String>(&table_, "string/foo3"); in TEST_F()
[all …]
DLoadedApk.h64 table_(std::move(table)), in LoadedApk()
78 return table_.get(); in GetResourceTable()
82 return table_.get(); in GetResourceTable()
121 std::unique_ptr<ResourceTable> table_; variable
DResourceParser.h121 ResourceTable* table_; variable
DResourceParser.cpp168 table_(table), in ResourceParser()
465 if (!AddResourcesToTable(table_, diag_, &parsed_resource)) { in ParseResources()
472 if (!table_->FindResource(stripped_resource)) { in ParseResources()
739 util::make_unique<StyledString>(table_->string_pool.MakeRef( in ParseXml()
750 table_->AddResource(name, {}, {}, std::move(id), diag_); in ParseXml()
768 table_->string_pool.MakeRef(style_string.str, StringPool::Context(config_))); in ParseXml()
781 table_->string_pool.MakeRef(util::TrimWhitespace(raw_value), in ParseXml()
DLoadedApk.cpp200 return WriteToArchive(context, table_.get(), options, &empty, writer); in WriteToArchive()
/frameworks/base/tools/aapt2/test/
DBuilders.cpp39 ResourceTablePackage* package = table_->CreatePackage(package_name, id); in SetPackageId()
73 return AddValue(name, id, util::make_unique<String>(table_->string_pool.MakeRef(str))); in AddString()
79 return AddValue(name, config, id, util::make_unique<String>(table_->string_pool.MakeRef(str))); in AddString()
92 auto file_ref = util::make_unique<FileReference>(table_->string_pool.MakeRef(path)); in AddFileReference()
101 auto file_ref = util::make_unique<FileReference>(table_->string_pool.MakeRef(path)); in AddFileReference()
121 CHECK(table_->AddResourceWithIdMangled(res_name, id, config, {}, std::move(value), in AddValue()
133 CHECK(table_->SetVisibilityWithIdMangled(res_name, visibility, id, GetDiagnostics())); in SetSymbolState()
134 CHECK(table_->SetAllowNewMangled(res_name, AllowNew{}, GetDiagnostics())); in SetSymbolState()
142 CHECK(table_->SetOverlayable(res_name, overlayable, GetDiagnostics())); in SetOverlayable()
147 return &table_->string_pool; in string_pool()
[all …]
DBuilders.h85 std::unique_ptr<ResourceTable> table_ = util::make_unique<ResourceTable>(); variable
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.cpp92 : diag_(diag), table_(table), source_(source), data_(data), data_len_(len), files_(files) { in BinaryResourceParser()
149 table_->string_pool.HintWillAdd(value_pool_.size(), value_pool_.styleCount()); in ParseTable()
196 table_->CreatePackage(util::Utf16ToUtf8(package_name), static_cast<uint8_t>(package_id)); in ParsePackage()
274 VisitAllValuesInTable(table_, &visitor); in ParsePackage()
360 } else if (table_->GetValidateResources()) { in ParseType()
396 if (!table_->AddResourceWithIdMangled(name, res_id, config, {}, std::move(resource_value), in ParseType()
404 if (!table_->SetVisibilityWithIdMangled(name, visibility, res_id, diag_)) { in ParseType()
432 table_->included_packages_[entries.valueAt(i)] = in ParseLibrary()
505 if (!table_->SetOverlayable(iter->second, overlayable_item, diag_)) { in ParseOverlayable()
519 value, &table_->string_pool); in ParseValue()
DBinaryResourceParser.h92 ResourceTable* table_; variable
/frameworks/base/tools/aapt2/process/
DSymbolTable.h176 explicit ResourceTableSymbolSource(ResourceTable* table) : table_(table) {} in ResourceTableSymbolSource()
186 ResourceTable* table_;
DSymbolTable.cpp186 Maybe<ResourceTable::SearchResult> result = table_->FindResource(name); in FindByName()
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator.h115 ResourceTable* table_; variable
DJavaClassGenerator.cpp192 : context_(context), table_(table), options_(options) {} in JavaClassGenerator()
606 for (const auto& package : table_->packages) { in Generate()