Home
last modified time | relevance | path

Searched refs:TryParseFloat (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/tools/aapt2/
DResourceUtils.h182 std::unique_ptr<BinaryPrimitive> TryParseFloat(const android::StringPiece& str);
DResourceValues_test.cpp234 EXPECT_TRUE(attr1.Matches(*ResourceUtils::TryParseFloat("23dp"))); in TEST()
DResourceUtils.cpp577 std::unique_ptr<BinaryPrimitive> TryParseFloat(const StringPiece& str) { in TryParseFloat() function
677 auto floating_point = TryParseFloat(value); in TryParseItemForAttribute()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp396 .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()