Home
last modified time | relevance | path

Searched refs:ParseByteCount (Results 1 – 6 of 6) sorted by relevance

/system/libbase/
Dparseint_test.cpp164 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/
Dparseint.h83 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/
Dueventd_parser.cpp27 using android::base::ParseByteCount;
139 if (!ParseByteCount(args[1], &parsed_size)) { in ParseUeventSocketRcvbufSizeLine()
/system/core/fs_mgr/
Dfs_mgr_fstab.cpp41 using android::base::ParseByteCount;
252 if (!ParseByteCount(arg, &size)) { in ParseFsMgrFlags()
293 if (!ParseByteCount(arg, &entry->zram_loopback_size)) { in ParseFsMgrFlags()
/system/core/logcat/
Dlogcat.cpp63 using android::base::ParseByteCount;
720 if (!ParseByteCount(optarg, &setLogSize) || setLogSize < 1) { in Run()
/system/core/fastboot/
Dfastboot.cpp1889 if (!android::base::ParseByteCount(optarg, &sparse_limit)) { in Main()