Lines Matching refs:opts
138 parse_keyset(const char* keyset, AndroidOptions* opts) in parse_keyset() argument
165 p = bufprint(p, end, "%s" PATH_SEP "keysets" PATH_SEP "%s", opts->sysdir, keyset); in parse_keyset()
341 AndroidOptions* opts, in parse_skin_files() argument
514 AndroidOptions* opts) in init_sdl_ui() argument
527 if (!opts->no_window) in init_sdl_ui()
535 if (!opts->no_window) { in init_sdl_ui()
536 SDL_EnableUNICODE(!opts->raw_keys); in init_sdl_ui()
558 if ( qemulator_init(qemulator_get(), skinConfig, skinPath, win_x, win_y, opts) < 0 ) { in init_sdl_ui()
564 if (opts->onion) { in init_sdl_ui()
565 SkinImage* onion = skin_image_find_simple( opts->onion ); in init_sdl_ui()
568 if ( opts->onion_alpha && 1 == sscanf( opts->onion_alpha, "%d", &alpha ) ) { in init_sdl_ui()
573 if ( opts->onion_rotation && 1 == sscanf( opts->onion_rotation, "%d", &rotate ) ) { in init_sdl_ui()
692 void sanitizeOptions( AndroidOptions* opts ) in sanitizeOptions() argument
698 if (opts->image != NULL) { in sanitizeOptions()
699 if (opts->system != NULL) { in sanitizeOptions()
700 if (opts->sysdir != NULL) { in sanitizeOptions()
708 opts->sysdir = opts->system; in sanitizeOptions()
709 opts->system = opts->image; in sanitizeOptions()
710 opts->image = NULL; in sanitizeOptions()
712 else if (opts->system != NULL && path_is_dir(opts->system)) { in sanitizeOptions()
713 if (opts->sysdir != NULL) { in sanitizeOptions()
722 opts->sysdir = opts->system; in sanitizeOptions()
723 opts->system = NULL; in sanitizeOptions()
726 if (opts->nojni) { in sanitizeOptions()
727 opts->no_jni = opts->nojni; in sanitizeOptions()
728 opts->nojni = 0; in sanitizeOptions()
731 if (opts->nocache) { in sanitizeOptions()
732 opts->no_cache = opts->nocache; in sanitizeOptions()
733 opts->nocache = 0; in sanitizeOptions()
736 if (opts->noaudio) { in sanitizeOptions()
737 opts->no_audio = opts->noaudio; in sanitizeOptions()
738 opts->noaudio = 0; in sanitizeOptions()
741 if (opts->noskin) { in sanitizeOptions()
742 opts->no_skin = opts->noskin; in sanitizeOptions()
743 opts->noskin = 0; in sanitizeOptions()
747 if (opts->no_cache) { in sanitizeOptions()
748 opts->cache = 0; in sanitizeOptions()
753 if (opts->no_audio) in sanitizeOptions()
754 opts->audio = "none"; in sanitizeOptions()
759 if (opts->no_skin) { in sanitizeOptions()
760 opts->skin = "320x480"; in sanitizeOptions()
761 opts->skindir = NULL; in sanitizeOptions()
764 if (opts->skindir) { in sanitizeOptions()
765 if (!opts->skin) { in sanitizeOptions()
771 if (opts->bootchart) { in sanitizeOptions()
773 int timeout = strtol(opts->bootchart, &end, 10); in sanitizeOptions()
775 opts->bootchart = NULL; in sanitizeOptions()
784 AvdInfo* createAVD(AndroidOptions* opts, int* inAndroidBuild) in createAVD() argument
795 if (opts->avd == NULL) { in createAVD()
829 if (opts->avd == NULL && !android_build_out) in createAVD()
833 if (!opts->sysdir) { in createAVD()
834 opts->sysdir = _getSdkImagePath("system.img"); in createAVD()
835 if (!opts->sysdir) { in createAVD()
846 D("autoconfig: -sysdir %s", opts->sysdir); in createAVD()
849 if (!opts->system) { in createAVD()
850 opts->system = _getSdkSystemImage(opts->sysdir, "-image", "system.img"); in createAVD()
851 D("autoconfig: -system %s", opts->system); in createAVD()
854 if (!opts->kernel) { in createAVD()
855 opts->kernel = _getSdkSystemImage(opts->sysdir, "-kernel", "kernel-qemu"); in createAVD()
856 D("autoconfig: -kernel %s", opts->kernel); in createAVD()
859 if (!opts->ramdisk) { in createAVD()
860 opts->ramdisk = _getSdkSystemImage(opts->sysdir, "-ramdisk", "ramdisk.img"); in createAVD()
861 D("autoconfig: -ramdisk %s", opts->ramdisk); in createAVD()
865 if (!opts->datadir) { in createAVD()
866 opts->datadir = android_strdup(opts->sysdir); in createAVD()
868 D("autoconfig: -datadir %s", opts->sysdir); in createAVD()
871 if (!opts->data) { in createAVD()
873 bufprint(tmp, tmpend, "%s/userdata-qemu.img", opts->datadir); in createAVD()
885 opts->data = android_strdup(tmp); in createAVD()
886 D("autoconfig: -data %s", opts->data); in createAVD()
889 if (!opts->snapstorage && opts->datadir) { in createAVD()
890 bufprint(tmp, tmpend, "%s/snapshots.img", opts->datadir); in createAVD()
892 opts->snapstorage = android_strdup(tmp); in createAVD()
893 D("autoconfig: -snapstorage %s", opts->snapstorage); in createAVD()
901 if (opts->avd != NULL) in createAVD()
903 ret = avdInfo_new( opts->avd, android_avdParams ); in createAVD()
906 dprint("could not find virtual device named '%s'", opts->avd); in createAVD()
913 android_build_out = android_build_root = opts->sysdir; in createAVD()
1062 attach_to_core(AndroidOptions* opts) { in attach_to_core() argument
1069 char* console_address = strdup(opts->attach_core); in attach_to_core()
1079 opts->attach_core); in attach_to_core()
1087 opts->attach_core); in attach_to_core()
1101 opts->attach_core, errno_str); in attach_to_core()
1113 "must be resolvable into an IP address.\n", opts->attach_core); in attach_to_core()
1132 void handle_ui_options( AndroidOptions* opts ) in handle_ui_options() argument
1135 if (opts->list_cores) { in handle_ui_options()
1137 list_running_cores(opts->list_cores); in handle_ui_options()
1142 int attach_ui_to_core( AndroidOptions* opts ) in attach_ui_to_core() argument
1145 if (opts->attach_core) { in attach_ui_to_core()
1146 if (attach_to_core(opts)) { in attach_ui_to_core()
1163 void handle_ui_options( AndroidOptions* opts ) in handle_ui_options() argument
1168 int attach_ui_to_core( AndroidOptions* opts ) in attach_ui_to_core() argument