Searched refs:pb_package (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoDeserialize.cpp | 416 static bool DeserializePackageFromPb(const pb::Package& pb_package, const ResStringPool& src_pool, in DeserializePackageFromPb() argument 421 if (pb_package.has_package_id()) { in DeserializePackageFromPb() 422 id = static_cast<uint8_t>(pb_package.package_id().id()); in DeserializePackageFromPb() 428 out_table->CreatePackageAllowingDuplicateNames(pb_package.package_name(), id); in DeserializePackageFromPb() 429 for (const pb::Type& pb_type : pb_package.type()) { in DeserializePackageFromPb() 499 ResourceId resid(pb_package.package_id().id(), pb_type.type_id().id(), in DeserializePackageFromPb() 559 for (const pb::Package& pb_package : pb_table.package()) { in DeserializeTableFromPb() local 560 if (!DeserializePackageFromPb(pb_package, source_pool, files, overlayables, out_table, in DeserializeTableFromPb()
|
D | ProtoSerialize.cpp | 336 pb::Package* pb_package = out_table->add_package(); in SerializeTableToPb() local 338 pb_package->mutable_package_id()->set_id(package->id.value()); in SerializeTableToPb() 340 pb_package->set_package_name(package->name); in SerializeTableToPb() 343 pb::Type* pb_type = pb_package->add_type(); in SerializeTableToPb()
|