Home
last modified time | relevance | path

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

/system/core/base/
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/core/base/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;
115 if (!ParseByteCount(args[1], &parsed_size)) { in ParseUeventSocketRcvbufSizeLine()
/system/core/fs_mgr/
Dfs_mgr_fstab.cpp39 using android::base::ParseByteCount;
289 if (!ParseByteCount(arg, &size)) { in ParseFsMgrFlags()
327 if (!ParseByteCount(arg, &entry->zram_loopback_size)) { in ParseFsMgrFlags()
/system/core/fastboot/
Dfastboot.cpp1709 if (!android::base::ParseByteCount(optarg, &sparse_limit)) { in Main()