Home
last modified time | relevance | path

Searched refs:enum_attr (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/tools/aapt2/
DResourceParser_test.cpp409 Attribute* enum_attr = test::GetValue<Attribute>(&table_, "attr/foo"); in TEST_F() local
410 ASSERT_THAT(enum_attr, NotNull()); in TEST_F()
411 EXPECT_THAT(enum_attr->type_mask, Eq(ResTable_map::TYPE_ENUM)); in TEST_F()
412 ASSERT_THAT(enum_attr->symbols, SizeIs(3)); in TEST_F()
414 ASSERT_TRUE(enum_attr->symbols[0].symbol.name); in TEST_F()
415 EXPECT_THAT(enum_attr->symbols[0].symbol.name.value().entry, Eq("bar")); in TEST_F()
416 EXPECT_THAT(enum_attr->symbols[0].value, Eq(0u)); in TEST_F()
418 ASSERT_TRUE(enum_attr->symbols[1].symbol.name); in TEST_F()
419 EXPECT_THAT(enum_attr->symbols[1].symbol.name.value().entry, Eq("bat")); in TEST_F()
420 EXPECT_THAT(enum_attr->symbols[1].value, Eq(1u)); in TEST_F()
[all …]
DResourceUtils.h189 std::unique_ptr<BinaryPrimitive> TryParseEnumSymbol(const Attribute* enum_attr,
196 std::unique_ptr<BinaryPrimitive> TryParseFlagSymbol(const Attribute* enum_attr,
DResourceUtils.cpp372 std::unique_ptr<BinaryPrimitive> TryParseEnumSymbol(const Attribute* enum_attr, in TryParseEnumSymbol() argument
375 for (const Attribute::Symbol& symbol : enum_attr->symbols) { in TryParseEnumSymbol()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/php/ext/google/protobuf/
Dupb.c11841 upb_handlerattr enum_attr = UPB_HANDLERATTR_INITIALIZER; in printer_sethandlers_mapentry() local
11842 set_enum_hd(h, value_field, &enum_attr); in printer_sethandlers_mapentry()
11843 upb_handlers_setint32(h, value_field, mapvalue_enum, &enum_attr); in printer_sethandlers_mapentry()
11844 upb_handlerattr_uninit(&enum_attr); in printer_sethandlers_mapentry()
11910 upb_handlerattr enum_attr = UPB_HANDLERATTR_INITIALIZER; in printer_sethandlers() local
11911 set_enum_hd(h, f, &enum_attr); in printer_sethandlers()
11914 upb_handlers_setint32(h, f, repeated_enum, &enum_attr); in printer_sethandlers()
11916 upb_handlers_setint32(h, f, scalar_enum, &enum_attr); in printer_sethandlers()
11919 upb_handlerattr_uninit(&enum_attr); in printer_sethandlers()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/ext/google/protobuf_c/
Dupb.c12660 upb_handlerattr enum_attr = UPB_HANDLERATTR_INITIALIZER; in printer_sethandlers_mapentry() local
12661 set_enum_hd(h, value_field, preserve_fieldnames, &enum_attr); in printer_sethandlers_mapentry()
12662 upb_handlers_setint32(h, value_field, mapvalue_enum, &enum_attr); in printer_sethandlers_mapentry()
12663 upb_handlerattr_uninit(&enum_attr); in printer_sethandlers_mapentry()
12730 upb_handlerattr enum_attr = UPB_HANDLERATTR_INITIALIZER; in printer_sethandlers() local
12731 set_enum_hd(h, f, preserve_fieldnames, &enum_attr); in printer_sethandlers()
12734 upb_handlers_setint32(h, f, repeated_enum, &enum_attr); in printer_sethandlers()
12736 upb_handlers_setint32(h, f, scalar_enum, &enum_attr); in printer_sethandlers()
12739 upb_handlerattr_uninit(&enum_attr); in printer_sethandlers()