/frameworks/base/tools/aapt/ |
D | Main.cpp | 276 int main(int argc, char* const argv[]) in main() argument 278 char *prog = argv[0]; in main() 292 if (argv[1][0] == 'v') in main() 294 else if (argv[1][0] == 'd') in main() 296 else if (argv[1][0] == 'l') in main() 298 else if (argv[1][0] == 'a') in main() 300 else if (argv[1][0] == 'r') in main() 302 else if (argv[1][0] == 'p') in main() 304 else if (argv[1][0] == 'c') in main() 306 else if (argv[1][0] == 's') in main() [all …]
|
/frameworks/base/libs/usb/tests/accessorytest/ |
D | accessory.c | 33 int main(int argc, char* argv[]) in main() argument 43 argv += 1; in main() 44 while (*argv) { in main() 45 if (strcmp(*argv, "-ic") == 0) { in main() 46 argv++; in main() 47 if (*argv) in main() 48 input_card = atoi(*argv); in main() 49 } else if (strcmp(*argv, "-id") == 0) { in main() 50 argv++; in main() 51 if (*argv) in main() [all …]
|
/frameworks/base/cmds/idmap/ |
D | idmap.cpp | 238 int main(int argc, char **argv) in main() argument 245 strncat(buf, argv[i], sizeof(buf) - 1); in main() 252 if (argc == 2 && !strcmp(argv[1], "--help")) { in main() 257 if (argc == 5 && !strcmp(argv[1], "--fd")) { in main() 258 return maybe_create_fd(argv[2], argv[3], argv[4]); in main() 261 if (argc == 5 && !strcmp(argv[1], "--path")) { in main() 262 return maybe_create_path(argv[2], argv[3], argv[4]); in main() 265 if (argc == 5 && !strcmp(argv[1], "--verify")) { in main() 266 return maybe_verify_fd(argv[2], argv[3], argv[4]); in main() 269 if (argc >= 6 && !strcmp(argv[1], "--scan")) { 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() 109 if (strcmp(argv[optind], "check") == 0) { in main() 112 sp<IBinder> service = sm->checkService(String16(argv[optind])); in main() 113 aout << "Service " << argv[optind] << in main() 121 else if (strcmp(argv[optind], "list") == 0) { in main() 132 } else if (strcmp(argv[optind], "call") == 0) { in main() 136 sp<IBinder> service = sm->checkService(String16(argv[optind++])); in main() 138 int32_t code = atoi(argv[optind++]); in main() 147 if (strcmp(argv[optind], "i32") == 0) { in main() [all …]
|
/frameworks/av/media/libaudioclient/tests/ |
D | test_create_utils.cpp | 75 int main(int argc, char **argv, test_func_t testFunc) in main() argument 83 fprintf(stderr, "Usage: %s [-i input_params.txt] [-o output_params.txt]\n", argv[0]); in main() 87 argv++; in main() 88 while (*argv) { in main() 89 if (strcmp(*argv, "-i") == 0) { in main() 90 argv++; in main() 91 if (*argv) { in main() 92 inputFile = fopen(*argv, "r"); in main() 100 if (strcmp(*argv, "-o") == 0) { in main() 101 argv++; 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 46 mArgs.add(String8(argv[i])); in setClassNameAndArgs() 120 static size_t computeArgBlockSize(int argc, char* const argv[]) { in computeArgBlockSize() argument 134 uintptr_t start = reinterpret_cast<uintptr_t>(argv[0]); in computeArgBlockSize() 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 179 argv_String.append(argv[i]); in main() 185 AppRuntime runtime(argv[0], computeArgBlockSize(argc, argv)); in main() 189 argv++; in main() [all …]
|
/frameworks/native/cmds/installd/ |
D | otapreopt_parameters.cpp | 59 bool OTAPreoptParameters::ReadArguments(int argc, const char** argv) { in ReadArguments() argument 63 const char* target_slot_arg = argv[1]; in ReadArguments() 76 if (argv[2] == nullptr) { in ReadArguments() 81 if (std::string("dexopt").compare(argv[2]) == 0) { in ReadArguments() 98 return ReadArgumentsPostV1(2, argv, false); in ReadArguments() 100 return ReadArgumentsV1(argv); in ReadArguments() 105 if (!ParseUInt(argv[2], &version)) { in ReadArguments() 106 LOG(ERROR) << "Could not parse version: " << argv[2]; in ReadArguments() 110 return ReadArgumentsPostV1(version, argv, true); in ReadArguments() 143 bool OTAPreoptParameters::ReadArgumentsV1(const char** argv) { in ReadArgumentsV1() argument [all …]
|
/frameworks/rs/script_api/ |
D | Generator.cpp | 157 static bool parseCommandLine(int argc, char* argv[], unsigned int* maxApiLevel, in parseCommandLine() argument 160 if (argv[i][0] == '-') { in parseCommandLine() 161 if (argv[i][1] == 'v') { in parseCommandLine() 165 *maxApiLevel = strtol(argv[i], &end, 10); in parseCommandLine() 167 cerr << "Error. Can't parse the version number" << argv[i] << "\n"; in parseCommandLine() 175 cerr << "Unrecognized flag %s\n" << argv[i] << "\n"; in parseCommandLine() 179 specFileNames->push_back(argv[i]); in parseCommandLine() 189 int main(int argc, char* argv[]) { in main() argument 193 if (!parseCommandLine(argc, argv, &maxApiLevel, &specFileNames)) { in main()
|
/frameworks/base/cmds/backup/ |
D | backup.cpp | 28 static int usage(int /* argc */, const char** argv) in usage() argument 30 const char* p = argv[0]; in usage() 101 int main(int argc, const char** argv) in main() argument 106 if (argc == 3 && 0 == strcmp(argv[1], "list")) { in main() 107 return perform_list(argv[2]); in main() 109 if (argc == 4 && 0 == strcmp(argv[1], "print")) { in main() 110 return perform_print(argv[2], argv[3]); in main() 112 return usage(argc, argv); in main()
|
/frameworks/native/cmds/dumpstate/tests/ |
D | dumpstate_test_fixture.cpp | 58 int main(int argc, char* const argv[]) { in main() argument 60 if (strcmp(argv[1], "--crash") == 0) { in main() 67 if (strcmp(argv[1], "--exit") == 0) { in main() 69 return atoi(argv[2]); in main() 77 if (strcmp(argv[1], "--pid") == 0) { in main() 81 } else if (strcmp(argv[1], "--uid") == 0) { in main() 89 if (strcmp(argv[index], "--sleep") == 0) { in main() 90 int napTime = atoi(argv[index + 1]); in main()
|
/frameworks/base/startop/scripts/app_startup/ |
D | query_compiler_filter_test.py | 66 def replace_argv(argv): argument 68 old_argv = sys.argv 69 sys.argv = [sys.argv[0]] + argv 73 sys.argv = old_argv 75 def exec_main(argv): argument 82 with replace_argv(argv):
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/test/ |
D | m4v_h263_enc_test.cpp | 46 int main(int argc, char *argv[]) { in main() argument 50 "<height> <frame rate> <bitrate in kbps>\n", argv[0]); in main() 61 if (strcmp(argv[3], "mpeg4") == 0) { in main() 63 } else if (strcmp(argv[3], "h263") == 0) { in main() 66 fprintf(stderr, "Unsupported mode %s\n", argv[3]); in main() 73 width = atoi(argv[4]); in main() 74 height = atoi(argv[5]); in main() 88 frameRate = atoi(argv[6]); in main() 96 bitrate = atoi(argv[7]); in main() 111 FILE *fpInput = fopen(argv[1], "rb"); in main() [all …]
|
/frameworks/ml/nn/runtime/test/ |
D | TestMain.cpp | 109 void checkArgs(int argc, char** argv, int nextArg) { in checkArgs() argument 111 std::cerr << "Unexpected argument: " << argv[nextArg] << std::endl; 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() 123 allowedPasses = std::stoull(argv[1]); in main() 124 checkArgs(argc, argv, 2); in main() 126 checkArgs(argc, argv, 1); in main()
|
/frameworks/base/tools/stats_log_api_gen/ |
D | main.cpp | 524 run(int argc, char const*const* argv) in run() argument 545 if (0 == strcmp("--help", argv[index])) { in run() 548 } else if (0 == strcmp("--cpp", argv[index])) { in run() 554 cppFilename = argv[index]; in run() 555 } else if (0 == strcmp("--header", argv[index])) { in run() 561 headerFilename = argv[index]; in run() 562 } else if (0 == strcmp("--java", argv[index])) { in run() 568 javaFilename = argv[index]; in run() 569 } else if (0 == strcmp("--jni", argv[index])) { in run() 575 jniFilename = argv[index]; in run() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/SampleCode/ |
D | AMRWB_E_SAMPLE.c | 266 int main(int argc, char **argv) // for gcc compiler; in main() argument 294 if (argv [arg] [0] == '+') { in main() 295 if(argv[arg][1] == 'M') in main() 297 switch(argv[arg][2]) in main() 319 printf ("Invalid parameter '%s'.\n", argv [arg]); in main() 322 }else if(argv[arg][1] == 'F') in main() 324 switch(argv[arg][2]) in main() 334 printf ("Invalid parameter '%s'.\n", argv [arg]); in main() 339 }else if(strcmp (argv[arg], "+DTX") == 0) in main() 347 inFileName = argv[arg]; in main() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | WrapperInit.java | 152 private static Runnable wrapperInit(int targetSdkVersion, String[] argv) { in wrapperInit() argument 160 if (argv != null && argv.length > 2 && argv[0].equals("-cp")) { in wrapperInit() 161 classLoader = ZygoteInit.createPathClassLoader(argv[1], targetSdkVersion); in wrapperInit() 167 String removedArgs[] = new String[argv.length - 2]; in wrapperInit() 168 System.arraycopy(argv, 2, removedArgs, 0, argv.length - 2); in wrapperInit() 169 argv = removedArgs; in wrapperInit() 174 argv, classLoader); in wrapperInit()
|
/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/libstagefright/codecs/amrnb/enc/test/ |
D | amrnb_enc_test.cpp | 174 int main(int argc, char *argv[]) { in main() argument 186 if (argv[arg][0] == '+') { in main() 187 if (argv[arg][1] == 'M') { in main() 188 switch (argv[arg][2]) { in main() 207 fprintf(stderr, "Invalid parameter '%s'.\n", argv[arg]); in main() 213 fprintf(stderr, "Invalid parameter '%s'.\n", argv[arg]); in main() 219 inFileName = argv[arg]; in main() 222 outFileName = argv[arg]; in main() 226 fprintf(stderr, "Invalid parameter '%s'.\n", argv[arg]); in main()
|
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() 66 argv[optind ?: 1], argv[0]); in initFromOptions()
|
/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() 67 argv[optind ?: 1], argv[0]); 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() 67 argv[optind ?: 1], argv[0]); 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() 66 argv[optind ?: 1], argv[0]); 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() 67 argv[optind ?: 1], argv[0]); 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() 66 argv[optind ?: 1], argv[0]); 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() 66 argv[optind ?: 1], argv[0]); in initFromOptions()
|