Home
last modified time | relevance | path

Searched refs:argc (Results 1 – 25 of 292) sorted by relevance

12345678910>>...12

/system/bt/tools/hci/
Dmain.c11 typedef int (*handler_t)(int argc, char** argv);
26 static int help(int argc, char** argv);
27 static int set_discoverable(int argc, char** argv);
28 static int set_name(int argc, char** argv);
29 static int set_pcm_loopback(int argc, char** argv);
30 static int set_sco_route(int argc, char** argv);
53 static int help(int argc, char** argv) { in help() argument
54 if (!argc) { in help()
69 static int set_discoverable(int argc, char** argv) { in set_discoverable() argument
70 if (argc != 1) { in set_discoverable()
[all …]
/system/netd/server/
DCommandListener.cpp92 int runCommand(SocketClient *c, int argc, char **argv) { in runCommand() argument
94 return mWrappedCmd->runCommand(c, argc, argv); in runCommand()
130 int argc, char **argv) { in runCommand() argument
131 if (argc < 2) { in runCommand()
153 if (argc < 3) { in runCommand()
206 if (argc < 4) { in runCommand()
236 for (int i = index; i < argc; i++) { in runCommand()
283 if (argc != 4) { in runCommand()
298 if (argc != 4) { in runCommand()
314 if (argc != 4) { in runCommand()
[all …]
DCommandListener.h56 int runCommand(SocketClient *c, int argc, char ** argv);
63 int runCommand(SocketClient *c, int argc, char ** argv);
70 int runCommand(SocketClient *c, int argc, char ** argv);
77 int runCommand(SocketClient *c, int argc, char ** argv);
84 int runCommand(SocketClient *c, int argc, char ** argv);
91 int runCommand(SocketClient *c, int argc, char ** argv);
98 int runCommand(SocketClient *c, int argc, char ** argv);
109 int runCommand(SocketClient *c, int argc, char ** argv);
116 int runCommand(SocketClient *c, int argc, char ** argv);
119 bool parseAndExecuteSetNetDns(int netId, int argc, const char** argv);
[all …]
Dndc.cpp36 static int do_cmd(int sock, int argc, char **argv);
38 int main(int argc, char **argv) { in main() argument
42 if (argc < 2) in main()
57 if (argc < 3) usage(argv[0]); in main()
64 exit(do_cmd(sock, argc-cmdOffset, &(argv[cmdOffset]))); in main()
67 static int do_cmd(int sock, int argc, char **argv) { in do_cmd() argument
85 for (i = 1; i < argc; i++) { in do_cmd()
96 (i == (argc - 1)) ? "" : " ") < 0) { in do_cmd()
/system/extras/tests/memtest/
Dmemtest.cpp63 int copy_bandwidth(int argc, char** argv);
64 int write_bandwidth(int argc, char** argv);
65 int read_bandwidth(int argc, char** argv);
66 int per_core_bandwidth(int argc, char** argv);
67 int multithread_bandwidth(int argc, char** argv);
68 int malloc_test(int argc, char** argv);
69 int madvise_test(int argc, char** argv);
70 int stack_smasher_test(int argc, char** argv);
71 int crawl_test(int argc, char** argv);
72 int fp_test(int argc, char** argv);
[all …]
Dbandwidth.cpp66 bool processBandwidthOptions(int argc, char** argv, option_t options[], in processBandwidthOptions() argument
68 for (int i = 1; i < argc; i++) { in processBandwidthOptions()
75 if (i == argc - 1) { in processBandwidthOptions()
212 bool processThreadArgs(int argc, char** argv, option_t options[], in processThreadArgs() argument
218 if (!processBandwidthOptions(argc, argv, options, values)) { in processThreadArgs()
296 int per_core_bandwidth(int argc, char** argv) { in per_core_bandwidth() argument
298 if (!processThreadArgs(argc, argv, per_core_opts, &values)) { in per_core_bandwidth()
336 int multithread_bandwidth(int argc, char** argv) { in multithread_bandwidth() argument
338 if (!processThreadArgs(argc, argv, multithread_opts, &values)) { in multithread_bandwidth()
373 bool run_bandwidth_benchmark(int argc, char** argv, const char *name, in run_bandwidth_benchmark() argument
[all …]
/system/core/adb/
Dcommandline.cpp66 static int install_app(int argc, const char** argv);
67 static int install_multiple_app(int argc, const char** argv);
68 static int uninstall_app(int argc, const char** argv);
69 static int install_app_legacy(int argc, const char** argv);
70 static int uninstall_app_legacy(int argc, const char** argv);
673 static int adb_shell(int argc, const char** argv) { in adb_shell() argument
696 while ((opt = getopt(argc, const_cast<char**>(argv), "+e:ntTx")) != -1) { in adb_shell()
730 bool is_interactive = (optind == argc); in adb_shell()
770 if (optind < argc) { in adb_shell()
772 command = android::base::Join(std::vector<const char*>(argv + optind, argv + argc), ' '); in adb_shell()
[all …]
/system/bt/main/
Dbte_init_cpp_logging.cc32 int argc = 1; in init_cpp_logging() local
36 argv[argc] = loggingV->c_str(); in init_cpp_logging()
37 argc++; in init_cpp_logging()
41 argv[argc] = loggingVModule->c_str(); in init_cpp_logging()
42 argc++; in init_cpp_logging()
46 base::CommandLine::Init(argc, argv); in init_cpp_logging()
/system/libufdt/utils/src/
Dmkdtimg.c24 extern int handle_command_help(int argc, char *argv[], int arg_start);
26 extern int handle_command_dump(int argc, char *argv[], int arg_start);
28 extern int handle_command_create(int argc, char *argv[], int arg_start);
30 extern int handle_command_cfg_create(int argc, char *argv[], int arg_start);
36 int (*handler)(int argc, char *argv[], int arg_start);
92 int handle_command_help(int argc, char *argv[], int arg_start) { in handle_command_help() argument
95 if (argc - arg_start < 1) { in handle_command_help()
116 int main(int argc, char *argv[]) { in main() argument
117 if (argc <= 1) { in main()
129 return info->handler(argc, argv, 2); in main()
Dmkdtimg_create.c26 static int calculate_args_entry_count(int argc, char *argv[], int arg_start) { in calculate_args_entry_count() argument
30 for (i = arg_start; i < argc; i++) { in calculate_args_entry_count()
56 static int output_img_with_args(FILE *img_fp, int argc, char *argv[], int arg_start) { in output_img_with_args() argument
57 int entry_count = calculate_args_entry_count(argc, argv, arg_start); in output_img_with_args()
62 for (i = arg_start; i < argc; i++) { in output_img_with_args()
113 int handle_command_create(int argc, char *argv[], int arg_start) { in handle_command_create() argument
117 if (argc - arg_start < 1) { in handle_command_create()
132 ret = output_img_with_args(img_fp, argc, argv, arg_start + 1); in handle_command_create()
/system/tools/aidl/
Doptions.cpp69 unique_ptr<JavaOptions> JavaOptions::Parse(int argc, const char* const* argv) { in Parse() argument
73 if (argc >= 2 && 0 == strcmp(argv[1], "--preprocess")) { in Parse()
74 if (argc < 4) { in Parse()
78 for (int i = 3; i < argc; i++) { in Parse()
87 while (i < argc) { in Parse()
142 if (i < argc) { in Parse()
156 if (i < argc) { in Parse()
170 if (i != argc) { in Parse()
172 (i == argc - 1 ? (const char*)"" : (const char*)"s")); in Parse()
173 for (; i < argc - 1; i++) { in Parse()
[all …]
/system/extras/bootctl/
Dbootctl.cpp157 static uint32_t parse_slot(int pos, int argc, char *argv[]) in parse_slot() argument
159 if (pos > argc - 1) { in parse_slot()
160 usage(stderr, argc, argv); in parse_slot()
167 usage(stderr, argc, argv); in parse_slot()
174 int main(int argc, char *argv[]) in main() argument
178 if (argc < 2) { in main()
179 usage(stderr, argc, argv); in main()
198 return do_set_active_boot_slot(module, parse_slot(2, argc, argv)); in main()
200 return do_set_slot_as_unbootable(module, parse_slot(2, argc, argv)); in main()
202 return do_is_slot_bootable(module, parse_slot(2, argc, argv)); in main()
[all …]
/system/security/keystore/
Dkeystore_cli.cpp68 if (argc < 3) { \
87 if (argc < 3) { \
106 if (argc < 3) { \
111 if (argc > 3) { \
130 if (argc < 3) { \
136 if (argc > 3) { \
155 if (argc < 3) { \
177 if (argc < 3) { \
210 int main(int argc, char* argv[]) in main() argument
212 if (argc < 2) { in main()
[all …]
/system/core/logwrapper/
Dlogwrapper.c50 int main(int argc, char* argv[]) { in main() argument
58 while ((ch = getopt(argc, argv, "adk")) != -1) { in main()
75 argc -= optind; in main()
78 if (argc < 1) { in main()
82 rc = android_fork_execvp_ext(argc, &argv[0], &status, true, in main()
/system/core/toolbox/
Dtoolbox.c28 int main(int argc, char** argv) { in main() argument
40 return tools[i].func(argc, argv); in main()
48 int toolbox_main(int argc, char** argv) { in toolbox_main() argument
50 if (argc > 1) { in toolbox_main()
51 return main(argc - 1, argv + 1); in toolbox_main()
Dr.c22 int main(int argc, char *argv[]) in main() argument
24 if(argc < 2) return usage(); in main()
29 argc--; in main()
33 argc--; in main()
37 if(argc < 2) return usage(); in main()
55 if(argc > 2) { in main()
/system/core/init/
Dsubcontext_benchmark.cpp64 int main(int argc, char** argv) { in main() argument
65 if (argc > 1 && !strcmp(basename(argv[1]), "subcontext")) { in main()
67 return android::init::SubcontextMain(argc, argv, &test_function_map); in main()
70 ::benchmark::Initialize(&argc, argv); in main()
71 if (::benchmark::ReportUnrecognizedArguments(argc, argv)) return 1; in main()
/system/core/libsparse/
Dsimg2img.c38 int main(int argc, char *argv[]) in main() argument
45 if (argc < 3) { in main()
50 out = open(argv[argc - 1], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); in main()
52 fprintf(stderr, "Cannot open output file %s\n", argv[argc - 1]); in main()
56 for (i = 1; i < argc - 1; i++) { in main()
/system/core/debuggerd/
Ddebuggerd.cpp58 int main(int argc, char* argv[]) { in main() argument
59 if (argc <= 1) usage(0); in main()
60 if (argc > 3) usage(1); in main()
61 if (argc == 3 && strcmp(argv[1], "-b") != 0 && strcmp(argv[1], "--backtrace") != 0) usage(1); in main()
62 bool backtrace_only = argc == 3; in main()
65 if (!android::base::ParseInt(argv[argc - 1], &pid, 1, std::numeric_limits<pid_t>::max())) { in main()
/system/core/logd/
DCommandListener.cpp79 int CommandListener::ClearCmd::runCommand(SocketClient* cli, int argc, in runCommand() argument
87 if (argc < 2) { in runCommand()
106 int CommandListener::GetBufSizeCmd::runCommand(SocketClient* cli, int argc, in runCommand() argument
109 if (argc < 2) { in runCommand()
131 int CommandListener::SetBufSizeCmd::runCommand(SocketClient* cli, int argc, in runCommand() argument
139 if (argc < 3) { in runCommand()
164 int CommandListener::GetBufSizeUsedCmd::runCommand(SocketClient* cli, int argc, in runCommand() argument
167 if (argc < 2) { in runCommand()
199 int CommandListener::GetStatisticsCmd::runCommand(SocketClient* cli, int argc, in runCommand() argument
209 if (argc > 1) { in runCommand()
[all …]
/system/extras/perfprofd/
Dperfprofdmain.cc27 extern int perfprofd_main(int argc, char** argv, Config* config);
29 int main(int argc, char** argv) in main() argument
31 if (argc > 1 && strcmp(argv[1], "--binder") == 0) { in main()
59 return perfprofd_main(argc, argv, &config); in main()
/system/extras/multinetwork/
Dcommon.cpp71 bool Arguments::parseArguments(int argc, const char* argv[]) { in parseArguments() argument
72 if (argc < 1 || argv == nullptr) { return false; } in parseArguments()
74 for (int i = 1; i < argc; i++) { in parseArguments()
77 if (argc == i) break; in parseArguments()
85 if (argc == i) break; in parseArguments()
97 if (argc == i) break; in parseArguments()
/system/core/libsysutils/src/
DFrameworkListener.cpp99 int argc = 0; in dispatchCommand() local
164 if (argc >= CMD_ARGS_MAX) in dispatchCommand()
166 argv[argc++] = strdup(tmp); in dispatchCommand()
176 if (argc >= CMD_ARGS_MAX) in dispatchCommand()
178 argv[argc++] = strdup(tmp); in dispatchCommand()
180 for (int k = 0; k < argc; k++) { in dispatchCommand()
200 if (c->runCommand(cli, argc, argv)) { in dispatchCommand()
209 for (j = 0; j < argc; j++) in dispatchCommand()
/system/connectivity/wificond/tests/
Dmain.cpp22 int main(int argc, char** argv) { in main() argument
23 ::testing::InitGoogleTest(&argc, argv); in main()
24 ::testing::InitGoogleMock(&argc, argv); in main()
/system/core/reboot/
Dreboot.c24 int main(int argc, char* argv[]) { in main() argument
36 c = getopt(argc, argv, "p"); in main()
52 if(argc > optind + 1) { in main()
57 if (argc > optind) in main()

12345678910>>...12