Searched refs:TryParseColor (Results 1 – 5 of 5) sorted by relevance
81 ResourceUtils::TryParseColor("#ff00ff")) in TEST()159 ResourceUtils::TryParseColor("#ff0000")) in TEST()230 ResourceUtils::TryParseColor("#ff00ff")) in TEST()
233 EXPECT_FALSE(attr1.Matches(*ResourceUtils::TryParseColor("#7fff00"))); in TEST()241 EXPECT_FALSE(attr2.Matches(*ResourceUtils::TryParseColor("#7fff00"))); in TEST()256 EXPECT_FALSE(attr3.Matches(*ResourceUtils::TryParseColor("#7fff00"))); in TEST()
156 std::unique_ptr<BinaryPrimitive> TryParseColor(android::StringPiece str);
428 std::unique_ptr<BinaryPrimitive> TryParseColor(StringPiece str) { in TryParseColor() function645 auto color = TryParseColor(value); in TryParseItemForAttribute()
390 .AddValue("android:color/color_rgb8", ResourceUtils::TryParseColor("#AABBCC")) in TEST()391 .AddValue("android:color/color_argb8", ResourceUtils::TryParseColor("#11223344")) in TEST()392 .AddValue("android:color/color_rgb4", ResourceUtils::TryParseColor("#DEF")) in TEST()393 .AddValue("android:color/color_argb4", ResourceUtils::TryParseColor("#5678")) in TEST()432 EXPECT_THAT(bp->value.data, Eq(ResourceUtils::TryParseColor("#AABBCC")->value.data)); in TEST()438 EXPECT_THAT(bp->value.data, Eq(ResourceUtils::TryParseColor("#11223344")->value.data)); in TEST()444 EXPECT_THAT(bp->value.data, Eq(ResourceUtils::TryParseColor("#DEF")->value.data)); in TEST()450 EXPECT_THAT(bp->value.data, Eq(ResourceUtils::TryParseColor("#5678")->value.data)); in TEST()