/system/libbase/ |
D | parseint_test.cpp | 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() [all …]
|
/system/core/init/ |
D | property_type.cpp | 24 using android::base::ParseInt; 51 return ParseInt(value, &parsed); in CheckType()
|
D | rlimit_parser.cpp | 23 using android::base::ParseInt; 41 if (ParseInt(args[1], &resource)) { in ParseRlimit()
|
D | service_parser.cpp | 46 using android::base::ParseInt; 139 if (!ParseInt(args[1], &service_->proc_attr_.priority, in ParsePriority() 184 if (!ParseInt(args[2], &service_->proc_attr_.ioprio_pri, 0, 7)) { in ParseIoprio() 221 if (ParseInt(*it, &code, 0, KEY_MAX)) { in ParseKeycodes() 265 if (!ParseInt(args[1], &service_->oom_score_adjust_, MIN_OOM_SCORE_ADJUST, in ParseOomScoreAdjust() 279 if (!ParseInt(args[1], &service_->swappiness_, 0)) { in ParseMemcgSwappiness() 286 if (!ParseInt(args[1], &service_->limit_in_bytes_, 0)) { in ParseMemcgLimitInBytes() 293 if (!ParseInt(args[1], &service_->limit_percent_, 0)) { in ParseMemcgLimitPercent() 305 if (!ParseInt(args[1], &service_->soft_limit_in_bytes_, 0)) { in ParseMemcgSoftLimitInBytes() 333 if (!ParseInt(args[1], &period, 5)) { in ParseRestartPeriod() [all …]
|
D | check_builtins.cpp | 40 using android::base::ParseInt; 119 ParseInt(args[1], &log_level); in check_loglevel() 217 if (!android::base::ParseInt(args[1], &tz.tz_minuteswest)) { in check_sysclktz()
|
D | host_init_verifier.cpp | 54 using android::base::ParseInt; 78 if (!ParseInt(split_line[2], &uid)) { in GetVendorPasswd()
|
/system/core/libkeyutils/mini_keyctl/ |
D | mini_keyctl_utils.cpp | 48 if (android::base::ParseInt(keyring_desc.c_str(), &keyring_id)) { in GetKeyringId() 74 if (!android::base::ParseInt(key_id.c_str(), &keyring_id)) { in GetKeyringId()
|
D | mini_keyctl.cpp | 51 if (!android::base::ParseInt(str, &key)) { in parseKeyOrDie()
|
/system/libbase/include/android-base/ |
D | parseint.h | 98 bool ParseInt(const char* s, T* out, 129 bool ParseInt(const std::string& s, T* out, 132 return ParseInt(s.c_str(), out, min, max);
|
/system/core/fs_mgr/ |
D | fs_mgr_fstab.cpp | 42 using android::base::ParseInt; 134 if (!ParseInt(arg, &entry->reserved_size)) { in ParseMountFlags() 204 if (!ParseInt(parts[1], &entry->partnum)) { in ParseFsMgrFlags() 212 if (!ParseInt(arg, &entry->length)) { in ParseFsMgrFlags() 216 if (!ParseInt(arg, &entry->swap_prio)) { in ParseFsMgrFlags() 223 if (ParseInt(arg, &val, 0, 100)) { in ParseFsMgrFlags() 229 if (!ParseInt(arg, &entry->zram_size)) { in ParseFsMgrFlags() 246 if (!ParseInt(arg, &entry->max_comp_streams)) { in ParseFsMgrFlags() 261 if (!ParseInt(arg, &val) || val < 4096 || (val & (val - 1)) != 0) { in ParseFsMgrFlags() 270 if (!ParseInt(arg, &val) || val < 4096 || (val & (val - 1)) != 0) { in ParseFsMgrFlags()
|
/system/vold/ |
D | vdc.cpp | 125 if (!android::base::ParseInt(args[2], &retry)) exit(EINVAL); in main() 143 if (!android::base::ParseInt(args[3], &count)) exit(EINVAL); in main() 149 if (!android::base::ParseInt(args[2], &retry)) exit(EINVAL); in main()
|
D | Process.cpp | 98 if (!android::base::ParseInt(proc_de->d_name, &pid)) continue; in KillProcessesWithOpenFiles()
|
/system/extras/simpleperf/simpleperf_app_runner/ |
D | simpleperf_app_runner.cpp | 41 using android::base::ParseInt; 143 if (!ParseInt(args[i + 1], &fd) || fd < 3 || fcntl(fd, F_GETFD) == -1) { in CheckSimpleperfArguments()
|
/system/core/debuggerd/ |
D | debuggerd.cpp | 78 if (!android::base::ParseInt(argv[argc - 1], &pid, 1, std::numeric_limits<pid_t>::max())) { in main()
|
D | crash_dump.cpp | 241 if (!android::base::ParseInt(argv[1], &g_target_thread, 1, std::numeric_limits<pid_t>::max())) { in ParseArgs() 245 if (!android::base::ParseInt(argv[2], pseudothread_tid, 1, std::numeric_limits<pid_t>::max())) { in ParseArgs() 250 if (!android::base::ParseInt(argv[3], &dump_type_int, 0, 1)) { in ParseArgs()
|
/system/memory/libmemtrack/ |
D | memtrack_test.cpp | 57 if (!::android::base::ParseInt(de.path().filename().string(), &pid)) { in main()
|
/system/gsid/ |
D | libgsi.cpp | 133 return android::base::ParseInt(boot_key, attempts); in GetBootAttempts()
|
/system/core/adb/ |
D | socket_spec.cpp | 91 if (android::base::ParseInt(&spec[4], &port_value)) { in parse_tcp_socket_spec() 134 if (!android::base::ParseInt(fragments[1], &port)) { in get_host_socket_spec_port() 362 if (!android::base::ParseInt(fragments[1], &port)) {
|
D | adb_utils.cpp | 257 if (!android::base::ParseInt(&source[4], &port) || port < 0) { in forward_targets_are_valid() 266 if (!android::base::ParseInt(&dest[4], &port) || port <= 0) { in forward_targets_are_valid()
|
/system/apex/apexd/ |
D | apex_database.cpp | 38 using android::base::ParseInt; 116 if (!ParseInt(split[1], &version)) { in parseMountPoint()
|
/system/core/libprocinfo/include/procinfo/ |
D | process.h | 85 if (!android::base::ParseInt(dent->d_name, &tid, 1, std::numeric_limits<pid_t>::max())) {
|
/system/vold/model/ |
D | Disk.cpp | 254 if (!android::base::ParseInt(tmp, &manfid)) { in readMetadata() 348 if (!android::base::ParseInt(*it, &i, 1, maxMinors)) { in readPartitions() 357 if (!android::base::ParseInt("0x" + *it, &type)) { in readPartitions()
|
/system/core/fastboot/device/ |
D | tcp_client.cpp | 160 if (!android::base::ParseInt(buffer + 2, &version) || version < kProtocolVersion) { in ListenFastbootSocket()
|
/system/extras/simpleperf/ |
D | environment.cpp | 229 if (!android::base::ParseInt(entry.c_str(), &pid, 0)) { in GetAllProcesses() 264 if (!android::base::ParseInt(s.c_str(), &tid, 0)) { in GetValidThreadsFromThreadString() 294 if (!android::base::ParseInt(s.c_str(), value)) { in ReadPerfEventAllowStatus() 483 if (!android::base::ParseInt(s.c_str(), &value)) { in CheckKernelSymbolAddresses()
|
/system/core/logd/ |
D | ReplayMessages.cpp | 39 using android::base::ParseInt; 300 if (!ParseInt(string_id, &result, 0, 7)) { in PrintLogs()
|