Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/tools/aapt/
DMain.cpp164 int main(int argc, char* const argv[]) in main() argument
166 char *prog = argv[0]; in main()
180 if (argv[1][0] == 'v') in main()
182 else if (argv[1][0] == 'd') in main()
184 else if (argv[1][0] == 'l') in main()
186 else if (argv[1][0] == 'a') in main()
188 else if (argv[1][0] == 'r') in main()
190 else if (argv[1][0] == 'p') in main()
193 fprintf(stderr, "ERROR: Unknown command '%s'\n", argv[1]); in main()
198 argv += 2; in main()
[all …]
Dprintapk.cpp25 main(int argc, char** argv) in main() argument
43 filename = argv[1]; in main()
/frameworks/base/cmds/servicemanager/
Dbctest.c57 int main(int argc, char **argv) in main() argument
66 argv++; in main()
68 if (!strcmp(argv[0],"alt")) { in main()
76 } else if (!strcmp(argv[0],"lookup")) { in main()
82 ptr = svcmgr_lookup(bs, svcmgr, argv[1]); in main()
83 fprintf(stderr,"lookup(%s) = %p\n", argv[1], ptr); in main()
85 argv++; in main()
86 } else if (!strcmp(argv[0],"publish")) { in main()
91 svcmgr_publish(bs, svcmgr, argv[1], &token); in main()
93 argv++; in main()
[all …]
/frameworks/base/cmds/backup/
Dbackup.cpp29 usage(int argc, const char** argv) in usage() argument
31 const char* p = argv[0]; in usage()
105 main(int argc, const char** argv) in main() argument
110 if (argc == 3 && 0 == strcmp(argv[1], "list")) { in main()
111 return perform_list(argv[2]); in main()
113 if (argc == 4 && 0 == strcmp(argv[1], "print")) { in main()
114 return perform_print(argv[2], argv[3]); in main()
116 return usage(argc, argv); in main()
/frameworks/base/cmds/service/
Dservice.cpp58 int main(int argc, char* const argv[]) in main() argument
71 int ic = getopt(argc, argv, "h?"); in main()
91 if (strcmp(argv[optind], "check") == 0) { in main()
94 sp<IBinder> service = sm->checkService(String16(argv[optind])); in main()
95 aout << "Service " << argv[optind] << in main()
103 else if (strcmp(argv[optind], "list") == 0) { in main()
114 } else if (strcmp(argv[optind], "call") == 0) { in main()
118 sp<IBinder> service = sm->checkService(String16(argv[optind++])); in main()
120 int32_t code = atoi(argv[optind++]); in main()
129 if (strcmp(argv[optind], "i32") == 0) { in main()
[all …]
/frameworks/base/cmds/app_process/
Dapp_main.cpp28 status_t app_init(const char* className, int argc, const char* const argv[]) in app_init() argument
33 jr->callMain(className, argc, argv); in app_init()
118 int main(int argc, const char* const argv[]) in main() argument
122 mArgV = argv; in main()
126 mArgLen += strlen(argv[i]) + 1; in main()
134 argv0 = argv[0]; in main()
139 argv++; in main()
143 int i = runtime.addVmArguments(argc, argv); in main()
147 runtime.mParentDir = argv[i++]; in main()
152 arg = argv[i++]; in main()
[all …]
/frameworks/base/libs/utils/
Dmisc.cpp53 char* concatArgv(int argc, const char* const argv[]) in concatArgv() argument
63 if (idx == argc || argv[idx] == NULL) in concatArgv()
67 totalLen += strlen(argv[idx]); in concatArgv()
83 if (idx == argc || argv[idx] == NULL) in concatArgv()
88 len = strlen(argv[idx]); in concatArgv()
89 memcpy(&newStr[posn], argv[idx], len); in concatArgv()
104 int countArgv(const char* const argv[]) in countArgv() argument
108 while (argv[count] != NULL) in countArgv()
/frameworks/base/tools/aidl/
Doptions.cpp34 parse_options(int argc, const char* const* argv, Options *options) in parse_options() argument
38 if (argc >= 2 && 0 == strcmp(argv[1], "--preprocess")) { in parse_options()
42 options->outputFileName = argv[2]; in parse_options()
44 options->filesToPreprocess.push_back(argv[i]); in parse_options()
55 const char* s = argv[i]; in parse_options()
114 options->inputFileName = argv[i]; in parse_options()
123 options->outputFileName = argv[i]; in parse_options()
141 fprintf(stderr, " %s", argv[i]); in parse_options()
Doptions_test.cpp9 const char* argv[8]; member
60 while (answer.argv[argc]) { in test()
67 int result = parse_options(argc, answer.argv, &options); in test()
238 main(int argc, const char** argv) in main() argument
248 const char* const* p = g_tests[i].argv; in main()
279 const char* const* p = g_tests[i].argv; in main()
/frameworks/base/tools/localize/
Dlocalize.cpp606 main(int argc, const char** argv) in main() argument
611 if (argc == 2 && 0 == strcmp(argv[1], "--test")) { in main()
621 if (0 == strcmp("export", argv[index])) { in main()
632 if (0 == strcmp("--settings", argv[index])) { in main()
633 settingsFile = argv[index+1]; in main()
636 else if (0 == strcmp("--root", argv[index])) { in main()
637 rootDir = argv[index+1]; in main()
640 else if (0 == strcmp("--out", argv[index])) { in main()
641 outDir = argv[index+1]; in main()
644 else if (0 == strcmp("--target", argv[index])) { in main()
[all …]
/frameworks/base/cmds/keystore/
Dkeystore_cli.c45 int main(int argc, char **argv) in main() argument
52 printf("Usage: %s action [parameter ...]\n", argv[0]); in main()
63 send(sock, argv[1], 1, 0); in main()
65 uint16_t length = strlen(argv[i]); in main()
69 send(sock, argv[i], length, 0); in main()
/frameworks/base/core/java/com/android/internal/os/
DRuntimeInit.java173 private static void invokeStaticMain(String className, String[] argv) in invokeStaticMain() argument
213 throw new ZygoteInit.MethodAndArgsCaller(m, argv); in invokeStaticMain()
216 public static final void main(String[] argv) { in main() argument
243 public static final void zygoteInit(String[] argv) in zygoteInit() argument
255 for ( /* curArg */ ; curArg < argv.length; curArg++) { in zygoteInit()
256 String arg = argv[curArg]; in zygoteInit()
269 if (curArg == argv.length) { in zygoteInit()
277 String startClass = argv[curArg++]; in zygoteInit()
278 String[] startArgs = new String[argv.length - curArg]; in zygoteInit()
280 System.arraycopy(argv, curArg, startArgs, 0, startArgs.length); in zygoteInit()
/frameworks/base/tests/backup/
Dbackup_helper_test.cpp49 main(int argc, const char** argv) in main() argument
63 if (0 == strcmp(t->name, argv[i])) { in main()
121 main(int argc, char** argv) in main() argument
/frameworks/base/cmds/dumpsys/
Ddumpsys.cpp29 int main(int argc, char* const argv[]) in main() argument
46 services.add(String16(argv[1])); in main()
48 args.add(String16(argv[i])); in main()
/frameworks/base/include/utils/
Dmisc.h54 char* concatArgv(int argc, const char* const argv[]);
60 int countArgv(const char* const argv[]);
/frameworks/base/opengl/tests/filter/
Dfilter.cpp15 int main(int argc, char** argv) in main() argument
18 printf("usage: %s <0-6> [pbuffer]\n", argv[0]); in main()
22 const int test = atoi(argv[1]); in main()
23 int usePbuffer = argc==3 && !strcmp(argv[2], "pbuffer"); in main()
/frameworks/base/cmds/runtime/
Dmain_runtime.cpp342 int main(int argc, char* const argv[]) in main() argument
359 LOGI(" %2d: '%s'\n", i, argv[i]); in main()
363 ic = getopt(argc, argv, "g:j:v:d:l:ns"); in main()
391 usage(argv[0]); in main()
396 LOGE("runtime: extra stuff: %s\n", argv[optind]); in main()
397 usage(argv[0]); in main()
/frameworks/base/media/sdutils/
Dsdutil.cpp134 int main(int argc, char **argv) in main() argument
136 const char* command = (argc > 1 ? argv[1] : ""); in main()
137 const char* argument = (argc > 2 ? argv[2] : ""); in main()
/frameworks/base/opengl/tests/angeles/
Dapp-linux.cpp180 int main(int argc, char *argv[]) in main() argument
184 argv = argv; in main()
/frameworks/base/include/android_runtime/
DAndroidRuntime.h54 status_t callMain(const char* className, int argc, const char* const argv[]);
62 int addVmArguments(int argc, const char* const argv[]);
/frameworks/base/cmds/stagefright/
Drecord.cpp117 int main(int argc, char **argv) {
122 fprintf(stderr, "usage: %s filename\n", argv[0]);
130 sp<MediaSource> source = createSource(argv[1]);
210 int main(int argc, char **argv) { in main() argument
Dstagefright.cpp211 int main(int argc, char **argv) { in main() argument
222 while ((res = getopt(argc, argv, "han:lm:b:p")) >= 0) { in main()
268 usage(argv[0]); in main()
276 argv += optind; in main()
350 const char *filename = argv[k]; in main()
/frameworks/base/cmds/dumpstate/
Ddumpstate.c179 int main(int argc, char *argv[]) { in main() argument
180 int dumpcrash = check_command_name(argv[0], "dumpcrash"); in main()
200 c = getopt(argc, argv, "do:svz"); in main()
221 argv[0], optopt); in main()
/frameworks/base/libs/rs/
Drsg_generator.c242 int main(int argc, char **argv) in main() argument
245 fprintf(stderr, "usage: %s commandFile outFile\n", argv[0]); in main()
248 const char* rsgFile = argv[1]; in main()
249 const char* outFile = argv[2]; in main()
/frameworks/base/cmds/surfaceflinger/
Dmain_surfaceflinger.cpp10 int main(int argc, char** argv) in main() argument

123