Lines Matching refs:android
23 ASSERT_FALSE(android::base::ParseDouble("", &d)); in TEST()
24 ASSERT_FALSE(android::base::ParseDouble("x", &d)); in TEST()
25 ASSERT_FALSE(android::base::ParseDouble("123.4x", &d)); in TEST()
27 ASSERT_TRUE(android::base::ParseDouble("123.4", &d)); in TEST()
29 ASSERT_TRUE(android::base::ParseDouble("-123.4", &d)); in TEST()
32 ASSERT_TRUE(android::base::ParseDouble("0", &d, 0.0)); in TEST()
34 ASSERT_FALSE(android::base::ParseDouble("0", &d, 1e-9)); in TEST()
35 ASSERT_FALSE(android::base::ParseDouble("3.0", &d, -1.0, 2.0)); in TEST()
36 ASSERT_TRUE(android::base::ParseDouble("1.0", &d, 0.0, 2.0)); in TEST()
39 ASSERT_FALSE(android::base::ParseDouble("123.4x", nullptr)); in TEST()
40 ASSERT_TRUE(android::base::ParseDouble("-123.4", nullptr)); in TEST()
41 ASSERT_FALSE(android::base::ParseDouble("3.0", nullptr, -1.0, 2.0)); in TEST()
42 ASSERT_TRUE(android::base::ParseDouble("1.0", nullptr, 0.0, 2.0)); in TEST()
47 ASSERT_FALSE(android::base::ParseFloat("", &f)); in TEST()
48 ASSERT_FALSE(android::base::ParseFloat("x", &f)); in TEST()
49 ASSERT_FALSE(android::base::ParseFloat("123.4x", &f)); in TEST()
51 ASSERT_TRUE(android::base::ParseFloat("123.4", &f)); in TEST()
53 ASSERT_TRUE(android::base::ParseFloat("-123.4", &f)); in TEST()
56 ASSERT_TRUE(android::base::ParseFloat("0", &f, 0.0)); in TEST()
58 ASSERT_FALSE(android::base::ParseFloat("0", &f, 1e-9)); in TEST()
59 ASSERT_FALSE(android::base::ParseFloat("3.0", &f, -1.0, 2.0)); in TEST()
60 ASSERT_TRUE(android::base::ParseFloat("1.0", &f, 0.0, 2.0)); in TEST()
63 ASSERT_FALSE(android::base::ParseFloat("123.4x", nullptr)); in TEST()
64 ASSERT_TRUE(android::base::ParseFloat("-123.4", nullptr)); in TEST()
65 ASSERT_FALSE(android::base::ParseFloat("3.0", nullptr, -1.0, 2.0)); in TEST()
66 ASSERT_TRUE(android::base::ParseFloat("1.0", nullptr, 0.0, 2.0)); in TEST()