Home
last modified time | relevance | path

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

/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.cpp102 pb::ResourceTable pb_table; in LoadProtoApkFromFileCollection() local
110 if (!proto_reader.ReadMessage(&pb_table)) { in LoadProtoApkFromFileCollection()
117 if (!DeserializeTableFromPb(pb_table, collection.get(), table.get(), &error)) { in LoadProtoApkFromFileCollection()
270 pb::ResourceTable pb_table; in WriteToArchive() local
271 SerializeTableToPb(*split_table, &pb_table, context->GetDiagnostics()); in WriteToArchive()
273 &pb_table, in WriteToArchive()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp102 pb::ResourceTable pb_table; in TEST() local
103 SerializeTableToPb(*table, &pb_table, context->GetDiagnostics()); in TEST()
112 ASSERT_TRUE(DeserializeTableFromPb(pb_table, &files, &new_table, &error)) << error; in TEST()
327 pb::ResourceTable pb_table; in TEST() local
328 SerializeTableToPb(*table, &pb_table, context->GetDiagnostics()); in TEST()
337 ASSERT_TRUE(DeserializeTableFromPb(pb_table, &files, &new_table, &error)); in TEST()
550 pb::ResourceTable pb_table; in TEST() local
551 SerializeTableToPb(*table, &pb_table, context->GetDiagnostics()); in TEST()
556 ASSERT_TRUE(DeserializeTableFromPb(pb_table, &files, &new_table, &error)); in TEST()
DProtoDeserialize.h57 bool DeserializeTableFromPb(const pb::ResourceTable& pb_table, io::IFileCollection* files,
DProtoDeserialize.cpp533 bool DeserializeTableFromPb(const pb::ResourceTable& pb_table, io::IFileCollection* files, in DeserializeTableFromPb() argument
540 if (pb_table.has_source_pool()) { in DeserializeTableFromPb()
541 status_t result = source_pool.setTo(pb_table.source_pool().data().data(), in DeserializeTableFromPb()
542 pb_table.source_pool().data().size()); in DeserializeTableFromPb()
551 for (const pb::Overlayable& pb_overlayable : pb_table.overlayable()) { in DeserializeTableFromPb()
559 for (const pb::Package& pb_package : pb_table.package()) { in DeserializeTableFromPb()
DProtoSerialize.cpp278 pb::ResourceTable* pb_table) { in SerializeOverlayableItemToPb() argument
290 pb::Overlayable* pb_overlayable = pb_table->add_overlayable(); in SerializeOverlayableItemToPb()
/frameworks/base/tools/aapt2/cmd/
DDump.cpp165 pb::ResourceTable pb_table; in Action() local
166 if (!entry->GetResTable(&pb_table)) { in Action()
175 if (!DeserializeTableFromPb(pb_table, nullptr /*files*/, &table, &error)) { in Action()
DConvert.cpp160 pb::ResourceTable pb_table; in SerializeTable() local
161 SerializeTableToPb(*table, &pb_table, context_->GetDiagnostics()); in SerializeTable()
162 return io::CopyProtoToArchive(context_, &pb_table, kProtoResourceTablePath, in SerializeTable()
DCompile.cpp210 pb::ResourceTable pb_table; in CompileTable() local
211 SerializeTableToPb(table, &pb_table, context->GetDiagnostics()); in CompileTable()
212 if (!container_writer.AddResTableEntry(pb_table)) { in CompileTable()
DLink.cpp1067 pb::ResourceTable pb_table; in FlattenTable() local
1068 SerializeTableToPb(*table, &pb_table, context_->GetDiagnostics()); in FlattenTable()
1069 return io::CopyProtoToArchive(context_, &pb_table, kProtoResourceTablePath, in FlattenTable()
1479 pb::ResourceTable pb_table; in MergeFile() local
1480 if (!entry->GetResTable(&pb_table)) { in MergeFile()
1488 if (!DeserializeTableFromPb(pb_table, nullptr /*files*/, &table, &error)) { in MergeFile()