OSDN Git Service

android/hid: Add handling of HAL_EV_HID_CONN_STATE
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 31 Oct 2013 12:19:48 +0000 (14:19 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 31 Oct 2013 13:00:14 +0000 (15:00 +0200)
commit26ba19064dd40adb4359587cd3cff2479883ad48
tree585068f621d3cda728dc534b852fa67c33f924cb
parent6a92a05be30733fe28af80e578dad187d4b12c45
android/hid: Add handling of HAL_EV_HID_CONN_STATE

This patches generate proper events when the connection state changes:

>hidhost connect
BlueZ D: android/hal-hidhost.c:hh_connect()
connection_state_cb: bd_addr= connection_state=BTHH_CONN_STATE_CONNECTING
if_hh->connect: BT_STATUS_SUCCESS
connection_state_cb: bd_addr= connection_state=BTHH_CONN_STATE_CONNECTED
>hidhost disconnect
BlueZ D: android/hal-hidhost.c:hh_disconnect()
connection_state_cb: bd_addr= connection_state=BTHH_CONN_STATE_DISCONNECTING
if_hh->disconnect: BT_STATUS_SUCCESS
connection_state_cb: bd_addr= connection_state=BTHH_CONN_STATE_DISCONNECTED
android/hid.c