Searched defs:argv (Results 151 - 175 of 199) sorted by relevance

12345678

/system/core/toolbox/
H A Dmount.c276 int mount_main(int argc, char *argv[]) argument
285 progname = argv[0];
292 c = getopt(argc, argv, "o:rt:w");
323 dev = argv[optind];
324 dir = argv[optind + 1];
326 get_mounts_dev_dir(argv[optind], &dev, &dir);
H A Dps.c203 int ps_main(int argc, char **argv) argument
215 if(!strcmp(argv[1],"-t")) {
217 } else if(!strcmp(argv[1],"-x")) {
219 } else if(!strcmp(argv[1], "-Z")) {
221 } else if(!strcmp(argv[1],"-P")) {
223 } else if(!strcmp(argv[1],"-p")) {
225 } else if(!strcmp(argv[1],"-c")) {
227 } else if(isdigit(argv[1][0])){
228 pidfilter = atoi(argv[1]);
230 namefilter = argv[
[all...]
H A Dschedtop.c271 int schedtop_main(int argc, char **argv) argument
283 c = getopt(argc, argv, "d:ibtamun");
H A Dvmstat.c72 int vmstat_main(int argc, char *argv[]) { argument
83 if (!strcmp(argv[i], "-n")) {
88 iterations = atoi(argv[++i]);
91 if (!strcmp(argv[i], "-d")) {
96 delay = atoi(argv[++i]);
99 if (!strcmp(argv[i], "-r")) {
104 header_interval = atoi(argv[++i]);
107 if (!strcmp(argv[i], "-h")) {
108 usage(argv[0]);
111 fprintf(stderr, "Invalid argument \"%s\".\n", argv[
[all...]
/system/extras/cpustats/
H A Dcpustats.c69 int main(int argc, char *argv[]) { argument
79 if (!strcmp(argv[i], "-n")) {
82 usage(argv[0]);
85 iterations = atoi(argv[++i]);
88 if (!strcmp(argv[i], "-d")) {
91 usage(argv[0]);
94 delay = atoi(argv[++i]);
97 if (!strcmp(argv[i], "-m")) {
100 if (!strcmp(argv[i], "-h")) {
101 usage(argv[
[all...]
/system/extras/latencytop/
H A Dlatencytop.c68 int main(int argc, char *argv[]) { argument
80 if (!strcmp(argv[i], "-d")) {
85 delay = atoi(argv[++i]);
88 if (!strcmp(argv[i], "-n")) {
93 iterations = atoi(argv[++i]);
96 if (!strcmp(argv[i], "-h")) {
97 usage(argv[0]);
100 if (!strcmp(argv[i], "-p")) {
105 pid = atoi(argv[++i]);
108 if (!strcmp(argv[
[all...]
/system/extras/librank/
H A Dlibrank.c165 int main(int argc, char *argv[]) { argument
194 if (!strcmp(argv[i], "-P")) {
197 usage(argv[0]);
200 prefix = argv[++i];
204 if (!strcmp(argv[i], "-v")) { compfn = &sort_by_vss; continue; }
205 if (!strcmp(argv[i], "-r")) { compfn = &sort_by_rss; continue; }
206 if (!strcmp(argv[i], "-p")) { compfn = &sort_by_pss; continue; }
207 if (!strcmp(argv[i], "-u")) { compfn = &sort_by_uss; continue; }
208 if (!strcmp(argv[i], "-R")) { order *= -1; continue; }
209 if (!strcmp(argv[
[all...]
/system/extras/procmem/
H A Dprocmem.c41 int main(int argc, char *argv[]) { argument
78 usage(argv[0]);
86 if (!strcmp(argv[i], "-w")) { ws = WS_ONLY; continue; }
87 if (!strcmp(argv[i], "-W")) { ws = WS_RESET; continue; }
88 if (!strcmp(argv[i], "-m")) { compfn = NULL; continue; }
89 if (!strcmp(argv[i], "-p")) { compfn = &comp_pss; continue; }
90 if (!strcmp(argv[i], "-h")) { hide_zeros = 1; continue; }
91 fprintf(stderr, "Invalid argument \"%s\".\n", argv[i]);
92 usage(argv[0]);
96 pid = (pid_t)strtol(argv[arg
[all...]
/system/extras/procrank/
H A Dprocrank.c117 int main(int argc, char *argv[]) { argument
142 if (!strcmp(argv[arg], "-v")) { compfn = &sort_by_vss; continue; }
143 if (!strcmp(argv[arg], "-r")) { compfn = &sort_by_rss; continue; }
144 if (!strcmp(argv[arg], "-p")) { compfn = &sort_by_pss; continue; }
145 if (!strcmp(argv[arg], "-u")) { compfn = &sort_by_uss; continue; }
146 if (!strcmp(argv[arg], "-w")) { ws = WS_ONLY; continue; }
147 if (!strcmp(argv[arg], "-W")) { ws = WS_RESET; continue; }
148 if (!strcmp(argv[arg], "-R")) { order *= -1; continue; }
149 if (!strcmp(argv[arg], "-h")) { usage(argv[
[all...]
/system/extras/showmap/
H A Dshowmap.c316 int main(int argc, char *argv[]) argument
325 for (argc--, argv++; argc > 0; argc--, argv++) {
326 arg = argv[0];
/system/extras/showslab/
H A Dshowslab.c270 int main(int argc, char *argv[]) argument
280 if (argc == 3 && !strcmp(argv[1], "-n")) {
282 nr_rows = (unsigned int) strtoul(argv[2], NULL, 0);
288 else if (argc == 3 && !strcmp(argv[1], "-s"))
289 sort_func = set_sort_func(argv[2][0]) ? : DEF_SORT_FUNC;
291 fprintf(stderr, "usage: %s [options]\n\n", argv[0]);
/system/extras/sound/
H A Dplaywav.c329 int main(int argc, char **argv) argument
337 argv++;
339 if (!strcmp(argv[0],"-rec")) {
341 } else if (!strcmp(argv[0],"-play")) {
343 } else if (!strcmp(argv[0],"-stereo")) {
345 } else if (!strcmp(argv[0],"-mono")) {
347 } else if (!strcmp(argv[0],"-rate")) {
349 argv++;
354 rate = atoi(argv[0]);
356 fn = argv[
[all...]
/system/extras/tests/binder/benchmarks/
H A DbinderAddInts.cpp98 int main(int argc, char *argv[]) argument
114 while ((opt = getopt(argc, argv, "s:c:n:d:?")) != -1) {
163 cerr << basename(argv[0]) << " [options]" << endl;
/system/extras/tests/directiotest/
H A Ddirectiotest.c169 int main(int argc, const char *argv[]) argument
186 path = argv[1];
/system/extras/tests/framebuffer/
H A Dfb_test.c257 int main(int argc, char **argv) { argument
264 bpp = atoi(argv[1]);
267 id = !!atoi(argv[4]);
272 w = atoi(argv[2]);
273 h = atoi(argv[3]);
H A Dmdp_test.c172 int main(int argc, const char *argv[]) argument
195 while ((opt = getopt(argc, argv, "s:d:f:t:u:v:")) != -1) {
268 fprintf(stderr, "Usage: %s -s source -d dest\n", argv[0]);
/system/extras/tests/sdcard/
H A Dsdcard_perf_test.cpp149 void printHeader(int argc, char **argv, const TestCase& testCase) argument
154 printf("%s ", argv[i]);
202 // @param argc, argv have a wild guess.
204 void parseCmdLine(int argc, char **argv, TestCase *testCase)\ argument
213 c = getopt_long (argc, argv,
682 int main(int argc, char **argv) argument
688 parseCmdLine(argc, argv, &testCase);
689 printHeader(argc, argv, testCase);
/system/extras/tests/wifi/stress/
H A DwifiLoadScanAssoc.c125 main(int argc, char *argv[]) argument
140 while ((opt = getopt(argc, argv, "d:D:s:e:p:t:?")) != -1) {
229 testPrintE(" %s [options]", basename(argv[0]));
253 basename(argv[0]));
/system/netd/
H A DDnsProxyListener.cpp109 int argc, char **argv) {
112 ALOGD("argv[%i]=%s", i, argv[i]);
124 char* name = argv[1];
131 char* service = argv[2];
139 int ai_flags = atoi(argv[3]);
140 int ai_family = atoi(argv[4]);
141 int ai_socktype = atoi(argv[5]);
142 int ai_protocol = atoi(argv[6]);
174 int argc, char **argv) {
108 runCommand(SocketClient *cli, int argc, char **argv) argument
173 runCommand(SocketClient *cli, int argc, char **argv) argument
[all...]
/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...]
/system/core/debuggerd/
H A Ddebuggerd.c503 int main(int argc, char** argv) { argument
512 if (!strcmp(argv[i], "-b")) {
515 tid = atoi(argv[i]);
/system/core/gpttool/
H A Dgpttool.c252 int main(int argc, char **argv) argument
267 if (!strcmp(argv[1], "write")) {
270 device = argv[2];
272 argv += 2;
274 } else if (!strcmp(argv[1], "test")) {
276 argv += 1;
321 if (argv[1][0] == '@') {
324 f = fopen(argv[1] + 1, "r");
326 fprintf(stderr,"cannot read partitions from '%s\n", argv[1]);
349 if (parse_ptn(&ptbl, argv[
[all...]
/system/core/sh/
H A Dexec.c119 shellexec(char **argv, char **envp, const char *path, int idx, int vforked) argument
124 if (strchr(argv[0], '/') != NULL) {
125 tryexec(argv[0], argv, envp, vforked);
129 while ((cmdname = padvance(&path, argv[0])) != NULL) {
131 tryexec(cmdname, argv, envp, vforked);
152 argv[0], e, vforked, suppressint ));
153 exerror(EXEXEC, "%s: %s", argv[0], errmsg(e, E_EXEC));
159 tryexec(char *cmd, char **argv, char **envp, int vforked) argument
168 execve(cmd, argv, env
214 execinterp(char **argv, char **envp) argument
331 hashcmd(int argc, char **argv) argument
948 typecmd(int argc, char **argv) argument
[all...]
/system/extras/atrace/
H A Datrace.c455 int main(int argc, char **argv) argument
459 if (argc == 2 && 0 == strcmp(argv[1], "--help")) {
460 showHelp(argv[0]);
467 ret = getopt(argc, argv, "b:cidflst:uwyznS:");
548 showHelp(argv[0]);
/system/extras/tests/fstest/
H A Dperm_checker.c407 int main(int argc, char **argv) argument
413 printf("\nSyntax: %s [configfilename]\n", argv[0]);
415 config_file = (argc == 2) ? argv[1] : DEFAULT_CONFIG_FILE;
416 executable_file = argv[0];

Completed in 102 milliseconds

12345678