Home
last modified time | relevance | path

Searched refs:TryParseColor (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp314 .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()
/frameworks/base/tools/aapt2/link/
DReferenceLinker_test.cpp83 ResourceUtils::TryParseColor("#ff00ff")) in TEST()
162 ResourceUtils::TryParseColor("#ff0000")) in TEST()
236 ResourceUtils::TryParseColor("#ff00ff")) in TEST()
/frameworks/base/tools/aapt2/
DResourceValues_test.cpp229 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()
DResourceUtils.h159 std::unique_ptr<BinaryPrimitive> TryParseColor(const android::StringPiece& str);
DResourceUtils.cpp436 std::unique_ptr<BinaryPrimitive> TryParseColor(const StringPiece& str) { in TryParseColor() function
650 auto color = TryParseColor(value); in TryParseItemForAttribute()