Searched refs:ParseByteCount (Results 1 – 6 of 6) sorted by relevance
/system/libbase/ |
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/libbase/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; 139 if (!ParseByteCount(args[1], &parsed_size)) { in ParseUeventSocketRcvbufSizeLine()
|
/system/core/fs_mgr/ |
D | fs_mgr_fstab.cpp | 41 using android::base::ParseByteCount; 252 if (!ParseByteCount(arg, &size)) { in ParseFsMgrFlags() 293 if (!ParseByteCount(arg, &entry->zram_loopback_size)) { in ParseFsMgrFlags()
|
/system/core/logcat/ |
D | logcat.cpp | 63 using android::base::ParseByteCount; 720 if (!ParseByteCount(optarg, &setLogSize) || setLogSize < 1) { in Run()
|
/system/core/fastboot/ |
D | fastboot.cpp | 1889 if (!android::base::ParseByteCount(optarg, &sparse_limit)) { in Main()
|