/aosp12/packages/modules/DnsResolver/tests/ |
H A D | resolv_stats_test_utils.cpp | 58 using android::base::ParseInt; in fromNetworkDnsEventReportedStr() 94 if (protoField[1] == "event_type" && ParseInt(protoField[2], &value)) { in fromNetworkDnsEventReportedStr() 96 } else if (protoField[1] == "return_code" && ParseInt(protoField[2], &value)) { in fromNetworkDnsEventReportedStr() 115 if (protoField[1] == "rcode" && ParseInt(protoField[2], &value)) { in fromNetworkDnsEventReportedStr() 117 } else if (protoField[1] == "type" && ParseInt(protoField[2], &value)) { in fromNetworkDnsEventReportedStr() 119 } else if (protoField[1] == "cache_hit" && ParseInt(protoField[2], &value)) { in fromNetworkDnsEventReportedStr() 121 } else if (protoField[1] == "ip_version" && ParseInt(protoField[2], &value)) { in fromNetworkDnsEventReportedStr() 123 } else if (protoField[1] == "protocol" && ParseInt(protoField[2], &value)) { in fromNetworkDnsEventReportedStr() 125 } else if (protoField[1] == "retry_times" && ParseInt(protoField[2], &value)) { in fromNetworkDnsEventReportedStr() 129 } else if (protoField[1] == "connected" && ParseInt(protoField[2], &value)) { in fromNetworkDnsEventReportedStr() [all …]
|
/aosp12/system/libbase/ |
H A 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() 120 ASSERT_TRUE(android::base::ParseInt("0123", &i)); in TEST() 130 ASSERT_TRUE(android::base::ParseInt("0x123", &i)); in TEST() [all …]
|
/aosp12/packages/services/Car/cpp/watchdog/server/src/ |
H A D | UidIoStatsCollector.cpp | 39 using ::android::base::ParseInt; 51 !ParseInt(fields[3], &stats->metrics[READ_BYTES][FOREGROUND]) || in parseUidIoStats() 52 !ParseInt(fields[4], &stats->metrics[WRITE_BYTES][FOREGROUND]) || in parseUidIoStats() 53 !ParseInt(fields[7], &stats->metrics[READ_BYTES][BACKGROUND]) || in parseUidIoStats() 54 !ParseInt(fields[8], &stats->metrics[WRITE_BYTES][BACKGROUND]) || in parseUidIoStats() 55 !ParseInt(fields[9], &stats->metrics[FSYNC_COUNT][FOREGROUND]) || in parseUidIoStats() 56 !ParseInt(fields[10], &stats->metrics[FSYNC_COUNT][BACKGROUND])) { in parseUidIoStats()
|
H A D | UidProcStatsCollector.cpp | 40 using ::android::base::ParseInt; 176 !ParseInt(Split(contents["Uid"], "\t")[0], &uid)) { in readPidStatusFile() 179 if (contents.find("Tgid") == contents.end() || !ParseInt(contents["Tgid"], &tgid)) { in readPidStatusFile() 257 if (pidDir->d_type != DT_DIR || !ParseInt(pidDir->d_name, &pid)) { in readUidProcStatsLocked() 344 if (tidDir->d_type != DT_DIR || !ParseInt(tidDir->d_name, &tid) || tid == pid) { in readProcessStatsLocked()
|
H A D | ProcDiskStats.cpp | 36 using ::android::base::ParseInt; 74 if (fields.size() < 14 || !ParseInt(fields[0], &diskStats.major) || in parseDiskStatsLine() 75 !ParseInt(fields[1], &diskStats.minor) || in parseDiskStatsLine()
|
/aosp12/system/core/init/ |
H A D | service_parser.cpp | 46 using android::base::ParseInt; 114 if (!ParseInt(*window, &minutes, 0)) { in ParseCritical() 172 if (!ParseInt(args[1], &service_->proc_attr_.priority, in ParsePriority() 217 if (!ParseInt(args[2], &service_->proc_attr_.ioprio_pri, 0, 7)) { in ParseIoprio() 254 if (ParseInt(*it, &code, 0, KEY_MAX)) { in ParseKeycodes() 312 if (!ParseInt(args[1], &service_->swappiness_, 0)) { in ParseMemcgSwappiness() 319 if (!ParseInt(args[1], &service_->limit_in_bytes_, 0)) { in ParseMemcgLimitInBytes() 326 if (!ParseInt(args[1], &service_->limit_percent_, 0)) { in ParseMemcgLimitPercent() 338 if (!ParseInt(args[1], &service_->soft_limit_in_bytes_, 0)) { in ParseMemcgSoftLimitInBytes() 366 if (!ParseInt(args[1], &period, 5)) { in ParseRestartPeriod() [all …]
|
H A D | property_type.cpp | 24 using android::base::ParseInt; 51 return ParseInt(value, &parsed); in CheckType()
|
H A D | rlimit_parser.cpp | 23 using android::base::ParseInt; 41 if (ParseInt(args[1], &resource)) { in ParseRlimit()
|
H A 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()
|
/aosp12/packages/services/Car/cpp/watchdog/testclient/src/ |
H A D | main.cpp | 32 using android::base::ParseInt; 45 if (!ParseInt(strValue, ¶m.inactiveAfterInSec)) { in checkArgument() 49 if (!ParseInt(strValue, ¶m.terminateAfterInSec)) { in checkArgument()
|
/aosp12/system/core/fs_mgr/ |
H A D | fs_mgr_fstab.cpp | 43 using android::base::ParseInt; 133 if (!ParseInt(arg, &entry->reserved_size)) { in ParseMountFlags() 206 if (!ParseInt(parts[1], &entry->partnum)) { in ParseFsMgrFlags() 214 if (!ParseInt(arg, &entry->length)) { in ParseFsMgrFlags() 218 if (!ParseInt(arg, &entry->swap_prio)) { in ParseFsMgrFlags() 225 if (ParseInt(arg, &val, 0, 100)) { in ParseFsMgrFlags() 231 if (!ParseInt(arg, &entry->zram_size)) { in ParseFsMgrFlags() 248 if (!ParseInt(arg, &entry->max_comp_streams)) { in ParseFsMgrFlags() 261 if (ParseInt(arg, &val, 0, 16 * 1024)) { in ParseFsMgrFlags() 270 if (!ParseInt(arg, &val) || val < 4096 || (val & (val - 1)) != 0) { in ParseFsMgrFlags() [all …]
|
/aosp12/system/libbase/include/android-base/ |
H A 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);
|
/aosp12/packages/modules/DnsResolver/ |
H A D | util.cpp | 24 using android::base::ParseInt; 46 ParseInt(GetServerConfigurableFlag("netd_native", flagName, ""), &val); in getExperimentFlagInt()
|
/aosp12/system/core/mini_keyctl/ |
H A 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()
|
/aosp12/hardware/google/pixel/powerstats/dataproviders/ |
H A D | PowerStatsEnergyAttribution.cpp | 53 if (!::android::base::ParseInt(uidInfos[0], &uid)) { in readUidTimeInState() 63 if (!::android::base::ParseInt(*it, &uidStat)) { in readUidTimeInState()
|
/aosp12/system/extras/simpleperf/ |
H A D | utils.cpp | 45 using android::base::ParseInt; 391 if (!ParseInt(p, &cpu1, 0)) { in GetCpusFromString() 397 if (!ParseInt(p.substr(0, split_pos), &cpu1, 0) || in GetCpusFromString() 398 !ParseInt(p.substr(split_pos + 1), &cpu2, 0) || cpu1 > cpu2) { in GetCpusFromString() 414 if (!ParseInt(p.c_str(), &tid, 0)) { in GetTidsFromString()
|
H A D | ProbeEvents.cpp | 38 using android::base::ParseInt; 86 if (!ParseInt(args[1].substr(split_pos), &offset) || offset < 0) { in ParseKprobeEventName()
|
/aosp12/bootable/recovery/edify/ |
H A D | expr.cpp | 146 if (!android::base::ParseInt(val.c_str(), &v, 0)) { in SleepFn() 268 if (!android::base::ParseInt(args[0].c_str(), &l_int)) { in LessThanIntFn() 274 if (!android::base::ParseInt(args[1].c_str(), &r_int)) { in LessThanIntFn() 296 if (!android::base::ParseInt(args[0].c_str(), &l_int)) { in GreaterThanIntFn() 302 if (!android::base::ParseInt(args[1].c_str(), &r_int)) { in GreaterThanIntFn()
|
/aosp12/system/vold/ |
H A D | vdc.cpp | 156 if (!android::base::ParseInt(args[2], &retry)) exit(EINVAL); in main() 174 if (!android::base::ParseInt(args[3], &count)) exit(EINVAL); in main() 180 if (!android::base::ParseInt(args[2], &retry)) exit(EINVAL); in main()
|
H A D | Process.cpp | 101 if (!android::base::ParseInt(proc_de->d_name, &pid)) continue; in KillProcessesWithTmpfsMounts() 146 if (!android::base::ParseInt(proc_de->d_name, &pid)) continue; in KillProcessesWithOpenFiles()
|
/aosp12/packages/modules/adb/ |
H A D | socket_spec.cpp | 92 if (android::base::ParseInt(&spec[4], &port_value)) { in parse_tcp_socket_spec() 135 if (!android::base::ParseInt(fragments[1], &port)) { in get_host_socket_spec_port() 237 android::base::ParseInt(keepalive_env, &keepalive_interval, 0); in socket_spec_connect() 378 if (!android::base::ParseInt(fragments[1], &port)) {
|
/aosp12/system/iorap/src/prefetcher/ |
H A D | main.cc | 81 if (!::android::base::ParseInt(arg_next, /*out*/&arg_input_fd)) { in Main() 90 if (!::android::base::ParseInt(arg_next, /*out*/&arg_output_fd)) { in Main()
|
/aosp12/hardware/google/pixel/rebalance_interrupts/ |
H A D | rebalance_interrupts.cpp | 59 using android::base::ParseInt; 82 if (!ParseInt(cpus_as_string[i].c_str(), &cpu)) in Policy0AffectedCpus()
|
/aosp12/frameworks/base/core/jni/ |
H A D | android_os_SystemProperties.cpp | 102 android::base::ParseInt<T>(value, &ret); in SystemProperties_get_integral() 164 android::base::ParseInt<T>(value, &ret); in SystemProperties_get_integralH()
|
/aosp12/system/extras/simpleperf/simpleperf_app_runner/ |
H A D | simpleperf_app_runner.cpp | 42 using android::base::ParseInt; 146 if (!ParseInt(args[i + 1], &fd) || fd < 3 || fcntl(fd, F_GETFD) == -1) { in CheckSimpleperfArguments()
|