/frameworks/base/tools/aapt/ |
D | Main.cpp | 262 int main(int argc, char* const argv[]) in main() argument 264 char *prog = argv[0]; in main() 278 if (argv[1][0] == 'v') in main() 280 else if (argv[1][0] == 'd') in main() 282 else if (argv[1][0] == 'l') in main() 284 else if (argv[1][0] == 'a') in main() 286 else if (argv[1][0] == 'r') in main() 288 else if (argv[1][0] == 'p') in main() 290 else if (argv[1][0] == 'c') in main() 292 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/av/media/libstagefright/codecs/aacenc/SampleCode/ |
D | AAC_E_SAMPLES.c | 48 static int parsecmdline(int argc, char **argv,char **input_filename, char **output_filename, AACE… in parsecmdline() argument 65 argv++; in parsecmdline() 68 if (!strcmp(*argv, "-if")) in parsecmdline() 70 argv++; in parsecmdline() 72 *input_filename = *argv; in parsecmdline() 74 else if (!strcmp(*argv, "-of")) in parsecmdline() 76 argv++; in parsecmdline() 78 *output_filename = *argv; in parsecmdline() 80 else if (!strcmp(*argv, "-sr")) in parsecmdline() 82 argv++; in parsecmdline() [all …]
|
/frameworks/base/cmds/app_process/ |
D | app_main.cpp | 42 void setClassNameAndArgs(const String8& className, int argc, char * const *argv) { in setClassNameAndArgs() argument 45 mArgs.add(String8(argv[i])); in setClassNameAndArgs() 119 static size_t computeArgBlockSize(int argc, char* const argv[]) { in computeArgBlockSize() argument 133 uintptr_t start = reinterpret_cast<uintptr_t>(argv[0]); in computeArgBlockSize() 134 uintptr_t end = reinterpret_cast<uintptr_t>(argv[argc - 1]); in computeArgBlockSize() 135 end += strlen(argv[argc - 1]) + 1; in computeArgBlockSize() 187 int main(int argc, char* const argv[]) in main() argument 193 argv_String.append(argv[i]); in main() 199 AppRuntime runtime(argv[0], computeArgBlockSize(argc, argv)); in main() 203 argv++; in main() [all …]
|
/frameworks/native/cmds/service/ |
D | service.cpp | 69 int main(int argc, char* const argv[]) in main() argument 75 int ic = getopt(argc, argv, "h?"); in main() 104 if (strcmp(argv[optind], "check") == 0) { in main() 107 sp<IBinder> service = sm->checkService(String16(argv[optind])); in main() 108 aout << "Service " << argv[optind] << in main() 116 else if (strcmp(argv[optind], "list") == 0) { in main() 127 } else if (strcmp(argv[optind], "call") == 0) { in main() 131 sp<IBinder> service = sm->checkService(String16(argv[optind++])); in main() 133 int32_t code = atoi(argv[optind++]); in main() 142 if (strcmp(argv[optind], "i32") == 0) { in main() [all …]
|
/frameworks/rs/script_api/ |
D | Generator.cpp | 157 static bool parseCommandLine(int argc, char* argv[], unsigned int* maxApiLevel, bool* forVerificati… 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() 174 } else if (argv[i][1] == 'H') { in parseCommandLine() 177 cerr << "Unrecognized flag %s\n" << argv[i] << "\n"; in parseCommandLine() 181 specFileNames->push_back(argv[i]); in parseCommandLine() 191 int main(int argc, char* argv[]) { in main() argument 196 if (!parseCommandLine(argc, argv, &maxApiLevel, &forVerification, &specFileNames)) { in main()
|
/frameworks/native/cmds/servicemanager/ |
D | bctest.c | 59 int main(int argc, char **argv) in main() argument 72 argv++; in main() 74 if (!strcmp(argv[0],"alt")) { in main() 82 } else if (!strcmp(argv[0],"lookup")) { in main() 87 handle = svcmgr_lookup(bs, svcmgr, argv[1]); in main() 88 fprintf(stderr,"lookup(%s) = %x\n", argv[1], handle); in main() 90 argv++; in main() 91 } else if (!strcmp(argv[0],"publish")) { in main() 96 svcmgr_publish(bs, svcmgr, argv[1], &token); in main() 98 argv++; in main() [all …]
|
/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/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/native/cmds/installd/ |
D | otapreopt_chroot.cpp | 141 const char** argv = new const char*[argc]; in otapreopt_chroot() local 143 argv[0] = "/system/bin/otapreopt"; in otapreopt_chroot() 147 argv[i - 1] = arg[i]; in otapreopt_chroot() 150 execv(argv[0], static_cast<char * const *>(const_cast<char**>(argv))); in otapreopt_chroot() 158 int main(const int argc, char *argv[]) { in main() argument 159 return android::installd::otapreopt_chroot(argc, argv); in main()
|
D | dexopt.cpp | 165 static int split(char *buf, const char **argv) in split() argument 173 argv[count++] = tok; in split() 375 const char* argv[9 // program name, mandatory arguments and the final NULL in run_dex2oat() local 394 argv[i++] = DEX2OAT_BIN; in run_dex2oat() 395 argv[i++] = zip_fd_arg; in run_dex2oat() 396 argv[i++] = zip_location_arg; in run_dex2oat() 397 argv[i++] = input_vdex_fd_arg; in run_dex2oat() 398 argv[i++] = output_vdex_fd_arg; in run_dex2oat() 399 argv[i++] = oat_fd_arg; in run_dex2oat() 400 argv[i++] = oat_location_arg; in run_dex2oat() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/SampleCode/ |
D | AMRWB_E_SAMPLE.c | 262 int main(int argc, char **argv) // for gcc compiler; in main() argument 290 if (argv [arg] [0] == '+') { in main() 291 if(argv[arg][1] == 'M') in main() 293 switch(argv[arg][2]) in main() 315 printf ("Invalid parameter '%s'.\n", argv [arg]); in main() 318 }else if(argv[arg][1] == 'F') in main() 320 switch(argv[arg][2]) in main() 330 printf ("Invalid parameter '%s'.\n", argv [arg]); in main() 335 }else if(strcmp (argv[arg], "+DTX") == 0) in main() 343 inFileName = argv[arg]; in main() [all …]
|
/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()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | WrapperInit.java | 145 private static void wrapperInit(int targetSdkVersion, String[] argv) in wrapperInit() argument 154 if (argv != null && argv.length > 2 && argv[0].equals("-cp")) { in wrapperInit() 155 classLoader = ZygoteInit.createPathClassLoader(argv[1], targetSdkVersion); in wrapperInit() 161 String removedArgs[] = new String[argv.length - 2]; in wrapperInit() 162 System.arraycopy(argv, 2, removedArgs, 0, argv.length - 2); in wrapperInit() 163 argv = removedArgs; in wrapperInit() 166 RuntimeInit.applicationInit(targetSdkVersion, argv, classLoader); in wrapperInit()
|
/frameworks/native/cmds/cmd/ |
D | cmd.cpp | 122 int main(int argc, char* const argv[]) in main() argument 148 if ((argc == 2) && (strcmp(argv[1], "-l") == 0)) { in main() 164 args.add(String16(argv[i])); in main() 166 String16 cmd = String16(argv[1]); in main() 169 ALOGW("Can't find service %s", argv[1]); in main() 170 aerr << "cmd: Can't find service: " << argv[1] << endl; in main() 178 ALOGD("cmd: Invoking %s in=%d, out=%d, err=%d", argv[1], STDIN_FILENO, STDOUT_FILENO, in main() 194 ALOGW("Failure calling service %s: %s (%d)", argv[1], errstr, -err); in main() 195 aout << "cmd: Failure calling service " << argv[1] << ": " << errstr << " (" in main()
|
/frameworks/base/packages/SystemUI/scripts/ |
D | new_merge.py | 83 def main(argv): argument 85 if len(argv) > 1: 86 if argv[1] == '--help' or argv[1] == '-h': 87 print ('Usage: %s [<commit>]' % argv[0]) 91 elif argv[1] == '--reverse': 95 print ("**** Pulling file list from: %s" % argv[1]) 96 pipe = Popen(['git', 'diff', '--name-only', argv[1]], stdout=PIPE).stdout 165 main(sys.argv)
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
D | DecTestBench.c | 34 #define DEBUG(argv) printf argv argument 65 int $Sub$$main(char argc, char * argv[]) in $Sub$$main() argument 68 return $Super$$main(argc, argv); // calls the original function in $Sub$$main() 83 int main(int argc, char **argv) in main() argument 115 if ( argc > 1 && strcmp(argv[1], "-T") == 0 ) in main() 127 argv[0])); in main() 146 if ( strncmp(argv[i], "-N", 2) == 0 ) in main() 148 maxNumPics = (u32)atoi(argv[i]+2); in main() 150 else if ( strncmp(argv[i], "-O", 2) == 0 ) in main() 152 strcpy(outFileName, argv[i]+2); in main() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/test/ |
D | amrnbdec_test.cpp | 51 int main(int argc, char *argv[]) { in main() argument 54 fprintf(stderr, "Usage %s <input file> <output file>\n", argv[0]); in main() 59 FILE* fpInput = fopen(argv[1], "rb"); in main() 61 fprintf(stderr, "Could not open %s\n", argv[1]); in main() 79 SNDFILE *handle = sf_open(argv[2], SFM_WRITE, &sfInfo); in main() 81 fprintf(stderr, "Could not create %s\n", argv[2]); in main()
|
/frameworks/av/media/libstagefright/codecs/mp3dec/test/ |
D | mp3dec_test.cpp | 45 int main(int argc, const char **argv) { in main() argument 48 fprintf(stderr, "Usage %s <input file> <output file>\n", argv[0]); in main() 67 bool success = mp3Reader.init(argv[1]); in main() 69 fprintf(stderr, "Encountered error reading %s\n", argv[1]); in main() 80 SNDFILE *handle = sf_open(argv[2], SFM_WRITE, &sfInfo); in main() 82 fprintf(stderr, "Encountered error writing %s\n", argv[2]); in main()
|
/frameworks/compile/libbcc/tools/bcc_strip_attr/ |
D | bcc_strip_attr.cpp | 110 int main(int argc, char **argv) { in main() argument 112 sys::PrintStackTraceOnErrorSignal(argv[0]); in main() 113 PrettyStackTraceProgram X(argc, argv); in main() 117 cl::ParseCommandLineOptions(argc, argv, "strip function attribute pass\n"); in main() 121 std::unique_ptr<Module> M(LoadFile(argv[0], InputFilenames[0], Context)); in main() 123 errs() << argv[0] << ": error loading file '" in main() 142 errs() << argv[0] << ": stripped module is broken!\n"; in main()
|
/frameworks/wilhelm/tests/examples/ |
D | slesTestPlayFdPath.cpp | 222 int main(int argc, char* const argv[]) in main() argument 227 fprintf(stdout, "OpenSL ES test %s: exercises SLPlayItf ", argv[0]); in main() 234 fprintf(stdout, "Usage: \t%s path offsetInBytes [sizeInBytes]\n", argv[0]); in main() 235 fprintf(stdout, "Example: \"%s /sdcard/my.mp3 0 344460\" \n", argv[0]); in main() 252 TestPlayPathFromFD(sl, argv[1], (SLAint64)atoi(argv[2]), in main() 255 TestPlayPathFromFD(sl, argv[1], (SLAint64)atoi(argv[2]), (SLAint64)atoi(argv[3])); in main()
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcColorEquiv.cpp | 165 main(int argc, char *argv[]) in main() argument 180 while ((opt = getopt(argc, argv, "vs:e:r:D:?h")) != -1) { in main() 196 if (*argv[optind] == '-') { break; } in main() 199 str += " " + string(argv[optind++]); in main() 218 if (*argv[optind] == '-') { break; } in main() 221 str += " " + string(argv[optind++]); in main() 242 printSyntax(basename(argv[0])); in main() 254 printSyntax(basename(argv[0])); in main() 263 printSyntax(basename(argv[0])); in main() 266 equivFormat = hwcTestGraphicFormatLookup(argv[optind]); in main() [all …]
|
/frameworks/av/media/libaudioprocessing/tests/ |
D | test-mixer.cpp | 93 int main(int argc, char* argv[]) { in main() argument 94 const char* const progname = argv[0]; in main() 107 for (int ch; (ch = getopt(argc, argv, "fmc:s:o:a:P:")) != -1;) { in main() 140 argv += optind; in main() 163 if (!strncmp(argv[i], chirp, strlen(chirp))) { in main() 165 const char *s = parseFormat(argv[i] + strlen(chirp), &useFloat); in main() 179 fprintf(stderr, "malformed input '%s'\n", argv[i]); in main() 181 } else if (!strncmp(argv[i], sine, strlen(sine))) { in main() 183 const char *s = parseFormat(argv[i] + strlen(sine), &useFloat); in main() 197 fprintf(stderr, "malformed input '%s'\n", argv[i]); in main() [all …]
|