Searched defs:argc (Results 1 - 25 of 202) sorted by last modified time

123456789

/system/security/keystore/
H A Dkeystore.cpp1411 int main(int argc, char* argv[]) { argument
1413 if (argc < 2) {
H A Dkeystore_cli.cpp44 int main(int argc, char* argv[]) argument
46 if (argc < 2) {
60 for (int i = 2; i < argc; ++i) {
/system/vold/
H A DCommandListener.cpp53 void CommandListener::dumpArgs(int argc, char **argv, int argObscure) { argument
59 for (i = 0; i < argc; i++) {
73 if (i != (argc -1)) {
86 int argc, char **argv) {
116 int argc, char **argv) {
117 dumpArgs(argc, argv, -1);
119 if (argc < 2) {
130 if (argc != 3 || (argc == 3 && (strcmp(argv[2], "off") && strcmp(argv[2], "on")))) {
136 if (argc !
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 Dlogwrapper.c93 void child(int argc, const char**argv) { argument
95 char* argv_child[argc + 1];
96 memcpy(argv_child, argv, argc * sizeof(char *));
97 argv_child[argc] = NULL;
107 int logwrap(int argc, const char* argv[], int background) argument
159 child(argc, argv);
H A Dvdc.c37 static int do_cmd(int sock, int argc, char **argv);
39 int main(int argc, char **argv) { argument
42 if (argc < 2)
54 exit(do_cmd(sock, argc, argv));
57 static int do_cmd(int sock, int argc, char **argv) { argument
62 for (i = 1; i < argc; 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,
512 if (optind < argc) {
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
168 if (argc != 3)
/system/bluetooth/tools/
H A Dasocket_test.c715 int main(int argc, char **argv) { argument
719 if (argc != 3) {
H A Dbttest.c67 int main(int argc, char **argv) { argument
70 if (argc != 2) {
H A Dpipetest.c414 int main(int argc, char **argv) { argument
417 if (argc != 2) {
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
291 if (argc != 3) {
H A Dsocktest.c789 int main(int argc, char **argv) { argument
793 if (argc != 3) {
/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 Dbackup_service.c94 int argc; local
99 argc = 3;
101 argc++;
106 bu_args = (char**) alloca(argc*sizeof(char*) + 1);
109 argc = 0;
110 bu_args[argc++] = "bu";
112 bu_args[argc++] = portnum;
113 bu_args[argc++] = operation;
115 bu_args[argc++] = p;
122 bu_args[argc]
[all...]
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
550 if (argc < 2) {
578 ppp_args = (const char **) alloca(sizeof(char *) * argc + 1);
580 for (i = 2 ; i < argc ; i++) {
629 static int logcat(transport_type transport, char* serial, int argc, char **argv) argument
649 argc -= 1;
651 while(argc-- > 0) {
684 static int backup(int argc, cha argument
740 restore(int argc, char** argv) argument
909 adb_commandline(int argc, char **argv) argument
1384 int argc; 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
37 for (nn = 1; nn < argc; nn++) {
39 adb_write( fd, (nn == argc-1) ? "\n" : " ", 1 );
/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
324 argc--;
327 if (argc > 1 && strcmp(argv[0], "-f") == 0) {
329 argc -= 2;
333 if(argc == 0) die("no directories to process?!");
335 while(argc-- > 0){
/system/core/debuggerd/
H A Dcrasher.c77 int main(int argc, char **argv) argument
85 if(argc > 1) {
H A Ddebuggerd.c503 int main(int argc, char** argv) { argument
504 if (argc == 1) {
511 for (int i = 1; i < argc; i++) {
/system/core/fastboot/
H A Dfastboot.c739 #define skip(n) do { argc -= (n); argv += (n); } while (0)
740 #define require(n) do { if (argc < (n)) {usage(); exit(1);}} while (0)
742 int do_oem_command(int argc, char **argv) argument
746 if (argc <= 1) return 0;
752 if(argc == 0) break;
801 int main(int argc, char **argv) argument
819 c = getopt_long(argc, argv, "wub:n:s:S:lp:c:i:m:h", &longopts, NULL);
876 argc -= optind;
879 if (argc == 0 && !wants_wipe) {
884 if (argc >
[all...]
H A Dusbtest.c151 int process_args(int argc, char **argv) argument
153 while(argc-- > 0) {
178 int main(int argc, char **argv) argument
183 if(argc < 2)
186 if(argc > 2) {
187 if(process_args(argc - 2, argv + 2))

Completed in 104 milliseconds

123456789