5b790feeeb211c42bf78ca3ae9c26aa30e516765 |
|
18-Sep-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Make copyright headers consistent with Google template; remove "(C)" Test: Comment changes only; still compiles... Change-Id: Id699a8170112f06e4a2c9f2e0f0834d1817ace4e
/system/bt/bta/hd/bta_hd_act.cc
|
6ef9190de8be01a36a3e409e8253624326bf30ea |
|
03-Oct-2017 |
Myles Watson <mylesgw@google.com> |
Remove casts in bta/ and stack/btm Make pointers to const structs const pointers. Pass complete unions instead of casting smaller objects. Test: build Change-Id: I7d6b61183554be70ac7f58f4133a76ec68e35408
/system/bt/bta/hd/bta_hd_act.cc
|
b707f447cbb916de2e0dfd2b4e9bf15818376e64 |
|
04-Jul-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Make RawAddress into a class (1/3) * Add libbluetooth-types - library containing types implementation, that is common between stystem/bt and packages/apps/Bluetooth. It must be included in every project using btif interface. * Put Raw Address implementation into libbluetooth-types * Unify all "to/from string" helper methods into ToString and FromString * bd_addr_empty -> RawAddress::kEmpty * bd_addr_any -> RawAddress::kAny Also fix leaks in jni str2addr by adding ReleaseStringUTFChars Test: types_unittest Change-Id: Ie0694843ad5fbd2a80b310c5f532e5e5a9548043 Merged-In: Ie0694843ad5fbd2a80b310c5f532e5e5a9548043
/system/bt/bta/hd/bta_hd_act.cc
|
a484a888196ddf8bcbf1ad3226d6451bc735a94b |
|
25-Jun-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Rename bt_bdaddr_t into RawAddress (3/3) Test: compilation test Change-Id: I4571721a0c6165a66450ee157a53d8d15bfc45d0
/system/bt/bta/hd/bta_hd_act.cc
|
b7b747369200c0c6588e3099cedc6cfc454e14e0 |
|
19-Jun-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Unify the empty and any address usage Test: compilation test Change-Id: Ic7fae4aa6c6c32e08fbca257dd3629f4f8df92f0
/system/bt/bta/hd/bta_hd_act.cc
|
c752e135d66f80c0b2efc35292ab8ddfd8227d61 |
|
16-Jun-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Replace BT_ADDR with bd_addr_t in bta_sys related code Test: compilation test Change-Id: Idab6e9c03621c5540b4a3a7fa537dff71a25ce3f
/system/bt/bta/hd/bta_hd_act.cc
|
011a61951975849b23a10d2be87e5268008d3407 |
|
10-Jun-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Use bt_bdaddr_t instead of BD_ADDR in HID related code Test: compilation test, sl4a GattReadTest Change-Id: I4e91375746fbd966608a830ff71de79be2b99e6c
/system/bt/bta/hd/bta_hd_act.cc
|
c6bce1a236ed448b688d56d78c56a251c66e7fae |
|
20-Mar-2017 |
Ivan Podogov <ginkage@google.com> |
HIDD: Fix possible out-of-bounds error. Bug: 32282212 Test: manual Change-Id: I6ca91bb8e278db9e4121f22567a27c175661b537
/system/bt/bta/hd/bta_hd_act.cc
|
f9c5752344ec459def74765f512d28fa0f402168 |
|
22-Feb-2017 |
Marie Janssen <jamuraa@google.com> |
cleanup: no assigns in conditionals Some assigns snuck into our conditionals, making the code harder to read / follow. Also remove some unnecessary null checks after osi_malloc that are nearby. Test: compiles, sanity check with device Change-Id: Ia544da44060d9fc4363af9fbcb4112f3190f75ab
/system/bt/bta/hd/bta_hd_act.cc
|
367373ba8bcfb1d9db41b1904de372483991fc10 |
|
19-Jan-2017 |
Ivan Podogov <ginkage@google.com> |
HID: Fix forced disconnection flow. In some cases, we end up in a state where we can neither connect nor forcefully end connection, and will require disabling the Bluetooth adapter to fix this state. When a device is taking too long to connect (or out of range), the user may want to cancel the connection by calling disconnect method, which will be ignored in any state other than BTA_HD_CONN_ST. It is a lot better to immediately cease the connection process at this point, so: - BTA_HD_API_DISCONNECT_EVT is now not ignored in BTA_HD_IDLE_ST; - bta_hd_disconnect_act now reports a correct MAC address during disconnection (it used to send 00:00:00:00:00:00 before); - HidDevDisconnect now allows to forcefully end the connection, and does it in exactly the same way we handle the errors. When L2CAP connection fails, both hidd_l2cif_config_ind and hidd_l2cif_config_cfm set conn_state to HID_CONN_STATE_UNUSED, which is immediately overwritten by the hidd_conn_disconnect call (it will set conn_state to HID_CONN_STATE_DISCONNECTING, because ctrl_cid != 0 in both cases), thus making any subsequent calls to connect failing with "already connecting" error. More than that, all functions send the HID_DHOST_EVT_CLOSE event when failing, which is, again, ignored in the BTA_HD_IDLE_ST state. So: - BTA_HD_INT_CLOSE_EVT is now not ignored in BTA_HD_IDLE_ST; - conn_state is set to HID_CONN_STATE_UNUSED after the call to hidd_conn_disconnect, but before sending the close event. Test: Build, run, connect/disconnect multiple times. Change-Id: I85bb03f760bb9a6fd4c1b944d515232c1be12300
/system/bt/bta/hd/bta_hd_act.cc
|
844daca6a8cae4a263dcc9c30e065e5c2c74da2f |
|
05-Jan-2017 |
Ivan Podogov <ginkage@google.com> |
Add "connecting" and "disconnecting" states to HID Device. Currently the upper java layers have full support for all four connection states, yet the lower stack only reports about "connected" and "disconnected". This patch adds sending "connecting" and "disconnecting" messages when bta_hd_connect_act and bta_hd_disconnect_act finish successfully. Test: build, run, logcat Change-Id: I00f9f414daa3854198ff9eee19e9c98a2e18f603
/system/bt/bta/hd/bta_hd_act.cc
|
456e200272ad66b5005fa16d5a07701e5a86fcd4 |
|
30-Dec-2016 |
Ivan Podogov <ginkage@google.com> |
Allow HID Device to connect to a specific device With this change, when the app requests a connection to a specific device, it is always "plugged" first. Unplugging the previous device is left for the app to do. Test: make Change-Id: I2e27c12e2ee96d0c311615a3853d8c430f3b2c31
/system/bt/bta/hd/bta_hd_act.cc
|
8843cc830b522cfe6f1e361297fc28fd331a1378 |
|
17-Apr-2014 |
Hemant Gupta <hemantg@codeaurora.org> |
HIDD: Add support for HID Device Role This patch adds support for HID Device role in bluedroid stack allowing DUT to be used as Keyboard or Mouse. Bug: 33011576 Change-Id: I45b581a54f6c7bbc1f25226715a7ea23e34255c0
/system/bt/bta/hd/bta_hd_act.cc
|