Home | History | Annotate | Download | only in android

Lines Matching full:opts

139 parse_keyset(const char*  keyset, AndroidOptions*  opts)
166 p = bufprint(p, end, "%s" PATH_SEP "keysets" PATH_SEP "%s", opts->sysdir, keyset);
551 AndroidOptions* opts,
610 if (opts->dynamic_skin) {
734 AndroidOptions* opts)
747 if (!opts->no_window)
755 if (!opts->no_window) {
756 SDL_EnableUNICODE(!opts->raw_keys);
778 if ( qemulator_init(qemulator_get(), skinConfig, skinPath, win_x, win_y, opts) < 0 ) {
784 if (opts->onion) {
785 SkinImage* onion = skin_image_find_simple( opts->onion );
788 if ( opts->onion_alpha && 1 == sscanf( opts->onion_alpha, "%d", &alpha ) ) {
793 if ( opts->onion_rotation && 1 == sscanf( opts->onion_rotation, "%d", &rotate ) ) {
912 void sanitizeOptions( AndroidOptions* opts )
918 if (opts->image != NULL) {
919 if (opts->system != NULL) {
920 if (opts->sysdir != NULL) {
928 opts->sysdir = opts->system;
929 opts->system = opts->image;
930 opts->image = NULL;
932 else if (opts->system != NULL && path_is_dir(opts->system)) {
933 if (opts->sysdir != NULL) {
942 opts->sysdir = opts->system;
943 opts->system = NULL;
946 if (opts->nojni) {
947 opts->no_jni = opts->nojni;
948 opts->nojni = 0;
951 if (opts->nocache) {
952 opts->no_cache = opts->nocache;
953 opts->nocache = 0;
956 if (opts->noaudio) {
957 opts->no_audio = opts->noaudio;
958 opts->noaudio = 0;
961 if (opts->noskin) {
962 opts->no_skin = opts->noskin;
963 opts->noskin = 0;
967 if (opts->no_cache) {
968 opts->cache = 0;
973 if (opts->no_audio)
974 opts->audio = "none";
979 if (opts->no_skin) {
980 opts->skin = "320x480";
981 opts->skindir = NULL;
984 if (opts->skindir) {
985 if (!opts->skin) {
991 if (opts->bootchart) {
993 int timeout = strtol(opts->bootchart, &end, 10);
995 opts->bootchart = NULL;
1004 AvdInfo* createAVD(AndroidOptions* opts, int* inAndroidBuild)
1015 if (opts->avd == NULL) {
1049 if (opts->avd == NULL && !android_build_out)
1053 if (!opts->sysdir) {
1054 opts->sysdir = _getSdkImagePath("system.img");
1055 if (!opts->sysdir) {
1066 D("autoconfig: -sysdir %s", opts->sysdir);
1069 if (!opts->system) {
1070 opts->system = _getSdkSystemImage(opts->sysdir, "-image", "system.img");
1071 D("autoconfig: -system %s", opts->system);
1074 if (!opts->kernel) {
1075 opts->kernel = _getSdkSystemImage(opts->sysdir, "-kernel", "kernel-qemu");
1076 D("autoconfig: -kernel %s", opts->kernel);
1079 if (!opts->ramdisk) {
1080 opts->ramdisk = _getSdkSystemImage(opts->sysdir, "-ramdisk", "ramdisk.img");
1081 D("autoconfig: -ramdisk %s", opts->ramdisk);
1085 if (!opts->datadir) {
1086 opts->datadir = android_strdup(opts->sysdir);
1088 D("autoconfig: -datadir %s", opts->sysdir);
1091 opts->data) {
1093 bufprint(tmp, tmpend, "%s/userdata-qemu.img", opts->datadir);
1105 opts->data = android_strdup(tmp);
1106 D("autoconfig: -data %s", opts->data);
1109 if (!opts->snapstorage && opts->datadir) {
1110 bufprint(tmp, tmpend, "%s/snapshots.img", opts->datadir);
1112 opts->snapstorage = android_strdup(tmp);
1113 D("autoconfig: -snapstorage %s", opts->snapstorage);
1121 if (opts->avd != NULL)
1123 ret = avdInfo_new( opts->avd, android_avdParams );
1126 dprint("could not find virtual device named '%s'", opts->avd);
1133 android_build_out = android_build_root = opts->sysdir;
1277 * opts Android options containing non-NULL attach_core.
1282 attach_to_core(AndroidOptions* opts) {
1289 char* console_address = strdup(opts->attach_core);
1299 opts->attach_core);
1307 opts->attach_core);
1321 opts->attach_core, errno_str);
1333 "must be resolvable into an IP address.\n", opts->attach_core);
1352 void handle_ui_options( AndroidOptions* opts )
1355 if (opts->list_cores) {
1357 list_running_cores(opts->list_cores);
1362 int attach_ui_to_core( AndroidOptions* opts )
1365 if (opts->attach_core) {
1366 if (attach_to_core(opts)) {
1383 void handle_ui_options( AndroidOptions* opts )
1388 int attach_ui_to_core( AndroidOptions* opts )