/frameworks/base/tools/aapt/ |
D | Main.cpp | 260 int main(int argc, char* const argv[]) in main() argument 262 char *prog = argv[0]; in main() 276 if (argv[1][0] == 'v') in main() 278 else if (argv[1][0] == 'd') in main() 280 else if (argv[1][0] == 'l') in main() 282 else if (argv[1][0] == 'a') in main() 284 else if (argv[1][0] == 'r') in main() 286 else if (argv[1][0] == 'p') in main() 288 else if (argv[1][0] == 'c') in main() 290 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/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/idmap/ |
D | idmap.cpp | 211 int main(int argc, char **argv) in main() argument 218 strncat(buf, argv[i], sizeof(buf) - 1); in main() 225 if (argc == 2 && !strcmp(argv[1], "--help")) { in main() 230 if (argc == 5 && !strcmp(argv[1], "--fd")) { in main() 231 return maybe_create_fd(argv[2], argv[3], argv[4]); in main() 234 if (argc == 5 && !strcmp(argv[1], "--path")) { in main() 235 return maybe_create_path(argv[2], argv[3], argv[4]); in main() 238 if (argc >= 6 && !strcmp(argv[1], "--scan")) { in main() 241 v.push(argv[i]); in main() 243 return maybe_scan(argv[2], argv[3], argv[4], &v); in main() [all …]
|
/frameworks/native/cmds/service/ |
D | service.cpp | 69 int main(int argc, char* const argv[]) in main() argument 82 int ic = getopt(argc, argv, "h?"); in main() 102 if (strcmp(argv[optind], "check") == 0) { in main() 105 sp<IBinder> service = sm->checkService(String16(argv[optind])); in main() 106 aout << "Service " << argv[optind] << in main() 114 else if (strcmp(argv[optind], "list") == 0) { in main() 125 } else if (strcmp(argv[optind], "call") == 0) { in main() 129 sp<IBinder> service = sm->checkService(String16(argv[optind++])); in main() 131 int32_t code = atoi(argv[optind++]); in main() 140 if (strcmp(argv[optind], "i32") == 0) { in main() [all …]
|
/frameworks/rs/api/ |
D | Generator.cpp | 156 static bool parseCommandLine(int argc, char* argv[], unsigned int* maxApiLevel, bool* forVerificati… in parseCommandLine() argument 159 if (argv[i][0] == '-') { in parseCommandLine() 160 if (argv[i][1] == 'v') { in parseCommandLine() 164 *maxApiLevel = strtol(argv[i], &end, 10); in parseCommandLine() 166 cerr << "Error. Can't parse the version number" << argv[i] << "\n"; in parseCommandLine() 173 } else if (argv[i][1] == 'H') { in parseCommandLine() 176 cerr << "Unrecognized flag %s\n" << argv[i] << "\n"; in parseCommandLine() 180 specFileNames->push_back(argv[i]); in parseCommandLine() 190 int main(int argc, char* argv[]) { in main() argument 195 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/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() 118 static size_t computeArgBlockSize(int argc, char* const argv[]) { in computeArgBlockSize() argument 132 uintptr_t start = reinterpret_cast<uintptr_t>(argv[0]); in computeArgBlockSize() 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() 201 argv++; in main() 228 if (argv[i][0] != '-') { 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/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 | 152 const char* argv[kOutArguments]; in otapreopt_chroot() local 167 argv[0] = "/system/bin/otapreopt"; in otapreopt_chroot() 172 argv[i] = arg[i + 1]; in otapreopt_chroot() 174 argv[kOutArguments - 1] = nullptr; in otapreopt_chroot() 176 execv(argv[0], (char * const *)argv); in otapreopt_chroot() 184 int main(const int argc, char *argv[]) { in main() argument 185 return android::installd::otapreopt_chroot(argc, argv); in main()
|
D | commands.cpp | 432 char *argv[] = { in move_complete_app() local 444 int rc = android_fork_execvp(ARRAY_SIZE(argv), argv, NULL, false, true); in move_complete_app() 474 char *argv[] = { in move_complete_app() local 488 argv[6] = (char*) from.c_str(); in move_complete_app() 489 argv[7] = (char*) to.c_str(); in move_complete_app() 492 int rc = android_fork_execvp(ARRAY_SIZE(argv), argv, NULL, false, true); in move_complete_app() 501 argv[6] = (char*) from.c_str(); in move_complete_app() 502 argv[7] = (char*) to.c_str(); in move_complete_app() 505 int rc = android_fork_execvp(ARRAY_SIZE(argv), argv, NULL, false, true); in move_complete_app() 734 static int split(char *buf, const char **argv) in split() argument [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/packages/Keyguard/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 …]
|
D | TestBenchMultipleInstance.c | 25 #define DEBUG(argv) printf argv argument 60 int main(int argc, char **argv) in main() argument 76 if ( argc > 1 && strcmp(argv[1], "-T") == 0 ) in main() 86 argv[0])); in main() 106 if ( strncmp(argv[i], "-N", 2) == 0 ) in main() 108 maxNumPics = (u32)atoi(argv[i]+2); in main() 111 else if ( strncmp(argv[i], "-O", 2) == 0 ) in main() 113 strcpy(outFileName, argv[i]+2); in main() 116 else if ( strcmp(argv[i], "-C") == 0 ) in main() 121 else if ( strcmp(argv[i], "-R") == 0 ) in main() [all …]
|
/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/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/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/services/audioflinger/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 …]
|
/frameworks/native/cmds/cmd/ |
D | cmd.cpp | 48 int main(int argc, char* const argv[]) in main() argument 67 if ((argc == 2) && (strcmp(argv[1], "-l") == 0)) { in main() 83 args.add(String16(argv[i])); in main() 85 String16 cmd = String16(argv[1]); in main() 88 aerr << "Can't find service: " << argv[1] << endl; in main()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | RuntimeInit.java | 209 private static void invokeStaticMain(String className, String[] argv, ClassLoader classLoader) in invokeStaticMain() argument 244 throw new ZygoteInit.MethodAndArgsCaller(m, argv); in invokeStaticMain() 247 public static final void main(String[] argv) { in main() argument 249 if (argv.length == 2 && argv[1].equals("application")) { in main() 280 … public static final void zygoteInit(int targetSdkVersion, String[] argv, ClassLoader classLoader) in zygoteInit() argument 289 applicationInit(targetSdkVersion, argv, classLoader); in zygoteInit() 303 public static void wrapperInit(int targetSdkVersion, String[] argv) in wrapperInit() argument 307 applicationInit(targetSdkVersion, argv, null); in wrapperInit() 310 … private static void applicationInit(int targetSdkVersion, String[] argv, ClassLoader classLoader) in applicationInit() argument 326 args = new Arguments(argv); in applicationInit()
|
/frameworks/wilhelm/tests/mimeUri/ |
D | slesTestPlayUri2.cpp | 249 int main(int argc, char* const argv[]) in main() argument 255 argv[0]); in main() 261 fprintf(stdout, "Usage: \n\t%s url1 url2 \n\t%s url\n", argv[0], argv[0]); in main() 262 fprintf(stdout, "Example: \"%s /sdcard/my.mp3 http://blabla/my.wav\" ", argv[0]); in main() 263 fprintf(stdout, "or \"%s file:///sdcard/my.mp3\"\n", argv[0]); in main() 279 TestPlayUri(sl, argv[1], argv[1]); in main() 281 TestPlayUri(sl, argv[1], argv[2]); in main()
|