diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2012-04-10 13:39:24 -0700 |
---|---|---|
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | 2012-04-30 07:14:35 -0700 |
commit | 7136b053b7fc7840ec64e01d1d19ab822e1f949a (patch) | |
tree | 549e5a10878ab27ab9169f83863460b71878c34c /android/sensors-port.h | |
parent | 6f50aa39e741a1d1f3081665d0b7f8d56b7b793c (diff) | |
download | external_qemu-7136b053b7fc7840ec64e01d1d19ab822e1f949a.zip external_qemu-7136b053b7fc7840ec64e01d1d19ab822e1f949a.tar.gz external_qemu-7136b053b7fc7840ec64e01d1d19ab822e1f949a.tar.bz2 |
Use new SdkController communication protocol for emulation ports
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
Diffstat (limited to 'android/sensors-port.h')
-rw-r--r-- | android/sensors-port.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/android/sensors-port.h b/android/sensors-port.h index dc5c966..a35d700 100644 --- a/android/sensors-port.h +++ b/android/sensors-port.h @@ -23,8 +23,6 @@ * the host via USB. */ -#include "android/android-device.h" - /* Declares sensors port descriptor. */ typedef struct AndroidSensorsPort AndroidSensorsPort; @@ -42,15 +40,6 @@ extern AndroidSensorsPort* sensors_port_create(void* opaque); /* Disconnects from the sensors port, and destroys the descriptor. */ extern void sensors_port_destroy(AndroidSensorsPort* asp); -/* Initializes sensors on the connected device. */ -extern int sensors_port_init_sensors(AndroidSensorsPort* asp); - -/* Checks if port is connected to a sensor reading application on the device. - * Note that connection can go out and then be restored at any time after - * sensors_port_create API succeeded. - */ -extern int sensors_port_is_connected(AndroidSensorsPort* asp); - /* Enables events from a particular sensor. * Param: * asp - Android sensors port instance returned from sensors_port_create. @@ -72,20 +61,4 @@ extern int sensors_port_enable_sensor(AndroidSensorsPort* asp, const char* name) */ extern int sensors_port_disable_sensor(AndroidSensorsPort* asp, const char* name); -/* Queries the connected application to start delivering sensor events. - * Param: - * asp - Android sensors port instance returned from sensors_port_create. - * Return: - * Zero on success, failure otherwise. - */ -extern int sensors_port_start(AndroidSensorsPort* asp); - -/* Queries the connected application to stop delivering sensor events. - * Param: - * asp - Android sensors port instance returned from sensors_port_create. - * Return: - * Zero on success, failure otherwise. - */ -extern int sensors_port_stop(AndroidSensorsPort* asp); - #endif /* ANDROID_SENSORS_PORT_H_ */ |