Home
last modified time | relevance | path

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

123

/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.cpp90 for (const auto& inFilePath : ::android::base::Split(optarg, ":")) { in main()
99 outFilePath = optarg; in main()
100 if (!assembleVintf->openOutFile(optarg)) { in main()
101 std::cerr << "Failed to open " << optarg << std::endl; in main()
111 if (!assembleVintf->openCheckFile(optarg)) { in main()
112 std::cerr << "Failed to open " << optarg << std::endl; in main()
118 if (!assembleVintf->addKernel(optarg)) { in main()
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dgrep.c416 if (optarg == NULL) { in main()
425 l = strtoull(optarg, &ep, 10); in main()
450 if (strcasecmp(optarg, "skip") == 0) in main()
452 else if (strcasecmp(optarg, "read") == 0) in main()
458 if (strcasecmp("recurse", optarg) == 0) { in main()
461 } else if (strcasecmp("skip", optarg) == 0) in main()
463 else if (strcasecmp("read", optarg) == 0) in main()
472 add_pattern(optarg, strlen(optarg)); in main()
479 read_patterns(optarg); in main()
516 mcount = strtoull(optarg, &ep, 10); in main()
[all …]
/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/extras/partition_tools/
Dlpmake.cc123 if (!android::base::ParseUint(optarg, &blockdevice_size) || !blockdevice_size) { in main()
130 if (!android::base::ParseUint(optarg, &metadata_size)) { in main()
136 if (!android::base::ParseUint(optarg, &metadata_slots)) { in main()
142 partitions.push_back(optarg); in main()
145 groups.push_back(optarg); in main()
148 output_path = optarg; in main()
151 if (!android::base::ParseUint(optarg, &alignment_offset)) { in main()
158 if (!android::base::ParseUint(optarg, &alignment)) { in main()
168 if (!android::base::ParseUint(optarg, &block_size) || !block_size) { in main()
175 char* separator = strchr(optarg, '='); in main()
[all …]
/system/core/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/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/tools/sysprop/
DCppMain.cpp61 args->header_dir = optarg; in ParseArgs()
64 args->system_header_dir = optarg; in ParseArgs()
67 args->source_dir = optarg; in ParseArgs()
70 args->include_name = optarg; in ParseArgs()
/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/sepolicy/tools/
Dversion_policy.c112 base = strdup(optarg); in main()
118 num = strdup(optarg); in main()
121 output = strdup(optarg); in main()
124 tgt_policy = strdup(optarg); in main()
129 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/tools/aidl/
Doptions.cpp194 string lang = Trim(optarg); in Options()
230 import_dirs_.emplace(Trim(optarg)); in Options()
234 import_files_.emplace(Trim(optarg)); in Options()
238 preprocessed_files_.emplace_back(Trim(optarg)); in Options()
241 dependency_file_ = Trim(optarg); in Options()
244 output_dir_ = Trim(optarg); in Options()
250 output_header_dir_ = Trim(optarg); in Options()
274 const string ver_str = Trim(optarg); in Options()
292 output_file_ = Trim(optarg); in Options()
/system/core/logcat/
Dlogcat.cpp902 if (!getSizeTArg(optarg, &pid, 1)) { in __logcat()
904 long_options[option_index].name, optarg); in __logcat()
914 if (optarg && !getSizeTArg(optarg, &dummy, 1)) { in __logcat()
916 long_options[option_index].name, optarg); in __logcat()
937 setId = (optarg && optarg[0]) ? optarg : nullptr; in __logcat()
965 if (strspn(optarg, "0123456789") != strlen(optarg)) { in __logcat()
966 char* cp = parseTime(tail_time, optarg); in __logcat()
969 optarg); in __logcat()
977 c, optarg, ch, cp + 1); in __logcat()
982 if (!getSizeTArg(optarg, &tail_lines, 1)) { in __logcat()
[all …]
/system/core/trusty/storage/proxy/
Dproxy.c201 trusty_devname = strdup(optarg); in parse_args()
205 ss_data_root = strdup(optarg); in parse_args()
209 rpmb_devname = strdup(optarg); in parse_args()
213 dev_type = parse_dev_type(optarg); in parse_args()
215 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/extras/tests/binder/benchmarks/
DbinderAddInts.cpp269 int cpu = strtoul(optarg, &chptr, 10); in main()
272 << " option of: " << optarg << endl; in main()
278 cerr << "CPU " << optarg << " not currently available" << endl; in main()
289 options.iterDelay = strtod(optarg, &chptr); in main()
291 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/vold/
Dmain.cpp161 case 'b': android::vold::sBlkidContext = optarg; break; in parse_args()
162 case 'B': android::vold::sBlkidUntrustedContext = optarg; break; in parse_args()
163 case 'f': android::vold::sFsckContext = optarg; break; in parse_args()
164 case 'F': android::vold::sFsckUntrustedContext = optarg; break; in parse_args()
/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/tools/hidl/c2hal/
Dmain.cpp120 outputDir = optarg; in main()
124 package = optarg; in main()
137 addPackageRootToMap(optarg, packageRootPaths); in main()
/system/extras/slideshow/
Dslideshow.cpp96 timeout = strtol(optarg, NULL, 0); in main()
100 LOGE("invalid timeout %s, defaulting to %ld\n", optarg, in main()
/system/core/libziparchive/
Dunzip.cpp285 flag_d = optarg; in main()
315 archive_name = optarg; in main()
317 excludes.insert(optarg); in main()
319 includes.insert(optarg); in main()
/system/extras/puncture_fs/
Dpuncture_fs.c216 seed = atoi(optarg); in main()
219 hole_size = atoll(optarg); in main()
223 total_hole_size = atoll(optarg); in main()
/system/extras/ANRdaemon/
DANRdaemon.cpp544 apps = optarg; in get_options()
547 if (atoi(optarg) > max_buffer_size) in get_options()
549 else if (atoi(optarg) < min_buffer_size) in get_options()
552 buf_size_kb = optarg; in get_options()
555 threshold = atoi(optarg); in get_options()

123