Searched refs:Matches (Results 1 – 4 of 4) sorted by relevance
229 EXPECT_FALSE(attr1.Matches(*ResourceUtils::TryParseColor("#7fff00"))); in TEST()230 EXPECT_TRUE(attr1.Matches(*ResourceUtils::TryParseFloat("23dp"))); in TEST()231 EXPECT_TRUE(attr1.Matches(*ResourceUtils::TryParseReference("@android:string/foo"))); in TEST()237 EXPECT_FALSE(attr2.Matches(*ResourceUtils::TryParseColor("#7fff00"))); in TEST()238 EXPECT_TRUE(attr2.Matches(BinaryPrimitive(TYPE_INT_DEC, static_cast<uint32_t>(-1)))); in TEST()239 EXPECT_TRUE(attr2.Matches(BinaryPrimitive(TYPE_INT_DEC, 1u))); in TEST()240 EXPECT_FALSE(attr2.Matches(BinaryPrimitive(TYPE_INT_DEC, static_cast<uint32_t>(-2)))); in TEST()252 EXPECT_FALSE(attr3.Matches(*ResourceUtils::TryParseColor("#7fff00"))); in TEST()253 EXPECT_TRUE(attr3.Matches(BinaryPrimitive(TYPE_INT_DEC, 0x01u | 0x02u))); in TEST()254 EXPECT_TRUE(attr3.Matches(BinaryPrimitive(TYPE_INT_DEC, 0x01u | 0x02u | 0x80u))); in TEST()[all …]
316 bool Matches(const Item& item, DiagMessage* out_msg = nullptr) const;
763 bool Attribute::Matches(const Item& item, DiagMessage* out_msg) const { in Matches() function in aapt::Attribute
99 if (!symbol->attribute->Matches(*entry.value, nullptr)) { in Visit()105 symbol->attribute->Matches(*entry.value, &msg); in Visit()