Home
last modified time | relevance | path

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

123

/system/bt/test/headless/
Dget_options.cc70 char* optarg, std::list<std::string>& string_list) { in ParseValue() argument
71 CHECK(optarg != nullptr); in ParseValue()
72 char* p = optarg; in ParseValue()
73 char* pp = optarg; in ParseValue()
97 char* optarg) { in ProcessOption() argument
103 if (!optarg) return; in ProcessOption()
104 ParseValue(optarg, string_list); in ProcessOption()
114 loop_ = std::stoul(optarg, nullptr, 0); in ProcessOption()
117 if (!optarg) return; in ProcessOption()
118 ParseValue(optarg, string_list); in ProcessOption()
[all …]
Dget_options.h59 void ParseValue(char* optarg, std::list<std::string>& my_list);
60 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/logging/logcat/
Dlogcat.cpp613 if (!ParseUint(optarg, &pid) || pid < 1) { in Run()
615 long_options[option_index].name, optarg); in Run()
623 if (optarg && (!ParseUint(optarg, &timeout) || timeout < 1)) { in Run()
625 long_options[option_index].name, optarg); in Run()
643 setId = (optarg && optarg[0]) ? optarg : nullptr; in Run()
646 auto uid_strings = Split(optarg, delimiters); in Run()
680 if (strspn(optarg, "0123456789") != strlen(optarg)) { in Run()
681 char* cp = parseTime(tail_time, optarg); in Run()
683 error(EXIT_FAILURE, 0, "-%c '%s' not in time format.", c, optarg); in Run()
688 fprintf(stderr, "WARNING: -%c '%s' '%c%s' time truncated\n", c, optarg, ch, in Run()
[all …]
/system/extras/partition_tools/
Dlpmake.cc217 if (strcmp(optarg, "auto") == 0) { in main()
219 } else if (!android::base::ParseUint(optarg, &blockdevice_size) || in main()
227 if (!android::base::ParseUint(optarg, &metadata_size)) { in main()
233 if (!android::base::ParseUint(optarg, &metadata_slots)) { in main()
239 if (auto res = PartitionInfo::Parse(optarg); !res.ok()) { in main()
247 groups.push_back(optarg); in main()
250 output_path = optarg; in main()
253 if (!android::base::ParseUint(optarg, &alignment_offset)) { in main()
260 if (!android::base::ParseUint(optarg, &alignment)) { in main()
270 if (!android::base::ParseUint(optarg, &block_size) || !block_size) { in main()
[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.cpp67 iterations = atoi(optarg); in main()
70 duration = atoi(optarg); in main()
73 oom_score = optarg; in main()
76 step_size = atoi(optarg); in main()
/system/tools/aidl/
Doptions.cpp254 string lang = Trim(optarg); in Options()
292 if (optarg) { in Options()
293 if (strcmp(optarg, "compatible") == 0) in Options()
295 else if (strcmp(optarg, "equal") == 0) in Options()
298 error_message_ << "Unsupported --checkapi level: '" << optarg << "'" << endl; in Options()
306 import_dirs_.emplace(Trim(optarg)); in Options()
310 import_files_.emplace(Trim(optarg)); in Options()
314 preprocessed_files_.emplace_back(Trim(optarg)); in Options()
317 dependency_file_ = Trim(optarg); in Options()
320 output_dir_ = 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/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()
/system/vold/
Dmain.cpp165 case 'b': android::vold::sBlkidContext = optarg; break; in parse_args()
166 case 'B': android::vold::sBlkidUntrustedContext = optarg; break; in parse_args()
167 case 'f': android::vold::sFsckContext = optarg; break; in parse_args()
168 case 'F': android::vold::sFsckUntrustedContext = optarg; break; in parse_args()

123