Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/cmd/
DDump.cpp63 pb::ResourceTable pb_table; in TryDumpFile() local
64 if (!pb_table.ParseFromArray(data->data(), data->size())) { in TryDumpFile()
69 table = DeserializeTableFromPb(pb_table, Source(file_path), context->GetDiagnostics()); in TryDumpFile()
105 pb::ResourceTable pb_table; in TryDumpFile() local
106 if (pb_table.ParseFromArray(file_map->getDataPtr(), file_map->getDataLength())) { in TryDumpFile()
107 table = DeserializeTableFromPb(pb_table, Source(file_path), context->GetDiagnostics()); in TryDumpFile()
DCompile.cpp260 std::unique_ptr<pb::ResourceTable> pb_table = SerializeTableToPb(&table); in CompileTable() local
261 if (!pb_table->SerializeToZeroCopyStream(&copying_adaptor)) { in CompileTable()
DLink.cpp274 pb::ResourceTable pb_table; in LoadTableFromPb() local
275 if (!pb_table.ParseFromArray(data, len)) { in LoadTableFromPb()
280 std::unique_ptr<ResourceTable> table = DeserializeTableFromPb(pb_table, source, diag); in LoadTableFromPb()
912 std::unique_ptr<pb::ResourceTable> pb_table = SerializeTableToPb(table); in FlattenTableToPb() local
913 return io::CopyProtoToArchive(context_, pb_table.get(), "resources.arsc.flat", 0, writer); in FlattenTableToPb()
/frameworks/base/tools/aapt2/proto/
DTableProtoDeserializer.cpp391 const pb::ResourceTable& pb_table, const Source& source, in DeserializeTableFromPb() argument
400 if (!pb_table.has_string_pool()) { in DeserializeTableFromPb()
406 status_t result = value_pool.setTo(pb_table.string_pool().data().data(), in DeserializeTableFromPb()
407 pb_table.string_pool().data().size()); in DeserializeTableFromPb()
414 if (pb_table.has_source_pool()) { in DeserializeTableFromPb()
415 result = source_pool.setTo(pb_table.source_pool().data().data(), in DeserializeTableFromPb()
416 pb_table.source_pool().data().size()); in DeserializeTableFromPb()
424 if (pb_table.has_symbol_pool()) { in DeserializeTableFromPb()
425 result = symbol_pool.setTo(pb_table.symbol_pool().data().data(), in DeserializeTableFromPb()
426 pb_table.symbol_pool().data().size()); in DeserializeTableFromPb()
[all …]
DTableProtoSerializer.cpp224 auto pb_table = util::make_unique<pb::ResourceTable>(); in SerializeTableToPb() local
225 SerializeStringPoolToPb(table->string_pool, pb_table->mutable_string_pool()); in SerializeTableToPb()
230 pb::Package* pb_package = pb_table->add_packages(); in SerializeTableToPb()
282 SerializeStringPoolToPb(source_pool, pb_table->mutable_source_pool()); in SerializeTableToPb()
283 SerializeStringPoolToPb(symbol_pool, pb_table->mutable_symbol_pool()); in SerializeTableToPb()
284 return pb_table; in SerializeTableToPb()
DTableProtoSerializer_test.cpp79 std::unique_ptr<pb::ResourceTable> pb_table = SerializeTableToPb(table.get()); in TEST() local
80 ASSERT_NE(nullptr, pb_table); in TEST()
83 *pb_table, Source{"test"}, context->GetDiagnostics()); in TEST()