Home
last modified time | relevance | path

Searched refs:flag_attr (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/tools/aapt2/
DResourceParser_test.cpp436 Attribute* flag_attr = test::GetValue<Attribute>(&table_, "attr/foo"); in TEST_F() local
437 ASSERT_THAT(flag_attr, NotNull()); in TEST_F()
438 EXPECT_THAT(flag_attr->type_mask, Eq(ResTable_map::TYPE_FLAGS)); in TEST_F()
439 ASSERT_THAT(flag_attr->symbols, SizeIs(3)); in TEST_F()
441 ASSERT_TRUE(flag_attr->symbols[0].symbol.name); in TEST_F()
442 EXPECT_THAT(flag_attr->symbols[0].symbol.name.value().entry, Eq("bar")); in TEST_F()
443 EXPECT_THAT(flag_attr->symbols[0].value, Eq(0u)); in TEST_F()
445 ASSERT_TRUE(flag_attr->symbols[1].symbol.name); in TEST_F()
446 EXPECT_THAT(flag_attr->symbols[1].symbol.name.value().entry, Eq("bat")); in TEST_F()
447 EXPECT_THAT(flag_attr->symbols[1].value, Eq(1u)); in TEST_F()
[all …]
DResourceUtils.cpp389 std::unique_ptr<BinaryPrimitive> TryParseFlagSymbol(const Attribute* flag_attr, in TryParseFlagSymbol() argument
404 for (const Attribute::Symbol& symbol : flag_attr->symbols) { in TryParseFlagSymbol()