Home | History | Annotate | Download | only in aapt2

Lines Matching refs:styleable

149         <declare-styleable name="bar">
151 </declare-styleable>)EOF";
156 EXPECT_EQ(nullptr, test::getValueForConfig<Styleable>(&mTable, u"@styleable/bar", watchConfig));
160 EXPECT_NE(nullptr, test::getValue<Styleable>(&mTable, u"@styleable/bar"));
180 std::string input = "<declare-styleable name=\"Styleable\">\n"
182 "</declare-styleable>\n"
192 std::string input = "<declare-styleable name=\"Theme\">"
194 "</declare-styleable>\n"
195 "<declare-styleable name=\"Window\">\n"
197 "</declare-styleable>";
373 std::string input = "<declare-styleable name=\"foo\">\n"
379 "</declare-styleable>";
383 mTable.findResource(test::parseNameOrDie(u"@styleable/foo"));
402 Styleable* styleableStyleable>(&mTable, u"@styleable/foo");
403 ASSERT_NE(styleable, nullptr);
404 ASSERT_EQ(3u, styleable->entries.size());
406 EXPECT_EQ(test::parseNameOrDie(u"@attr/bar"), styleable->entries[0].name.value());
407 EXPECT_EQ(test::parseNameOrDie(u"@attr/bat"), styleable->entries[1].name.value());
411 std::string input = "<declare-styleable name=\"foo\" xmlns:privAndroid=\"http://schemas.android.com/apk/prv/res/android\">\n"
414 "</declare-styleable>";
416 Styleable* styleable = test::getValue<Styleable>(&mTable, u"@styleable/foo");
417 ASSERT_NE(nullptr, styleable);
418 ASSERT_EQ(2u, styleable->entries.size());
420 EXPECT_TRUE(styleable->entries[0].privateReference);
421 AAPT_ASSERT_TRUE(styleable->entries[0].name);
422 EXPECT_EQ(std::u16string(u"android"), styleable->entries[0].name.value().package);
424 EXPECT_TRUE(styleable->entries[1].privateReference);
425 AAPT_ASSERT_TRUE(styleable->entries[1].name);
426 EXPECT_EQ(std::u16string(u"android"), styleable->entries[1].name.value().package);
499 // We only care about declare-styleable and enum/flag attributes because comments
502 <declare-styleable name="foo">
505 </declare-styleable>
513 Styleable* styleable = test::getValue<Styleable>(&mTable, u"@styleable/foo");
514 ASSERT_NE(nullptr, styleable);
515 ASSERT_EQ(1u, styleable->entries.size());
517 EXPECT_EQ(StringPiece16(u"The name of the bar"), styleable->entries.front().getComment());