From 55f4e4a5ec657a017e3bf75299ad71fd1c968dd3 Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Tue, 21 Oct 2008 07:00:00 -0700 Subject: Initial Contribution --- .cvsignore | 42 - Android.mk | 10 + CHANGES.TXT | 533 +++ MODULE_LICENSE_GPL | 0 Makefile | 40 +- Makefile.android | 454 ++ Makefile.target | 407 +- NOTICE | 339 ++ README | 14 +- aes.h | 47 +- alpha-dis.c | 1960 -------- android-rebuild.sh | 265 ++ android.h | 105 + android/config/config.h | 14 + android/config/darwin-ppc/config-host.h | 13 + android/config/darwin-x86/config-host.h | 13 + android/config/linux-x86/config-host.h | 10 + android/config/windows/config-host.h | 10 + android_avm.c | 42 + android_avm.h | 39 + android_charmap.c | 148 + android_charmap.h | 133 + android_config.c | 471 ++ android_config.h | 57 + android_console.c | 2134 +++++++++ android_debug.c | 141 + android_debug.h | 89 + android_events.c | 222 + android_events.h | 184 + android_gps.c | 36 + android_gps.h | 23 + android_help.c | 1246 ++++++ android_help.h | 36 + android_icons.h | 984 ++++ android_kmsg.c | 69 + android_kmsg.h | 31 + android_main.c | 2620 +++++++++++ android_option.c | 240 + android_option.h | 42 + android_options.h | 126 + android_profile.c | 127 + android_profile.h | 34 + android_qemud.c | 497 +++ android_qemud.h | 71 + android_resource.c | 64 + android_resource.h | 26 + android_timezone.c | 720 +++ android_timezone.h | 33 + android_utils.c | 1764 ++++++++ android_utils.h | 404 ++ audio/alsaaudio.c | 215 +- audio/audio.c | 349 +- audio/audio.h | 11 + audio/audio_int.h | 8 +- audio/audio_pt_int.c | 149 + audio/audio_pt_int.h | 22 + audio/audio_template.h | 15 +- audio/coreaudio.c | 696 ++- audio/dsoundaudio.c | 2 +- audio/esdaudio.c | 692 +++ audio/noaudio.c | 2 +- audio/ossaudio.c | 2 +- audio/sdlaudio.c | 241 +- audio/wavaudio.c | 265 +- audio/wavcapture.c | 6 +- audio/winaudio.c | 668 +++ block-bochs.c | 224 - block-cow.c | 271 -- block-vmdk.c | 446 -- block-vpc.c | 242 - block-vvfat.c | 72 +- block.c | 71 +- cbuffer.c | 231 + cbuffer.h | 61 + charpipe.c | 298 ++ charpipe.h | 26 + configure | 308 +- console.c | 72 +- cpu-all.h | 8 +- cpu-exec.c | 191 +- dcache.c | 342 ++ dcache.h | 24 + distrib/Makefile | 8 + distrib/README | 50 + distrib/build-emulator.sh | 37 + distrib/build_gcc_qemu_darwin.sh | 482 ++ distrib/libpng-1.2.19/Makefile | 25 + distrib/libpng-1.2.19/png.c | 895 ++++ distrib/libpng-1.2.19/png.h | 3525 +++++++++++++++ distrib/libpng-1.2.19/pngconf.h | 1535 +++++++ distrib/libpng-1.2.19/pngerror.c | 326 ++ distrib/libpng-1.2.19/pnggccrd.c | 6041 +++++++++++++++++++++++++ distrib/libpng-1.2.19/pngget.c | 962 ++++ distrib/libpng-1.2.19/pngmem.c | 608 +++ distrib/libpng-1.2.19/pngpread.c | 1585 +++++++ distrib/libpng-1.2.19/pngread.c | 1478 ++++++ distrib/libpng-1.2.19/pngrio.c | 167 + distrib/libpng-1.2.19/pngrtran.c | 4284 ++++++++++++++++++ distrib/libpng-1.2.19/pngrutil.c | 4189 +++++++++++++++++ distrib/libpng-1.2.19/pngset.c | 1284 ++++++ distrib/libpng-1.2.19/pngtrans.c | 662 +++ distrib/libpng-1.2.19/pngvcrd.c | 3922 ++++++++++++++++ distrib/libpng-1.2.19/pngwio.c | 234 + distrib/libpng-1.2.19/pngwrite.c | 1530 +++++++ distrib/libpng-1.2.19/pngwtran.c | 572 +++ distrib/libpng-1.2.19/pngwutil.c | 2782 ++++++++++++ distrib/libpng-1.2.19/sources.make | 14 + distrib/make-distrib.sh | 112 + distrib/update-audio.sh | 85 + distrib/zlib-1.2.3/Makefile | 15 + distrib/zlib-1.2.3/adler32.c | 149 + distrib/zlib-1.2.3/compress.c | 79 + distrib/zlib-1.2.3/configure | 459 ++ distrib/zlib-1.2.3/crc32.c | 423 ++ distrib/zlib-1.2.3/crc32.h | 441 ++ distrib/zlib-1.2.3/deflate.c | 1736 ++++++++ distrib/zlib-1.2.3/deflate.h | 331 ++ distrib/zlib-1.2.3/gzio.c | 1026 +++++ distrib/zlib-1.2.3/infback.c | 623 +++ distrib/zlib-1.2.3/inffast.c | 318 ++ distrib/zlib-1.2.3/inffast.h | 11 + distrib/zlib-1.2.3/inffixed.h | 94 + distrib/zlib-1.2.3/inflate.c | 1368 ++++++ distrib/zlib-1.2.3/inflate.h | 115 + distrib/zlib-1.2.3/inftrees.c | 329 ++ distrib/zlib-1.2.3/inftrees.h | 55 + distrib/zlib-1.2.3/sources.make | 4 + distrib/zlib-1.2.3/trees.c | 1219 +++++ distrib/zlib-1.2.3/trees.h | 128 + distrib/zlib-1.2.3/uncompr.c | 61 + distrib/zlib-1.2.3/zconf.h | 332 ++ distrib/zlib-1.2.3/zlib.h | 1357 ++++++ distrib/zlib-1.2.3/zutil.c | 318 ++ distrib/zlib-1.2.3/zutil.h | 269 ++ dyngen-exec.h | 49 +- dyngen.c | 1428 ++++-- elf.h | 2 - exec-all.h | 25 +- fpu/softfloat.c | 2 +- fpu/softfloat.h | 4 +- framebuffer.c | 243 + framebuffer.h | 149 + gdbstub.c | 17 +- gen-charmap.py | 180 + gen-skin.py | 78 + hpet.h | 22 + hw/acpi-dsdt.dsl | 559 --- hw/acpi-dsdt.hex | 278 -- hw/acpi.c | 615 --- hw/adb.c | 410 -- hw/adlib.c | 341 -- hw/android_arm.c | 149 + hw/apb_pci.c | 232 - hw/apic.c | 1042 ----- hw/arm_pic.c | 43 +- hw/arm_pic.h | 6 +- hw/arm_timer.c | 383 -- hw/cirrus_vga.c | 3193 ------------- hw/cirrus_vga_rop.h | 78 - hw/cirrus_vga_rop2.h | 281 -- hw/cuda.c | 656 --- hw/es1370.c | 1062 ----- hw/esp.c | 571 --- hw/fdc.c | 1757 -------- hw/fmopl.c | 1390 ------ hw/fmopl.h | 174 - hw/goldfish_audio.c | 521 +++ hw/goldfish_battery.c | 261 ++ hw/goldfish_device.c | 200 + hw/goldfish_device.h | 58 + hw/goldfish_events_device.c | 423 ++ hw/goldfish_fb.c | 405 ++ hw/goldfish_interrupt.c | 190 + hw/goldfish_memlog.c | 78 + hw/goldfish_mmc.c | 465 ++ hw/goldfish_nand.c | 639 +++ hw/goldfish_nand.h | 28 + hw/goldfish_nand_reg.h | 54 + hw/goldfish_switch.c | 172 + hw/goldfish_timer.c | 255 ++ hw/goldfish_trace.c | 252 ++ hw/goldfish_trace.h | 78 + hw/goldfish_tty.c | 225 + hw/grackle_pci.c | 156 - hw/heathrow_pic.c | 168 - hw/i8254.c | 482 -- hw/i8259.c | 561 --- hw/ide.c | 2535 ----------- hw/integratorcp.c | 546 --- hw/iommu.c | 258 -- hw/irq.c | 71 + hw/irq.h | 32 + hw/lance.c | 462 -- hw/lsi53c895a.c | 1571 ------- hw/m48t59.c | 614 --- hw/m48t59.h | 13 - hw/mc146818rtc.c | 463 -- hw/mips_r4k.c | 291 -- hw/mmc.h | 214 + hw/ne2000.c | 816 ---- hw/openpic.c | 1027 ----- hw/parallel.c | 183 - hw/pc.c | 911 ---- hw/pci.c | 40 +- hw/pckbd.c | 370 -- hw/pcnet.c | 1789 -------- hw/pcspk.c | 147 - hw/pflash_cfi02.c | 624 --- hw/piix_pci.c | 419 -- hw/pl011.c | 251 -- hw/pl050.c | 127 - hw/pl080.c | 328 -- hw/pl110.c | 420 -- hw/pl110_template.h | 252 -- hw/pl190.c | 252 -- hw/power_supply.h | 109 + hw/ppc.c | 428 -- hw/ppc_chrp.c | 566 --- hw/ppc_prep.c | 694 --- hw/prep_pci.c | 167 - hw/ps2.c | 566 --- hw/rtl8139.c | 3471 --------------- hw/sb16.c | 1451 ------ hw/sd.h | 83 + hw/serial.c | 456 -- hw/sh7750.c | 836 ---- hw/sh7750_regnames.c | 128 - hw/sh7750_regnames.h | 6 - hw/sh7750_regs.h | 1623 ------- hw/shix.c | 111 - hw/slavio_intctl.c | 400 -- hw/slavio_misc.c | 244 - hw/slavio_serial.c | 545 --- hw/slavio_timer.c | 288 -- hw/smc91c111.c | 12 +- hw/sun4m.c | 324 -- hw/sun4u.c | 368 -- hw/tc58128.c | 181 - hw/tcx.c | 330 -- hw/unin_pci.c | 261 -- hw/usb-hid.c | 18 +- hw/usb-hub.c | 12 +- hw/usb-msd.c | 16 +- hw/usb-uhci.c | 674 --- hw/usb.c | 5 +- hw/usb.h | 5 +- hw/versatile_pci.c | 119 - hw/versatilepb.c | 473 -- hw/vga.c | 1945 -------- hw/vga_int.h | 173 - hw/vga_template.h | 525 --- images/android_icon.ico | Bin 0 -> 300318 bytes images/android_icon.rc | 3 + images/android_icon_16.png | Bin 0 -> 460 bytes images/android_icon_256.png | Bin 0 -> 13369 bytes images/android_icon_32.png | Bin 0 -> 1321 bytes linux-2.6.9-qemu-fast.patch | 70 - linux-user/arm-semi.c | 203 - linux-user/arm/syscall.h | 42 - linux-user/arm/syscall_nr.h | 262 -- linux-user/arm/termbits.h | 215 - linux-user/elfload.c | 1240 ------ linux-user/flat.h | 67 - linux-user/flatload.c | 793 ---- linux-user/i386/syscall.h | 221 - linux-user/i386/syscall_nr.h | 274 -- linux-user/i386/termbits.h | 214 - linux-user/ioctls.h | 302 -- linux-user/linuxload.c | 195 - linux-user/main.c | 1716 ------- linux-user/mips/syscall.h | 23 - linux-user/mips/syscall_nr.h | 288 -- linux-user/mips/termbits.h | 229 - linux-user/mmap.c | 417 -- linux-user/path.c | 147 - linux-user/ppc/syscall.h | 130 - linux-user/ppc/syscall_nr.h | 258 -- linux-user/ppc/termbits.h | 235 - linux-user/qemu.h | 308 -- linux-user/sh4/syscall.h | 12 - linux-user/sh4/syscall_nr.h | 292 -- linux-user/sh4/termbits.h | 274 -- linux-user/signal.c | 2067 --------- linux-user/socket.h | 138 - linux-user/sparc/syscall.h | 9 - linux-user/sparc/syscall_nr.h | 220 - linux-user/sparc/termbits.h | 279 -- linux-user/sparc64/syscall.h | 10 - linux-user/sparc64/syscall_nr.h | 286 -- linux-user/sparc64/termbits.h | 279 -- linux-user/syscall.c | 3841 ---------------- linux-user/syscall_defs.h | 1516 ------- linux-user/syscall_types.h | 81 - linux-user/vm86.c | 482 -- linux_keycodes.h | 452 ++ loader.c | 8 +- loadpng.c | 275 ++ m68k-dis.c | 5051 --------------------- mips-dis.c | 3999 ----------------- monitor.c | 160 +- offset_layout.py | 111 + osdep.c | 46 +- osdep.h | 4 +- proxy/proxy_common.c | 502 +++ proxy/proxy_common.h | 79 + proxy/proxy_http.c | 371 ++ proxy/proxy_http.h | 24 + proxy/proxy_int.h | 145 + qemu-doc.texi | 21 +- qemu_file.h | 121 + qemu_socket.h | 30 - qemu_timers.c | 1103 +++++ qemu_timers.h | 62 + s390.ld | 204 - sdl.c | 9 +- sh4-dis.c | 2096 --------- shaper.c | 593 +++ shaper.h | 51 + skins/skin_argb.h | 856 ++++ skins/skin_composer.c | 398 ++ skins/skin_composer.h | 102 + skins/skin_default.h | 7414 +++++++++++++++++++++++++++++++ skins/skin_file.c | 699 +++ skins/skin_file.h | 132 + skins/skin_image.c | 742 ++++ skins/skin_image.h | 92 + skins/skin_keyboard.c | 783 ++++ skins/skin_keyboard.h | 59 + skins/skin_keyset.c | 540 +++ skins/skin_keyset.h | 121 + skins/skin_rect.c | 241 + skins/skin_rect.h | 71 + skins/skin_region.c | 1448 ++++++ skins/skin_region.h | 103 + skins/skin_scaler.c | 129 + skins/skin_scaler.h | 36 + skins/skin_surface.c | 613 +++ skins/skin_surface.h | 101 + skins/skin_trackball.c | 579 +++ skins/skin_trackball.h | 39 + skins/skin_window.c | 1233 +++++ skins/skin_window.h | 60 + slirp/bootp.c | 13 +- slirp/bootp.h | 2 +- slirp/cksum.c | 4 +- slirp/ctl.h | 3 + slirp/debug.c | 26 +- slirp/if.c | 12 +- slirp/if.h | 2 +- slirp/ip_icmp.c | 83 +- slirp/ip_icmp.h | 6 +- slirp/ip_input.c | 54 +- slirp/ip_output.c | 20 +- slirp/libslirp.h | 12 +- slirp/main.h | 9 +- slirp/mbuf.c | 195 +- slirp/mbuf.h | 130 +- slirp/misc.c | 724 +-- slirp/misc.h | 25 +- slirp/sbuf.c | 91 +- slirp/sbuf.h | 40 +- slirp/slirp.c | 540 ++- slirp/slirp.h | 18 +- slirp/socket.c | 245 +- slirp/socket.h | 27 +- slirp/tcp.h | 4 +- slirp/tcp_input.c | 270 +- slirp/tcp_output.c | 16 +- slirp/tcp_subr.c | 680 +-- slirp/tcp_timer.c | 4 +- slirp/tcp_var.h | 5 +- slirp/tftp.c | 149 +- slirp/tftp.h | 3 +- slirp/udp.c | 204 +- slirp/udp.h | 9 +- sockets.c | 449 ++ sockets.h | 73 + softmmu_header.h | 15 +- softmmu_template.h | 36 +- sparc-dis.c | 3265 -------------- tap-win32.c | 2 +- target-arm/cpu.h | 14 +- target-arm/helper.c | 27 +- target-arm/op.c | 27 + target-arm/op_helper.c | 126 + target-arm/op_mem.h | 48 + target-arm/translate.c | 181 +- target-i386/cpu.h | 653 --- target-i386/exec.h | 575 --- target-i386/helper.c | 3540 --------------- target-i386/helper2.c | 1031 ----- target-i386/op.c | 2444 ---------- target-i386/opreg_template.h | 190 - target-i386/ops_mem.h | 156 - target-i386/ops_sse.h | 1374 ------ target-i386/ops_template.h | 597 --- target-i386/ops_template_mem.h | 483 -- target-i386/translate-copy.c | 1323 ------ target-i386/translate.c | 6523 --------------------------- target-mips/cpu.h | 279 -- target-mips/exec.h | 119 - target-mips/fop_template.c | 99 - target-mips/helper.c | 432 -- target-mips/mips-defs.h | 67 - target-mips/op.c | 1155 ----- target-mips/op_helper.c | 786 ---- target-mips/op_helper_mem.c | 141 - target-mips/op_mem.c | 149 - target-mips/op_template.c | 65 - target-mips/translate.c | 2443 ---------- target-ppc/cpu.h | 1025 ----- target-ppc/exec.h | 90 - target-ppc/helper.c | 1458 ------ target-ppc/op.c | 1296 ------ target-ppc/op_helper.c | 589 --- target-ppc/op_helper_mem.h | 100 - target-ppc/op_mem.h | 371 -- target-ppc/op_template.h | 183 - target-ppc/translate.c | 2701 ----------- target-ppc/translate_init.c | 2067 --------- target-sh4/README.sh4 | 150 - target-sh4/cpu.h | 146 - target-sh4/exec.h | 80 - target-sh4/helper.c | 441 -- target-sh4/op.c | 967 ---- target-sh4/op_helper.c | 372 -- target-sh4/op_mem.c | 78 - target-sh4/translate.c | 1219 ----- target-sparc/cpu.h | 277 -- target-sparc/exec.h | 104 - target-sparc/fbranch_template.h | 89 - target-sparc/fop_template.h | 81 - target-sparc/helper.c | 589 --- target-sparc/op.c | 1597 ------- target-sparc/op_helper.c | 918 ---- target-sparc/op_mem.h | 114 - target-sparc/op_template.h | 48 - target-sparc/translate.c | 2845 ------------ telephony/Jamfile | 13 + telephony/android_modem.c | 1869 ++++++++ telephony/android_modem.h | 137 + telephony/gsm.c | 1217 +++++ telephony/gsm.h | 196 + telephony/modem_driver.c | 147 + telephony/modem_driver.h | 29 + telephony/remote_call.c | 429 ++ telephony/remote_call.h | 55 + telephony/sim_card.c | 432 ++ telephony/sim_card.h | 54 + telephony/simulator.c | 195 + telephony/sms.c | 1655 +++++++ telephony/sms.h | 117 + telephony/sysdeps.h | 80 + telephony/sysdeps_posix.c | 645 +++ telephony/sysdeps_qemu.c | 376 ++ telephony/test1.c | 49 + telephony/test2.c | 215 + tests/.cvsignore | 23 - tests/qruncom.c | 32 +- tests/runcom.c | 12 +- trace.c | 1875 ++++++++ trace.h | 157 + trace_common.h | 139 + translate-all.c | 91 +- translate-op.c | 44 + translate.make | 36 + usb-linux.c | 13 +- varint.c | 118 + varint.h | 15 + vl.c | 2162 +++++---- vl.h | 324 +- vnc.c | 20 +- 472 files changed, 109745 insertions(+), 131221 deletions(-) delete mode 100644 .cvsignore create mode 100644 Android.mk create mode 100644 CHANGES.TXT create mode 100644 MODULE_LICENSE_GPL create mode 100644 Makefile.android create mode 100644 NOTICE delete mode 100644 alpha-dis.c create mode 100755 android-rebuild.sh create mode 100644 android.h create mode 100644 android/config/config.h create mode 100644 android/config/darwin-ppc/config-host.h create mode 100644 android/config/darwin-x86/config-host.h create mode 100644 android/config/linux-x86/config-host.h create mode 100644 android/config/windows/config-host.h create mode 100644 android_avm.c create mode 100644 android_avm.h create mode 100644 android_charmap.c create mode 100644 android_charmap.h create mode 100644 android_config.c create mode 100644 android_config.h create mode 100644 android_console.c create mode 100644 android_debug.c create mode 100644 android_debug.h create mode 100644 android_events.c create mode 100644 android_events.h create mode 100644 android_gps.c create mode 100644 android_gps.h create mode 100644 android_help.c create mode 100644 android_help.h create mode 100644 android_icons.h create mode 100644 android_kmsg.c create mode 100644 android_kmsg.h create mode 100644 android_main.c create mode 100644 android_option.c create mode 100644 android_option.h create mode 100644 android_options.h create mode 100644 android_profile.c create mode 100644 android_profile.h create mode 100644 android_qemud.c create mode 100644 android_qemud.h create mode 100644 android_resource.c create mode 100644 android_resource.h create mode 100644 android_timezone.c create mode 100644 android_timezone.h create mode 100644 android_utils.c create mode 100644 android_utils.h create mode 100644 audio/audio_pt_int.c create mode 100644 audio/audio_pt_int.h create mode 100644 audio/esdaudio.c create mode 100644 audio/winaudio.c delete mode 100644 block-bochs.c delete mode 100644 block-cow.c delete mode 100644 block-vmdk.c delete mode 100644 block-vpc.c create mode 100644 cbuffer.c create mode 100644 cbuffer.h create mode 100644 charpipe.c create mode 100644 charpipe.h create mode 100644 dcache.c create mode 100644 dcache.h create mode 100644 distrib/Makefile create mode 100644 distrib/README create mode 100755 distrib/build-emulator.sh create mode 100755 distrib/build_gcc_qemu_darwin.sh create mode 100644 distrib/libpng-1.2.19/Makefile create mode 100644 distrib/libpng-1.2.19/png.c create mode 100644 distrib/libpng-1.2.19/png.h create mode 100644 distrib/libpng-1.2.19/pngconf.h create mode 100644 distrib/libpng-1.2.19/pngerror.c create mode 100644 distrib/libpng-1.2.19/pnggccrd.c create mode 100644 distrib/libpng-1.2.19/pngget.c create mode 100644 distrib/libpng-1.2.19/pngmem.c create mode 100644 distrib/libpng-1.2.19/pngpread.c create mode 100644 distrib/libpng-1.2.19/pngread.c create mode 100644 distrib/libpng-1.2.19/pngrio.c create mode 100644 distrib/libpng-1.2.19/pngrtran.c create mode 100644 distrib/libpng-1.2.19/pngrutil.c create mode 100644 distrib/libpng-1.2.19/pngset.c create mode 100644 distrib/libpng-1.2.19/pngtrans.c create mode 100644 distrib/libpng-1.2.19/pngvcrd.c create mode 100644 distrib/libpng-1.2.19/pngwio.c create mode 100644 distrib/libpng-1.2.19/pngwrite.c create mode 100644 distrib/libpng-1.2.19/pngwtran.c create mode 100644 distrib/libpng-1.2.19/pngwutil.c create mode 100644 distrib/libpng-1.2.19/sources.make create mode 100755 distrib/make-distrib.sh create mode 100755 distrib/update-audio.sh create mode 100644 distrib/zlib-1.2.3/Makefile create mode 100644 distrib/zlib-1.2.3/adler32.c create mode 100644 distrib/zlib-1.2.3/compress.c create mode 100755 distrib/zlib-1.2.3/configure create mode 100644 distrib/zlib-1.2.3/crc32.c create mode 100644 distrib/zlib-1.2.3/crc32.h create mode 100644 distrib/zlib-1.2.3/deflate.c create mode 100644 distrib/zlib-1.2.3/deflate.h create mode 100644 distrib/zlib-1.2.3/gzio.c create mode 100644 distrib/zlib-1.2.3/infback.c create mode 100644 distrib/zlib-1.2.3/inffast.c create mode 100644 distrib/zlib-1.2.3/inffast.h create mode 100644 distrib/zlib-1.2.3/inffixed.h create mode 100644 distrib/zlib-1.2.3/inflate.c create mode 100644 distrib/zlib-1.2.3/inflate.h create mode 100644 distrib/zlib-1.2.3/inftrees.c create mode 100644 distrib/zlib-1.2.3/inftrees.h create mode 100644 distrib/zlib-1.2.3/sources.make create mode 100644 distrib/zlib-1.2.3/trees.c create mode 100644 distrib/zlib-1.2.3/trees.h create mode 100644 distrib/zlib-1.2.3/uncompr.c create mode 100644 distrib/zlib-1.2.3/zconf.h create mode 100644 distrib/zlib-1.2.3/zlib.h create mode 100644 distrib/zlib-1.2.3/zutil.c create mode 100644 distrib/zlib-1.2.3/zutil.h create mode 100644 framebuffer.c create mode 100644 framebuffer.h create mode 100644 gen-charmap.py create mode 100755 gen-skin.py create mode 100644 hpet.h delete mode 100644 hw/acpi-dsdt.dsl delete mode 100644 hw/acpi-dsdt.hex delete mode 100644 hw/acpi.c delete mode 100644 hw/adb.c delete mode 100644 hw/adlib.c create mode 100644 hw/android_arm.c delete mode 100644 hw/apb_pci.c delete mode 100644 hw/apic.c delete mode 100644 hw/arm_timer.c delete mode 100644 hw/cirrus_vga.c delete mode 100644 hw/cirrus_vga_rop.h delete mode 100644 hw/cirrus_vga_rop2.h delete mode 100644 hw/cuda.c delete mode 100644 hw/es1370.c delete mode 100644 hw/esp.c delete mode 100644 hw/fdc.c delete mode 100644 hw/fmopl.c delete mode 100644 hw/fmopl.h create mode 100644 hw/goldfish_audio.c create mode 100644 hw/goldfish_battery.c create mode 100644 hw/goldfish_device.c create mode 100644 hw/goldfish_device.h create mode 100644 hw/goldfish_events_device.c create mode 100644 hw/goldfish_fb.c create mode 100644 hw/goldfish_interrupt.c create mode 100644 hw/goldfish_memlog.c create mode 100644 hw/goldfish_mmc.c create mode 100644 hw/goldfish_nand.c create mode 100644 hw/goldfish_nand.h create mode 100644 hw/goldfish_nand_reg.h create mode 100644 hw/goldfish_switch.c create mode 100644 hw/goldfish_timer.c create mode 100644 hw/goldfish_trace.c create mode 100644 hw/goldfish_trace.h create mode 100644 hw/goldfish_tty.c delete mode 100644 hw/grackle_pci.c delete mode 100644 hw/heathrow_pic.c delete mode 100644 hw/i8254.c delete mode 100644 hw/i8259.c delete mode 100644 hw/ide.c delete mode 100644 hw/integratorcp.c delete mode 100644 hw/iommu.c create mode 100644 hw/irq.c create mode 100644 hw/irq.h delete mode 100644 hw/lance.c delete mode 100644 hw/lsi53c895a.c delete mode 100644 hw/m48t59.c delete mode 100644 hw/m48t59.h delete mode 100644 hw/mc146818rtc.c delete mode 100644 hw/mips_r4k.c create mode 100644 hw/mmc.h delete mode 100644 hw/ne2000.c delete mode 100644 hw/openpic.c delete mode 100644 hw/parallel.c delete mode 100644 hw/pc.c delete mode 100644 hw/pckbd.c delete mode 100644 hw/pcnet.c delete mode 100644 hw/pcspk.c delete mode 100644 hw/pflash_cfi02.c delete mode 100644 hw/piix_pci.c delete mode 100644 hw/pl011.c delete mode 100644 hw/pl050.c delete mode 100644 hw/pl080.c delete mode 100644 hw/pl110.c delete mode 100644 hw/pl110_template.h delete mode 100644 hw/pl190.c create mode 100644 hw/power_supply.h delete mode 100644 hw/ppc.c delete mode 100644 hw/ppc_chrp.c delete mode 100644 hw/ppc_prep.c delete mode 100644 hw/prep_pci.c delete mode 100644 hw/ps2.c delete mode 100644 hw/rtl8139.c delete mode 100644 hw/sb16.c create mode 100644 hw/sd.h delete mode 100644 hw/serial.c delete mode 100644 hw/sh7750.c delete mode 100644 hw/sh7750_regnames.c delete mode 100644 hw/sh7750_regnames.h delete mode 100644 hw/sh7750_regs.h delete mode 100644 hw/shix.c delete mode 100644 hw/slavio_intctl.c delete mode 100644 hw/slavio_misc.c delete mode 100644 hw/slavio_serial.c delete mode 100644 hw/slavio_timer.c delete mode 100644 hw/sun4m.c delete mode 100644 hw/sun4u.c delete mode 100644 hw/tc58128.c delete mode 100644 hw/tcx.c delete mode 100644 hw/unin_pci.c delete mode 100644 hw/usb-uhci.c delete mode 100644 hw/versatile_pci.c delete mode 100644 hw/versatilepb.c delete mode 100644 hw/vga.c delete mode 100644 hw/vga_int.h delete mode 100644 hw/vga_template.h create mode 100644 images/android_icon.ico create mode 100644 images/android_icon.rc create mode 100644 images/android_icon_16.png create mode 100644 images/android_icon_256.png create mode 100644 images/android_icon_32.png delete mode 100644 linux-2.6.9-qemu-fast.patch delete mode 100644 linux-user/arm-semi.c delete mode 100644 linux-user/arm/syscall.h delete mode 100644 linux-user/arm/syscall_nr.h delete mode 100644 linux-user/arm/termbits.h delete mode 100644 linux-user/elfload.c delete mode 100644 linux-user/flat.h delete mode 100644 linux-user/flatload.c delete mode 100644 linux-user/i386/syscall.h delete mode 100644 linux-user/i386/syscall_nr.h delete mode 100644 linux-user/i386/termbits.h delete mode 100644 linux-user/ioctls.h delete mode 100644 linux-user/linuxload.c delete mode 100644 linux-user/main.c delete mode 100644 linux-user/mips/syscall.h delete mode 100644 linux-user/mips/syscall_nr.h delete mode 100644 linux-user/mips/termbits.h delete mode 100644 linux-user/mmap.c delete mode 100644 linux-user/path.c delete mode 100644 linux-user/ppc/syscall.h delete mode 100644 linux-user/ppc/syscall_nr.h delete mode 100644 linux-user/ppc/termbits.h delete mode 100644 linux-user/qemu.h delete mode 100644 linux-user/sh4/syscall.h delete mode 100644 linux-user/sh4/syscall_nr.h delete mode 100644 linux-user/sh4/termbits.h delete mode 100644 linux-user/signal.c delete mode 100644 linux-user/socket.h delete mode 100644 linux-user/sparc/syscall.h delete mode 100644 linux-user/sparc/syscall_nr.h delete mode 100644 linux-user/sparc/termbits.h delete mode 100644 linux-user/sparc64/syscall.h delete mode 100644 linux-user/sparc64/syscall_nr.h delete mode 100644 linux-user/sparc64/termbits.h delete mode 100644 linux-user/syscall.c delete mode 100644 linux-user/syscall_defs.h delete mode 100644 linux-user/syscall_types.h delete mode 100644 linux-user/vm86.c create mode 100644 linux_keycodes.h create mode 100644 loadpng.c delete mode 100644 m68k-dis.c delete mode 100644 mips-dis.c create mode 100755 offset_layout.py create mode 100644 proxy/proxy_common.c create mode 100644 proxy/proxy_common.h create mode 100644 proxy/proxy_http.c create mode 100644 proxy/proxy_http.h create mode 100644 proxy/proxy_int.h create mode 100644 qemu_file.h delete mode 100644 qemu_socket.h create mode 100644 qemu_timers.c create mode 100644 qemu_timers.h delete mode 100644 s390.ld delete mode 100644 sh4-dis.c create mode 100644 shaper.c create mode 100644 shaper.h create mode 100644 skins/skin_argb.h create mode 100644 skins/skin_composer.c create mode 100644 skins/skin_composer.h create mode 100644 skins/skin_default.h create mode 100644 skins/skin_file.c create mode 100644 skins/skin_file.h create mode 100644 skins/skin_image.c create mode 100644 skins/skin_image.h create mode 100644 skins/skin_keyboard.c create mode 100644 skins/skin_keyboard.h create mode 100644 skins/skin_keyset.c create mode 100644 skins/skin_keyset.h create mode 100644 skins/skin_rect.c create mode 100644 skins/skin_rect.h create mode 100644 skins/skin_region.c create mode 100644 skins/skin_region.h create mode 100644 skins/skin_scaler.c create mode 100644 skins/skin_scaler.h create mode 100644 skins/skin_surface.c create mode 100644 skins/skin_surface.h create mode 100644 skins/skin_trackball.c create mode 100644 skins/skin_trackball.h create mode 100644 skins/skin_window.c create mode 100644 skins/skin_window.h create mode 100644 sockets.c create mode 100644 sockets.h delete mode 100644 sparc-dis.c delete mode 100644 target-i386/cpu.h delete mode 100644 target-i386/exec.h delete mode 100644 target-i386/helper.c delete mode 100644 target-i386/helper2.c delete mode 100644 target-i386/op.c delete mode 100644 target-i386/opreg_template.h delete mode 100644 target-i386/ops_mem.h delete mode 100644 target-i386/ops_sse.h delete mode 100644 target-i386/ops_template.h delete mode 100644 target-i386/ops_template_mem.h delete mode 100644 target-i386/translate-copy.c delete mode 100644 target-i386/translate.c delete mode 100644 target-mips/cpu.h delete mode 100644 target-mips/exec.h delete mode 100644 target-mips/fop_template.c delete mode 100644 target-mips/helper.c delete mode 100644 target-mips/mips-defs.h delete mode 100644 target-mips/op.c delete mode 100644 target-mips/op_helper.c delete mode 100644 target-mips/op_helper_mem.c delete mode 100644 target-mips/op_mem.c delete mode 100644 target-mips/op_template.c delete mode 100644 target-mips/translate.c delete mode 100644 target-ppc/cpu.h delete mode 100644 target-ppc/exec.h delete mode 100644 target-ppc/helper.c delete mode 100644 target-ppc/op.c delete mode 100644 target-ppc/op_helper.c delete mode 100644 target-ppc/op_helper_mem.h delete mode 100644 target-ppc/op_mem.h delete mode 100644 target-ppc/op_template.h delete mode 100644 target-ppc/translate.c delete mode 100644 target-ppc/translate_init.c delete mode 100644 target-sh4/README.sh4 delete mode 100644 target-sh4/cpu.h delete mode 100644 target-sh4/exec.h delete mode 100644 target-sh4/helper.c delete mode 100644 target-sh4/op.c delete mode 100644 target-sh4/op_helper.c delete mode 100644 target-sh4/op_mem.c delete mode 100644 target-sh4/translate.c delete mode 100644 target-sparc/cpu.h delete mode 100644 target-sparc/exec.h delete mode 100644 target-sparc/fbranch_template.h delete mode 100644 target-sparc/fop_template.h delete mode 100644 target-sparc/helper.c delete mode 100644 target-sparc/op.c delete mode 100644 target-sparc/op_helper.c delete mode 100644 target-sparc/op_mem.h delete mode 100644 target-sparc/op_template.h delete mode 100644 target-sparc/translate.c create mode 100644 telephony/Jamfile create mode 100644 telephony/android_modem.c create mode 100644 telephony/android_modem.h create mode 100644 telephony/gsm.c create mode 100644 telephony/gsm.h create mode 100644 telephony/modem_driver.c create mode 100644 telephony/modem_driver.h create mode 100644 telephony/remote_call.c create mode 100644 telephony/remote_call.h create mode 100644 telephony/sim_card.c create mode 100644 telephony/sim_card.h create mode 100644 telephony/simulator.c create mode 100644 telephony/sms.c create mode 100644 telephony/sms.h create mode 100644 telephony/sysdeps.h create mode 100644 telephony/sysdeps_posix.c create mode 100644 telephony/sysdeps_qemu.c create mode 100644 telephony/test1.c create mode 100644 telephony/test2.c delete mode 100644 tests/.cvsignore create mode 100644 trace.c create mode 100644 trace.h create mode 100644 trace_common.h create mode 100644 translate.make create mode 100644 varint.c create mode 100644 varint.h diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index 7be41c4..0000000 --- a/.cvsignore +++ /dev/null @@ -1,42 +0,0 @@ -arm-user -arm-softmmu -armeb-user -config-host.* -dyngen -i386 -i386-softmmu -i386-user -ppc-softmmu -ppc64-softmmu -ppc-user -qemu-doc.html -qemu-tech.html -qemu-doc.info -qemu-tech.info -qemu.1 -qemu.pod -qemu-img.1 -qemu-img.pod -sparc-user -qemu-img -sparc-softmmu -x86_64-softmmu -sparc64-user -sparc64-softmmu -mips-softmmu -mipsel-softmmu -mips-user -mipsel-user -.gdbinit -sh4-user -sh4-softmmu -*.aux -*.cp -*.dvi -*.fn -*.ky -*.log -*.pg -*.toc -*.tp -*.vr diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..5cff342 --- /dev/null +++ b/Android.mk @@ -0,0 +1,10 @@ +# the following test is made to detect that we were called +# through the 'm' or 'mm' build commands. if not, we use the +# standard QEMU Makefile +# +ifeq ($(DEFAULT_TARGET),droid) + LOCAL_PATH:= $(call my-dir) + include $(LOCAL_PATH)/Makefile.android +else + include Makefile.qemu +endif diff --git a/CHANGES.TXT b/CHANGES.TXT new file mode 100644 index 0000000..b6ced26 --- /dev/null +++ b/CHANGES.TXT @@ -0,0 +1,533 @@ +Android Emulator changes: +========================= + +Versions: + + 1.0 => SDK M3 release + 1.1 => SDK M5 release + 1.2 => Internal release (build 72264) + 1.3 => Internal release (build 77780) + 1.4 => Internal release (build 84853) + 1.5 => SDK 0.9_r1 + 1.6 => SDK 1.0_r1 + 1.7 => SDK 1.0_r2 (planned, unreleased) + +============================================================================== +Changes between 1.6 and 1.7 + +IMPORTANT BUG FIXES: + +- Properly create ~/.android directory when needed. + +- Do not leave temporary files in Android app-specific directory on Win32 + +- Trackball mode toggle key (Ctrl-T by default) now works after rotating + your skin once. + +OTHER: + +- New option '-nand-limits ' allows you to send a signal to a remote + process when a read or write threshold on flash storage is reached. This is + only useful for hardcore Android system hackers. + +- Fix emulator build on recent Cygwin releases (the -mno-cygwin headers do not + tolerate the _GNU_SOURCE macro definition anymore) + +- Fix Win32 emulator to support SD Card images larger than 2 GiB + +============================================================================== +Changes between 1.5 and 1.6 + +IMPORTANT CHANGES: + +- Emulator now saves the user image in /SDK1.0/ + +OTHER: + +- Get rid of EsounD-related freezes on Linux (again) + +- Fix the documentation in -help-audio. '-audio list' doesn't work, one + needs to call -help-audio-out and -help-audio-in to get the list of valid + audio backends + +- Fix scrollwheel Dpad emulation in rotated mode. before that, using the + scroll-wheel would always generated Dpad Up/Down events, even when in + landscape mode. + +- Re-enable CPU fault emulation in case of unaligned data access. this was + previously disabled because it crashed the emulated kernel in previous + releases. + +- The emulator no longer prints an obscure warning when it doesn't find + the emulator.cfg configuration file in ~/.android. + + 'broken configuration file doesn't have a 'window' element' + +- Removed a bunch of obsolete options (e.g. -console, -adb-port, etc...) + +- Setting the network speed through the console or the -netspeed option will + properly modify the connectivity icon on the device. + +- Setting the GSM voice registration state to 'roaming' in the console will + properly modify the voice icon on the device + +============================================================================== +Changes between 1.4 and 1.5 + +IMPORTANT BUG FIXES: + +- fix spurious discards of SMS messages when using two emulators. + +============================================================================== +Changes between 1.3 and 1.4 + +IMPORTANT BUG FIXES: + +- fix for audio-related Linux startup freezes when using the 'esd' and 'alsa' + backends + +- the number of audio buffers in the Windows backend has been incremented. + this gets rid of audio chopiness issues on Vista (and sometimes on XP too) + +NEW FEATURES: + +NEW CONSOLE COMMANDS: + +- new 'geo fix []' command allows you to + send a simple GPS fix to the emulated system, without the headaches of + NMEA 1083 formatting. + +OTHER BUG FIXES: + +- fixed the -audio, -audio-in and -audio-out options (the values + were sometimes ignored) + +REGRESSIONS: + +OTHER: + +- the transitional '-qemud' option introduced in 1.3 is now gone. its + behaviour is now the default. + +- use the new '-old-system' option if you need to use a 1.4+ emulator binary + with older system images. if you don't use it, GSM and GPS emulation will + not work correctly (among other things). + +- the obsolete '-oldradio' option is now gone + +- on some Unix systems, SIGALRM is blocked by default, so unblock it when + creating the alarm timer + +- the 'esd' and 'alsa' libraries dump a lot of error messages to the console + by default on Linux. these are now disabled unless you use '-debug audio' + +- added the '-help-char-devices' help topic that describe the specification + of the parameter of options like -serial, -gps, -shell-serial, + etc... + +KNOWN ISSUES: + +- no support for video input +- no support for mutable SIM Card emulation yet +- no support for bluetooth +- no support for WiFi + +- on some Linux machines, the emulator might get stuck at startup. this + seems to be related to audio input support. try starting with + '-audio-in none' or even '-noaudio' to disable sound, or choose a + different audio backend by defining QEMU_AUDIO_DRV to an appropriate + value (read below). + + you can also select different audio backends for both output and input + by defining QEMU_AUDIO_OUT_DRV and QEMU_AUDIO_IN_DRV independently. + +- on Windows, the emulator takes about 10-15% of the CPU even when the + emulated system is idle. this is a known issue related to QEMU's internal + event loop and Winsock. this should be fixed in a future emulator release. + +- GPS emulation only if you use the '-qemud' option. this is an experimental + option that is soon going to be the default. without this option, the + emulated system will start but GPS emulation will not work. + + for the record, 'qemud' is a serial port multiplexer that is used to + multiplex several communication channels between the emulator and the + emulated system, though a single serial port. + +============================================================================== +Changes between 1.2 and 1.3 + +IMPORTANT BUG FIXES: + +NEW FEATURES: + +- '-audio-in ' allows you to select the audio input backend from the + command line. this is equivalent to defining QEMU_AUDIO_IN_DRV= + + '-audio-out ' works for the audio output, and '-audio ' + will select both input and output at the same time + +- '-debug ' has replaced the old '-verbose- -verbose- ...' + debugging option. is a comma-separated list of debug tags + (see -help-debug-tags for a complete list). you can also use the special + value 'all' to indicate all debug tags, or prefix a '-' before a tag + name to disable it. for example: + + -debug all,-audio + + enables all debugging except audio. '-debug-' still works though. + + note that while '-verbose-' is deprecated, '-verbose' is still supported + as an alias to '-debug-init' + +- '-keyset ' allows you to specific the keyset file to use. the default + is still ~/.android/default.keyset on Unix. for Windows, use -help-keyset + to get its default location (which differs between XP and Vista) + + +NEW CONSOLE COMMANDS: + +- the 'geo nmea ' can be used to send a NMEA 1083 sentence as if + it came from an emulated GPS unit. NOTE: this doesn't work unless you + also use the '-qemud' option (see KNOWN ISSUES below) + +OTHER BUG FIXES: + +- severe color artefact issues when scaling the emulator window < 1.0 were + fixed. + +- fix rare random emulator freezes on Linux by disabling the 'dynticks' timer. + +REGRESSIONS: + +OTHER: + +- the ambiguous '-console' option is now obsolete. use '-shell' instead + +- the new '-shell-serial ' allows you to specify a device to + connect a root shell session to the emulated system. + +- the '-debug-kernel' option is now known as '-show-kernel' (the -debug- + prefix is reserved for strict emulator debugging features) + +- '-adb-port' has been removed from the list of options. similarly + '-port ' will accept an odd port number, but will print a warning + that it is using -1 instead. + +- MMX is used on x86 to speed up window rescaling. + +- a new '-qemud' option is required to have GPS support work in this + SDK (either through '-gps ' or the 'geo nmea ' + console command) + + this option is purely experimental and will soon become the default. + +KNOWN ISSUES: + +- no support for video input +- no support for mutable SIM Card emulation yet +- no support for bluetooth +- no support for WiFi + +- on some Linux machines, the emulator might get stuck at startup. this + seems to be related to audio input support. try starting with + '-audio-in none' or even '-noaudio' to disable sound, or choose a + different audio backend by defining QEMU_AUDIO_DRV to an appropriate + value (read below). + + you can also select different audio backends for both output and input + by defining QEMU_AUDIO_OUT_DRV and QEMU_AUDIO_IN_DRV independently. + +- on Windows, the emulator takes about 10-15% of the CPU even when the + emulated system is idle. this is a known issue related to QEMU's internal + event loop and Winsock. this should be fixed in a future emulator release. + +- GPS emulation only if you use the '-qemud' option. this is an experimental + option that is soon going to be the default. without this option, the + emulated system will start but GPS emulation will not work. + + for the record, 'qemud' is a serial port multiplexer that is used to + multiplex several communication channels between the emulator and the + emulated system, though a single serial port. + +============================================================================== +Changes between 1.1 and 1.2 + + +IMPORTANT BUG FIXES: + +- fixed a typo that prevented the F9/F10 keyboard shortcuts from working + properly, making non-programatically tracing unusable. + +- halve the emulator's memory requirements, saving around 130 megabytes + of memory by changing the way flash images are accessed (we now use + temporary files instead) + +- this emulator binary should be 10% to 20% faster than previous ones on + the Windows and OS X platforms. for faster boots, you may also want to + use the -no-boot-anim option described below to speed up the initial + boot sequence as well on slow machines. + +- proper rotation support when using Keypad 7/9 to switch between layouts + in the default HVGA skin. no need to use Ctrl-PageDown anymore + +- the -http-proxy option didn't work correctly on Windows (unless + you were very lucky). + +- general socket handling code on Windows has been significantly improved. + + +NEW FEATURES: + +- the console port number of a given emulator instance is now displayed in + its window's title bar. + +- voice/sms are automatically forwarded to other emulator instances running + on the same machine, as long as you use their console port number as the + destination phone number. + + for example, if you have two emulator running, the first one will usually + use console port 5554, and the second one will use port 5556 + + then dialing 5556 on the 1st emulator will generate an incoming call on + the 2nd emulator. you can also hold/unhold calls as well. + + this also works when sending SMS messages from one emulator to the other + +- the help system has been totally revamped: + + * -help prints a summary of all options and help topics + * -help-