Home
last modified time | relevance | path

Searched refs:enum_attr (Results 1 – 3 of 3) 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()