Searched refs:TryParseColor (Results 1 – 5 of 5) sorted by relevance
314 .AddValue("android:color/color_rgb8", ResourceUtils::TryParseColor("#AABBCC")) in TEST()315 .AddValue("android:color/color_argb8", ResourceUtils::TryParseColor("#11223344")) in TEST()316 .AddValue("android:color/color_rgb4", ResourceUtils::TryParseColor("#DEF")) in TEST()317 .AddValue("android:color/color_argb4", ResourceUtils::TryParseColor("#5678")) in TEST()356 EXPECT_THAT(bp->value.data, Eq(ResourceUtils::TryParseColor("#AABBCC")->value.data)); in TEST()362 EXPECT_THAT(bp->value.data, Eq(ResourceUtils::TryParseColor("#11223344")->value.data)); in TEST()368 EXPECT_THAT(bp->value.data, Eq(ResourceUtils::TryParseColor("#DEF")->value.data)); in TEST()374 EXPECT_THAT(bp->value.data, Eq(ResourceUtils::TryParseColor("#5678")->value.data)); in TEST()
83 ResourceUtils::TryParseColor("#ff00ff")) in TEST()162 ResourceUtils::TryParseColor("#ff0000")) in TEST()236 ResourceUtils::TryParseColor("#ff00ff")) in TEST()
229 EXPECT_FALSE(attr1.Matches(*ResourceUtils::TryParseColor("#7fff00"))); in TEST()237 EXPECT_FALSE(attr2.Matches(*ResourceUtils::TryParseColor("#7fff00"))); in TEST()252 EXPECT_FALSE(attr3.Matches(*ResourceUtils::TryParseColor("#7fff00"))); in TEST()
159 std::unique_ptr<BinaryPrimitive> TryParseColor(const android::StringPiece& str);
436 std::unique_ptr<BinaryPrimitive> TryParseColor(const StringPiece& str) { in TryParseColor() function650 auto color = TryParseColor(value); in TryParseItemForAttribute()