aboutsummaryrefslogtreecommitdiffstats
path: root/emulator
Commit message (Collapse)AuthorAgeFilesLines
* Skins can now provide their own hardware support (via AVDs)Xavier Ducrohet2009-06-295-0/+10
|
* Fix bad qemud crash on emulator startup.David 'Digit' Turner2009-05-261-5/+4
|
* This adds a new helper program (qemu-props) to support the emulated system.David 'Digit' Turner2009-05-263-2/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Its purpose is to contact the 'boot-properties' service during the boot process and to set the list of system properties read from the emulator program through it. It must be launched from /system/etc/init.goldfish.rc as root. It depends on the 'boot-properties' service being implemented by the emulator (in a later patch). If not available, it will simply timeout. This also fixes a potential crash in qemud which can happen in the following case: - client sends a command to a service - the service responds with one or more message - the service immediately closes the connection before the client can read the data what happened is that the FDHandler object was buffering out-going packets to the client, but the Multiplexer acted on the disconnection immediately. This resulted in: - client_free() being called - fdhandler_shutdown() being called - the FDHandler being placed on the 'closing' list to be able to send buffered packets later. And 'receiver_close' being called - client_fd_close() being called, which would call client_free() recursively - the second client_free() call would free the object - the first client_free() call would try to free the object again - ==> dlmalloc() detects a double-free and immediately aborts. the fixes simply avoids the calle to receiver_close() in fdhandler_shutdown() since this function is called from an explicit shutdown request from the multiplexer, it doesn't correspond to the case where the client has closed the connection itself.
* Sensors: Use a native_handle for the data channel instead of a single file ↵Mike Lockwood2009-05-221-4/+10
| | | | | | | | | descriptor. This eliminates the requirement that all sensors share a single file descriptor. This, along with concurrent changes in other projects, fixes bugs b/1614524 and b/1614481 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Add new trace tool for displaying all the memory regions in a process.Jack Veenstra2009-05-192-0/+67
|
* Add support for native (JNI) calls to the trace tools.Jack Veenstra2009-05-194-19/+67
| | | | | Also fix a bug in profile_pid.cpp and add better output to stack_dump.cpp.
* Handle munmap() and add support for tracing JNI (native) calls.Jack Veenstra2009-05-193-158/+330
| | | | | | | | | The munmap() kernel calls are traced but the tracing code wasn't doing anything with them. This caused the number of mapped regions in a process to grow large in some cases and also caused symbol lookup errors in some rare cases. This change also adds support for new trace record types for supporting JNI (native) calls from Java into native code. This helps with constructing a more accurate call stack.
* Add a new program for checking the correctness of the computed stack from a ↵Jack Veenstra2009-05-112-0/+258
| | | | | | | | | | trace. The check_stack program checks that the generated stack that includes both native functions and Java methods (generated from the emulator instruction trace plus the method trace) is consistent with the stack of Java methods that is computed from the method trace alone. (The method trace is generated by the Dalvik interpreter).
* Better output for viewing the method trace.Jack Veenstra2009-05-112-1/+89
| | | | | | This now keeps track of the names of the methods on the stack instead of just the addresses. This makes it easier to debug when something goes wrong.
* Fix the tracing code that keeps track of the Java method stack.Jack Veenstra2009-05-111-22/+41
| | | | | | | This fixes a bug that was causing a "stack overflow" because it sometimes wasn't popping off a Java method when it should have. I also changed the showStack() method so that instead of always printing to stderr, you can pass in a FILE* object to print to.
* Add a "-d time" option to stack_dump to dump the stack at the given time.Jack Veenstra2009-05-091-5/+34
|
* Fix compiler warnings by changing "char*" to "const char*".Jack Veenstra2009-05-092-21/+21
|
* Fix a memory deallocation error that was crashing q2dm.Jack Veenstra2009-04-289-36/+36
| | | | Also fix a bunch of compile warnings by changing "char *" to "const char *".
* AI 146315: am: CL 146314 modify GSM emulation to accomodate 1.0 and 1.1 ↵David Turner2009-04-151-3/+17
| | | | | | | | | | | system images. without this, networking doesn't work well when using the 1.1 add-on with the cupcake sdk Original author: digit Merged from: //branches/cupcake/... Automated import of CL 146315
* AI 145778: Manual merge changes 145382-145384 from cupcake.Andy Stadler2009-04-101-7/+6
| | | | Automated import of CL 145778
* AI 144596: am: CL 144595 Fix the AVD configuration code to support ↵David Turner2009-04-051-13/+13
| | | | | | | | | | | | | | "sdcard.path" in config.ini to indicate an explicit SD Card image file (instead of using the one in the content directory) Note that this also fix a bug where the SD Card image was not properly locked in the previous implementation. Allow the http-proxy support code to actually manage to receive chunked encoding data, instead of complaining needlessly. Introduce a new CharBuffer object that is used indirectly by "-radio <hostdevice>" and "-gps <hostdevice>" options Add new documentation for QEMUD and CharDriverState objects Update the Audio documentation with ASCII graphics (because I'm an artist too) Original author: digit Merged from: //branches/cupcake/... Automated import of CL 144596
* AI 143204: am: CL 142988 Remove emulator support from user builds.Mike Lockwood2009-03-272-0/+2
| | | | | | | | | Saves us 52K in /system partition. BUG=1739507 Original author: lockwood Merged from: //branches/cupcake/... Automated import of CL 143204
* auto import from //branches/cupcake_rel/...@140373The Android Open Source Project2009-03-183-499/+1483
|
* auto import from //branches/cupcake/...@137873The Android Open Source Project2009-03-112-0/+12
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-03138-0/+13073
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-03138-13073/+0
|
* auto import from //branches/cupcake/...@126645The Android Open Source Project2009-01-151-1/+1
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-091-0/+1
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-17/+24
|
* Initial ContributionThe Android Open Source Project2008-10-21138-0/+13065