aboutsummaryrefslogtreecommitdiffstats
path: root/android/android-device.c
Commit message (Collapse)AuthorAgeFilesLines
* Use new SdkController communication protocol for emulation portsVladimir Chtchetkine2012-04-301-1526/+0
| | | | | | | | | | | | | | android/sdk-control-socket.* has replaced android/android-device.* as the back-bone of communicating with SDK controller on the device. The major differences are: - New communication protocol uses just one (async) socket connection to communicate with the device (the old one used two sockets: one sync, and another - async). - New communication protocol connects to one TCP port (1970 in this CL) for all emulation ports. Channel multiplexing is done by using port names, and assigning a separate socket for communication inside each separate port. The old protocol had separate TCP ports for each emulation ports (1968 for sensors, and 1969 for multi-touch) Change-Id: I779fcbdfba2f9b4c433a9d76a567975708b00469
* Fixes a hack that initialized event socket for async I/OVladimir Chtchetkine2012-03-191-28/+35
| | | | | | This CL provides proper handling for event socket async I/O initialization. Change-Id: If02894a63e943c7f3db8efbab0713ed2861ecb38
* Fixes a hack that was enabling multi-touch emulation on Mac.Vladimir Chtchetkine2012-03-161-48/+23
| | | | | | | | The issue was that on Mac there is a bug in select() implementation, that caused select() to fail with EINVAL on condition that timeout exceeds 100000000 secods. So the real fix was to clamp timout value to that limit when select() is called on Mac. Change-Id: Icb9ead00a0060028957af1e6e22911d5e8e231c6
* Fix emulator crash on sensor emulation.Vladimir Chtchetkine2012-03-151-0/+20
| | | | | | | The reason for crash is that event socket's I/O looper has been used without being properly initialized. Change-Id: I4f6372a4c2e54d5ea80313eda5208da17fc84d1d
* Multi-touch emulation supportVladimir Chtchetkine2012-03-051-23/+51
| | | | Change-Id: I311dc55fe10f41637775baa330a7c732ff317f51
* Implement asynchronous data send over 'event' socket.Vladimir Chtchetkine2012-01-301-2/+188
| | | | Change-Id: Ifce399aec98540fca4e1cca8c3599142d9ff6887
* Expand the ways how a query can be sent to Android device.Vladimir Chtchetkine2012-01-251-0/+29
| | | | | | | | 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
* Fixes windows buildVladimir Chtchetkine2011-11-101-2/+2
| | | | Change-Id: Ia2c29d890695186b04dd5d306c88aadfe084318f
* Implements sensors emulation using a connected Android deviceVladimir Chtchetkine2011-11-091-0/+1281
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