/system/tools/aidl/ |
D | options.cpp | 211 optind = 0; in Options() 392 if (argc - optind <= 0) { in Options() 397 input_files_.emplace_back(argv[optind++]); in Options() 398 if (argc - optind >= 1) { in Options() 399 output_file_ = argv[optind++]; in Options() 413 input_files_.emplace_back(argv[optind++]); in Options() 414 if (argc - optind < 2) { in Options() 418 output_header_dir_ = argv[optind++]; in Options() 422 output_file_ = argv[optind++]; in Options() 424 if (argc - optind > 0) { in Options() [all …]
|
/system/core/reboot/ |
D | reboot.c | 52 if(argc > optind + 1) { in main() 57 if (argc > optind) in main() 58 optarg = argv[optind]; in main()
|
/system/core/toolbox/ |
D | getprop.cpp | 148 if (optind >= argc) { in getprop_main() 153 if (optind < argc - 2) { in getprop_main() 158 PrintProperty(argv[optind], (optind == argc - 1) ? "" : argv[optind + 1], result_type); in getprop_main()
|
/system/extras/slideshow/ |
D | slideshow.cpp | 109 if (optind >= argc) { in main() 122 while (optind < argc - 1) { in main() 123 draw(argv[optind++]); in main() 147 draw(argv[optind]); in main()
|
/system/tools/sysprop/ |
D | JavaMain.cpp | 76 if (optind >= argc) { in ParseArgs() 80 if (optind + 1 < argc) { in ParseArgs() 84 args->input_file_path = argv[optind]; in ParseArgs()
|
D | CppMain.cpp | 81 if (optind >= argc) { in ParseArgs() 85 if (optind + 1 < argc) { in ParseArgs() 94 ret.input_file_path = argv[optind]; in ParseArgs()
|
/system/logging/logwrapper/ |
D | logwrapper.cpp | 74 argc -= optind; in main() 75 argv += optind; in main()
|
/system/libvintf/ |
D | assemble_vintf_main.cpp | 85 int optind; in main() local 86 while ((res = getopt_long(argc, argv, "hi:o:mc:nl", longopts, &optind)) >= 0) { in main()
|
/system/extras/pssbench/ |
D | main.cpp | 76 if (argv[optind] == NULL) { in main() 80 int pid = atoi(argv[optind]); in main()
|
/system/extras/tests/ext4/ |
D | rand_emmc_perf.c | 235 if ((argc - optind) != 2) { in main() 240 max_blocks = atoll(argv[optind]) * ((1024*1024) / TST_BLK_SIZE); in main() 242 if ((fd = open(argv[optind + 1], O_RDWR | o_sync)) < 0) { in main() 243 fprintf(stderr, "Cannot open block device %s\n", argv[optind + 1]); in main()
|
/system/extras/puncture_fs/ |
D | puncture_fs.cpp | 235 if (optind >= argc) { in main() 240 path = argv[optind++]; in main() 242 if (optind < argc) { in main() 243 fprintf(stderr, "\nUnexpected argument: %s\n", argv[optind]); in main()
|
/system/tools/hidl/c2hal/ |
D | main.cpp | 156 if (optind == 1) { in main() 173 if (optind == argc) { in main() 179 for(int i = optind; i < argc; i++) { in main()
|
/system/extras/partition_tools/ |
D | lpunpack.cc | 125 if (optind + 1 > argc) { in main() 129 std::string super_path = argv[optind++]; in main() 132 if (optind + 1 <= argc) { in main() 133 output_dir = argv[optind++]; in main() 136 if (optind < argc) { in main()
|
D | lpadd.cc | 444 if (optind + 3 > argc) { in main() 449 std::string super_path = argv[optind++]; in main() 450 std::string partition_name = argv[optind++]; in main() 451 std::string group_name = argv[optind++]; in main() 454 if (optind < argc) { in main() 455 image_path = argv[optind++]; in main() 457 if (optind != argc) { in main()
|
/system/core/trusty/utils/trusty-ut-ctrl/ |
D | ut-ctrl.c | 88 if (optind < argc) { in parse_options() 89 ut_app = strdup(argv[optind]); in parse_options()
|
/system/core/fs_mgr/ |
D | fs_mgr_remount.cpp | 253 for (; argc > optind; ++optind) { in do_remount() 254 auto partition = std::string(argv[optind]); in do_remount() 266 LOG(ERROR) << "Unknown partition " << argv[optind] << ", skipping"; in do_remount() 273 LOG(INFO) << "partition " << argv[optind] << " covered by overlayfs for " in do_remount() 280 LOG(ERROR) << "Invalid partition " << argv[optind] << ", skipping"; in do_remount()
|
/system/memory/libmeminfo/libdmabufinfo/tools/ |
D | dmabuf_dump.cpp | 275 if (optind < argc) { in main() 280 if (optind != (argc - 1)) { in main() 284 pid = atoi(argv[optind]); in main() 286 fprintf(stderr, "Invalid process id %s\n", argv[optind]); in main()
|
/system/extras/kexec_tools/ |
D | kexecload.c | 101 argc -= optind; in main() 102 argv += optind; in main()
|
/system/extras/verity/ |
D | build_verity_tree_main.cpp | 113 argc -= optind; in main() 114 argv += optind; in main()
|
/system/tools/hidl/lint/ |
D | main.cpp | 96 argc -= optind; in main() 97 argv += optind; in main()
|
/system/extras/runconuid/ |
D | runconuid.cpp | 170 child_argv = &argv[optind]; in parse_arguments() 172 if (optind == argc) { in parse_arguments()
|
/system/extras/tests/suspend_stress/ |
D | suspend_stress.cpp | 87 if (optind < argc) { in main() 88 fprintf(stderr, "Unexpected argument: %s\n", argv[optind]); in main()
|
/system/memory/libmeminfo/tools/ |
D | wsstop.cpp | 202 if ((argc - 1) < optind) { in main() 207 g_pid = atoi(argv[optind]); in main() 209 fprintf(stderr, "Invalid process id %s\n", argv[optind]); in main()
|
/system/bt/tools/bdtool/ |
D | bdtool.c | 353 if (optind < argc) { in parse_args() 355 while (optind < argc) fprintf(stderr, "%s ", argv[optind++]); in parse_args()
|
/system/bt/test/headless/ |
D | get_options.cc | 186 while (optind < argc) { in GetOpt() 187 non_options_.push_back(argv[optind++]); in GetOpt()
|