Home
last modified time | relevance | path

Searched refs:pb_type (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/tools/aapt2/format/proto/
DProtoDeserialize.cpp432 for (const pb::Type& pb_type : pb_package.type()) { in DeserializePackageFromPb() local
433 auto res_type = ParseResourceNamedType(pb_type.name()); in DeserializePackageFromPb()
436 error << "unknown type '" << pb_type.name() << "'"; in DeserializePackageFromPb()
443 for (const pb::Entry& pb_entry : pb_type.entry()) { in DeserializePackageFromPb()
447 pb_type.has_type_id() ? static_cast<uint8_t>(pb_type.type_id().id()) : 0u, in DeserializePackageFromPb()
493 pb_type.name().c_str(), pb_entry.name().c_str()); in DeserializePackageFromPb()
516 ResourceId resid(pb_package.package_id().id(), pb_type.type_id().id(), in DeserializePackageFromPb()
643 static Reference::Type DeserializeReferenceTypeFromPb(const pb::Reference_Type& pb_type) { in DeserializeReferenceTypeFromPb() argument
644 switch (pb_type) { in DeserializeReferenceTypeFromPb()
DProtoSerialize.cpp368 pb::Type* pb_type = pb_package->add_type(); in SerializeTableToPb() local
370 pb_type->mutable_type_id()->set_id(type.id.value()); in SerializeTableToPb()
372 pb_type->set_name(type.named_type.to_string()); in SerializeTableToPb()
375 pb::Entry* pb_entry = pb_type->add_entry(); in SerializeTableToPb()