/system/bt/test/headless/ |
D | get_options.cc | 70 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 …]
|
D | get_options.h | 59 void ParseValue(char* optarg, std::list<std::string>& my_list); 60 void ProcessOption(int option_index, char* optarg);
|
/system/core/reboot/ |
D | reboot.c | 30 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/ |
D | assemble_vintf_main.cpp | 89 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/ |
D | build_verity_tree_main.cpp | 75 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/ |
D | teeui_device_config.cpp | 109 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/ |
D | logcat.cpp | 613 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/ |
D | lpmake.cc | 217 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/ |
D | ion_test.c | 238 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/ |
D | vbmake.cc | 60 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/ |
D | JavaMain.cpp | 60 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()
|
D | CppMain.cpp | 65 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/ |
D | ufdt_gen_test_dts.c | 172 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/ |
D | mem-pressure.cpp | 67 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/ |
D | options.cpp | 254 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/ |
D | version_policy.c | 113 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()
|
D | sepolicy-check.c | 254 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/ |
D | proxy.c | 205 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/ |
D | runconuid.cpp | 150 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/ |
D | main.c | 90 *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/ |
D | binderAddInts.cpp | 255 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/ |
D | iotop.cpp | 132 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/ |
D | main.cpp | 66 iterations = atoi(optarg); in main() 69 bufsz = atoi(optarg); in main()
|
/system/extras/verity/fec/ |
D | main.cpp | 319 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/ |
D | main.cpp | 165 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()
|