Searched refs:enumAttr (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/tools/aapt2/ |
D | ResourceParser_test.cpp | 213 Attribute* enumAttr = test::getValue<Attribute>(&mTable, u"@attr/foo"); in TEST_F() local 214 ASSERT_NE(enumAttr, nullptr); in TEST_F() 215 EXPECT_EQ(enumAttr->typeMask, android::ResTable_map::TYPE_ENUM); in TEST_F() 216 ASSERT_EQ(enumAttr->symbols.size(), 3u); in TEST_F() 218 AAPT_ASSERT_TRUE(enumAttr->symbols[0].symbol.name); in TEST_F() 219 EXPECT_EQ(enumAttr->symbols[0].symbol.name.value().entry, u"bar"); in TEST_F() 220 EXPECT_EQ(enumAttr->symbols[0].value, 0u); in TEST_F() 222 AAPT_ASSERT_TRUE(enumAttr->symbols[1].symbol.name); in TEST_F() 223 EXPECT_EQ(enumAttr->symbols[1].symbol.name.value().entry, u"bat"); in TEST_F() 224 EXPECT_EQ(enumAttr->symbols[1].value, 1u); in TEST_F() [all …]
|
D | ResourceUtils.h | 134 std::unique_ptr<BinaryPrimitive> tryParseEnumSymbol(const Attribute* enumAttr, 141 std::unique_ptr<BinaryPrimitive> tryParseFlagSymbol(const Attribute* enumAttr,
|
D | ResourceUtils.cpp | 272 std::unique_ptr<BinaryPrimitive> tryParseEnumSymbol(const Attribute* enumAttr, in tryParseEnumSymbol() argument 275 for (const Attribute::Symbol& symbol : enumAttr->symbols) { in tryParseEnumSymbol()
|