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);
327 if (opts->dynamic_skin == 0) {
328 opts->dynamic_skin = avdInfo_shouldUseDynamicSkin(avd);
338 if (opts->keyset) {
339 parse_keyset(opts->keyset, opts);
344 opts->keyset);
348 parse_keyset("default", opts);
356 if (!opts->keyset)
361 if (opts->shared_net_id) {
363 long shared_net_id = strtol(opts->shared_net_id, &end, 0);
374 parse_skin_files(opts->skindir, opts->skin, opts, hw,
377 if (!opts->netspeed && skin_network_speed) {
380 opts->netspeed = (char*)skin_network_speed;
383 if (!opts->netdelay && skin_network_delay) {
386 opts->netdelay = (char*)skin_network_delay;
390 if (opts->trace) {
391 char* tracePath = avdInfo_getTracePath(avd, opts->trace);
403 opts->trace = tracePath;
423 char* kernelFile = opts->kernel;
465 if (opts->tcpdump) {
467 args[n++] = opts->tcpdump;
471 if (opts->nand_limits) {
473 args[n++] = opts->nand_limits;
477 if (opts->timezone) {
479 args[n++] = opts->timezone;
482 if (opts->netspeed) {
484 args[n++] = opts->netspeed;
486 if (opts->netdelay) {
488 args[n++] = opts->netdelay;
490 if (opts->netfast) {
494 if (opts->audio) {
496 args[n++] = opts->audio;
499 if (opts->cpu_delay) {
501 args[n++] = opts->cpu_delay;
504 if (opts->dns_server) {
506 args[n++] = opts->dns_server;
509 /* opts->ramdisk is never NULL (see createAVD) here */
510 if (opts->ramdisk) {
512 hw->disk_ramdisk_path = ASTRDUP(opts->ramdisk);
522 if (opts->partition_size) {
524 long sizeMB = strtol(opts->partition_size, &end, 0);
543 if (opts->sysdir == NULL) {
545 opts->sysdir = ASTRDUP(avdInfo_getContentPath(avd));
546 D("autoconfig: -sysdir %s", opts->sysdir);
550 if (opts->sysdir != NULL) {
551 if (!path_exists(opts->sysdir)) {
552 derror("Directory does not exist: %s", opts->sysdir);
562 if (opts->system == NULL) {
580 if (opts->sysdir != NULL && !path_exists(opts->system)) {
581 initImage = _getFullFilePath(opts->sysdir, opts->system);
583 initImage = ASTRDUP(opts->system);
629 if (opts->datadir) {
630 if (!path_exists(opts->datadir)) {
631 derror("Invalid -datadir directory: %s", opts->datadir);
640 if (!opts->data) {
651 opts->wipe_data = 1;
655 if (opts->datadir) {
656 dataImage = _getFullFilePath(opts->datadir, opts->data);
658 dataImage = ASTRDUP(opts->data);
662 if (opts->initdata != NULL) {
663 initImage = ASTRDUP(opts->initdata);
674 if (opts->wipe_data) {
699 if (opts->no_cache) {
704 if (opts->cache) {
706 opts->cache = NULL;
711 if (!opts->cache) {
713 opts->cache = avdInfo_getCachePath(avd);
714 if (opts->cache == NULL) {
720 opts->cache = avdInfo_getDefaultCachePath(avd);
723 if (opts->cache) {
724 D("autoconfig: -cache %s", opts->cache);
728 if (opts->cache) {
729 hw->disk_cachePartition_path = ASTRDUP(opts->cache);
733 if (hw->disk_cachePartition_path && opts->cache_size) {
736 long sizeMB = strtol(opts->cache_size, &end, 0);
749 if (opts->sdcard) {
751 opts->sdcard = NULL;
755 if (!opts->sdcard) {
758 if (opts->datadir) {
759 bufprint(tmp, tmpend, "%s/%s", opts->datadir, "system.img");
761 opts->sdcard = strdup(tmp);
767 opts->sdcard = avdInfo_getSdCardPath(avd);
768 if (opts->sdcard != NULL) {
775 if (opts->sdcard) {
776 D("autoconfig: -sdcard %s", opts->sdcard);
781 if(opts->sdcard) {
783 if (path_get_size(opts->sdcard, &size) == 0) {
789 fprintf(stderr, "### WARNING: SD Card files must be at least 9MB, ignoring '%s'\n", opts->sdcard);
791 hw->hw_sdCard_path = ASTRDUP(opts->sdcard);
794 dwarning("no SD Card image at '%s'", opts->sdcard);
805 if (opts->no_snapstorage) {
807 if (opts->snapshot) {
809 opts->snapshot = NULL;
812 if (opts->snapstorage) {
814 opts->snapstorage = NULL;
819 if (!opts->snapstorage && avdInfo_getSnapshotPresent(avd)) {
820 opts->snapstorage = avdInfo_getSnapStoragePath(avd);
821 if (opts->snapstorage != NULL) {
822 D("autoconfig: -snapstorage %s", opts->snapstorage);
826 if (opts->snapstorage && !path_exists(opts->snapstorage)) {
827 D("no image at '%s', state snapshots disabled", opts->snapstorage);
828 opts->snapstorage = NULL;
834 if (opts->snapstorage) {
836 hw->disk_snapStorage_path = ASTRDUP(opts->snapstorage);
842 if (opts->no_snapshot) {
844 opts->no_snapshot_load = 1;
845 opts->no_snapshot_save = 1;
847 if (opts->snapshot) {
852 if (!opts->no_snapshot_load || !opts->no_snapshot_save) {
853 if (opts->snapshot == NULL) {
854 opts->snapshot = "default-boot";
855 D("autoconfig: -snapshot %s", opts->snapshot);
863 if (!opts->no_snapshot_load) {
865 args[n++] = ASTRDUP(opts->snapshot);
868 if (!opts->no_snapshot_save) {
870 args[n++] = ASTRDUP(opts->snapshot);
873 if (opts->no_snapshot_update_time) {
878 if (!opts->logcat || opts->logcat[0] == 0) {
879 opts->logcat = getenv("ANDROID_LOG_TAGS");
880 if (opts->logcat && opts->logcat[0] == 0)
881 opts->logcat = NULL;
885 if (opts->show_kernel) {
890 if (!opts->shell_serial) {
892 opts->shell_serial = "con:";
894 opts->shell_serial = "stdio";
898 opts->shell = 1;
900 if (opts->shell || opts->logcat) {
902 args[n++] = opts->shell_serial;
906 if (opts->radio) {
908 args[n++] = opts->radio;
911 if (opts->gps) {
913 args[n++] = opts->gps;
916 if (opts->memory) {
918 long ramSize = strtol(opts->memory, &end, 0);
929 if (!opts->memory) {
981 if (opts->trace) {
983 args[n++] = opts->trace;
989 if (opts->prop != NULL) {
990 ParamList* pl = opts->prop;
1011 if (opts->shell || opts->logcat) {
1015 if (opts->trace) {
1019 if (!opts->no_jni) {
1023 if (opts->no_boot_anim) {
1027 if (opts->logcat) {
1028 char* q = bufprint(p, end, " androidboot.logcat=%s", opts->logcat);
1043 if (opts->bootchart) {
1044 p = bufprint(p, end, " androidboot.bootchart=%s", opts->bootchart);
1055 if (opts->ports) {
1057 args[n++] = opts->ports;
1060 if (opts->port) {
1062 args[n++] = opts->port;
1065 if (opts->report_console) {
1067 args[n++] = opts->report_console;
1070 if (opts->http_proxy) {
1072 opts->http_proxy;
1075 if (!opts->charmap) {
1080 opts->charmap = charmap;
1084 if (opts->charmap) {
1087 if (!path_exists(opts->charmap)) {
1088 derror("Charmap file does not exist: %s", opts->charmap);
1095 kcm_extract_charmap_name(opts->charmap, charmap_name,
1101 if (opts->memcheck) {
1103 args[n++] = opts->memcheck;
1106 if (opts->gpu) {
1107 const char* gpu = opts->gpu;
1124 if (hw->hw_gpu_enabled && opts->snapstorage && (!opts->no_snapshot_load ||
1125 !opts->no_snapshot_save)) {
1131 if (opts->webcam_list) {
1136 if (opts->camera_back) {
1138 if (memcmp(opts->camera_back, "webcam", 6) &&
1139 strcmp(opts->camera_back, "emulated") &&
1140 strcmp(opts->camera_back, "none")) {
1143 opts->camera_back);
1146 hw->hw_camera_back = ASTRDUP(opts->camera_back);
1149 if (opts->camera_front) {
1151 if (memcmp(opts->camera_front, "webcam", 6) &&
1152 strcmp(opts->camera_front, "emulated") &&
1153 strcmp(opts->camera_front, "none")) {
1156 opts->camera_front);
1159 hw->hw_camera_front = ASTRDUP(opts->camera_front);
1167 if (opts->shared_net_id) {
1168 unsigned int shared_net_id = atoi(opts->shared_net_id);
1184 if (opts->screen) {
1185 if (strcmp(opts->screen, "touch") &&
1186 strcmp(opts->screen, "multi-touch") &&
1187 strcmp(opts->screen, "no-touch")) {
1191 opts->screen);
1194 hw->hw_screen = ASTRDUP(opts->screen);
1296 init_sdl_ui(skinConfig, skinPath, opts);
1298 if (attach_ui_to_core(opts) < 0) {