/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoSerialize_test.cpp | 72 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 …]
|
D | ProtoDeserialize.h | 56 bool DeserializeTableFromPb(const pb::ResourceTable& pb_table, io::IFileCollection* files,
|
D | ProtoDeserialize.cpp | 550 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()
|
D | ProtoSerialize.cpp | 287 pb::ResourceTable* pb_table) { in SerializeOverlayableItemToPb() argument 299 pb::Overlayable* pb_overlayable = pb_table->add_overlayable(); in SerializeOverlayableItemToPb()
|
/frameworks/base/tools/aapt2/format/ |
D | Container_test.cpp | 51 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/ |
D | LoadedApk.cpp | 104 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/ |
D | Dump.cpp | 171 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()
|
D | Compile_test.cpp | 346 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()
|
D | Convert.cpp | 165 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()
|
D | Compile.cpp | 231 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()
|
D | Link.cpp | 1207 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()
|