• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:opts

175     AndroidOptions opts[1];  in main()  local
177 if (android_parse_options(&argc, &argv, opts) < 0) { in main()
233 if (opts->version) { in main()
253 sanitizeOptions(opts); in main()
258 AvdInfo* avd = createAVD(opts, &inAndroidBuild); in main()
284 char* kernelFile = opts->kernel; in main()
338 if (opts->ramdisk) { in main()
339 reassign_string(&hw->disk_ramdisk_path, opts->ramdisk); in main()
351 if (opts->partition_size) { in main()
353 long sizeMB = strtol(opts->partition_size, &end, 0); in main()
371 if (opts->sysdir == NULL) { in main()
373 opts->sysdir = ASTRDUP(avdInfo_getContentPath(avd)); in main()
374 D("autoconfig: -sysdir %s", opts->sysdir); in main()
378 if (opts->sysdir != NULL) { in main()
379 if (!path_exists(opts->sysdir)) { in main()
380 derror("Directory does not exist: %s", opts->sysdir); in main()
390 if (opts->system == NULL) { in main()
408 if (opts->sysdir != NULL && !path_exists(opts->system)) { in main()
409 initImage = _getFullFilePath(opts->sysdir, opts->system); in main()
411 initImage = ASTRDUP(opts->system); in main()
457 if (opts->datadir) { in main()
458 if (!path_exists(opts->datadir)) { in main()
459 derror("Invalid -datadir directory: %s", opts->datadir); in main()
468 if (!opts->data) { in main()
479 opts->wipe_data = 1; in main()
483 if (opts->datadir) { in main()
484 dataImage = _getFullFilePath(opts->datadir, opts->data); in main()
486 dataImage = ASTRDUP(opts->data); in main()
490 if (opts->initdata != NULL) { in main()
491 initImage = ASTRDUP(opts->initdata); in main()
502 if (opts->wipe_data) { in main()
507 android_op_wipe_data = opts->wipe_data; in main()
528 if (opts->no_cache) { in main()
533 if (opts->cache) { in main()
535 opts->cache = NULL; in main()
540 if (!opts->cache) { in main()
542 opts->cache = avdInfo_getCachePath(avd); in main()
543 if (opts->cache == NULL) { in main()
549 opts->cache = avdInfo_getDefaultCachePath(avd); in main()
552 if (opts->cache) { in main()
553 D("autoconfig: -cache %s", opts->cache); in main()
557 if (opts->cache) { in main()
558 hw->disk_cachePartition_path = ASTRDUP(opts->cache); in main()
562 if (hw->disk_cachePartition_path && opts->cache_size) { in main()
565 long sizeMB = strtol(opts->cache_size, &end, 0); in main()
578 if (opts->sdcard) { in main()
580 opts->sdcard = NULL; in main()
584 if (!opts->sdcard) { in main()
587 if (opts->datadir) { in main()
589 bufprint(tmp, tmpend, "%s/%s", opts->datadir, "system.img"); in main()
591 opts->sdcard = strdup(tmp); in main()
597 opts->sdcard = avdInfo_getSdCardPath(avd); in main()
598 if (opts->sdcard != NULL) { in main()
605 if (opts->sdcard) { in main()
606 D("autoconfig: -sdcard %s", opts->sdcard); in main()
611 if(opts->sdcard) { in main()
613 if (path_get_size(opts->sdcard, &size) == 0) { in main()
619 … fprintf(stderr, "### WARNING: SD Card files must be at least 9MB, ignoring '%s'\n", opts->sdcard); in main()
621 hw->hw_sdCard_path = ASTRDUP(opts->sdcard); in main()
624 dwarning("no SD Card image at '%s'", opts->sdcard); in main()
628 if (opts->memory) { in main()
630 long ramSize = strtol(opts->memory, &end, 0); in main()
676 if (opts->gpu) { in main()
677 const char* gpu = opts->gpu; in main()