Lines Matching refs:opts

180     AndroidOptions  opts[1];
187 if ( android_parse_options( &argc, &argv, opts ) < 0 ) {
195 handle_ui_options(opts);
245 if (opts->version) {
265 if (opts->snapshot_list) {
266 if (opts->snapstorage == NULL) {
268 avd = createAVD(opts, &inAndroidBuild);
269 opts->snapstorage = avdInfo_getSnapStoragePath(avd);
270 if (opts->snapstorage != NULL) {
271 D("autoconfig: -snapstorage %s", opts->snapstorage);
281 snapshot_print_and_exit(opts->snapstorage);
284 sanitizeOptions(opts);
292 if (android_charmap_setup(opts->charmap)) {
297 avd = android_avdInfo = createAVD(opts, &inAndroidBuild);
300 if (opts->skindir != NULL) {
301 if (opts->skin == NULL) {
312 if (opts->skin == NULL) {
313 opts->skin = skinName;
314 D("autoconfig: -skin %s", opts->skin);
319 opts->skindir = skinDir;
320 D("autoconfig: -skindir %s", opts->skindir);
323 avdInfo_getSkinHardwareIni(avd, opts->skin, opts->skindir);
326 if (opts->dynamic_skin == 0) {
327 opts->dynamic_skin = avdInfo_shouldUseDynamicSkin(avd);
337 if (opts->keyset) {
338 parse_keyset(opts->keyset, opts);
343 opts->keyset);
347 parse_keyset("default", opts);
355 if (!opts->keyset)
360 if (opts->shared_net_id) {
362 long shared_net_id = strtol(opts->shared_net_id, &end, 0);
373 parse_skin_files(opts->skindir, opts->skin, opts, hw,
376 if (!opts->netspeed && skin_network_speed) {
379 opts->netspeed = (char*)skin_network_speed;
382 if (!opts->netdelay && skin_network_delay) {
385 opts->netdelay = (char*)skin_network_delay;
389 if (opts->trace) {
390 char* tracePath = avdInfo_getTracePath(avd, opts->trace);
402 opts->trace = tracePath;
419 char* kernelFile = opts->kernel;
493 if (opts->tcpdump) {
495 args[n++] = opts->tcpdump;
499 if (opts->nand_limits) {
501 args[n++] = opts->nand_limits;
505 if (opts->timezone) {
507 args[n++] = opts->timezone;
510 if (opts->netspeed) {
512 args[n++] = opts->netspeed;
514 if (opts->netdelay) {
516 args[n++] = opts->netdelay;
518 if (opts->netfast) {
522 if (opts->audio) {
524 args[n++] = opts->audio;
527 if (opts->cpu_delay) {
529 args[n++] = opts->cpu_delay;
532 if (opts->dns_server) {
534 args[n++] = opts->dns_server;
537 /* opts->ramdisk is never NULL (see createAVD) here */
538 if (opts->ramdisk) {
539 reassign_string(&hw->disk_ramdisk_path, opts->ramdisk);
549 if (opts->partition_size) {
551 long sizeMB = strtol(opts->partition_size, &end, 0);
570 if (opts->sysdir == NULL) {
572 opts->sysdir = ASTRDUP(avdInfo_getContentPath(avd));
573 D("autoconfig: -sysdir %s", opts->sysdir);
577 if (opts->sysdir != NULL) {
578 if (!path_exists(opts->sysdir)) {
579 derror("Directory does not exist: %s", opts->sysdir);
589 if (opts->system == NULL) {
607 if (opts->sysdir != NULL && !path_exists(opts->system)) {
608 initImage = _getFullFilePath(opts->sysdir, opts->system);
610 initImage = ASTRDUP(opts->system);
656 if (opts->datadir) {
657 if (!path_exists(opts->datadir)) {
658 derror("Invalid -datadir directory: %s", opts->datadir);
667 if (!opts->data) {
678 opts->wipe_data = 1;
682 if (opts->datadir) {
683 dataImage = _getFullFilePath(opts->datadir, opts->data);
685 dataImage = ASTRDUP(opts->data);
689 if (opts->initdata != NULL) {
690 initImage = ASTRDUP(opts->initdata);
701 if (opts->wipe_data) {
706 android_op_wipe_data = opts->wipe_data;
727 if (opts->no_cache) {
732 if (opts->cache) {
734 opts->cache = NULL;
739 if (!opts->cache) {
741 opts->cache = avdInfo_getCachePath(avd);
742 if (opts->cache == NULL) {
748 opts->cache = avdInfo_getDefaultCachePath(avd);
751 if (opts->cache) {
752 D("autoconfig: -cache %s", opts->cache);
756 if (opts->cache) {
757 hw->disk_cachePartition_path = ASTRDUP(opts->cache);
761 if (hw->disk_cachePartition_path && opts->cache_size) {
764 long sizeMB = strtol(opts->cache_size, &end, 0);
777 if (opts->sdcard) {
779 opts->sdcard = NULL;
783 if (!opts->sdcard) {
786 if (opts->datadir) {
787 bufprint(tmp, tmpend, "%s/%s", opts->datadir, "system.img");
789 opts->sdcard = strdup(tmp);
795 opts->sdcard = avdInfo_getSdCardPath(avd);
796 if (opts->sdcard != NULL) {
803 if (opts->sdcard) {
804 D("autoconfig: -sdcard %s", opts->sdcard);
809 if(opts->sdcard) {
811 if (path_get_size(opts->sdcard, &size) == 0) {
817 fprintf(stderr, "### WARNING: SD Card files must be at least 9MB, ignoring '%s'\n", opts->sdcard);
819 hw->hw_sdCard_path = ASTRDUP(opts->sdcard);
822 dwarning("no SD Card image at '%s'", opts->sdcard);
833 if (opts->no_snapstorage) {
835 if (opts->snapshot) {
837 opts->snapshot = NULL;
840 if (opts->snapstorage) {
842 opts->snapstorage = NULL;
847 if (!opts->snapstorage && avdInfo_getSnapshotPresent(avd)) {
848 opts->snapstorage = avdInfo_getSnapStoragePath(avd);
849 if (opts->snapstorage != NULL) {
850 D("autoconfig: -snapstorage %s", opts->snapstorage);
854 if (opts->snapstorage && !path_exists(opts->snapstorage)) {
855 D("no image at '%s', state snapshots disabled", opts->snapstorage);
856 opts->snapstorage = NULL;
862 if (opts->snapstorage) {
864 hw->disk_snapStorage_path = ASTRDUP(opts->snapstorage);
870 if (opts->no_snapshot) {
872 opts->no_snapshot_load = 1;
873 opts->no_snapshot_save = 1;
875 if (opts->snapshot) {
880 if (!opts->no_snapshot_load || !opts->no_snapshot_save) {
881 if (opts->snapshot == NULL) {
882 opts->snapshot = "default-boot";
883 D("autoconfig: -snapshot %s", opts->snapshot);
891 if (!opts->no_snapshot_load) {
893 args[n++] = ASTRDUP(opts->snapshot);
896 if (!opts->no_snapshot_save) {
898 args[n++] = ASTRDUP(opts->snapshot);
901 if (opts->no_snapshot_update_time) {
906 if (!opts->logcat || opts->logcat[0] == 0) {
907 opts->logcat = getenv("ANDROID_LOG_TAGS");
908 if (opts->logcat && opts->logcat[0] == 0)
909 opts->logcat = NULL;
913 if (opts->show_kernel) {
918 if (!opts->shell_serial) {
920 opts->shell_serial = "con:";
922 opts->shell_serial = "stdio";
926 opts->shell = 1;
928 if (opts->shell || opts->logcat) {
930 args[n++] = opts->shell_serial;
934 if (opts->radio) {
936 args[n++] = opts->radio;
939 if (opts->gps) {
941 args[n++] = opts->gps;
944 if (opts->selinux) {
945 if ((strcmp(opts->selinux, "permissive") != 0)
946 && (strcmp(opts->selinux, "disabled") != 0)) {
952 if (opts->memory) {
954 long ramSize = strtol(opts->memory, &end, 0);
965 if (!opts->memory) {
1017 if (opts->trace) {
1019 args[n++] = opts->trace;
1040 if (opts->prop != NULL) {
1041 ParamList* pl = opts->prop;
1062 if (opts->shell || opts->logcat) {
1068 if (opts->trace) {
1072 if (!opts->no_jni) {
1076 if (opts->no_boot_anim) {
1080 if (opts->logcat) {
1081 char* q = bufprint(p, end, " androidboot.logcat=%s", opts->logcat);
1096 if (opts->bootchart) {
1097 p = bufprint(p, end, " androidboot.bootchart=%s", opts->bootchart);
1100 if (opts->selinux) {
1101 p = bufprint(p, end, " androidboot.selinux=%s", opts->selinux);
1112 if (opts->ports) {
1114 args[n++] = opts->ports;
1117 if (opts->port) {
1119 args[n++] = opts->port;
1122 if (opts->report_console) {
1124 args[n++] = opts->report_console;
1127 if (opts->http_proxy) {
1129 args[n++] = opts->http_proxy;
1132 if (!opts->charmap) {
1137 opts->charmap = charmap;
1141 if (opts->charmap) {
1144 if (!path_exists(opts->charmap)) {
1145 derror("Charmap file does not exist: %s", opts->charmap);
1152 kcm_extract_charmap_name(opts->charmap, charmap_name,
1157 if (opts->gpu) {
1158 const char* gpu = opts->gpu;
1175 if (hw->hw_gpu_enabled && opts->snapstorage && (!opts->no_snapshot_load ||
1176 !opts->no_snapshot_save)) {
1182 if (opts->webcam_list) {
1187 if (opts->camera_back) {
1189 if (memcmp(opts->camera_back, "webcam", 6) &&
1190 strcmp(opts->camera_back, "emulated") &&
1191 strcmp(opts->camera_back, "none")) {
1194 opts->camera_back);
1197 hw->hw_camera_back = ASTRDUP(opts->camera_back);
1200 if (opts->camera_front) {
1202 if (memcmp(opts->camera_front, "webcam", 6) &&
1203 strcmp(opts->camera_front, "emulated") &&
1204 strcmp(opts->camera_front, "none")) {
1207 opts->camera_front);
1210 hw->hw_camera_front = ASTRDUP(opts->camera_front);
1218 if (opts->shared_net_id) {
1219 unsigned int shared_net_id = atoi(opts->shared_net_id);
1235 if (opts->no_accel) {
1236 if (opts->accel) {
1237 if (strcmp(opts->accel, "off") != 0) {
1239 opts->accel);
1243 reassign_string(&opts->accel, "off");
1253 if (opts->accel) {
1254 if (!strcmp(opts->accel, "off")) {
1256 } else if (!strcmp(opts->accel, "on")) {
1258 } else if (!strcmp(opts->accel, "auto")) {
1262 opts->accel);
1343 if (opts->screen) {
1344 if (strcmp(opts->screen, "touch") &&
1345 strcmp(opts->screen, "multi-touch") &&
1346 strcmp(opts->screen, "no-touch")) {
1350 opts->screen);
1353 hw->hw_screen = ASTRDUP(opts->screen);
1469 init_sdl_ui(skinConfig, skinPath, opts);
1471 if (attach_ui_to_core(opts) < 0) {