/frameworks/base/tools/aapt/ |
D | Main.cpp | 276 int main(int argc, char* const argv[]) in main() argument 287 if (argc < 2) { in main() 315 argc -= 2; in main() 321 while (argc && argv[0][0] == '-') { in main() 334 argc--; in main() 336 if (!argc) { in main() 347 argc--; in main() 349 if (!argc) { in main() 379 argc--; in main() 381 if (!argc) { in main() [all …]
|
/frameworks/base/cmds/app_process/ |
D | app_main.cpp | 43 void setClassNameAndArgs(const String8& className, int argc, char * const *argv) { in setClassNameAndArgs() argument 45 for (int i = 0; i < argc; ++i) { in setClassNameAndArgs() 120 static size_t computeArgBlockSize(int argc, char* const argv[]) { in computeArgBlockSize() argument 135 uintptr_t end = reinterpret_cast<uintptr_t>(argv[argc - 1]); in computeArgBlockSize() 136 end += strlen(argv[argc - 1]) + 1; in computeArgBlockSize() 173 int main(int argc, char* const argv[]) in main() argument 177 for (int i = 0; i < argc; ++i) { in main() 185 AppRuntime runtime(argv[0], computeArgBlockSize(argc, argv)); in main() 188 argc--; in main() 221 for (i = 0; i < argc; i++) { in main() [all …]
|
/frameworks/native/cmds/service/ |
D | service.cpp | 74 int main(int argc, char* const argv[]) in main() argument 80 int ic = getopt(argc, argv, "h?"); in main() 106 if (optind >= argc) { in main() 111 if (optind < argc) { in main() 134 if (optind+1 < argc) { in main() 146 while (optind < argc) { in main() 149 if (optind >= argc) { in main() 158 if (optind >= argc) { in main() 167 if (optind >= argc) { in main() 176 if (optind >= argc) { in main() [all …]
|
/frameworks/base/cmds/idmap/ |
D | idmap.cpp | 238 int main(int argc, char **argv) in main() argument 244 for (int i = 0; i < argc; ++i) { in main() 252 if (argc == 2 && !strcmp(argv[1], "--help")) { in main() 257 if (argc == 5 && !strcmp(argv[1], "--fd")) { in main() 261 if (argc == 5 && !strcmp(argv[1], "--path")) { in main() 265 if (argc == 5 && !strcmp(argv[1], "--verify")) { in main() 269 if (argc >= 6 && !strcmp(argv[1], "--scan")) { in main() 271 for (int i = 5; i < argc; i++) { in main() 277 if (argc == 3 && !strcmp(argv[1], "--inspect")) { in main()
|
/frameworks/native/cmds/dumpstate/ |
D | main.cpp | 29 bool ShouldStartServiceAndWait(int argc, char* argv[]) { in ShouldStartServiceAndWait() argument 33 while ((c = getopt(argc, argv, "wdho:svqzpPBRSV:")) != -1 && !do_wait) { in ShouldStartServiceAndWait() 52 int main(int argc, char* argv[]) { in main() argument 53 if (ShouldStartServiceAndWait(argc, argv)) { in main() 66 return run_main(argc, argv); in main()
|
/frameworks/av/media/libeffects/factory/test/ |
D | DumpConfig.cpp | 22 int main(int argc, char* argv[]) { in main() argument 26 if (argc == 2 && strcmp(argv[1], "--legacy") == 0) { in main() 29 } else if ((argc == 2 || argc == 3) && strcmp(argv[1], "--xml") == 0) { in main() 31 if (argc == 3) { in main()
|
/frameworks/ml/nn/runtime/test/ |
D | TestMain.cpp | 109 void checkArgs(int argc, char** argv, int nextArg) { in checkArgs() argument 110 if (nextArg != argc) { in checkArgs() 118 int main(int argc, char** argv) { in main() argument 119 testing::InitGoogleTest(&argc, argv); in main() 122 if ((argc > 1) && std::isdigit(argv[1][0])) { in main() 124 checkArgs(argc, argv, 2); in main() 126 checkArgs(argc, argv, 1); in main()
|
/frameworks/rs/script_api/ |
D | Generator.cpp | 157 static bool parseCommandLine(int argc, char* argv[], unsigned int* maxApiLevel, in parseCommandLine() argument 159 for (int i = 1; i < argc; i++) { in parseCommandLine() 163 if (i < argc) { in parseCommandLine() 189 int main(int argc, char* argv[]) { in main() argument 193 if (!parseCommandLine(argc, argv, &maxApiLevel, &specFileNames)) { in main()
|
/frameworks/native/cmds/dumpstate/tests/ |
D | dumpstate_test_fixture.cpp | 58 int main(int argc, char* const argv[]) { in main() argument 59 if (argc == 2) { in main() 66 if (argc == 3) { in main() 73 if (argc > 1) { in main() 88 if (argc > index + 1) { in main()
|
/frameworks/base/cmds/backup/ |
D | backup.cpp | 101 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/base/tools/aapt2/ |
D | Main.cpp | 155 int MainImpl(int argc, char** argv) { in MainImpl() argument 156 if (argc < 1) { in MainImpl() 162 for (int i = 1; i < argc; i++) { in MainImpl() 180 int main(int argc, char** argv) { in main() argument 182 LPWSTR* wide_argv = CommandLineToArgvW(GetCommandLineW(), &argc); in main() 186 for (int i = 0; i < argc; i++) { in main() 197 for (int i = 0; i < argc; i++) { in main() 202 return MainImpl(argc, argv); in main()
|
/frameworks/av/media/libstagefright/mpeg2ts/test/ |
D | Mpeg2tsUnitTestEnvironment.h | 31 int initFromOptions(int argc, char **argv); 41 int Mpeg2tsUnitTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument 46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions() 61 if (optind < argc) { in initFromOptions()
|
/frameworks/av/media/libstagefright/foundation/tests/OpusHeader/ |
D | OpusHeaderTestEnvironment.h | 31 int initFromOptions(int argc, char **argv); 41 int OpusHeaderTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument 46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions() 61 if (optind < argc) { in initFromOptions()
|
/frameworks/av/media/extractors/tests/ |
D | ExtractorUnitTestEnvironment.h | 31 int initFromOptions(int argc, char **argv); 41 int ExtractorUnitTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument 46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions() 60 if (optind < argc) { in initFromOptions()
|
/frameworks/av/media/libstagefright/tests/HEVC/ |
D | HEVCUtilsTestEnvironment.h | 31 int initFromOptions(int argc, char **argv); 41 int HEVCUtilsTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument 46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions() 61 if (optind < argc) { in initFromOptions()
|
/frameworks/av/media/libstagefright/timedtext/test/ |
D | TimedTextTestEnvironment.h | 31 int initFromOptions(int argc, char **argv); 41 int TimedTextTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument 46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions() 60 if (optind < argc) { in initFromOptions()
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/test/ |
D | AmrnbEncTestEnvironment.h | 31 int initFromOptions(int argc, char **argv); 41 int AmrnbEncTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument 46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions() 60 if (optind < argc) { in initFromOptions()
|
/frameworks/av/media/libstagefright/codecs/mp3dec/test/ |
D | Mp3DecoderTestEnvironment.h | 31 int initFromOptions(int argc, char **argv); 41 int Mp3DecoderTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument 46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions() 60 if (optind < argc) { in initFromOptions()
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/test/ |
D | AmrwbEncTestEnvironment.h | 31 int initFromOptions(int argc, char **argv); 41 int AmrwbEncTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument 46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions() 60 if (optind < argc) { in initFromOptions()
|
/frameworks/av/media/libstagefright/xmlparser/test/ |
D | XMLParserTestEnvironment.h | 31 int initFromOptions(int argc, char **argv); 41 int XMLParserTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument 46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions() 61 if (optind < argc) { in initFromOptions()
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/test/ |
D | Mpeg4H263EncoderTestEnvironment.h | 31 int initFromOptions(int argc, char **argv); 41 int Mpeg4H263EncoderTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument 46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions() 61 if (optind < argc) { in initFromOptions()
|
/frameworks/av/media/libstagefright/tests/ESDS/ |
D | ESDSTestEnvironment.h | 31 int initFromOptions(int argc, char **argv); 41 int ESDSTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument 46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions() 60 if (optind < argc) { in initFromOptions()
|
/frameworks/av/media/libstagefright/flac/dec/test/ |
D | FlacDecoderTestEnvironment.h | 31 int initFromOptions(int argc, char **argv); 41 int FlacDecoderTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument 46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions() 61 if (optind < argc) { in initFromOptions()
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/test/ |
D | AmrnbDecTestEnvironment.h | 31 int initFromOptions(int argc, char **argv); 41 int AmrnbDecTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument 46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions() 60 if (optind < argc) { in initFromOptions()
|
/frameworks/av/media/libstagefright/foundation/tests/AVCUtils/ |
D | AVCUtilsTestEnvironment.h | 31 int initFromOptions(int argc, char **argv); 41 int AVCUtilsTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument 46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions() 61 if (optind < argc) { in initFromOptions()
|