Searched refs:enum_attr (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/tools/aapt2/ |
D | ResourceParser_test.cpp | 409 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 …]
|
D | ResourceUtils.h | 189 std::unique_ptr<BinaryPrimitive> TryParseEnumSymbol(const Attribute* enum_attr, 196 std::unique_ptr<BinaryPrimitive> TryParseFlagSymbol(const Attribute* enum_attr,
|
D | ResourceUtils.cpp | 372 std::unique_ptr<BinaryPrimitive> TryParseEnumSymbol(const Attribute* enum_attr, in TryParseEnumSymbol() argument 375 for (const Attribute::Symbol& symbol : enum_attr->symbols) { in TryParseEnumSymbol()
|