Home
last modified time | relevance | path

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

12345678

/frameworks/base/tools/aapt/
DMain.cpp215 int main(int argc, char* const argv[]) in main() argument
226 if (argc < 2) { in main()
250 argc -= 2; in main()
256 while (argc && argv[0][0] == '-') { in main()
269 argc--; in main()
271 if (!argc) { in main()
282 argc--; in main()
284 if (!argc) { in main()
317 argc--; in main()
319 if (!argc) { in main()
[all …]
/frameworks/av/media/libstagefright/codecs/aacenc/SampleCode/
DAAC_E_SAMPLES.c48 static int parsecmdline(int argc, char **argv,char **input_filename, char **output_filename, AACE… in parsecmdline() argument
59 if(argc < 5 || argc > 13) in parsecmdline()
64 argc--; in parsecmdline()
66 while (argc > 0) in parsecmdline()
71 argc--; in parsecmdline()
77 argc--; in parsecmdline()
83 argc--; in parsecmdline()
89 argc--; in parsecmdline()
95 argc--; in parsecmdline()
101 argc--; in parsecmdline()
[all …]
/frameworks/base/tools/aidl/
Doptions.cpp35 parse_options(int argc, const char* const* argv, Options *options) in parse_options() argument
39 if (argc >= 2 && 0 == strcmp(argv[1], "--preprocess")) { in parse_options()
40 if (argc < 4) { in parse_options()
44 for (int i=3; i<argc; i++) { in parse_options()
56 while (i < argc) { in parse_options()
118 if (i < argc) { in parse_options()
127 if (i < argc) { in parse_options()
143 if (i != argc) { in parse_options()
144 fprintf(stderr, "unknown option%s:", (i==argc-1?(const char*)"":(const char*)"s")); in parse_options()
145 for (; i<argc-1; i++) { in parse_options()
DAST.cpp295 MethodCall::MethodCall(const string& n, int argc = 0, ...) in MethodCall() argument
301 va_start(args, argc); in MethodCall()
302 init(argc, args); in MethodCall()
320 MethodCall::MethodCall(Expression* o, const string& n, int argc = 0, ...) in MethodCall() argument
326 va_start(args, argc); in MethodCall()
327 init(argc, args); in MethodCall()
331 MethodCall::MethodCall(Type* t, const string& n, int argc = 0, ...) in MethodCall() argument
337 va_start(args, argc); in MethodCall()
338 init(argc, args); in MethodCall()
396 NewExpression::NewExpression(Type* t, int argc = 0, ...) in NewExpression() argument
[all …]
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
/frameworks/base/cmds/servicemanager/
Dbctest.c58 int main(int argc, char **argv) in main() argument
66 argc--; in main()
68 while (argc > 0) { in main()
79 if (argc < 2) { in main()
85 argc--; in main()
88 if (argc < 2) { in main()
93 argc--; in main()
99 argc--; in main()
/frameworks/compile/linkloader/
Dmain.cpp45 int argc, char **argv);
47 int main(int argc, char **argv) { in main() argument
49 if (argc < 2) { in main()
67 dump_and_run_file(image, image_size, argc - 1, argv + 1); in main()
144 void dump_and_run_object(Archiver &AR, int argc, char **argv) { in dump_and_run_object() argument
168 ((int (*)(int, char **))main_addr)(argc, argv); in dump_and_run_object()
174 int argc, char **argv) { in dump_and_run_file_from_archive() argument
176 dump_and_run_object<32>(AR, argc, argv); in dump_and_run_file_from_archive()
178 dump_and_run_object<64>(AR, argc, argv); in dump_and_run_file_from_archive()
183 int argc, char **argv) { in dump_and_run_file() argument
[all …]
/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/cmds/app_process/
Dapp_main.cpp131 int main(int argc, const char* const argv[]) in main() argument
134 mArgC = argc; in main()
138 for (int i=0; i<argc; i++) { in main()
148 argc--; in main()
153 int i = runtime.addVmArguments(argc, argv); in main()
162 while (i < argc) { in main()
194 runtime.mArgC = argc - i; in main()
/frameworks/compile/libbcc/tools/bcc/
Dmain.cpp75 int (*process)(int argc, char **arg);
122 static int parseOption(int argc, char** argv) { in parseOption() argument
123 if (argc <= 1) { in parseOption()
124 optHelp(argc, argv); in parseOption()
130 while (i < argc) { in parseOption()
131 const unsigned left_argc = argc - i - 1; in parseOption()
289 int main(int argc, char** argv) { in main() argument
290 if(parseOption(argc, argv)) { in main()
/frameworks/compile/libbcc/tests/data/src/
Dbellard.otccex.c75 main(argc, argv) in main() argument
85 if (argc != 2 && argc != 3) { in main()
96 if (argc >= 3) { 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/screencap/
Dscreencap.cpp86 int main(int argc, char** argv) in main() argument
91 while ((c = getopt(argc, argv, "ph")) != -1) { in main()
102 argc -= optind; in main()
106 if (argc == 0) { in main()
108 } else if (argc == 1) { in main()
/frameworks/compile/libbcc/bcinfo/tools/
Dmain.cpp48 static int parseOption(int argc, char** argv) { in parseOption() argument
50 while ((c = getopt(argc, argv, "t")) != -1) { in parseOption()
69 if(optind >= argc) { in parseOption()
188 int main(int argc, char** argv) { in main() argument
189 if(!parseOption(argc, argv)) { in main()
/frameworks/base/tools/obbtool/
DMain.cpp181 int main(int argc, char* const argv[]) in main() argument
189 if (argc < 2) { in main()
194 while ((opt = getopt_long(argc, argv, ADD_OPTS, longopts, &option_index)) != -1) { in main()
258 if (optind < argc) { in main()
262 if (optind >= argc) { in main()
/frameworks/native/cmds/dumpsys/
Ddumpsys.cpp29 int main(int argc, char* const argv[]) in main() argument
42 if (argc == 1) { in main()
48 for (int i=2; i<argc; i++) { in main()
/frameworks/compile/slang/
Dslang-data.c5 int main(int argc, char *argv[]) { in main() argument
7 if (argc != 4 || (argc == 2 && strcmp(argv[1], "--help") == 0)) { in main()
/frameworks/base/cmds/screenshot/
Dscreenshot.c106 int main(int argc, char**argv) { in main() argument
115 while ((c = getopt(argc, argv, "s:i")) != -1) { in main()
124 argc -= optind; in main()
127 if (argc < 1) { in main()
/frameworks/base/tools/validatekeymaps/
DMain.cpp128 int main(int argc, const char** argv) { in main() argument
129 if (argc < 2) { in main()
135 for (int i = 1; i < argc; i++) { in main()
/frameworks/compile/linkloader/android/
Dtest-librsloader.c68 int main(int argc, char **argv) { in main() argument
69 if (argc < 2) { in main()
106 int ret = main_stub(argc - 1, argv + 1); in main()
/frameworks/native/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/wilhelm/tests/examples/
DslesTestEqFdPath.cpp277 int main(int argc, char* const argv[]) in main() argument
293 if (argc >= 2 && !strcmp(argv[1], "--always-on")) { in main()
295 --argc; in main()
300 if (argc < 3) in main()
302 if (argc < 1) in main()
323 if (argc == 3) { in main()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
DTestBenchMultipleInstance.c60 int main(int argc, char **argv) in main() argument
76 if ( argc > 1 && strcmp(argv[1], "-T") == 0 ) in main()
82 if (argc < 2) in main()
100 instCount = argc - 1; in main()
104 for (i = 1; i < (argc-1); i++) in main()
149 finput = fopen(argv[argc-instCount+i],"rb"); in main()
152 DEBUG(("Unable to open input file <%s>\n", argv[argc-instCount+i])); in main()
156 DEBUG(("Reading input file[%d] %s\n", i, argv[argc-instCount+i])); in main()
/frameworks/base/cmds/ip-up-vpn/
Dip-up-vpn.c66 int main(int argc, char **argv) in main() argument
74 if (argc >= 6) { in main()
81 } else if (argc == 2) { in main()

12345678