Home
last modified time | relevance | path

Searched refs:optarg (Results 1 – 25 of 70) sorted by relevance

123

/system/bt/test/headless/
Dget_options.cc56 char* optarg, std::list<std::string>& string_list) { in ParseValue() argument
57 CHECK(optarg != nullptr); in ParseValue()
58 char* p = optarg; in ParseValue()
59 char* pp = optarg; in ParseValue()
72 char* optarg) { in ProcessOption() argument
78 if (!optarg) return; in ProcessOption()
79 ParseValue(optarg, string_list); in ProcessOption()
89 loop_ = std::stoul(optarg, nullptr, 0); in ProcessOption()
92 if (!optarg) return; in ProcessOption()
93 ParseValue(optarg, string_list); in ProcessOption()
[all …]
Dget_options.h52 void ParseValue(char* optarg, std::list<std::string>& my_list);
53 void ProcessOption(int option_index, char* optarg);
/system/core/reboot/
Dreboot.c30 char* optarg = ""; in main() local
58 optarg = argv[optind]; in main()
59 if (!optarg || !optarg[0]) optarg = "shell"; in main()
61 prop_len = snprintf(property_val, sizeof(property_val), "%s,%s", cmd, optarg); in main()
63 fprintf(stderr, "%s command too long: %s\n", cmd, optarg); in main()
/system/libvintf/
Dassemble_vintf_main.cpp89 for (const auto& inFilePath : ::android::base::Split(optarg, ":")) { in main()
98 outFilePath = optarg; in main()
99 if (!assembleVintf->openOutFile(optarg)) { in main()
100 std::cerr << "Failed to open " << optarg << std::endl; in main()
110 if (!assembleVintf->openCheckFile(optarg)) { in main()
111 std::cerr << "Failed to open " << optarg << std::endl; in main()
117 if (!assembleVintf->addKernel(optarg)) { in main()
/system/extras/verity/
Dbuild_verity_tree_main.cpp75 salt.insert(salt.end(), optarg, &optarg[strlen(optarg)]); in main()
78 if (!HashTreeBuilder::ParseBytesArrayFromString(optarg, &salt)) { in main()
89 if (!android::base::ParseUint(optarg, &calculate_size, in main()
91 LOG(ERROR) << "Invalid input size: " << optarg; in main()
102 hash_algorithm = optarg; in main()
/system/teeui/test/
Dteeui_device_config.cpp109 width = atoi(optarg); in initFromOptions()
112 height = atoi(optarg); in initFromOptions()
115 numeric_value = strtod(optarg, NULL); in initFromOptions()
119 numeric_value = strtod(optarg, NULL); in initFromOptions()
123 numeric_value = strtod(optarg, NULL); in initFromOptions()
127 numeric_value = strtod(optarg, NULL); in initFromOptions()
131 numeric_value = strtod(optarg, NULL); in initFromOptions()
135 numeric_value = strtod(optarg, NULL); in initFromOptions()
/system/extras/partition_tools/
Dlpmake.cc158 if (!android::base::ParseUint(optarg, &blockdevice_size) || !blockdevice_size) { in main()
165 if (!android::base::ParseUint(optarg, &metadata_size)) { in main()
171 if (!android::base::ParseUint(optarg, &metadata_slots)) { in main()
177 partitions.push_back(optarg); in main()
180 groups.push_back(optarg); in main()
183 output_path = optarg; in main()
186 if (!android::base::ParseUint(optarg, &alignment_offset)) { in main()
193 if (!android::base::ParseUint(optarg, &alignment)) { in main()
203 if (!android::base::ParseUint(optarg, &block_size) || !block_size) { in main()
210 char* separator = strchr(optarg, '='); in main()
[all …]
/system/core/logcat/
Dlogcat.cpp610 if (!ParseUint(optarg, &pid) || pid < 1) { in Run()
612 long_options[option_index].name, optarg); in Run()
620 if (optarg && (!ParseUint(optarg, &timeout) || timeout < 1)) { in Run()
622 long_options[option_index].name, optarg); in Run()
640 setId = (optarg && optarg[0]) ? optarg : nullptr; in Run()
643 auto uid_strings = Split(optarg, delimiters); in Run()
677 if (strspn(optarg, "0123456789") != strlen(optarg)) { in Run()
678 char* cp = parseTime(tail_time, optarg); in Run()
680 error(EXIT_FAILURE, 0, "-%c '%s' not in time format.", c, optarg); in Run()
685 fprintf(stderr, "WARNING: -%c '%s' '%c%s' time truncated\n", c, optarg, ch, in Run()
[all …]
/system/memory/libion/
Dion_test.c238 len = atol(optarg); in main()
241 align = atol(optarg); in main()
245 map_flags |= strstr(optarg, "PROT_EXEC") ? PROT_EXEC : 0; in main()
246 map_flags |= strstr(optarg, "PROT_READ") ? PROT_READ: 0; in main()
247 map_flags |= strstr(optarg, "PROT_WRITE") ? PROT_WRITE: 0; in main()
248 map_flags |= strstr(optarg, "PROT_NONE") ? PROT_NONE: 0; in main()
252 prot |= strstr(optarg, "MAP_PRIVATE") ? MAP_PRIVATE : 0; in main()
253 prot |= strstr(optarg, "MAP_SHARED") ? MAP_SHARED : 0; in main()
256 alloc_flags = atol(optarg); in main()
259 heap_mask = atol(optarg); in main()
/system/extras/vbmeta_tools/
Dvbmake.cc60 char* separator = strchr(optarg, '='); in main()
61 if (!separator || separator == optarg || !strlen(separator + 1)) { in main()
67 std::string vbmeta_name(optarg); in main()
73 output_path = optarg; in main()
/system/tools/sysprop/
DJavaMain.cpp60 args->java_output_dir = optarg; in ParseArgs()
63 if (strcmp(optarg, "public") == 0) { in ParseArgs()
65 } else if (strcmp(optarg, "internal") == 0) { in ParseArgs()
68 return Errorf("Invalid option {} for scope", optarg); in ParseArgs()
DCppMain.cpp65 ret.header_dir = optarg; in ParseArgs()
68 ret.public_header_dir = optarg; in ParseArgs()
71 ret.source_dir = optarg; in ParseArgs()
74 ret.include_name = optarg; in ParseArgs()
/system/libufdt/tests/src/
Dufdt_gen_test_dts.c172 params.depth = atoi(optarg); in main()
175 params.unused_num = atoi(optarg); in main()
178 params.node_num = atoi(optarg); in main()
181 params.append_num = atoi(optarg); in main()
184 params.override_num = atoi(optarg); in main()
187 filename = optarg; in main()
/system/extras/alloc-stress/
Dmem-pressure.cpp72 iterations = atoi(optarg); in main()
75 duration = atoi(optarg); in main()
78 oom_score = optarg; in main()
81 step_size = atoi(optarg); in main()
/system/tools/aidl/
Doptions.cpp234 string lang = Trim(optarg); in Options()
270 import_dirs_.emplace(Trim(optarg)); in Options()
274 import_files_.emplace(Trim(optarg)); in Options()
278 preprocessed_files_.emplace_back(Trim(optarg)); in Options()
281 dependency_file_ = Trim(optarg); in Options()
284 output_dir_ = Trim(optarg); in Options()
290 output_header_dir_ = Trim(optarg); in Options()
302 const string stability_str = Trim(optarg); in Options()
323 const string ver_str = Trim(optarg); in Options()
335 hash_ = Trim(optarg); in Options()
[all …]
/system/sepolicy/tools/
Dversion_policy.c113 base = strdup(optarg); in main()
119 num = strdup(optarg); in main()
122 output = strdup(optarg); in main()
125 tgt_policy = strdup(optarg); in main()
130 fprintf(stderr, "Unsupported option: %s\n", optarg); in main()
Dsepolicy-check.c254 source = optarg; in main()
257 target = optarg; in main()
260 class = optarg; in main()
263 perm = optarg; in main()
266 policy = optarg; in main()
/system/core/trusty/storage/proxy/
Dproxy.c205 trusty_devname = strdup(optarg); in parse_args()
209 ss_data_root = strdup(optarg); in parse_args()
213 rpmb_devname = strdup(optarg); in parse_args()
217 dev_type = parse_dev_type(optarg); in parse_args()
219 ALOGE("Unrecognized dev type: %s\n", optarg); in parse_args()
/system/extras/runconuid/
Drunconuid.cpp150 uid = lookup_uid(optarg); in parse_arguments()
153 gid = lookup_gid(optarg); in parse_arguments()
156 lookup_groups(optarg); in parse_arguments()
162 context = optarg; in parse_arguments()
/system/core/trusty/utils/spiproxyd/
Dmain.c90 *trusty_dev_name = strdup(optarg); in parse_args()
93 *spi_dev_name = strdup(optarg); in parse_args()
96 *spi_proxy_port = strdup(optarg); in parse_args()
/system/extras/tests/binder/benchmarks/
DbinderAddInts.cpp255 int cpu = strtoul(optarg, &chptr, 10); in main()
258 << " option of: " << optarg << endl; in main()
264 cerr << "CPU " << optarg << " not currently available" << endl; in main()
275 options.iterDelay = strtod(optarg, &chptr); in main()
277 cerr << "Invalid delay specified of: " << optarg << endl; in main()
/system/extras/iotop/
Diotop.cpp132 delay = atoi(optarg); in main()
138 limit = atoi(optarg); in main()
141 cycles = atoi(optarg); in main()
144 sorter = GetSorter(optarg); in main()
146 LOG(ERROR) << "Invalid sort column \"" << optarg << "\""; in main()
/system/extras/libperfmgr/tools/
DConfigVerifier.cc137 config_path = optarg; in main()
143 hint_name = optarg; in main()
146 hint_duration = strtoul(optarg, NULL, 10); in main()
/system/extras/pssbench/
Dmain.cpp66 iterations = atoi(optarg); in main()
69 bufsz = atoi(optarg); in main()
/system/extras/verity/fec/
Dmain.cpp319 ctx.roots = (int)parse_arg(optarg, "roots", FEC_RSM); in main()
325 ctx.threads = (int)parse_arg(optarg, "threads", IMAGE_MAX_THREADS); in main()
332 ctx.inp_size = parse_arg(optarg, "print-fec-size", UINT64_MAX); in main()
339 inp_filenames.push_back(optarg); in main()
346 inp_filenames.push_back(optarg); in main()
349 ctx.padding = (uint32_t)parse_arg(optarg, "padding", UINT32_MAX); in main()

123