Lines Matching refs:opts

181     AndroidOptions  opts[1];
188 if ( android_parse_options( &argc, &argv, opts ) < 0 ) {
196 handle_ui_options(opts);
246 if (opts->version) {
266 if (opts->snapshot_list) {
267 if (opts->snapstorage == NULL) {
269 avd = createAVD(opts, &inAndroidBuild);
270 opts->snapstorage = avdInfo_getSnapStoragePath(avd);
271 if (opts->snapstorage != NULL) {
272 D("autoconfig: -snapstorage %s", opts->snapstorage);
282 snapshot_print_and_exit(opts->snapstorage);
285 sanitizeOptions(opts);
293 if (android_charmap_setup(opts->charmap)) {
298 avd = android_avdInfo = createAVD(opts, &inAndroidBuild);
301 if (opts->skindir != NULL) {
302 if (opts->skin == NULL) {
313 if (opts->skin == NULL) {
314 opts->skin = skinName;
315 D("autoconfig: -skin %s", opts->skin);
320 opts->skindir = skinDir;
321 D("autoconfig: -skindir %s", opts->skindir);
324 avdInfo_getSkinHardwareIni(avd, opts->skin, opts->skindir);
334 if (opts->keyset) {
335 parse_keyset(opts->keyset, opts);
340 opts->keyset);
344 parse_keyset("default", opts);
352 if (!opts->keyset)
357 if (opts->shared_net_id) {
359 long shared_net_id = strtol(opts->shared_net_id, &end, 0);
370 parse_skin_files(opts->skindir, opts->skin, opts, hw,
373 if (!opts->netspeed && skin_network_speed) {
376 opts->netspeed = (char*)skin_network_speed;
379 if (!opts->netdelay && skin_network_delay) {
382 opts->netdelay = (char*)skin_network_delay;
386 if (opts->trace) {
387 char* tracePath = avdInfo_getTracePath(avd, opts->trace);
399 opts->trace = tracePath;
419 char* kernelFile = opts->kernel;
461 if (opts->tcpdump) {
463 args[n++] = opts->tcpdump;
467 if (opts->nand_limits) {
469 args[n++] = opts->nand_limits;
473 if (opts->timezone) {
475 args[n++] = opts->timezone;
478 if (opts->netspeed) {
480 args[n++] = opts->netspeed;
482 if (opts->netdelay) {
484 args[n++] = opts->netdelay;
486 if (opts->netfast) {
490 if (opts->audio) {
492 args[n++] = opts->audio;
495 if (opts->cpu_delay) {
497 args[n++] = opts->cpu_delay;
500 if (opts->dns_server) {
502 args[n++] = opts->dns_server;
505 /* opts->ramdisk is never NULL (see createAVD) here */
506 if (opts->ramdisk) {
508 hw->disk_ramdisk_path = ASTRDUP(opts->ramdisk);
518 if (opts->partition_size) {
520 long sizeMB = strtol(opts->partition_size, &end, 0);
539 if (opts->sysdir == NULL) {
541 opts->sysdir = ASTRDUP(avdInfo_getContentPath(avd));
542 D("autoconfig: -sysdir %s", opts->sysdir);
546 if (opts->sysdir != NULL) {
547 if (!path_exists(opts->sysdir)) {
548 derror("Directory does not exist: %s", opts->sysdir);
558 if (opts->system == NULL) {
576 if (opts->sysdir != NULL && !path_exists(opts->system)) {
577 initImage = _getFullFilePath(opts->sysdir, opts->system);
579 initImage = ASTRDUP(opts->system);
625 if (opts->datadir) {
626 if (!path_exists(opts->datadir)) {
627 derror("Invalid -datadir directory: %s", opts->datadir);
636 if (!opts->data) {
647 opts->wipe_data = 1;
651 if (opts->datadir) {
652 dataImage = _getFullFilePath(opts->datadir, opts->data);
654 dataImage = ASTRDUP(opts->data);
658 if (opts->initdata != NULL) {
659 initImage = ASTRDUP(opts->initdata);
670 if (opts->wipe_data) {
695 if (opts->no_cache) {
700 if (opts->cache) {
702 opts->cache = NULL;
707 if (!opts->cache) {
709 opts->cache = avdInfo_getCachePath(avd);
710 if (opts->cache == NULL) {
716 opts->cache = avdInfo_getDefaultCachePath(avd);
719 if (opts->cache) {
720 D("autoconfig: -cache %s", opts->cache);
724 if (opts->cache) {
725 hw->disk_cachePartition_path = ASTRDUP(opts->cache);
729 if (hw->disk_cachePartition_path && opts->cache_size) {
732 long sizeMB = strtol(opts->cache_size, &end, 0);
745 if (opts->sdcard) {
747 opts->sdcard = NULL;
751 if (!opts->sdcard) {
754 if (opts->datadir) {
755 bufprint(tmp, tmpend, "%s/%s", opts->datadir, "system.img");
757 opts->sdcard = strdup(tmp);
763 opts->sdcard = avdInfo_getSdCardPath(avd);
764 if (opts->sdcard != NULL) {
771 if (opts->sdcard) {
772 D("autoconfig: -sdcard %s", opts->sdcard);
777 if(opts->sdcard) {
779 if (path_get_size(opts->sdcard, &size) == 0) {
785 fprintf(stderr, "### WARNING: SD Card files must be at least 9MB, ignoring '%s'\n", opts->sdcard);
787 hw->hw_sdCard_path = ASTRDUP(opts->sdcard);
790 dwarning("no SD Card image at '%s'", opts->sdcard);
801 if (opts->no_snapstorage) {
803 if (opts->snapshot) {
805 opts->snapshot = NULL;
808 if (opts->snapstorage) {
810 opts->snapstorage = NULL;
815 if (!opts->snapstorage && avdInfo_getSnapshotPresent(avd)) {
816 opts->snapstorage = avdInfo_getSnapStoragePath(avd);
817 if (opts->snapstorage != NULL) {
818 D("autoconfig: -snapstorage %s", opts->snapstorage);
822 if (opts->snapstorage && !path_exists(opts->snapstorage)) {
823 D("no image at '%s', state snapshots disabled", opts->snapstorage);
824 opts->snapstorage = NULL;
830 if (opts->snapstorage) {
832 hw->disk_snapStorage_path = ASTRDUP(opts->snapstorage);
838 if (opts->no_snapshot) {
840 opts->no_snapshot_load = 1;
841 opts->no_snapshot_save = 1;
843 if (opts->snapshot) {
848 if (!opts->no_snapshot_load || !opts->no_snapshot_save) {
849 if (opts->snapshot == NULL) {
850 opts->snapshot = "default-boot";
851 D("autoconfig: -snapshot %s", opts->snapshot);
859 if (!opts->no_snapshot_load) {
861 args[n++] = ASTRDUP(opts->snapshot);
864 if (!opts->no_snapshot_save) {
866 args[n++] = ASTRDUP(opts->snapshot);
869 if (opts->no_snapshot_update_time) {
874 if (!opts->logcat || opts->logcat[0] == 0) {
875 opts->logcat = getenv("ANDROID_LOG_TAGS");
876 if (opts->logcat && opts->logcat[0] == 0)
877 opts->logcat = NULL;
881 if (opts->show_kernel) {
886 if (!opts->shell_serial) {
888 opts->shell_serial = "con:";
890 opts->shell_serial = "stdio";
894 opts->shell = 1;
896 if (opts->shell || opts->logcat) {
898 args[n++] = opts->shell_serial;
902 if (opts->radio) {
904 args[n++] = opts->radio;
907 if (opts->gps) {
909 args[n++] = opts->gps;
912 if (opts->memory) {
914 long ramSize = strtol(opts->memory, &end, 0);
925 if (!opts->memory) {
977 if (opts->trace) {
979 args[n++] = opts->trace;
985 if (opts->prop != NULL) {
986 ParamList* pl = opts->prop;
1007 if (opts->shell || opts->logcat) {
1011 if (opts->trace) {
1015 if (!opts->no_jni) {
1019 if (opts->no_boot_anim) {
1023 if (opts->logcat) {
1024 char* q = bufprint(p, end, " androidboot.logcat=%s", opts->logcat);
1039 if (opts->bootchart) {
1040 p = bufprint(p, end, " androidboot.bootchart=%s", opts->bootchart);
1051 if (opts->ports) {
1053 args[n++] = opts->ports;
1056 if (opts->port) {
1058 args[n++] = opts->port;
1061 if (opts->report_console) {
1063 args[n++] = opts->report_console;
1066 if (opts->http_proxy) {
1068 args[n++] = opts->http_proxy;
1071 if (!opts->charmap) {
1076 opts->charmap = charmap;
1080 if (opts->charmap) {
1083 if (!path_exists(opts->charmap)) {
1084 derror("Charmap file does not exist: %s", opts->charmap);
1091 kcm_extract_charmap_name(opts->charmap, charmap_name,
1097 if (opts->memcheck) {
1099 args[n++] = opts->memcheck;
1102 if (opts->gpu) {
1103 const char* gpu = opts->gpu;
1120 if (hw->hw_gpu_enabled && opts->snapstorage && (!opts->no_snapshot_load ||
1121 !opts->no_snapshot_save)) {
1127 if (opts->webcam_list) {
1132 if (opts->camera_back) {
1134 if (memcmp(opts->camera_back, "webcam", 6) &&
1135 strcmp(opts->camera_back, "emulated") &&
1136 strcmp(opts->camera_back, "none")) {
1139 opts->camera_back);
1142 hw->hw_camera_back = ASTRDUP(opts->camera_back);
1145 if (opts->camera_front) {
1147 if (memcmp(opts->camera_front, "webcam", 6) &&
1148 strcmp(opts->camera_front, "emulated") &&
1149 strcmp(opts->camera_front, "none")) {
1152 opts->camera_front);
1155 hw->hw_camera_front = ASTRDUP(opts->camera_front);
1163 if (opts->shared_net_id) {
1164 unsigned int shared_net_id = atoi(opts->shared_net_id);
1180 if (opts->screen) {
1181 if (strcmp(opts->screen, "touch") &&
1182 strcmp(opts->screen, "multi-touch") &&
1183 strcmp(opts->screen, "no-touch")) {
1187 opts->screen);
1190 hw->hw_screen = ASTRDUP(opts->screen);
1292 init_sdl_ui(skinConfig, skinPath, opts);
1294 if (attach_ui_to_core(opts) < 0) {