/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/core/trusty/keymaster/set_attestation_ids/ |
D | set_attestation_ids.cpp | 170 req.base.brand.Reinitialize(optarg, strlen(optarg)); in main() 173 req.base.device.Reinitialize(optarg, strlen(optarg)); in main() 176 req.base.product.Reinitialize(optarg, strlen(optarg)); in main() 179 req.base.serial.Reinitialize(optarg, strlen(optarg)); in main() 182 req.base.manufacturer.Reinitialize(optarg, strlen(optarg)); in main() 185 req.base.model.Reinitialize(optarg, strlen(optarg)); in main() 188 req.base.imei.Reinitialize(optarg, strlen(optarg)); in main() 191 req.base.meid.Reinitialize(optarg, strlen(optarg)); in main() 194 req.second_imei.Reinitialize(optarg, strlen(optarg)); in main()
|
/system/libvintf/ |
D | assemble_vintf_main.cpp | 88 for (const auto& inFilePath : ::android::base::Split(optarg, ":")) { in main() 97 outFilePath = optarg; in main() 98 if (!assembleVintf->openOutFile(optarg)) { in main() 99 std::cerr << "Failed to open " << optarg << std::endl; in main() 109 if (!assembleVintf->openCheckFile(optarg)) { in main() 110 std::cerr << "Failed to open " << optarg << std::endl; in main() 116 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 | 120 device_info.width_ = strtol(optarg, NULL, 10); in initFromOptions() 123 device_info.height_ = strtol(optarg, NULL, 10); in initFromOptions() 126 device_info.dp2px_ = strtod(optarg, NULL); in initFromOptions() 129 device_info.mm2px_ = strtod(optarg, NULL); in initFromOptions() 132 device_info.powerButtonTopMm_ = strtod(optarg, NULL); in initFromOptions() 135 device_info.powerButtonBottomMm_ = strtod(optarg, NULL); in initFromOptions() 138 device_info.volUpButtonTopMm_ = strtod(optarg, NULL); in initFromOptions() 141 device_info.volUpButtonBottomMm_ = strtod(optarg, NULL); in initFromOptions()
|
/system/tools/aidl/ |
D | options.cpp | 281 static std::string ToCanonicalDirectory(const std::string& optarg) { in ToCanonicalDirectory() argument 282 std::string dir = Trim(optarg); in ToCanonicalDirectory() 352 string lang = Trim(optarg); in Options() 387 if (optarg) { in Options() 388 if (strcmp(optarg, "compatible") == 0) in Options() 390 else if (strcmp(optarg, "equal") == 0) in Options() 393 error_message_ << "Unsupported --checkapi level: '" << optarg << "'" << endl; in Options() 400 import_dirs_.emplace(ToCanonicalDirectory(optarg)); in Options() 401 previous_import_dirs_.emplace(ToCanonicalDirectory(optarg)); in Options() 405 preprocessed_files_.emplace_back(Trim(optarg)); in Options() [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/logging/logcat/ |
D | logcat.cpp | 699 if (!ParseUint(optarg, &pid) || pid < 1) { in Run() 700 error(EXIT_FAILURE, 0, "pid '%s' out of range.", optarg); in Run() 708 if (optarg && (!ParseUint(optarg, &timeout) || timeout < 1)) { in Run() 709 error(EXIT_FAILURE, 0, "wrap timeout '%s' out of range.", optarg); in Run() 726 setId = (optarg && optarg[0]) ? optarg : nullptr; in Run() 729 auto uid_strings = Split(optarg, delimiters); in Run() 767 if (strspn(optarg, "0123456789") != strlen(optarg)) { in Run() 768 char* cp = parseTime(tail_time, optarg); in Run() 770 error(EXIT_FAILURE, 0, "-%c '%s' not in time format.", c, optarg); in Run() 775 fprintf(stderr, "WARNING: -%c '%s' '%c%s' time truncated\n", c, optarg, ch, in Run() [all …]
|
/system/extras/partition_tools/ |
D | lpmake.cc | 263 if (strcmp(optarg, "auto") == 0) { in main() 265 } else if (!android::base::ParseUint(optarg, &blockdevice_size) || in main() 273 if (!android::base::ParseUint(optarg, &metadata_size)) { in main() 279 if (!android::base::ParseUint(optarg, &metadata_slots)) { in main() 285 if (auto res = PartitionInfo::Parse(optarg); !res.ok()) { in main() 293 groups.push_back(optarg); in main() 296 output_path = optarg; in main() 299 if (!android::base::ParseUint(optarg, &alignment_offset)) { in main() 306 if (!android::base::ParseUint(optarg, &alignment)) { in main() 316 if (!android::base::ParseUint(optarg, &block_size) || !block_size) { in main() [all …]
|
/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/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 | RustMain.cpp | 59 args->rust_output_dir = optarg; in ParseArgs() 62 if (strcmp(optarg, "public") == 0) { in ParseArgs() 64 } else if (strcmp(optarg, "internal") == 0) { in ParseArgs() 67 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/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/core/trusty/storage/proxy/ |
D | proxy.c | 243 trusty_devname = strdup(optarg); in parse_args() 247 ss_data_root = strdup(optarg); in parse_args() 251 rpmb_devname = strdup(optarg); in parse_args() 255 dev_type = parse_dev_type(optarg); in parse_args() 257 ALOGE("Unrecognized dev type: %s\n", optarg); in parse_args() 263 rc = parse_and_append_file_mapping(optarg); in parse_args() 265 ALOGE("Failed to parse file mapping: %s\n", optarg); in parse_args() 271 max_file_size_from = strdup(optarg); in parse_args()
|
/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()
|
/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/coverage-controller/ |
D | controller.cpp | 152 std::string optarg = ""; in main() local 176 optarg = argv[optind]; in main() 178 if (optarg.size()==0) { in main() 179 optarg = "data/local/tmp"; in main() 183 cur.run(optarg); in main()
|
/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/apex/tools/ |
D | host_apex_verifier.cc | 228 deapexer = optarg; in main() 231 debugfs = optarg; in main() 234 fsckerofs = optarg; in main() 237 if (!base::ParseInt(optarg, &sdk_version)) { in main() 243 apex = optarg; in main() 247 partition_map[p] = optarg; in main()
|
/system/memory/libmeminfo/tools/ |
D | librank.cpp | 116 format = GetFormat(optarg); in main() 129 mapflags_mask = parse_mapflags(optarg); in main() 138 lib_prefix = optarg; in main()
|
/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/core/toolbox/ |
D | modprobe.cpp | 162 if (optarg == NULL) break; in modprobe_main() 167 fd = open(optarg, O_RDONLY | O_CLOEXEC | O_BINARY); in modprobe_main() 169 PLOG(ERROR) << "Failed to open " << optarg; in modprobe_main() 174 mod_dirs.emplace_back(android::base::Dirname(optarg)); in modprobe_main() 175 modules_load_file = android::base::Basename(optarg); in modprobe_main() 181 mod_dirs.emplace_back(optarg); in modprobe_main()
|