Home
last modified time | relevance | path

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

1234567

/frameworks/base/tools/aapt/
DMain.cpp260 int main(int argc, char* const argv[]) in main() argument
271 if (argc < 2) { in main()
299 argc -= 2; in main()
305 while (argc && argv[0][0] == '-') { in main()
318 argc--; in main()
320 if (!argc) { in main()
331 argc--; in main()
333 if (!argc) { in main()
363 argc--; in main()
365 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/cmds/app_process/
Dapp_main.cpp43 void setClassNameAndArgs(const String8& className, int argc, char * const *argv) { in setClassNameAndArgs() argument
45 for (int i = 0; i < argc; ++i) { in setClassNameAndArgs()
118 static size_t computeArgBlockSize(int argc, char* const argv[]) { in computeArgBlockSize() argument
133 uintptr_t end = reinterpret_cast<uintptr_t>(argv[argc - 1]); in computeArgBlockSize()
134 end += strlen(argv[argc - 1]) + 1; in computeArgBlockSize()
186 int main(int argc, char* const argv[]) in main() argument
197 AppRuntime runtime(argv[0], computeArgBlockSize(argc, argv)); in main()
200 argc--; in main()
227 for (i = 0; i < argc; i++) { in main()
246 while (i < argc) { in main()
[all …]
/frameworks/native/cmds/servicemanager/
Dbctest.c59 int main(int argc, char **argv) in main() argument
71 argc--; in main()
73 while (argc > 0) { in main()
83 if (argc < 2) { in main()
89 argc--; in main()
92 if (argc < 2) { in main()
97 argc--; in main()
103 argc--; in main()
/frameworks/native/cmds/service/
Dservice.cpp69 int main(int argc, char* const argv[]) in main() argument
82 int ic = getopt(argc, argv, "h?"); in main()
99 if (optind >= argc) { in main()
104 if (optind < argc) { in main()
127 if (optind+1 < argc) { in main()
139 while (optind < argc) { in main()
142 if (optind >= argc) { in main()
151 if (optind >= argc) { in main()
160 if (optind >= argc) { in main()
169 if (optind >= argc) { in main()
[all …]
/frameworks/base/cmds/idmap/
Didmap.cpp211 int main(int argc, char **argv) in main() argument
217 for (int i = 0; i < argc; ++i) { in main()
225 if (argc == 2 && !strcmp(argv[1], "--help")) { in main()
230 if (argc == 5 && !strcmp(argv[1], "--fd")) { in main()
234 if (argc == 5 && !strcmp(argv[1], "--path")) { in main()
238 if (argc >= 6 && !strcmp(argv[1], "--scan")) { in main()
240 for (int i = 5; i < argc; i++) { in main()
246 if (argc == 3 && !strcmp(argv[1], "--inspect")) { in main()
/frameworks/base/cmds/backup/
Dbackup.cpp101 int main(int argc, const char** argv) in main() argument
103 if (argc <= 1) { in main()
106 if (argc == 3 && 0 == strcmp(argv[1], "list")) { in main()
109 if (argc == 4 && 0 == strcmp(argv[1], "print")) { in main()
112 return usage(argc, argv); in main()
/frameworks/rs/api/
DGenerator.cpp156 static bool parseCommandLine(int argc, char* argv[], unsigned int* maxApiLevel, bool* forVerificati… in parseCommandLine() argument
158 for (int i = 1; i < argc; i++) { in parseCommandLine()
162 if (i < argc) { in parseCommandLine()
190 int main(int argc, char* argv[]) { in main() argument
195 if (!parseCommandLine(argc, argv, &maxApiLevel, &forVerification, &specFileNames)) { in main()
/frameworks/base/tools/split-select/
DMain.cpp240 static int main(int argc, char** argv) { in main() argument
242 argc--; in main()
249 while (argc > 0) { in main()
252 argc--; in main()
254 if (argc < 1) { in main()
261 argc--; in main()
263 if (argc < 1) { in main()
270 argc--; in main()
272 if (argc < 1) { in main()
294 argc--; in main()
[all …]
/frameworks/base/tools/aapt2/
DMain.cpp30 int main(int argc, char** argv) { in main() argument
31 if (argc >= 2) { in main()
33 argc -= 1; in main()
36 for (int i = 1; i < argc; i++) { in main()
/frameworks/native/cmds/installd/
Dotapreopt_chroot.cpp34 static int otapreopt_chroot(const int argc, char **arg) { in otapreopt_chroot() argument
82 CHECK_EQ(argc, 10); in otapreopt_chroot()
97 int main(const int argc, char *argv[]) { in main() argument
98 return android::installd::otapreopt_chroot(argc, argv); in main()
/frameworks/rs/tests/latency/
Dlatency.cpp9 int main(int argc, char** argv) in main() argument
16 if (argc >= 2) { in main()
26 if (argc >= 3) { in main()
34 if (argc >= 4) { in main()
40 if (argc >= 5) { in main()
/frameworks/base/libs/hwui/tests/macrobench/
Dmain.cpp149 void parseOptions(int argc, char* argv[]) { in parseOptions() argument
159 c = getopt_long(argc, argv, SHORT_OPTIONS, LONG_OPTIONS, &option_index); in parseOptions()
237 if (optind < argc) { in parseOptions()
247 } while (optind < argc); in parseOptions()
253 int main(int argc, char* argv[]) { in main() argument
257 parseOptions(argc, argv); in main()
/frameworks/native/cmds/cmd/
Dcmd.cpp48 int main(int argc, char* const argv[]) in main() argument
62 if (argc == 1) { in main()
67 if ((argc == 2) && (strcmp(argv[1], "-l") == 0)) { in main()
82 for (int i=2; i<argc; i++) { 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/av/services/audioflinger/tests/
Dtest-mixer.cpp93 int main(int argc, char* argv[]) { in main() argument
107 for (int ch; (ch = getopt(argc, argv, "fmc:s:o:a:P:")) != -1;) { in main()
139 argc -= optind; in main()
142 if (argc == 0) { in main()
146 if ((unsigned)argc > AudioMixer::MAX_NUM_TRACKS) { in main()
147 fprintf(stderr, "too many tracks: %d > %u", argc, AudioMixer::MAX_NUM_TRACKS); in main()
154 names.resize(argc); in main()
155 providers.resize(argc); in main()
156 formats.resize(argc); in main()
157 for (int i = 0; i < argc; ++i) { in main()
/frameworks/base/cmds/screencap/
Dscreencap.cpp85 int main(int argc, char** argv) in main() argument
93 while ((c = getopt(argc, argv, "phd:")) != -1) { in main()
107 argc -= optind; in main()
112 if (argc == 0) { in main()
114 } else if (argc == 1) { in main()
/frameworks/av/cmds/stagefright/
Daudioloop.cpp49 int main(int argc, char* argv[]) in main() argument
58 while ((ch = getopt(argc, argv, "d:mw")) != -1) { in main()
74 argc -= optind; in main()
76 if (argc == 1) { 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/bugreportz/
Dbugreportz.cpp41 int main(int argc, char *argv[]) { in main() argument
43 if (argc > 1) { in main()
46 while ((c = getopt(argc, argv, "vh")) != -1) { 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/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/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/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/native/cmds/ip-up-vpn/
Dip-up-vpn.c67 int main(int argc, char **argv) in main() argument
75 if (argc >= 6) { in main()
83 } else if (argc == 2) { in main()

1234567