Searched refs:TryParseFloat (Results 1 – 4 of 4) sorted by relevance
182 std::unique_ptr<BinaryPrimitive> TryParseFloat(const android::StringPiece& str);
234 EXPECT_TRUE(attr1.Matches(*ResourceUtils::TryParseFloat("23dp"))); in TEST()
577 std::unique_ptr<BinaryPrimitive> TryParseFloat(const StringPiece& str) { in TryParseFloat() function677 auto floating_point = TryParseFloat(value); in TryParseItemForAttribute()
396 .AddValue("android:dimen/dimen_1.39mm", ResourceUtils::TryParseFloat("1.39mm")) in TEST()397 .AddValue("android:fraction/fraction_27", ResourceUtils::TryParseFloat("27%")) in TEST()398 .AddValue("android:dimen/neg_2.3in", ResourceUtils::TryParseFloat("-2.3in")) in TEST()473 EXPECT_THAT(bp->value.data, Eq(ResourceUtils::TryParseFloat("1.39mm")->value.data)); in TEST()479 EXPECT_THAT(bp->value.data, Eq(ResourceUtils::TryParseFloat("27%")->value.data)); in TEST()485 EXPECT_THAT(bp->value.data, Eq(ResourceUtils::TryParseFloat("-2.3in")->value.data)); in TEST()