Searched refs:pb_item (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoSerialize_test.cpp | 632 pb::Item pb_item; in TEST() local 633 SerializeItemToPb(ref, &pb_item); in TEST() 635 ASSERT_TRUE(pb_item.has_ref()); in TEST() 636 EXPECT_EQ(pb_item.ref().id(), ref.id.value().id); in TEST() 637 EXPECT_TRUE(pb_item.ref().is_dynamic().value()); in TEST() 639 std::unique_ptr<Item> item = DeserializeItemFromPb(pb_item, android::ResStringPool(), in TEST() 650 pb::Item pb_item; in TEST() local 651 SerializeItemToPb(ref, &pb_item); in TEST() 653 ASSERT_TRUE(pb_item.has_ref()); in TEST() 654 EXPECT_EQ(pb_item.ref().id(), ref.id.value().id); in TEST() [all …]
|
D | ProtoDeserialize.cpp | 662 static void DeserializeItemMetaDataFromPb(const T& pb_item, const android::ResStringPool& src_pool, in DeserializeItemMetaDataFromPb() argument 664 if (pb_item.has_source()) { in DeserializeItemMetaDataFromPb() 666 DeserializeSourceFromPb(pb_item.source(), src_pool, &source); in DeserializeItemMetaDataFromPb() 669 out_value->SetComment(pb_item.comment()); in DeserializeItemMetaDataFromPb() 819 std::unique_ptr<Item> DeserializeItemFromPb(const pb::Item& pb_item, in DeserializeItemFromPb() argument 823 switch (pb_item.value_case()) { in DeserializeItemFromPb() 825 const pb::Reference& pb_ref = pb_item.ref(); in DeserializeItemFromPb() 834 const pb::Primitive& pb_prim = pb_item.prim(); in DeserializeItemFromPb() 911 value_pool->MakeRef(pb_item.str().value(), StringPool::Context(config))); in DeserializeItemFromPb() 916 value_pool->MakeRef(pb_item.raw_str().value(), StringPool::Context(config))); in DeserializeItemFromPb() [all …]
|
D | ProtoDeserialize.h | 41 std::unique_ptr<Item> DeserializeItemFromPb(const pb::Item& pb_item,
|
D | ProtoSerialize.cpp | 432 static void SerializeItemMetaDataToPb(const Item& item, T* pb_item, StringPool* src_pool) { in SerializeItemMetaDataToPb() argument 434 SerializeSourceToPb(item.GetSource(), src_pool, pb_item->mutable_source()); in SerializeItemMetaDataToPb() 436 pb_item->set_comment(item.GetComment()); in SerializeItemMetaDataToPb()
|