aboutsummaryrefslogtreecommitdiffstats
path: root/android/main-ui.c
Commit message (Collapse)AuthorAgeFilesLines
* Move framebuffer.h to android/David 'Digit' Turner2011-02-021-1/+1
| | | | | | | The QFrameBuffer is no used by QEMU-specific code anymore so it's more logical to move it here. Change-Id: Id49ff53dd49648000e7543652d66f7c03881a8cb
* Move core-connection.c from to android/protocol/David 'Digit' Turner2011-02-021-1/+1
| | | | Change-Id: I1f04ed1f00fccdea043f4a4fbf5ba745b36bbcc7
* Separate init_skinned_ui() into two functions.David 'Digit' Turner2011-02-021-54/+48
| | | | | | | | | | | | | | | This removes init_skinned_ui() and adds parse_skin_files() and init_sdl_ui(). The first function only parses skin files and options, and doesn't do anything related to the UI. The second function does setup the SDL UI after all options/skin processing has been performed. We also modify main.c and main-ui.c to move the call to init_sdl_ui() as far as possible after the options parsing. + Move core attachment code to the end of qemu_main() in main-ui.c Change-Id: I2bf5f0a096d827ae1fee070a8fa45cbd4629d54f
* Move common main routines from into android-common.[hc]David 'Digit' Turner2011-02-021-462/+3
| | | | | | This is a first step towards cleaning-up our initialization/startup code. Change-Id: I2d4fbc5c2cd0181fb39a1a97a15650945038c3b9
* Generate temporary hardware.ini from configuration settings.David 'Digit' Turner2011-02-011-0/+26
| | | | | | | | | This patch generates a temporary hardware.ini from the hardware configuration. The idea is to move as much hw config info as possible to a single file that the core can read. Other patches will change how various config info is passed to the core, from command-line options to the generated hardware.ini.
* Refactor attach-UI serviceVladimir Chtchetkine2011-01-311-58/+26
| | | | Change-Id: Ia68ceb57ee5b5a66fa76b837fe3b990eb12e7188
* Refactor the framebuffer serviceVladimir Chtchetkine2011-01-311-7/+3
| | | | Change-Id: I8ac4580af65b8d58976c97b77b309dd202e75003
* Refactored user-events protocolVladimir Chtchetkine2011-01-281-4/+2
| | | | Change-Id: I08afb96ef17a52c3795f5029acfc244a93ab57c7
* Refactored ui-core-control and core-ui-control protocolsVladimir Chtchetkine2011-01-281-4/+8
| | | | | | | Also cleaned the code up from obsolete ui-core-protocol.* and core-ui-protocol.* Change-Id: I194bec669d25b68a10c32b2be50bc9da50c52ebb
* Remove spaces in the console service namesVladimir Chtchetkine2011-01-261-4/+4
| | | | Change-Id: I339449214ab951aba40abfe2a5b3e3ebfb222311
* Implement UI control service and clientVladimir Chtchetkine2011-01-251-0/+11
| | | | Change-Id: Iecc1b5bb9ddcdaf9f22c500a5195718db3f25354
* Remove unnecessary calls in UI <-> Core protocols.Vladimir Chtchetkine2011-01-201-0/+7
| | | | | | | Core port related calls are no longer needed, since UI is aware of core's base port on attachment to the core Change-Id: Ic211fc9b02cb652009360f80917e90c44d941878
* Implement user event transmission between the UI and the coreVladimir Chtchetkine2011-01-191-0/+7
| | | | Change-Id: I503aa691cada5250b76167a923d4a226d20ee41d
* Compute default memory size from screen size.David 'Digit' Turner2011-01-191-1/+29
| | | | | | | | This change is used when using a magic skin (e.g. -skin 800x600) or when using the full Android build system, in order to determine a good default for the RAM size. Change-Id: I900e28146592cdd3f0df9b3f1828b119309eea85
* Print concatenated QEMU options with -verbose.David 'Digit' Turner2011-01-191-1/+8
| | | | | | | This makes it easier to launch the core (qemu-android) with the same set of options than the stand-alone emulator. Change-Id: I55d0007f83280ffc5b9a26adc1300472013ff93d
* Add support for 32-bit framebuffers.David 'Digit' Turner2011-01-181-2/+7
| | | | | | | | | | | | | | | This modifies the emulator so support 32-bit framebuffers. You can create such a frame-buffer using one of these methods: - Add a "bpp 32" line to the "display" element of your skin - Use the new 'magic' skin option format: e.g. -skin 320x480x32 Note that the result will be hideous since the kernel driver still thinks the hardware is only 16-bits. This will be addressed in a later patch to hw/goldfish_fb.c and to the kernel driver ($KERNEL/drivers/video/goldfishfb.c) Change-Id: I0fc700c4a4cb8521076605324e15ed34e5d01136
* Refining main-ui.c to better separate UI and core related initializationVladimir Chtchetkine2011-01-131-21/+19
| | | | | | | | | | | The main reason for this is to clarify initialization for UI that starts core, and UI that attaches to an existing core. In this CL I did: - Removed -initdata option that seems obsolete (doesn't affect anything in the code) - Passed through -timezone option that doesn't affect anything in the UI, and is needed only in the core. - Removed dependency on AVD info from the core (core needed only virtual device name) Change-Id: Ie631249848a1b5b8d837c0c7b201a40ee7e4a367
* Hook up framebuffer changes with UI windowVladimir Chtchetkine2011-01-131-9/+13
| | | | Change-Id: Ib2dff72c808614cd6ded096d62717afc1c41e667
* Remove obsolete -audio-in and -audio-out options.David 'Digit' Turner2011-01-021-9/+0
| | | | | | Use -audio <backend> to select the audio driver. Change-Id: I71c837e4c78241711be5f38ef9b03294a69145bd
* Resubmit framebuffer service implementationVladimir Chtchetkine2010-12-201-2/+12
| | | | Change-Id: I184e27a1e8d88835bc9f0502eccfa3f64a7aaf9e
* Send unsolicited time response to first signal strength query after loadvmTim Baverstock2010-12-141-1/+1
| | | | Change-Id: I9c6260493d42564ee3aa34799313368bb2de7d4d
* Submit mergedVladimir Chtchetkine2010-12-061-5/+119
| | | | | | | | | | | | | | Squashed commit of the following: commit aeefab810c6331e2f96e81f20e4408b39dd3a2ca Author: Vladimir Chtchetkine <vchtchetkine@google.com> Date: Thu Dec 2 07:40:34 2010 -0800 Implement -attach-core UI option Change-Id: I4168e2d707cab1b4873ee16d86d5126c1a316abf Change-Id: I2da1ef5d53641f3c60d83d8d5ddf3aff34b0c6c7
* Add -no-snapshot-load option to permit reboot.Tim Baverstock2010-12-021-2/+6
| | | | | | | | | This is a workaround for the emulator not being able to detect the guest's power-down situation, and simply lingering like a zombie: on exit it's saved as a zombie, and is restored as a zombie which isn't useful. Denying autoload forces a reboot. Change-Id: I48f32600f5ce18cd5c71aa01d1b71b382102f227
* Augment the auto-loadvm behaviour with corresponding auto-savevm-on-exit ↵Tim Baverstock2010-12-011-5/+6
| | | | | | | | | | | | behaviour. Autosave fires when loadvm would have been tried - whether it succeeded or not - in order to bootstrap from an empty snapshot file. - New autosave behaviour inhibited with -no_snapshot_save flag. - Underlying behaviour implemented with a new qemu option -savevm_on_exit Change-Id: If64d89f004565ecbb431bc7e96ecc37e27876d67
* Separate main.c used to build the emulator from main-ui.c used to build the UIVladimir Chtchetkine2010-11-241-0/+1808
Change-Id: I1c7baeaa8447fe1df895869bfb6b74631b765845