Lines Matching refs:android

26   ASSERT_FALSE(android::base::ParseInt("x", &i));  in TEST()
29 ASSERT_FALSE(android::base::ParseInt("123x", &i)); in TEST()
32 ASSERT_TRUE(android::base::ParseInt("123", &i)); in TEST()
36 EXPECT_TRUE(android::base::ParseInt(" 123", &i)); in TEST()
38 ASSERT_TRUE(android::base::ParseInt("-123", &i)); in TEST()
41 EXPECT_TRUE(android::base::ParseInt(" -123", &i)); in TEST()
45 ASSERT_TRUE(android::base::ParseInt("1234", &s)); in TEST()
48 ASSERT_TRUE(android::base::ParseInt("12", &i, 0, 15)); in TEST()
51 ASSERT_FALSE(android::base::ParseInt("-12", &i, 0, 15)); in TEST()
54 ASSERT_FALSE(android::base::ParseInt("16", &i, 0, 15)); in TEST()
58 ASSERT_FALSE(android::base::ParseInt<int>("x", nullptr)); in TEST()
61 ASSERT_FALSE(android::base::ParseInt<int>("123x", nullptr)); in TEST()
63 ASSERT_TRUE(android::base::ParseInt<int>("1234", nullptr)); in TEST()
69 ASSERT_FALSE(android::base::ParseUint("x", &i)); in TEST()
72 ASSERT_FALSE(android::base::ParseUint("123x", &i)); in TEST()
75 ASSERT_TRUE(android::base::ParseUint("123", &i)); in TEST()
79 EXPECT_TRUE(android::base::ParseUint(" 123", &i)); in TEST()
82 ASSERT_FALSE(android::base::ParseUint("-123", &i)); in TEST()
85 EXPECT_FALSE(android::base::ParseUint(" -123", &i)); in TEST()
89 ASSERT_TRUE(android::base::ParseUint("1234", &s)); in TEST()
92 ASSERT_TRUE(android::base::ParseUint("12", &i, 15u)); in TEST()
95 ASSERT_FALSE(android::base::ParseUint("-12", &i, 15u)); in TEST()
98 ASSERT_FALSE(android::base::ParseUint("16", &i, 15u)); in TEST()
102 ASSERT_FALSE(android::base::ParseUint<unsigned short>("x", nullptr)); in TEST()
105 ASSERT_FALSE(android::base::ParseUint<unsigned short>("123x", nullptr)); in TEST()
107 ASSERT_TRUE(android::base::ParseUint<unsigned short>("1234", nullptr)); in TEST()
111 EXPECT_FALSE(android::base::ParseUint("-123", &lli)); in TEST()
114 EXPECT_FALSE(android::base::ParseUint(" -123", &lli)); in TEST()
120 ASSERT_TRUE(android::base::ParseInt("0123", &i)); in TEST()
124 ASSERT_TRUE(android::base::ParseUint("0123", &u)); in TEST()
130 ASSERT_TRUE(android::base::ParseInt("0x123", &i)); in TEST()
133 EXPECT_TRUE(android::base::ParseInt(" 0x123", &i)); in TEST()
137 ASSERT_TRUE(android::base::ParseUint("0x123", &u)); in TEST()
140 EXPECT_TRUE(android::base::ParseUint(" 0x123", &u)); in TEST()
146 ASSERT_TRUE(android::base::ParseInt(std::string("123"), &i)); in TEST()
150 ASSERT_TRUE(android::base::ParseUint(std::string("123"), &u)); in TEST()
156 ASSERT_FALSE(android::base::ParseInt("456x", &i)); in TEST()
160 ASSERT_FALSE(android::base::ParseUint("456x", &u)); in TEST()
166 ASSERT_TRUE(android::base::ParseByteCount("123b", &i)); in TEST()
169 ASSERT_TRUE(android::base::ParseByteCount("8k", &i)); in TEST()
172 ASSERT_TRUE(android::base::ParseByteCount("8M", &i)); in TEST()
175 ASSERT_TRUE(android::base::ParseByteCount("6g", &i)); in TEST()
178 ASSERT_TRUE(android::base::ParseByteCount("1T", &i)); in TEST()
181 ASSERT_TRUE(android::base::ParseByteCount("2p", &i)); in TEST()
184 ASSERT_TRUE(android::base::ParseByteCount("4e", &i)); in TEST()
190 ASSERT_FALSE(android::base::ParseByteCount("1x", &u)); in TEST()
195 ASSERT_FALSE(android::base::ParseByteCount("4294967295E", &u64)); in TEST()
198 ASSERT_TRUE(android::base::ParseByteCount("63k", &u16)); in TEST()
200 ASSERT_TRUE(android::base::ParseByteCount("65535b", &u16)); in TEST()
202 ASSERT_FALSE(android::base::ParseByteCount("65k", &u16)); in TEST()