Home
last modified time | relevance | path

Searched refs:pb_table (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp72 pb::ResourceTable pb_table; in TEST() local
75 SerializeTableToPb(*table, &pb_table, context->GetDiagnostics()); in TEST()
76 ASSERT_TRUE(DeserializeTableFromPb(pb_table, &files, &new_table, &error)); in TEST()
175 pb::ResourceTable pb_table; in TEST() local
176 SerializeTableToPb(*table, &pb_table, context->GetDiagnostics()); in TEST()
185 ASSERT_TRUE(DeserializeTableFromPb(pb_table, &files, &new_table, &error)) << error; in TEST()
403 pb::ResourceTable pb_table; in TEST() local
404 SerializeTableToPb(*table, &pb_table, context->GetDiagnostics()); in TEST()
413 ASSERT_TRUE(DeserializeTableFromPb(pb_table, &files, &new_table, &error)); in TEST()
636 pb::ResourceTable pb_table; in TEST() local
[all …]
DProtoDeserialize.h56 bool DeserializeTableFromPb(const pb::ResourceTable& pb_table, io::IFileCollection* files,
DProtoDeserialize.cpp550 bool DeserializeTableFromPb(const pb::ResourceTable& pb_table, io::IFileCollection* files, in DeserializeTableFromPb() argument
557 if (pb_table.has_source_pool()) { in DeserializeTableFromPb()
558 status_t result = source_pool.setTo(pb_table.source_pool().data().data(), in DeserializeTableFromPb()
559 pb_table.source_pool().data().size()); in DeserializeTableFromPb()
566 for (const pb::DynamicRefTable& dynamic_ref : pb_table.dynamic_ref_table()) { in DeserializeTableFromPb()
573 for (const pb::Overlayable& pb_overlayable : pb_table.overlayable()) { in DeserializeTableFromPb()
581 for (const pb::Package& pb_package : pb_table.package()) { in DeserializeTableFromPb()
DProtoSerialize.cpp287 pb::ResourceTable* pb_table) { in SerializeOverlayableItemToPb() argument
299 pb::Overlayable* pb_overlayable = pb_table->add_overlayable(); in SerializeOverlayableItemToPb()
/frameworks/base/tools/aapt2/format/
DContainer_test.cpp51 pb::ResourceTable pb_table; in TEST() local
52 pb::Package* pb_pkg = pb_table.add_package(); in TEST()
55 ASSERT_TRUE(writer.AddResTableEntry(pb_table)); in TEST()
/frameworks/base/tools/aapt2/
DLoadedApk.cpp104 pb::ResourceTable pb_table; in LoadProtoApkFromFileCollection() local
112 if (!proto_reader.ReadMessage(&pb_table)) { in LoadProtoApkFromFileCollection()
119 if (!DeserializeTableFromPb(pb_table, collection.get(), table.get(), &error)) { in LoadProtoApkFromFileCollection()
279 pb::ResourceTable pb_table; in WriteToArchive() local
280 SerializeTableToPb(*split_table, &pb_table, context->GetDiagnostics(), in WriteToArchive()
283 &pb_table, in WriteToArchive()
/frameworks/base/tools/aapt2/cmd/
DDump.cpp171 pb::ResourceTable pb_table; in Action() local
172 if (!entry->GetResTable(&pb_table)) { in Action()
181 if (!DeserializeTableFromPb(pb_table, nullptr /*files*/, &table, &error)) { in Action()
DCompile_test.cpp346 pb::ResourceTable pb_table; in TEST_F() local
347 proto_reader.ReadMessage(&pb_table); in TEST_F()
349 const std::string pool_strings_proto = pb_table.source_pool().data(); in TEST_F()
DConvert.cpp165 pb::ResourceTable pb_table; in SerializeTable() local
166 SerializeTableToPb(*table, &pb_table, context_->GetDiagnostics()); in SerializeTable()
167 return io::CopyProtoToArchive(context_, &pb_table, kProtoResourceTablePath, in SerializeTable()
DCompile.cpp231 pb::ResourceTable pb_table; in CompileTable() local
232 SerializeTableToPb(table, &pb_table, context->GetDiagnostics()); in CompileTable()
233 if (!container_writer.AddResTableEntry(pb_table)) { in CompileTable()
DLink.cpp1207 pb::ResourceTable pb_table; in FlattenTable() local
1208 SerializeTableToPb(*table, &pb_table, context_->GetDiagnostics(), in FlattenTable()
1210 return io::CopyProtoToArchive(context_, &pb_table, kProtoResourceTablePath, in FlattenTable()
1629 pb::ResourceTable pb_table; in MergeFile() local
1630 if (!entry->GetResTable(&pb_table)) { in MergeFile()
1638 if (!DeserializeTableFromPb(pb_table, nullptr /*files*/, &table, &error)) { in MergeFile()