Home
last modified time | relevance | path

Searched refs:argc (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/base/tools/aapt/
DMain.cpp164 int main(int argc, char* const argv[]) in main() argument
175 if (argc < 2) { in main()
197 argc -= 2; in main()
203 while (argc && argv[0][0] == '-') { in main()
216 argc--; in main()
218 if (!argc) { in main()
229 argc--; in main()
231 if (!argc) { in main()
261 argc--; in main()
263 if (!argc) { in main()
[all …]
Dprintapk.cpp25 main(int argc, char** argv) in main() argument
39 if (argc != 2) { in main()
/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
121 mArgC = argc; in main()
125 for (int i=0; i<argc; i++) { in main()
138 argc--; in main()
143 int i = runtime.addVmArguments(argc, argv); in main()
146 if (i < argc) { in main()
151 if (i < argc) { in main()
154 bool startSystemServer = (i < argc) ? in main()
[all …]
/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()
39 if (argc < 4) { in parse_options()
43 for (int i=3; i<argc; i++) { in parse_options()
54 while (i < argc) { in parse_options()
113 if (i < argc) { in parse_options()
122 if (i < argc) { in parse_options()
138 if (i != argc) { in parse_options()
139 fprintf(stderr, "unknown option%s:", (i==argc-1?(const char*)"":(const char*)"s")); in parse_options()
140 for (; i<argc-1; i++) { in parse_options()
Doptions_test.cpp59 int argc = 0; in test() local
60 while (answer.argv[argc]) { in test()
61 argc++; in test()
67 int result = parse_options(argc, answer.argv, &options); in test()
238 main(int argc, const char** argv) in main() argument
Doptions.h33 int parse_options(int argc, const char* const* argv, Options *options);
/frameworks/base/cmds/servicemanager/
Dbctest.c57 int main(int argc, char **argv) in main() argument
65 argc--; in main()
67 while (argc > 0) { in main()
78 if (argc < 2) { in main()
84 argc--; in main()
87 if (argc < 2) { in main()
92 argc--; in main()
98 argc--; in main()
/frameworks/base/cmds/backup/
Dbackup.cpp29 usage(int argc, const char** argv) in usage() argument
105 main(int argc, const char** argv) in main() argument
107 if (argc <= 1) { in main()
110 if (argc == 3 && 0 == strcmp(argv[1], "list")) { in main()
113 if (argc == 4 && 0 == strcmp(argv[1], "print")) { 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()
88 if (optind >= argc) { in main()
93 if (optind < argc) { in main()
116 if (optind+1 < argc) { in main()
128 while (optind < argc) { in main()
131 if (optind >= argc) { in main()
140 if (optind >= argc) { in main()
164 while (optind < argc) in main()
245 if (optind < argc) { in main()
/frameworks/base/tests/backup/
Dbackup_helper_test.cpp49 main(int argc, const char** argv) in main() argument
53 if (argc == 1) { in main()
62 for (int i=1; i<argc; i++) { in main()
121 main(int argc, char** argv) in main() argument
/frameworks/base/cmds/keystore/
Dkeystore_cli.c45 int main(int argc, char **argv) in main() argument
51 if (argc < 2) { in main()
64 for (i = 2; i < argc; ++i) { in main()
/frameworks/base/cmds/dumpsys/
Ddumpsys.cpp29 int main(int argc, char* const argv[]) in main() argument
41 if (argc == 1) { in main()
47 for (int i=2; i<argc; i++) { in main()
/frameworks/base/opengl/tests/filter/
Dfilter.cpp15 int main(int argc, char** argv) in main() argument
17 if (argc!=2 && argc!=3) { in main()
23 int usePbuffer = argc==3 && !strcmp(argv[2], "pbuffer"); in main()
/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()
83 if (idx == argc || argv[idx] == NULL) in concatArgv()
/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()
615 if (argc < 2) { in main()
631 while (index < argc) { in main()
656 for (; index<argc; index++) { in main()
675 for (; index<argc; index++) { in main()
686 if (argc < index+1) { in main()
693 for (; index<argc; index++) { in main()
705 while (index < argc) { in main()
719 if (index == argc-1) { in main()
[all …]
/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
183 argc = argc; 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/
Dstagefright.cpp211 int main(int argc, char **argv) { in main() argument
222 while ((res = getopt(argc, argv, "han:lm:b:p")) >= 0) { in main()
275 argc -= optind; in main()
349 for (int k = 0; k < argc; ++k) { in main()
Drecord.cpp117 int main(int argc, char **argv) {
121 if (argc != 2) {
210 int main(int argc, char **argv) { in main() argument
/frameworks/base/cmds/runtime/
Dmain_runtime.cpp342 int main(int argc, char* const argv[]) in main() argument
358 for (int i = 0; i < argc; i++) in main()
363 ic = getopt(argc, argv, "g:j:v:d:l:ns"); in main()
395 if (optind < argc) { in main()
/frameworks/base/cmds/surfaceflinger/
Dmain_surfaceflinger.cpp10 int main(int argc, char** argv) in main() argument
/frameworks/base/core/java/com/android/internal/os/
DZygoteConnection.java471 int argc; in readArgumentList() local
480 argc = Integer.parseInt(s); in readArgumentList()
487 if (argc > MAX_ZYGOTE_ARGC) { in readArgumentList()
491 String[] result = new String[argc]; in readArgumentList()
492 for (int i = 0; i < argc; i++) { in readArgumentList()
/frameworks/base/media/mediaserver/
Dmain_mediaserver.cpp36 int main(int argc, char** argv) in main() argument
/frameworks/base/cmds/bugreport/
Dbugreport.c24 int main(int argc, char *argv[]) { in main() argument

123