Home | History | Annotate | Download | only in android

Lines Matching refs:opts

176 void sanitizeOptions( AndroidOptions* opts )
182 if (opts->image != NULL) {
183 if (opts->system != NULL) {
184 if (opts->sysdir != NULL) {
192 opts->sysdir = opts->system;
193 opts->system = opts->image;
194 opts->image = NULL;
196 else if (opts->system != NULL && path_is_dir(opts->system)) {
197 if (opts->sysdir != NULL) {
206 opts->sysdir = opts->system;
207 opts->system = NULL;
210 if (opts->nojni) {
211 opts->no_jni = opts->nojni;
212 opts->nojni = 0;
215 if (opts->nocache) {
216 opts->no_cache = opts->nocache;
217 opts->nocache = 0;
220 if (opts->noaudio) {
221 opts->no_audio = opts->noaudio;
222 opts->noaudio = 0;
225 if (opts->noskin) {
226 opts->no_skin = opts->noskin;
227 opts->noskin = 0;
231 if (opts->no_cache) {
232 opts->cache = 0;
237 if (opts->no_audio)
238 opts->audio = "none";
243 if (opts->no_skin) {
244 opts->skin = "320x480";
245 opts->skindir = NULL;
248 if (opts->skindir) {
249 if (!opts->skin) {
255 if (opts->bootchart) {
257 int timeout = strtol(opts->bootchart, &end, 10);
259 opts->bootchart = NULL;
268 AvdInfo* createAVD(AndroidOptions* opts, int* inAndroidBuild)
279 if (opts->avd == NULL) {
313 if (opts->avd == NULL && !android_build_out)
315 if (!opts->sysdir) {
316 opts->sysdir = _getSdkImagePath("system.img");
317 if (!opts->sysdir) {
328 D("autoconfig: -sysdir %s", opts->sysdir);
331 if (!opts->system) {
332 opts->system = _getSdkSystemImage(opts->sysdir, "-image", "system.img");
333 D("autoconfig: -system %s", opts->system);
336 if (!opts->kernel) {
337 opts->kernel = _getSdkSystemImage(opts->sysdir, "-kernel", "kernel-qemu");
338 D("autoconfig: -kernel %s", opts->kernel);
341 if (!opts->ramdisk) {
342 opts->ramdisk = _getSdkSystemImage(opts->sysdir, "-ramdisk", "ramdisk.img");
343 D("autoconfig: -ramdisk %s", opts->ramdisk);
347 if (!opts->datadir) {
348 opts->datadir = android_strdup(opts->sysdir);
349 D("autoconfig: -datadir %s", opts->sysdir);
352 if (!opts->data) {
354 bufprint(tmp, tmpend, "%s/userdata-qemu.img", opts->datadir);
366 opts->data = android_strdup(tmp);
367 D("autoconfig: -data %s", opts->data);
370 if (!opts->snapstorage && opts->datadir) {
371 bufprint(tmp, tmpend, "%s/snapshots.img", opts->datadir);
373 opts->snapstorage = android_strdup(tmp);
374 D("autoconfig: -snapstorage %s", opts->snapstorage);
382 if (opts->avd != NULL)
384 ret = avdInfo_new( opts->avd, android_avdParams );
387 dprint("could not find virtual device named '%s'", opts->avd);
394 android_build_out = android_build_root = opts->sysdir;
416 void handle_ui_options( AndroidOptions* opts )
421 int attach_ui_to_core( AndroidOptions* opts )