aboutsummaryrefslogtreecommitdiffstats
path: root/android
Commit message (Collapse)AuthorAgeFilesLines
* 64-bit emulatorAndrew Hsieh2012-03-1313-29/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch to allow emulator searches for emulator64-${ARCH} first on 64-bit OS. If none is found, the original behavior which searchs for 32-bit emulator-${ARCH} is performed as usual. 64-bit emulator (which still emulates Android built in 32-bit) offers up to 20% speedup compared to its 32-bit counterpart. Details: android/main-emulator.c 1) search emulator64 based on the OS 2) dlopen lib64OpenglRender in 64-bit Makefile.* 1) Rules to build 64-bit executable emulator64-{x86,arm} and libraries emulator64-{libui,libqemu,target-i386,target-arm,libelff,common} 2) remove -Wa,-32 3) Changes prebuit toolchain path android-configure.h android/build/common.h 1) no longer force 32-bit build (because now prebuilts/tools/gcc-sdk/gcc can now handle 64-bit 2) set ANDROID_PREBUILTS to correctly locate ccache android/config/*/config-host.h 1) Detect HOST_X86_64 and HOST_X86_64/HOST_I386 Misc 64-bit porting clean-up 1) use %zx to print variable of type size_t in hex 2) use %zu to print variable of type size_t in dec 3) Initialize query_parm to NULL 4) use PRIu64 to replace PDUd64 5) use PRId64/PRIu64/PRIX64 to print 64-bit 6) drop PRUx64 because PRIx64 does the same 7) cast pointer arith to intptr_t before casting to int 8) fixed 1ULL<<63 Change-Id: Ife62a20063a6ec38d4a9b23977e840af1fce149a
* Increase default partition size, and fix data partition size calculation.Vladimir Chtchetkine2012-03-081-2/+2
| | | | | | | | | | | There is a (reasonable) demand from android development comunity to increase default data partition size. It seems that 66MB doesn't match anymore user needs. So, with this CL default data partition size will be increased to 12MB. This CL also fixes a bug where data partition size set by the AVD manager has been wrongly treated as an MB value, while it was a byte value. Change-Id: I27c456a71299aff42bd4ca573d3660292a7d1d44
* Merge "Multi-touch emulation support"Vladimir Chtchetkine2012-03-0513-24/+1479
|\
| * Multi-touch emulation supportVladimir Chtchetkine2012-03-0513-24/+1479
| | | | | | | | Change-Id: I311dc55fe10f41637775baa330a7c732ff317f51
* | Set value of hw.keyboard "no".SeongJae Park2012-03-021-1/+1
|/ | | | | | | | | | | | | | | | | | Commit for discuss at https://groups.google.com/forum/?fromgroups#!topic/android-contrib/H_oodJPngHo Because default value of hw.keyboard is "yes", emulator doesn't display soft keyboard although text input widget has focus. Developers can change value easily; But users who doesn't know about property setting such as non-developer can be confused a lot. And, most devices has no H/W keyboard(Galaxy Nexus too). So, set default value of hw.keyboard to "no". Change-Id: Id3a6af23fe0525e4b8f6ccd8bbde2d6dd26e5d7d Signed-off-by: SeongJae Park <sj38.park@gmail.com>
* Enables ADBD tracing in emulator.Vladimir Chtchetkine2012-02-272-1/+99
| | | | | | | | | | When running inside the emulator, guest's adbd can connect to 'adb-debug' qemud service that can display adb trace messages on condition that emulator has been started with '-debug adb' option. This CL contains emulator code that enables that. Change-Id: I6720deef0833fd02e2fe80deeaafbcf517de0c33
* Fixes camera RTE on WindowsVladimir Chtchetkine2012-02-221-1/+15
| | | | | | | | | The root of the issue was that some cameras / camera drivers don't set compression type in the bitmap header explicitly to a V4L2_XXX, but set it to BI_RGB, which is unknown value for frame converters. To fix this, this CL converts BI_RGB to an appropriate V4L2_XXX value. Change-Id: Ifd70aa44138ab38fe66e8c80806a7dbb91725cf2
* Stop emulator when both, gpu and snapshots are on.Vladimir Chtchetkine2012-02-101-0/+9
| | | | | | | This is a temporary solution fixing emulator crash due to the difficulties in implementing GPU state save to and reload from snapshot. Change-Id: Id62830d3447538472d3c7a83ade97f4f09dfaa06
* Fix problem with using clipboard in Windows camera emulationVladimir Chtchetkine2012-02-021-20/+140
| | | | | | | | | | | | | | | This is a fix for a user reported issue #24794. In the nutshell, when emulator grabs a frame from webcam it leaves its bitmap in the clipboard (which is global). So, when user does a 'paste' somewhere else, that bitmap will be pasted there. Being bad by itself, it gets worst, because 'copy / paste' will be globally broken while camera application is running in the emulator. I.e, if you have camera app running in the emulator, and at the same time you're editing a Word file (for example), copy / paste will not work in Word. This CL contains a fix such as when possible, camera emulator on windows will not use clipboard to grab video frames, but will grab video frames using frame callback. Change-Id: I115a9c653b252620cf5407173c1e1eec69b4a2ee
* Implement asynchronous data send over 'event' socket.Vladimir Chtchetkine2012-01-302-2/+229
| | | | Change-Id: Ifce399aec98540fca4e1cca8c3599142d9ff6887
* Merge "Expand the ways how a query can be sent to Android device."Vladimir Chtchetkine2012-01-262-0/+70
|\
| * Expand the ways how a query can be sent to Android device.Vladimir Chtchetkine2012-01-252-0/+70
| | | | | | | | | | | | | | | | Contains new routines that allow sending multiple blocks of data within a single query. Also, these routines allow to avoid restriction on queries as zero-terminated strings. Change-Id: Ia5789a01a7eadbae5b1f5014a67864eea463af43
* | Merge "New files to add HAX support"Jean-Baptiste Queru2012-01-241-0/+11
|\ \ | |/ |/|
| * New files to add HAX supportJun Nakajima2012-01-171-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QEMU emulator interacts with the HAX kernel module. A HAX (Hardware-based Accelerated eXecution) kernel module is required to use HAX support. Most guest instructions run in VMX non-root (i.e. in hardware) mode and achieve near-native (relative to the host) performance. QEMU still emulates PIO/MMIO instructions and non-PG (paging) mode operations. HAX is supported only on Mac OS X and Windows hosts when Intel VT is present. Change-Id: I8dd52a35e315437dc568f555742bb8ab7e9d8ab2 Signed-off-by: Zhang, Xiantao <xiantao.zhang@intel.com> Signed-off-by: Xin, Xiaohui <xiaohui.xin@intel.com> Signed-off-by: Jiang Yunhong <yunhong.jiang@intel.com> Signed-off-by: Nakajima, Jun <jun.nakajima@intel.com>
* | Refactor camera parameters parsing routinesVladimir Chtchetkine2012-01-233-170/+187
| | | | | | | | | | | | | | | | | | | | Move routines that pulls values out of the parameter string from camera-service.c to misc.c Those are general purpose routines that are also used in multitouch emulation, so it's better to keep it an an general utility file. Change-Id: I02978075b64b42ff07f5042cda770bbef8939e24
* | Merge "Check for data partition init path on snapshot load."Vladimir Chtchetkine2012-01-191-0/+8
|\ \
| * | Check for data partition init path on snapshot load.Vladimir Chtchetkine2012-01-191-0/+8
| |/ | | | | | | | | | | | | | | Makes sure that snapshots are not loaded if data partition for which the snapshot has been saved is overwritten (with -wipe-data option for example). We want the loaded snapshot to be consistent with the data underneath it. Change-Id: I605c9b5a66870aad76ffd97d641a08c75730de7f
* | Fixed typo in emulator -help-build-imagesAndrew Hsieh2012-01-181-2/+2
|/ | | | | | | 1. "<build-root>/prebuilt/android-arm/kernel/" -> "<build-root>/prebuilts/qemu-kernel/" 2. "<build-root>/sdk/emulator/skins/" -> "<build-root>/development/tools/emulator/skins/" Change-Id: I46cf9f805506753271bf4b88cebd47faa3775f45
* Respect HW configs when loading VM from snapshots.Vladimir Chtchetkine2012-01-135-8/+280
| | | | | | | | | | | | | | Changing HW configuration properties may cause emulator / guest system crash on condition that VM has been loaded from a snapshot. This CL addresses this issue in the following way: 1. Each time a snapshot is saved, a backup copy of HW config is saved with it. 2. Each time a snapshot is loaded, emulator finds an appropriate HW config backup, and compares current HW config with the one that was saved in the backup, and if configs are different, emulator exits with an appropriate error. Change-Id: I730bec0afbe166e88189fdcc4804b76e109e4422
* Don't display warning when emulator is unable to connect to device.Vladimir Chtchetkine2012-01-101-1/+3
| | | | | | | | | | Warning that is displayed when "realisting sensors emulation" component in emulator is not able to connect to an application streaming sensor changes from an actual device, that warning confuses users, making them think that emulator didn't initialize properly. To avoid that confusion, hide that warning under -verbose, displaying it only if -verbose option has been specified on emulator start. Change-Id: If40cc726db9bec4ab631dcbdcd02fb98cc30d93a
* am d3ed299f: am 8edd3e9e: am 18006f77: Reference kernels from their new locationJean-Baptiste Queru2012-01-061-1/+1
|\ | | | | | | | | * commit 'd3ed299f15c993bda873cbd56648eedabc7f45c9': Reference kernels from their new location
| * am 8edd3e9e: am 18006f77: Reference kernels from their new locationJean-Baptiste Queru2012-01-061-1/+1
| |\ | | | | | | | | | | | | * commit '8edd3e9e2959868ec221a1f3c1d4f9f16eb91177': Reference kernels from their new location
| | * Reference kernels from their new locationJean-Baptiste Queru2012-01-051-1/+1
| | |
* | | Merge "Respect 'camera' flag in AVD"Vladimir Chtchetkine2012-01-063-2/+20
|\ \ \ | |/ / |/| |
| * | Respect 'camera' flag in AVDVladimir Chtchetkine2012-01-063-2/+20
| |/ | | | | | | | | | | | | | | Turns of webcam emulation on condition that 'camera' AVD property is set to 'false'. Note that command line options (-webcam) will enable webcam emulation even if 'camera' AVD property is set to 'false' Change-Id: I493446f1d12b732ed49f9a5a9967b87b31b180f6
* | Merge "EmuGL: disable debug spam"Jesse Hall2012-01-061-1/+1
|\ \ | |/ |/|
| * EmuGL: disable debug spamJesse Hall2012-01-051-1/+1
| | | | | | | | Change-Id: Idb86b2e8bbb396ee1bca606a32569b9b6b46dcb8
* | Explicitly use the top of the source tree to find the kernel.Jean-Baptiste Queru2012-01-051-6/+9
|/ | | | | | | | This way, we don't rely on the relative position of the source directory and the out directory, and the emulator works when using OUT_DIR_COMMON_BASE Change-Id: I319f4fffc9ffee676d8040ebbb017831db08f6b6
* Fix filename typo.Koan-Sin Tan2012-01-041-1/+1
| | | | | This goes invisible on case-insensitive filesystems, but fails when XCode is installed on a case-sensitive filesystem.
* Implement ADB communication over QEMU pipeVladimir Chtchetkine2011-12-1310-5/+1080
| | | | Change-Id: I62ff5898c7a955aaaa8af8f7ee7ed018af860f80
* Merge "Implements white balance and exposure compensation for emulated webcam"Vladimir Chtchetkine2011-12-137-80/+274
|\
| * Implements white balance and exposure compensation for emulated webcamVladimir Chtchetkine2011-12-057-80/+274
| | | | | | | | Change-Id: Id2dbb227280f0c0e1b5708ef78b9f19b087f92d5
* | Implements double-linked circular list.Vladimir Chtchetkine2011-12-081-0/+112
| | | | | | | | | | | | | | This is part of a bigger CL (coming later this week) that uses qemu pipes to hook up host ADB with ADBD daemon running on the guest system. Change-Id: I625b020531af636b9b9fa4e4aa52b7586749c693
* | Fixes emulator crash due to premature pipe client destruction.Vladimir Chtchetkine2011-12-071-9/+26
|/ | | | | | | | | The pipe client should really be closed (and destructed) only when the guest closes its handle to the pipe. When pipe client is closed from within the emulator, it should only notify the guest about disconnection, and wait for the guest to explicitly close the pipe handle. Change-Id: I6bde3ae1e05ff5dc40e9903282c3fc46df0b9b57
* Fix 64-bit build.David 'Digit' Turner2011-11-231-5/+7
| | | | | | | | | | This fixes the 64-bit Linux build (i.e. ./android-rebuild.sh --try-64). You can't really call _mm_empty() when your target CPU doesn't support MMX. We should probably try to use XMM registers instead of MMX for this in the future, but this should be good enough for now. Change-Id: If5abf747939022ef47daf7eb4badf1798e22bf95
* Add 320x240 frame support for Windows and Mac camera emulationVladimir Chtchetkine2011-11-152-0/+4
| | | | Change-Id: I54897ca86b372d98c7a30a47ecf88a4df8ee0fe9
* Add required frame dimensions for Win and Mac.Vladimir Chtchetkine2011-11-152-12/+22
| | | | | | | | | | Camera framework requires that certain frame dimensions must be supported by the camera devices. Since on Windows and Mac we have no way of knowing the real webcam capabilities, but camera API there pretty much allows us to choose any frame dimensions that we want, we will hard-code those that are required by the camera framework. Change-Id: I625381776f374103d2ac1c62fabae23b1c5afa88
* Minor fix for debug outputVladimir Chtchetkine2011-11-151-1/+1
| | | | Change-Id: I554de3610bbd28cc299fecae4bf0199f044edb5a
* Fixes windows buildVladimir Chtchetkine2011-11-101-2/+2
| | | | Change-Id: Ia2c29d890695186b04dd5d306c88aadfe084318f
* Implements sensors emulation using a connected Android deviceVladimir Chtchetkine2011-11-099-13/+2046
| | | | | | | | | | | | | | There are three major things in this CL: 1. Abstract a connection with an Android device that is connected to the host via USB, and there is a TCP port forwarding to this device via 'adb forward' command. This abstraction is implemented in android/android-device.* 2. A client for android device API that talks to an app on the connected device that provides values for sensors available on the device. This is implemented in android/sensors-port.* 3. Changes to the sensor emulation code in android/hw-sensors.c to use sensors port (when available) for sensors emulation. Change-Id: I12901e8db6b6a6262fc1703ed96a9f714335d666
* Fix snapshot crashDavid 'Digit' Turner2011-11-082-26/+183
| | | | | | | | | | | | | | | - Add snapshot load/save support to QEMU Pipes This adds the ability to save and load QEMU Pipe connections with snapshots. Note that by default, all loaded pipe client connections are force-fully closed on load. We don't have a good way to save the state of network connections to persistent storage. Properly implements snapshot save / load for qemu pipe clients. Change-Id: Ie5767f8ce40c8341b958cc5844e724dd4fc1ed2b
* Fix emulator crash.Vladimir Chtchetkine2011-10-211-5/+7
| | | | Change-Id: I4f238bbd0175036b6003ebdf266de608d6acc6e7
* Bound loop indexVladimir Chtchetkine2011-10-211-1/+1
| | | | | | | In some cases (when frame sizes for pixel formats are not available) the loop will be not properly bounded, and may cause a crash. Change-Id: I2f2380ab4e2f7454bff8eeabcaff4e3f238fe71e
* Fix emulator crash caused by bad 'printf'Vladimir Chtchetkine2011-10-202-3/+3
| | | | Change-Id: I7c4830ba7606bedcf462e967adad3358723c44ba
* Implemented Mac camera emulationVladimir Chtchetkine2011-10-122-86/+549
| | | | Change-Id: I01609e8bfcdd8ee5ef876344d0a334ecd69a2b7a
* Fix snapshotsVladimir Chtchetkine2011-10-051-13/+17
| | | | Change-Id: Ib3891704ece2cea0c5a80b468b2514e6c4d13216
* New AVD property to control presence of hw main keys.Xavier Ducrohet2011-10-041-4/+9
| | | | | | | | This allows injecting a new runtime property into the system running on the emulator to control whether to display the new software back/home keys. Change-Id: I2bf7cc5c291752090187463332219638e883d052
* Fix CPU architecture reported in HW configVladimir Chtchetkine2011-09-281-0/+11
| | | | Change-Id: I9221916514a39435d2710fa9dada92a87bdc4dab
* Fix windows buildVladimir Chtchetkine2011-09-232-2/+2
| | | | Change-Id: I7387eea3639d63b278b702100ee2d4584f87f4e2
* Check that first two cameras are facing in opposite direction.Vladimir Chtchetkine2011-09-232-13/+32
| | | | | | | Currently camera app will crash on an attempt to switch cameras if camera 0 and 1 are facing in the same direction. So, user should be warned about that on emulator start. Change-Id: Ic85da614d30295b04d2a318fb1c2015cc52f1140