Lines Matching refs:Matches
233 EXPECT_FALSE(attr1.Matches(*ResourceUtils::TryParseColor("#7fff00"))); in TEST()
234 EXPECT_TRUE(attr1.Matches(*ResourceUtils::TryParseFloat("23dp"))); in TEST()
235 EXPECT_TRUE(attr1.Matches(*ResourceUtils::TryParseReference("@android:string/foo"))); in TEST()
241 EXPECT_FALSE(attr2.Matches(*ResourceUtils::TryParseColor("#7fff00"))); in TEST()
242 EXPECT_TRUE(attr2.Matches(BinaryPrimitive(TYPE_INT_DEC, static_cast<uint32_t>(-1)))); in TEST()
243 EXPECT_TRUE(attr2.Matches(BinaryPrimitive(TYPE_INT_DEC, 1u))); in TEST()
244 EXPECT_FALSE(attr2.Matches(BinaryPrimitive(TYPE_INT_DEC, static_cast<uint32_t>(-2)))); in TEST()
256 EXPECT_FALSE(attr3.Matches(*ResourceUtils::TryParseColor("#7fff00"))); in TEST()
257 EXPECT_TRUE(attr3.Matches(BinaryPrimitive(TYPE_INT_DEC, 0x01u | 0x02u))); in TEST()
258 EXPECT_TRUE(attr3.Matches(BinaryPrimitive(TYPE_INT_DEC, 0x01u | 0x02u | 0x80u))); in TEST()
261 EXPECT_TRUE(attr3.Matches(BinaryPrimitive(TYPE_INT_DEC, 0x08u))); in TEST()
264 EXPECT_FALSE(attr3.Matches(BinaryPrimitive(TYPE_INT_DEC, 127u))); in TEST()
269 EXPECT_TRUE(attr4.Matches(BinaryPrimitive(TYPE_INT_DEC, 0x01u))); in TEST()
270 EXPECT_FALSE(attr4.Matches(BinaryPrimitive(TYPE_INT_DEC, 0x02u))); in TEST()