您的位置:首页 > 产品设计 > 产品经理

8/27/2011 2:55:44 PM

2011-08-27 15:23 295 查看
8/27/2011 2:55:44 PM

unsigned defaultPartitionSize = convertMBToBytes(66);

默认分区大小 66M

#define VERBOSE_TAG_LIST \

_VERBOSE_TAG(init, "emulator initialization") \

_VERBOSE_TAG(console, "control console") \

_VERBOSE_TAG(modem, "emulated GSM modem") \

_VERBOSE_TAG(radio, "emulated GSM AT Command channel") \

_VERBOSE_TAG(keys, "key bindings & presses") \

_VERBOSE_TAG(slirp, "internal router/firewall") \

_VERBOSE_TAG(timezone, "host timezone detection" ) \

_VERBOSE_TAG(socket, "network sockets") \

_VERBOSE_TAG(proxy, "network proxy support") \

_VERBOSE_TAG(audio, "audio sub-system") \

_VERBOSE_TAG(audioin, "audio input backend") \

_VERBOSE_TAG(audioout, "audio output backend") \

_VERBOSE_TAG(surface, "video surface support") \

_VERBOSE_TAG(qemud, "qemud multiplexer daemon") \

_VERBOSE_TAG(gps, "emulated GPS") \

_VERBOSE_TAG(nand_limits, "nand/flash read/write thresholding") \

_VERBOSE_TAG(hw_control, "emulated power/flashlight/led/vibrator") \

_VERBOSE_TAG(avd_config, "android virtual device configuration") \

_VERBOSE_TAG(sensors, "emulated sensors") \

_VERBOSE_TAG(memcheck, "memory checker") \

定义了这么多的调试级别

parse_debug_tags

根据输入参数来决定

parse_debug_tags

if (opts->timezone) {

if ( timezone_set(opts->timezone) < 0 ) {

fprintf(stderr, "emulator: it seems the timezone '%s' is not in zoneinfo format\n", opts->timezone);

}

}

如何指定了时区 还需要调整时区

if (opts->nojni)

opts->no_jni = opts->nojni;

if (opts->nocache)

opts->no_cache = opts->nocache;

if (opts->noaudio)

opts->no_audio = opts->noaudio;

if (opts->noskin)

opts->no_skin = opts->noskin;

if (opts->initdata) {

opts->init_data = opts->initdata;

opts->initdata = NULL;

}

_forceAvdImagePath(AVD_IMAGE_KERNEL, opts->kernel, "kernel", 1);

_forceAvdImagePath(AVD_IMAGE_INITSYSTEM, opts->system, "system", 1);

_forceAvdImagePath(AVD_IMAGE_RAMDISK, opts->ramdisk,"ramdisk", 1);

_forceAvdImagePath(AVD_IMAGE_USERDATA, opts->data, "user data", 0);

_forceAvdImagePath(AVD_IMAGE_CACHE, opts->cache, "cache", 0);

_forceAvdImagePath(AVD_IMAGE_SDCARD, opts->sdcard, "SD Card", 0);

有3个是必须得
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: