Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/
DResourceParser_test.cpp411 Attribute* enum_attr = test::GetValue<Attribute>(&table_, "attr/foo"); in TEST_F() local
412 ASSERT_THAT(enum_attr, NotNull()); in TEST_F()
413 EXPECT_THAT(enum_attr->type_mask, Eq(ResTable_map::TYPE_ENUM)); in TEST_F()
414 ASSERT_THAT(enum_attr->symbols, SizeIs(3)); in TEST_F()
416 ASSERT_TRUE(enum_attr->symbols[0].symbol.name); in TEST_F()
417 EXPECT_THAT(enum_attr->symbols[0].symbol.name.value().entry, Eq("bar")); in TEST_F()
418 EXPECT_THAT(enum_attr->symbols[0].value, Eq(0u)); in TEST_F()
419 EXPECT_THAT(enum_attr->symbols[0].type, Eq(Res_value::TYPE_INT_DEC)); in TEST_F()
421 ASSERT_TRUE(enum_attr->symbols[1].symbol.name); in TEST_F()
422 EXPECT_THAT(enum_attr->symbols[1].symbol.name.value().entry, Eq("bat")); 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()