Searched refs:argv (Results 1 - 25 of 223) sorted by last modified time

123456789

/system/security/keystore/
H A Dkeystore.cpp1411 int main(int argc, char* argv[]) { argument
1417 if (chdir(argv[1]) == -1) {
1418 ALOGE("chdir: %s: %s", argv[1], strerror(errno));
H A Dkeystore_cli.cpp44 int main(int argc, char* argv[]) argument
47 printf("Usage: %s action [parameter ...]\n", argv[0]);
58 send(sock, argv[1], 1, 0);
61 uint16_t length = strlen(argv[i]);
65 send(sock, argv[i], length, 0);
/system/vold/
H A DCommandListener.cpp53 void CommandListener::dumpArgs(int argc, char **argv, int argObscure) { argument
60 unsigned int len = strlen(argv[i]) + 1; // Account for space
71 strcpy(p, argv[i]);
72 p+= strlen(argv[i]);
86 int argc, char **argv) {
116 int argc, char **argv) {
117 dumpArgs(argc, argv, -1);
127 if (!strcmp(argv[1], "list")) {
129 } else if (!strcmp(argv[1], "debug")) {
130 if (argc != 3 || (argc == 3 && (strcmp(argv[
85 runCommand(SocketClient *cli, int argc, char **argv) argument
115 runCommand(SocketClient *cli, int argc, char **argv) argument
213 runCommand(SocketClient *cli, int argc, char **argv) argument
302 runCommand(SocketClient *cli, int argc, char **argv) argument
432 runCommand(SocketClient *cli, int argc, char **argv) argument
496 runCommand(SocketClient *cli, int argc, char **argv) argument
539 runCommand(SocketClient *cli, int argc, char **argv) argument
[all...]
H A DCommandListener.h29 static void dumpArgs(int argc, char **argv, int argObscure);
35 int runCommand(SocketClient *c, int argc, char ** argv);
42 int runCommand(SocketClient *c, int argc, char ** argv);
49 int runCommand(SocketClient *c, int argc, char ** argv);
58 int runCommand(SocketClient *c, int argc, char ** argv);
65 int runCommand(SocketClient *c, int argc, char ** argv);
72 int runCommand(SocketClient *c, int argc, char ** argv);
79 int runCommand(SocketClient *c, int argc, char ** argv);
H A DExt4.cpp45 extern "C" int logwrap(int argc, const char **argv, int background);
H A DFat.cpp45 extern "C" int logwrap(int argc, const char **argv, int background);
H A Dlogwrapper.c93 void child(int argc, const char**argv) {
96 memcpy(argv_child, argv, argc * sizeof(char *));
107 int logwrap(int argc, const char* argv[], int background) argument
159 child(argc, argv);
164 int rc = parent(argv[0], parent_ptty);
H A Dvdc.c37 static int do_cmd(int sock, int argc, char **argv);
39 int main(int argc, char **argv) { argument
43 usage(argv[0]);
52 if (!strcmp(argv[1], "monitor"))
54 exit(do_cmd(sock, argc, argv));
57 static int do_cmd(int sock, int argc, char **argv) { argument
65 if (!index(argv[i], ' '))
66 asprintf(&cmp, "%s%s", argv[i], (i == (argc -1)) ? "" : " ");
68 asprintf(&cmp, "\"%s\"%s", argv[i], (i == (argc -1)) ? "" : " ");
/system/bluetooth/brcm_patchram_plus/
H A Dbrcm_patchram_plus.c441 parse_cmd_line(int argc, char **argv) argument
471 c = getopt_long_only (argc, argv, "d", long_options,
498 usage(argv[0]);
503 usage(argv[0]);
514 printf ("%s \n", argv[optind]);
515 if ((uart_fd = open(argv[optind], O_RDWR | O_NOCTTY)) == -1) {
517 argv[2], errno);
785 main (int argc, char **argv) argument
791 if (parse_cmd_line(argc, argv)) {
/system/bluetooth/brfpatch/
H A Dbrfpatch.c166 int main(int argc, char **argv) { argument
171 FILE *file_in = fopen(argv[1], "r");
172 FAILIF(!file_in, "Could not open %s: %s\n", argv[1], strerror(errno));
174 FILE *file_out = fopen(argv[2], "w+");
175 FAILIF(!file_out, "Could not open %s: %s\n", argv[2], strerror(errno));
/system/bluetooth/tools/
H A Dasocket_test.c715 int main(int argc, char **argv) { argument
724 if (!strcmp(argv[1], type_table[i].name)) {
734 if (!strcmp(argv[2], action_table[i].name)) {
H A Dbttest.c67 int main(int argc, char **argv) { argument
75 if (!strcmp(argv[1], function_table[i].name)) {
H A Dpipetest.c414 int main(int argc, char **argv) { argument
422 if (!strcmp(argv[1], function_table[i].name)) {
H A Dsock_shutdown_bug_l2cap.c26 int main(int argc, char **argv) { argument
H A Dsock_shutdown_bug_rfcomm.c27 int main(int argc, char **argv) { argument
H A Dsock_shutdown_bug_tcp.c25 int main(int argc, char **argv) { argument
H A Dsock_shutdown_test.c287 int main(int argc, char **argv) { argument
296 if (!strcmp(argv[1], type_table[i].name)) {
306 if (!strcmp(argv[2], action_table[i].name)) {
H A Dsocktest.c789 int main(int argc, char **argv) { argument
798 if (!strcmp(argv[1], type_table[i].name)) {
808 if (!strcmp(argv[2], action_table[i].name)) {
/system/core/adb/
H A Dadb.c1536 int main(int argc, char **argv) argument
1542 return adb_commandline(argc - 1, argv + 1);
1547 if((argc > 1) && (!strcmp(argv[1],"recovery"))) {
H A Dadb.h459 int adb_commandline(int argc, char **argv);
H A Dadb_client.h42 int adb_send_emulator_command(int argc, char** argv);
H A Dcommandline.c45 int install_app(transport_type transport, char* serial, int argc, char** argv);
46 int uninstall_app(transport_type transport, char* serial, int argc, char** argv);
540 int ppp(int argc, char **argv) argument
543 fprintf(stderr, "error: adb %s not implemented on Win32\n", argv[0]);
552 argv[0]);
557 adb_service_name = argv[1];
581 //argv[2] and beyond become ppp_args[1] and beyond
582 ppp_args[i - 1] = argv[i];
629 static int logcat(transport_type transport, char* serial, int argc, char **argv) argument
645 if (!strcmp(argv[
684 backup(int argc, char** argv) argument
740 restore(int argc, char** argv) argument
909 adb_commandline(int argc, char **argv) argument
1383 char *argv[16]; local
1452 pm_command(transport_type transport, char* serial, int argc, char** argv) argument
1473 uninstall_app(transport_type transport, char* serial, int argc, char** argv) argument
1537 install_app(transport_type transport, char* serial, int argc, char** argv) argument
[all...]
H A Dconsole.c27 int adb_send_emulator_command(int argc, char** argv) argument
38 adb_write( fd, argv[nn], strlen(argv[nn]) );
/system/core/charger/
H A Dcharger.c927 int main(int argc, char **argv) argument
/system/core/cpio/
H A Dmkbootfs.c322 int main(int argc, char *argv[]) argument
325 argv++;
327 if (argc > 1 && strcmp(argv[0], "-f") == 0) {
328 read_canned_config(argv[1]);
330 argv += 2;
336 char *x = strchr(*argv, '=');
343 archive(*argv, x);
345 argv++;

Completed in 274 milliseconds

123456789