Searched defs:argc (Results 151 - 175 of 202) sorted by relevance

123456789

/system/core/toolbox/
H A Dls.c441 int ls_main(int argc, char **argv) argument
446 if(argc > 1) {
451 for (i = 1; i < argc; i++) {
H A Dmount.c276 int mount_main(int argc, char *argv[]) argument
289 if (argc == 1) return print_mounts();
292 c = getopt(argc, argv, "o:rt:w");
322 if (optind + 2 == argc) {
325 } else if (optind + 1 == argc && rwflag & MS_REMOUNT) {
H A Dps.c203 int ps_main(int argc, char **argv) argument
214 while(argc > 1){
232 argc--;
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
82 for (i = 1; i < argc; i++) {
84 if (i >= argc - 1) {
92 if (i >= argc - 1) {
100 if (i >= argc - 1) {
/system/extras/cpustats/
H A Dcpustats.c69 int main(int argc, char *argv[]) { argument
78 for (i = 0; i < argc; i++) {
80 if (i + 1 >= argc) {
89 if (i + 1 >= argc) {
/system/extras/latencytop/
H A Dlatencytop.c68 int main(int argc, char *argv[]) { argument
79 for (i = 1; i < argc; i++) {
81 if (i >= argc - 1) {
89 if (i >= argc - 1) {
101 if (i >= argc - 1) {
109 if (i >= argc - 1) {
/system/extras/librank/
H A Dlibrank.c165 int main(int argc, char *argv[]) { argument
193 for (i = 1; i < argc; i++) {
195 if (i + 1 >= argc) {
/system/extras/procmem/
H A Dprocmem.c41 int main(int argc, char *argv[]) { argument
77 if (argc < 2) {
85 for (i = 1; i < argc - 1; i++) {
96 pid = (pid_t)strtol(argv[argc - 1], &endptr, 10);
98 fprintf(stderr, "Invalid PID \"%s\".\n", argv[argc - 1]);
/system/extras/procrank/
H A Dprocrank.c117 int main(int argc, char *argv[]) { argument
141 for (arg = 1; arg < argc; arg++) {
/system/extras/showmap/
H A Dshowmap.c316 int main(int argc, char *argv[]) argument
325 for (argc--, argv++; argc > 0; argc--, argv++) {
339 if (argc != 1) {
/system/extras/showslab/
H A Dshowslab.c270 int main(int argc, char *argv[]) argument
278 if (argc > 1) {
280 if (argc == 3 && !strcmp(argv[1], "-n")) {
288 else if (argc == 3 && !strcmp(argv[1], "-s"))
/system/extras/sound/
H A Dplaywav.c329 int main(int argc, char **argv) argument
336 argc--;
338 while (argc > 0) {
348 argc--;
350 if (argc == 0) {
358 argc--;
/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) {
/system/extras/tests/bionic/libc/other/
H A Dtest_jpeg.c239 int main( int argc, char** argv ) argument
247 if (argc < 2)
250 for ( ; argc > 1 && argv[1][0] == '-'; argc--, argv++) {
255 if (argc < 3)
258 argc--;
275 if (argc < 3)
278 argc--;
307 for ( ; argc > 1; argc
[all...]
/system/extras/tests/directiotest/
H A Ddirectiotest.c169 int main(int argc, const char *argv[]) argument
181 if (argc != 2) {
/system/extras/tests/framebuffer/
H A Dfb_test.c257 int main(int argc, char **argv) { argument
263 if (argc > 1)
266 if (argc > 4)
271 if (argc > 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) {
/system/extras/tests/sdcard/
H A Dsdcard_perf_test.cpp149 void printHeader(int argc, char **argv, const TestCase& testCase) argument
152 for (int i = 0; i < argc; ++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) {
250 if (argc != optind) {
/system/netd/
H A DDnsProxyListener.cpp109 int argc, char **argv) {
111 for (int i = 0; i < argc; i++) {
115 if (argc != 7) {
117 asprintf( &msg, "Invalid number of arguments to getaddrinfo: %i", argc);
174 int argc, char **argv) {
176 for (int i = 0; i < argc; i++) {
181 if (argc != 4) {
183 asprintf(&msg, "Invalid number of arguments to gethostbyaddr: %i", argc);
108 runCommand(SocketClient *cli, int argc, char **argv) argument
173 runCommand(SocketClient *cli, int argc, char **argv) argument
H A DTetherController.cpp219 int argc = 0; local
220 args[argc++] = "/system/bin/dhcpcd";
224 args[argc++] = "-h";
225 args[argc++] = host_name;
227 args[argc++] = (char*)iface;
228 args[argc] = NULL;
/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...]
/system/core/debuggerd/
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/gpttool/
H A Dgpttool.c252 int main(int argc, char **argv) argument
264 if (argc < 2)
268 if (argc < 3)
271 argc -= 2;
275 argc -= 1;
320 while (argc > 1) {
352 argc--;

Completed in 84 milliseconds

123456789