Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/
DResourceParser_test.cpp350 Attribute* flag_attr = test::GetValue<Attribute>(&table_, "attr/foo"); in TEST_F() local
351 ASSERT_THAT(flag_attr, NotNull()); in TEST_F()
352 EXPECT_THAT(flag_attr->type_mask, Eq(ResTable_map::TYPE_FLAGS)); in TEST_F()
353 ASSERT_THAT(flag_attr->symbols, SizeIs(3)); in TEST_F()
355 ASSERT_TRUE(flag_attr->symbols[0].symbol.name); in TEST_F()
356 EXPECT_THAT(flag_attr->symbols[0].symbol.name.value().entry, Eq("bar")); in TEST_F()
357 EXPECT_THAT(flag_attr->symbols[0].value, Eq(0u)); in TEST_F()
359 ASSERT_TRUE(flag_attr->symbols[1].symbol.name); in TEST_F()
360 EXPECT_THAT(flag_attr->symbols[1].symbol.name.value().entry, Eq("bat")); in TEST_F()
361 EXPECT_THAT(flag_attr->symbols[1].value, Eq(1u)); in TEST_F()
[all …]
DResourceUtils.cpp346 std::unique_ptr<BinaryPrimitive> TryParseFlagSymbol(const Attribute* flag_attr, in TryParseFlagSymbol() argument
361 for (const Attribute::Symbol& symbol : flag_attr->symbols) { in TryParseFlagSymbol()