Searched refs:ParseByteCount (Results 1 – 5 of 5) sorted by relevance
/system/core/base/ |
D | parseint_test.cpp | 164 TEST(parseint, ParseByteCount) { in TEST() argument 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() [all …]
|
/system/core/base/include/android-base/ |
D | parseint.h | 83 bool ParseByteCount(const char* s, T* out, T max = std::numeric_limits<T>::max()) { 89 bool ParseByteCount(const std::string& s, T* out, T max = std::numeric_limits<T>::max()) { 90 return ParseByteCount(s.c_str(), out, max);
|
/system/core/init/ |
D | ueventd_parser.cpp | 27 using android::base::ParseByteCount; 115 if (!ParseByteCount(args[1], &parsed_size)) { in ParseUeventSocketRcvbufSizeLine()
|
/system/core/fs_mgr/ |
D | fs_mgr_fstab.cpp | 39 using android::base::ParseByteCount; 289 if (!ParseByteCount(arg, &size)) { in ParseFsMgrFlags() 327 if (!ParseByteCount(arg, &entry->zram_loopback_size)) { in ParseFsMgrFlags()
|
/system/core/fastboot/ |
D | fastboot.cpp | 1709 if (!android::base::ParseByteCount(optarg, &sparse_limit)) { in Main()
|