OSDN Git Service

android-x86/packages-apps-Bluetooth.git
7 years agoMerge "LE Maximum Advertising Data Length (2/4)" am: 4cee47de11
Jakub Pawlowski [Fri, 17 Mar 2017 05:26:34 +0000 (05:26 +0000)]
Merge "LE Maximum Advertising Data Length (2/4)" am: 4cee47de11
am: 9a6a474ca6

Change-Id: I3d5b8bee005363993e377ea6164d4b79de965ee3

7 years agoMerge "LE Maximum Advertising Data Length (2/4)"
Jakub Pawlowski [Fri, 17 Mar 2017 05:20:06 +0000 (05:20 +0000)]
Merge "LE Maximum Advertising Data Length (2/4)"
am: 4cee47de11

Change-Id: I2a26d6eb8a9b8372dc2a171e798aec5f122794b0

7 years agoMerge "LE Maximum Advertising Data Length (2/4)"
Jakub Pawlowski [Fri, 17 Mar 2017 05:13:44 +0000 (05:13 +0000)]
Merge "LE Maximum Advertising Data Length (2/4)"

7 years agoMerge "jni: introduce ScopedBtAddr" am: 9b94cc9fe2
Marie Janssen [Fri, 17 Mar 2017 02:33:55 +0000 (02:33 +0000)]
Merge "jni: introduce ScopedBtAddr" am: 9b94cc9fe2
am: f412949fc2

Change-Id: Ie7b35b98973e13dbe2d5d3f6ff29c52f6e724ff0

7 years agoMerge "jni: introduce ScopedBtAddr"
Marie Janssen [Fri, 17 Mar 2017 02:31:25 +0000 (02:31 +0000)]
Merge "jni: introduce ScopedBtAddr"
am: 9b94cc9fe2

Change-Id: I53de9a0f7d17118088206ddd18aa706aa44de7fc

7 years agoMerge "jni: introduce ScopedBtAddr"
Treehugger Robot [Fri, 17 Mar 2017 02:26:53 +0000 (02:26 +0000)]
Merge "jni: introduce ScopedBtAddr"

7 years agoLE Maximum Advertising Data Length (2/4)
Jakub Pawlowski [Fri, 17 Mar 2017 01:21:31 +0000 (18:21 -0700)]
LE Maximum Advertising Data Length (2/4)

Add ability to check maximum advertising data length.

Bug: 30622771
Test: manual
Change-Id: Ia912f9d738ec8dbf56205a1c22a21f687d9cb6cd

7 years agoMerge "Bluetooth 5 AdvertisingSet implementation (2/4)" am: 92b2f24308
Jakub Pawlowski [Fri, 17 Mar 2017 01:15:14 +0000 (01:15 +0000)]
Merge "Bluetooth 5 AdvertisingSet implementation (2/4)" am: 92b2f24308
am: b0cefb9617

Change-Id: I45899e32959c4295400e1715355c93db747d9674

7 years agoMerge "Bluetooth 5 AdvertisingSet implementation (2/4)"
Jakub Pawlowski [Fri, 17 Mar 2017 01:09:08 +0000 (01:09 +0000)]
Merge "Bluetooth 5 AdvertisingSet implementation (2/4)"
am: 92b2f24308

Change-Id: I5d070edb82d2b1d51339bb68e9dc1fdb46e035e0

7 years agoMerge "Bluetooth 5 AdvertisingSet implementation (2/4)"
Treehugger Robot [Fri, 17 Mar 2017 01:01:15 +0000 (01:01 +0000)]
Merge "Bluetooth 5 AdvertisingSet implementation (2/4)"

7 years agojni: introduce ScopedBtAddr
Marie Janssen [Wed, 15 Feb 2017 20:49:52 +0000 (12:49 -0800)]
jni: introduce ScopedBtAddr

ScopedBtAddr handles marshalling bt_bdaddr_t into jbyteArrays so we
don't have to.  It also complains when it can't allocate things and
deletes the local reference when it goes out of scope.

Test: compiles, sanity tests with various profiles

Change-Id: I78a6364cc5cac0e8664d2d04388a6e2ac4c7a58f

7 years agoBluetooth 5 AdvertisingSet implementation (2/4)
Jakub Pawlowski [Mon, 13 Mar 2017 18:14:27 +0000 (11:14 -0700)]
Bluetooth 5 AdvertisingSet implementation (2/4)

This patch wires up fist methods of AdvertisingSet, making it possible
to start advertising and stop advertising. It also replaces legacy
implemementation with calls to new implementation.

Bug: 30622771
Test: sl4a ConcurrentBleAdvertisingTest
Change-Id: I35e7db5df1945d101402299f78dd541e346d548c

7 years agoMerge "AdapterService: Do not call System.exit() on onUnbind" am: 5cc1112d65
Jack He [Thu, 16 Mar 2017 17:41:46 +0000 (17:41 +0000)]
Merge "AdapterService: Do not call System.exit() on onUnbind" am: 5cc1112d65
am: 97669e3cf2

Change-Id: Iff825cd26f7bf796627ca2775bdaf0fd4b7183f3

7 years agoMerge "AdapterService: Do not call System.exit() on onUnbind"
Jack He [Thu, 16 Mar 2017 17:39:18 +0000 (17:39 +0000)]
Merge "AdapterService: Do not call System.exit() on onUnbind"
am: 5cc1112d65

Change-Id: I6893a7be8a7676092efdb5bf49921616aff041f8

7 years agoMerge "AdapterService: Do not call System.exit() on onUnbind"
Treehugger Robot [Thu, 16 Mar 2017 17:33:47 +0000 (17:33 +0000)]
Merge "AdapterService: Do not call System.exit() on onUnbind"

7 years agoAdapterService: Do not call System.exit() on onUnbind
Jack He [Thu, 16 Mar 2017 04:35:28 +0000 (21:35 -0700)]
AdapterService: Do not call System.exit() on onUnbind

* Process termination should be handled by the OS
* System.exit() in onUnbind also prevents onDestroy() to be called
* Removed isMock() since its only use case is to check if System.exit()
  should be called

Bug: 35366908
Test: make, run java test, turning Bluetooth ON/OFF
Change-Id: Ieba927ce86d5dd27269f10188c74308fa76e66d9

7 years agoMerge "Broadcast ACTION_PAIRING_REQUEST to everyone again" am: 71da1cf06b
Marie Janssen [Thu, 16 Mar 2017 00:09:59 +0000 (00:09 +0000)]
Merge "Broadcast ACTION_PAIRING_REQUEST to everyone again" am: 71da1cf06b
am: a670256bf7

Change-Id: Ia3c6b483cfda058832c8070407a9a1f52a003114

7 years agoMerge "Broadcast ACTION_PAIRING_REQUEST to everyone again"
Marie Janssen [Thu, 16 Mar 2017 00:07:38 +0000 (00:07 +0000)]
Merge "Broadcast ACTION_PAIRING_REQUEST to everyone again"
am: 71da1cf06b

Change-Id: I57f8a7673d28fcbe1e60d51e192564bf13189682

7 years agoMerge "Broadcast ACTION_PAIRING_REQUEST to everyone again"
Treehugger Robot [Thu, 16 Mar 2017 00:01:54 +0000 (00:01 +0000)]
Merge "Broadcast ACTION_PAIRING_REQUEST to everyone again"

7 years agoBroadcast ACTION_PAIRING_REQUEST to everyone again
Marie Janssen [Wed, 15 Mar 2017 20:49:57 +0000 (13:49 -0700)]
Broadcast ACTION_PAIRING_REQUEST to everyone again

ACTION_PAIRING_REQUEST to be sent to all packages while new methods for
handling automated pairing are developed.

Test: AAP pairing && SL4A connection tests
Bug: 36024655
Bug: 35853357
Change-Id: Ib07adf5253c1e051ab2abc6e2ed711d8bbf107c9

7 years agoMerge "Fix advertise data length parsing" am: 91dca83714
Jakub Pawlowski [Wed, 15 Mar 2017 20:17:40 +0000 (20:17 +0000)]
Merge "Fix advertise data length parsing" am: 91dca83714
am: cb43fe1b20

Change-Id: If0085d9efc38981239ad1e8121b9e3f3cb8fb592

7 years agoMerge "Fix advertise data length parsing"
Jakub Pawlowski [Wed, 15 Mar 2017 20:09:43 +0000 (20:09 +0000)]
Merge "Fix advertise data length parsing"
am: 91dca83714

Change-Id: I8328e4b789189d7f3320418553d9a5f5957e35c2

7 years agoMerge "Fix advertise data length parsing"
Treehugger Robot [Wed, 15 Mar 2017 20:04:53 +0000 (20:04 +0000)]
Merge "Fix advertise data length parsing"

7 years agoFix advertise data length parsing
Jakub Pawlowski [Wed, 15 Mar 2017 18:11:32 +0000 (11:11 -0700)]
Fix advertise data length parsing

Bluetooth 5 advertise data can be longer than 128bytes. The length bit
must be properly converted to unsigned value for such long data.

Bug: 36086416
Test: manual
Change-Id: I7449ea99be2e78dd60dd90ec607b74f2bb02d213

7 years agoMerge "Initialize the Media Player list at start" am: af66394a61
Andre Eisenbach [Tue, 14 Mar 2017 21:21:13 +0000 (21:21 +0000)]
Merge "Initialize the Media Player list at start" am: af66394a61
am: 4120a36bb1

Change-Id: I91482b981e3eb6c293246d9a3da05776431dd732

7 years agoMerge "Initialize the Media Player list at start"
Andre Eisenbach [Tue, 14 Mar 2017 21:16:13 +0000 (21:16 +0000)]
Merge "Initialize the Media Player list at start"
am: af66394a61

Change-Id: I50bf13adf13e46737b6bc5ecc4bef1d5b01b446c

7 years agoMerge "Initialize the Media Player list at start"
Andre Eisenbach [Tue, 14 Mar 2017 21:06:53 +0000 (21:06 +0000)]
Merge "Initialize the Media Player list at start"

7 years agoInitialize the Media Player list at start
Ajay Panicker [Tue, 14 Mar 2017 19:57:53 +0000 (12:57 -0700)]
Initialize the Media Player list at start

If the browsable list builder fails to receive any connect callbacks when
connecting to media services, we could be left in a state where the media
player list is uninitialized. This is fixed by always initializing the
media player list at the start of AVRCP.

Change-Id: I15088c1f4e8ffa2ac8a101339c9b47989fc17a5e
Fixes: 36151636
Test: Manually tested connecting AVRCP with AVIC-8100NEX

7 years agoMerge "Bluetooth 5 feature check implementation (3/3)" am: af78536ab5
Jakub Pawlowski [Sat, 11 Mar 2017 02:16:49 +0000 (02:16 +0000)]
Merge "Bluetooth 5 feature check implementation (3/3)" am: af78536ab5
am: 9163d2b20c

Change-Id: I349639e9c6f51e78e54e0f06b8efc5db3332d626

7 years agoMerge "Bluetooth 5 feature check implementation (3/3)"
Jakub Pawlowski [Sat, 11 Mar 2017 02:13:18 +0000 (02:13 +0000)]
Merge "Bluetooth 5 feature check implementation (3/3)"
am: af78536ab5

Change-Id: Ie3d08bc680f1e3a93fda7cf90d0d693f379104fb

7 years agoMerge "Bluetooth 5 feature check implementation (3/3)"
Treehugger Robot [Sat, 11 Mar 2017 02:03:42 +0000 (02:03 +0000)]
Merge "Bluetooth 5 feature check implementation (3/3)"

7 years agoBluetooth 5 feature check implementation (3/3)
Jakub Pawlowski [Fri, 10 Mar 2017 02:18:13 +0000 (18:18 -0800)]
Bluetooth 5 feature check implementation (3/3)

Wire the new feature check API to actual values received from the
controller.

Test: manual
Bug: 30622771
Change-Id: I0812ed3ed8e28b8be34090ffb09c27d7a6405b8b

7 years agoMerge "PBAP PropertySelector" am: e0f2564001
Joseph Pirozzo [Fri, 10 Mar 2017 17:41:13 +0000 (17:41 +0000)]
Merge "PBAP PropertySelector" am: e0f2564001
am: f6bfa2ab47

Change-Id: I1ad115b1c995aaa552b8200eae092ba30bbca4cd

7 years agoMerge "PBAP PropertySelector"
Joseph Pirozzo [Fri, 10 Mar 2017 17:38:07 +0000 (17:38 +0000)]
Merge "PBAP PropertySelector"
am: e0f2564001

Change-Id: Ic85da3fffa537ec1651ea517ff7c8a0c41470009

7 years agoMerge "PBAP PropertySelector"
Treehugger Robot [Fri, 10 Mar 2017 17:33:09 +0000 (17:33 +0000)]
Merge "PBAP PropertySelector"

7 years agoPBAP PropertySelector
Joseph Pirozzo [Wed, 1 Mar 2017 01:19:15 +0000 (17:19 -0800)]
PBAP PropertySelector

Fill out and transmit the PropertySelector when requesting to download
the phonebook.  Although the PropertySelector field is an optional field
and the default behavior is well specified when it is absent, some
phones do not adhere to the specification.  By sending the
PropertySelector field we can improve interoperability and eliminate
unneeded data.

Bug: 35322439
Change-Id: I25bcfce8bf4c7648c7cc07387bf02ebef600cf44
Test: Verification of filter bits set in wireshark and successfull
transfer of contact images, names, and numbers.

7 years agoMerge "Use fixed size scan response data" am: cc295bbfee
Jakub Pawlowski [Wed, 8 Mar 2017 21:40:19 +0000 (21:40 +0000)]
Merge "Use fixed size scan response data" am: cc295bbfee
am: ece2d59522

Change-Id: I2d16f9dd6ea00484a02495ff7b3863c46fa8cbde

7 years agoMerge "Use fixed size scan response data"
Jakub Pawlowski [Wed, 8 Mar 2017 21:37:20 +0000 (21:37 +0000)]
Merge "Use fixed size scan response data"
am: cc295bbfee

Change-Id: I83c212284fe05204ed25bf02c2a2a73221487c71

7 years agoMerge "Use fixed size scan response data"
Treehugger Robot [Wed, 8 Mar 2017 21:30:53 +0000 (21:30 +0000)]
Merge "Use fixed size scan response data"

7 years agoUse fixed size scan response data
Jakub Pawlowski [Wed, 8 Mar 2017 00:35:19 +0000 (16:35 -0800)]
Use fixed size scan response data

We used to return fixed size scan response  data before commit ed3417a6,
and some applications rely on this behaviour. For now make sure that all
apps get fixed data.

Bug: 36003118
Test: manual
Change-Id: Ieff1a933c01e7fcb0ae36f740048ccba2b3481b9

7 years agoMerge "Bluetooth 5 Advertising API" am: dcffb67e16
Jakub Pawlowski [Wed, 8 Mar 2017 19:28:58 +0000 (19:28 +0000)]
Merge "Bluetooth 5 Advertising API" am: dcffb67e16
am: c38bf613d6

Change-Id: Idcbef2db05d628a7270acb4ca0c43b34f8c3644f

7 years agoMerge "Bluetooth 5 PHY change API" am: d3e9d9f8b1
Jakub Pawlowski [Wed, 8 Mar 2017 19:27:43 +0000 (19:27 +0000)]
Merge "Bluetooth 5 PHY change API" am: d3e9d9f8b1
am: 86508a4a5b

Change-Id: I56a338b0ba4d454dd5bb46225cb37d613ce35dae

7 years agoMerge "Bluetooth 5 periodc scan API (2/2)" am: d84aac6a34
Jakub Pawlowski [Wed, 8 Mar 2017 19:22:06 +0000 (19:22 +0000)]
Merge "Bluetooth 5 periodc scan API (2/2)" am: d84aac6a34
am: 5bb6c3f0e8

Change-Id: Ib0b2c4403b83ca49f1ff0b1db86e0892a186a9ba

7 years agoMerge "Bluetooth 5 Advertising API"
Jakub Pawlowski [Wed, 8 Mar 2017 19:20:09 +0000 (19:20 +0000)]
Merge "Bluetooth 5 Advertising API"
am: dcffb67e16

Change-Id: I28998dc9ff77349eb219d0511ca8af797fd10c4f

7 years agoMerge "Propagate Bluetooth 5 scan result properties" am: 30241a4d72
Jakub Pawlowski [Wed, 8 Mar 2017 19:20:05 +0000 (19:20 +0000)]
Merge "Propagate Bluetooth 5 scan result properties" am: 30241a4d72
am: b8d9dd85f2

Change-Id: I99224bbd2d7be785078f2f7697eefdd6c058914f

7 years agoMerge "Bluetooth 5 PHY change API"
Jakub Pawlowski [Wed, 8 Mar 2017 19:17:47 +0000 (19:17 +0000)]
Merge "Bluetooth 5 PHY change API"
am: d3e9d9f8b1

Change-Id: Ia9e2375ba0138e78077f4b4b7f9fac6ef8b65e9f

7 years agoMerge "Bluetooth 5 feature check API (2/2)" am: b52e56f18b
Jakub Pawlowski [Wed, 8 Mar 2017 19:17:13 +0000 (19:17 +0000)]
Merge "Bluetooth 5 feature check API (2/2)" am: b52e56f18b
am: d5a798f579

Change-Id: I885380c4c4f8de9d3cfbbca8b7a6a2a26545ec99

7 years agoMerge "Bluetooth 5 periodc scan API (2/2)"
Jakub Pawlowski [Wed, 8 Mar 2017 19:13:26 +0000 (19:13 +0000)]
Merge "Bluetooth 5 periodc scan API (2/2)"
am: d84aac6a34

Change-Id: I322c05d22c1cbfeff33f9fa7238b001071c58269

7 years agoMerge "Propagate Bluetooth 5 scan result properties"
Jakub Pawlowski [Wed, 8 Mar 2017 19:11:09 +0000 (19:11 +0000)]
Merge "Propagate Bluetooth 5 scan result properties"
am: 30241a4d72

Change-Id: I4fbbec83552071bd756b8aabd43d3e62b94874bd

7 years agoMerge "Bluetooth 5 feature check API (2/2)"
Jakub Pawlowski [Wed, 8 Mar 2017 19:08:49 +0000 (19:08 +0000)]
Merge "Bluetooth 5 feature check API (2/2)"
am: b52e56f18b

Change-Id: I481dc74b86858e185798e65a48393470fc4d1496

7 years agoMerge "Bluetooth 5 Advertising API"
Jakub Pawlowski [Wed, 8 Mar 2017 19:05:12 +0000 (19:05 +0000)]
Merge "Bluetooth 5 Advertising API"

7 years agoBluetooth 5 Advertising API
Jakub Pawlowski [Tue, 10 Jan 2017 08:48:56 +0000 (00:48 -0800)]
Bluetooth 5 Advertising API

Bug: 30622771
Test: manual
Change-Id: I3a670756e26345833ce595c9b22b8b39ae0ba41f

7 years agoMerge "Bluetooth 5 PHY change API"
Jakub Pawlowski [Wed, 8 Mar 2017 19:04:30 +0000 (19:04 +0000)]
Merge "Bluetooth 5 PHY change API"

7 years agoBluetooth 5 PHY change API
Jakub Pawlowski [Tue, 7 Feb 2017 15:33:07 +0000 (07:33 -0800)]
Bluetooth 5 PHY change API

Bug: 30622771
Test: manual
Change-Id: I859d23e7db95585551675d09c0b009222a475dd2

7 years agoMerge "Bluetooth 5 periodc scan API (2/2)"
Jakub Pawlowski [Wed, 8 Mar 2017 19:03:47 +0000 (19:03 +0000)]
Merge "Bluetooth 5 periodc scan API (2/2)"

7 years agoBluetooth 5 periodc scan API (2/2)
Jakub Pawlowski [Wed, 1 Mar 2017 00:25:50 +0000 (16:25 -0800)]
Bluetooth 5 periodc scan API (2/2)

Bug: 30622771
Test: manual
Change-Id: I2bde2072f55949b195b64e0ce333a40b4f6d6673

7 years agoMerge "Propagate Bluetooth 5 scan result properties"
Jakub Pawlowski [Wed, 8 Mar 2017 19:02:57 +0000 (19:02 +0000)]
Merge "Propagate Bluetooth 5 scan result properties"

7 years agoPropagate Bluetooth 5 scan result properties
Jakub Pawlowski [Tue, 7 Feb 2017 17:37:08 +0000 (09:37 -0800)]
Propagate Bluetooth 5 scan result properties

Bug: 30622771
Test: manual tests
Change-Id: Icbb353aa3435a97035c81384fc9031175a934239

7 years agoMerge "Bluetooth 5 feature check API (2/2)"
Jakub Pawlowski [Wed, 8 Mar 2017 19:02:11 +0000 (19:02 +0000)]
Merge "Bluetooth 5 feature check API (2/2)"

7 years agoBluetooth 5 feature check API (2/2)
Jakub Pawlowski [Wed, 8 Feb 2017 02:05:28 +0000 (18:05 -0800)]
Bluetooth 5 feature check API (2/2)

Bug: 30622771
Test: manual
Change-Id: I90e2efe989745c07c2f2fb8f4ea5bc3b718382f6

7 years agoMerge "OPP: Add OPP 1.2 feature." am: 3361ec466c
Hemant Gupta [Wed, 8 Mar 2017 00:43:16 +0000 (00:43 +0000)]
Merge "OPP: Add OPP 1.2 feature." am: 3361ec466c
am: d92e77006e

Change-Id: I5d93a64aae90ad13d96c146ae476d9eefa72a07d

7 years agoMerge "OPP: Add OPP 1.2 feature."
Hemant Gupta [Wed, 8 Mar 2017 00:37:16 +0000 (00:37 +0000)]
Merge "OPP: Add OPP 1.2 feature."
am: 3361ec466c

Change-Id: I861f5aecb8721baa8cc7a8ffd4e215f0d9de1ddd

7 years agoMerge "OPP: Add OPP 1.2 feature."
Treehugger Robot [Wed, 8 Mar 2017 00:28:30 +0000 (00:28 +0000)]
Merge "OPP: Add OPP 1.2 feature."

7 years agoOPP: Add OPP 1.2 feature.
Hemant Gupta [Thu, 16 Feb 2017 15:03:00 +0000 (20:33 +0530)]
OPP: Add OPP 1.2 feature.

Add changes to support OPP 1.2 which uses OBEX over L2CAP.

Test: Connect with Remote OPP Client supporting OPP 1.2 and verify
that connection and transfer happens over L2CAP. Connect with Remote
OPP Client supporting OPP 1.1 and verify that connection and transfer
happens over RFCOMM.

Bug: 33010988
Change-Id: I44c2f2f01fb04f4306d0eb121d66dc08954966c0

7 years agoMerge "HID: Access JNI callback object when valid." am: 9257decc86
Hemant Gupta [Tue, 28 Feb 2017 16:44:11 +0000 (16:44 +0000)]
Merge "HID: Access JNI callback object when valid." am: 9257decc86
am: df19ca9b59

Change-Id: Ib659866efa78ffd293aa6be93f4c0062ffe37ecd

7 years agoMerge "HID: Access JNI callback object when valid."
Hemant Gupta [Tue, 28 Feb 2017 16:41:42 +0000 (16:41 +0000)]
Merge "HID: Access JNI callback object when valid."
am: 9257decc86

Change-Id: I9ef4dbbe1e8c534e62a89d009f804511fc46d12c

7 years agoMerge "HID: Access JNI callback object when valid."
Treehugger Robot [Tue, 28 Feb 2017 16:39:15 +0000 (16:39 +0000)]
Merge "HID: Access JNI callback object when valid."

7 years agoHID: Access JNI callback object when valid.
Hemant Gupta [Mon, 6 Feb 2017 09:00:08 +0000 (14:30 +0530)]
HID: Access JNI callback object when valid.

Usecase:
Perform BT off/on with HID connection in stress loop overnight.
Expectation:
BT should not crash, and should work normally after stress test.
Observation:
BT crash observed due to dereference of JNI object whch was NULL.
Coredump
=========================
pid: 4629, tid: 4711, name: BT Service Call  >>> com.android.bluetooth <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: 'art/runtime/java_vm_ext.cc:470]
JNI DETECTED ERROR IN APPLICATION: obj == null'
=====================
bt_btif : btif_hh_upstreams_evt: BTA_HH_OPN_EVT: handle=255, status =7
bt_btif : in, bd addr:00:1f:20:ea:ca:8b, prop type:4, len:4
bt_btif_dm: get_cod remote_cod = 0x00002540
I bt_btif : HAL bt_hh_callbacks->connection_state_cb
JNI DETECTED ERROR IN APPLICATION: obj == null
    in call to CallVoidMethodV
"BT Service Callback Thread" prio=5 tid=12 Runnable
  | group="main" sCount=0 dsCount=0 obj=0x12ca8b80 self=0xe7a84400
  | sysTid=4711 nice=0 cgrp=default sched=0/0 handle=0xd8f88920
  | state=R schedstat=( 75150605353 59660157373 74582 ) utm=3592
  stm=3923 core=4 HZ=100
  | stack=0xd8e8c000-0xd8e8e000 stackSize=1014KB
  | held mutexes= "mutator lock"(shared held)
  native: #00 pc 00377955  /system/lib/libart.so (_ZN3art15Dump
  NativeStackERNSt3
  __113basic_ostreamIcNS0_11char_traitsIcEEEEiP12
  BacktraceMapPKcPNS_9ArtMethodEPv+128)
  native: #01 pc 0035795d  /system/lib/libart.so (_ZNK3art6Thread9
  DumpStackERNSt3
  __113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+304)
  native: #02 pc 00250d79  /system/lib/libart.so (_ZN3art9JavaVMExt8
  JniAbortEPKcS2_+812)
  native: #03 pc 0025103d  /system/lib/libart.so (_ZN3art9JavaVMExt9
  JniAbortFEPKcS2_z+72)
  native: #04 pc 00284127  /system/lib/libart.so (_ZN3art3JNI15Call
  VoidMethodVEP7_
  JNIEnvP8_jobjectP10_jmethodIDSt9__va_list+478)
  native: #05 pc 00005f81  /system/lib/libbluetooth_jni.so (???)
  native: #06 pc 00010d27  /system/lib/libbluetooth_jni.so (???)
  native: #07 pc 000657bf  /system/lib/hw/bluetooth.default.so (???)
=======================

Root cause:
For quick BT turn on/off cases there may be instances where callback from btif
is triggered even before callback object is created or cleanup path may clear
callback object just before stray btif callback call tries to access the same.

Fix:
Check if callback object is valid before trying to access the same

Test: Crash not observed in stress test with hid connection and BT on/off.

Bug: 35023377
Change-Id: Id9b526bfec2bf74d7110601f85e111088a1e7d76

7 years agoMerge "Exception and death notification handling for ISap." am: f2f1ecd69e
Amit Mahajan [Thu, 23 Feb 2017 02:13:29 +0000 (02:13 +0000)]
Merge "Exception and death notification handling for ISap." am: f2f1ecd69e
am: f598dcd6b5

Change-Id: I68349b7e0d8dcc6f93047ef5988a704a541a6bec

7 years agoMerge "Exception and death notification handling for ISap."
Amit Mahajan [Thu, 23 Feb 2017 02:07:59 +0000 (02:07 +0000)]
Merge "Exception and death notification handling for ISap."
am: f2f1ecd69e

Change-Id: I83c55cc4d32d812415b164f89bffdbe58bb562ea

7 years agoMerge "Exception and death notification handling for ISap."
Amit Mahajan [Thu, 23 Feb 2017 02:00:16 +0000 (02:00 +0000)]
Merge "Exception and death notification handling for ISap."

7 years agoMerge "jni: cleanup compiler warnings" am: dc77303218
Marie Janssen [Wed, 22 Feb 2017 18:42:00 +0000 (18:42 +0000)]
Merge "jni: cleanup compiler warnings" am: dc77303218
am: 6657d7b745

Change-Id: I029cc50eac229539ef606180dd9a9c2699a124a0

7 years agoMerge "jni: cleanup compiler warnings"
Marie Janssen [Wed, 22 Feb 2017 18:40:22 +0000 (18:40 +0000)]
Merge "jni: cleanup compiler warnings"
am: dc77303218

Change-Id: I03a6a68b3d4fd131d089f837b072f4b94c21bd07

7 years agoMerge "jni: cleanup compiler warnings"
Treehugger Robot [Wed, 22 Feb 2017 18:35:49 +0000 (18:35 +0000)]
Merge "jni: cleanup compiler warnings"

7 years agojni: cleanup compiler warnings
Marie Janssen [Wed, 22 Feb 2017 15:26:34 +0000 (07:26 -0800)]
jni: cleanup compiler warnings

Test: compiles without warnings
Change-Id: I6f0b13648a624047aee0ac728e7a6c27e7bfad33
Fix: 35636708

7 years agoMerge "HID: Send connection state change broadcast during cleanup" am: 71f903cb3d
Hemant Gupta [Tue, 21 Feb 2017 19:27:42 +0000 (19:27 +0000)]
Merge "HID: Send connection state change broadcast during cleanup" am: 71f903cb3d
am: 99c2b9f8fc

Change-Id: I79e12bb2996364e1969895575f2e49189cdbba6e

7 years agoMerge "HID: Send connection state change broadcast during cleanup"
Hemant Gupta [Tue, 21 Feb 2017 19:22:18 +0000 (19:22 +0000)]
Merge "HID: Send connection state change broadcast during cleanup"
am: 71f903cb3d

Change-Id: I35985711ac5708e021826a18a77ea3048d7bf829

7 years agoMerge "HID: Send connection state change broadcast during cleanup"
Treehugger Robot [Tue, 21 Feb 2017 19:15:00 +0000 (19:15 +0000)]
Merge "HID: Send connection state change broadcast during cleanup"

7 years agoMerge "Use base::Callbacks in BleScannerInterface (3/3)" am: 00c0c74d0c
Jakub Pawlowski [Tue, 21 Feb 2017 18:14:01 +0000 (18:14 +0000)]
Merge "Use base::Callbacks in BleScannerInterface (3/3)" am: 00c0c74d0c
am: 1a970fa1b5

Change-Id: I7c425695167bed7a70575ac326df728572f19acb

7 years agoMerge "Use base::Callbacks in BleScannerInterface (3/3)"
Jakub Pawlowski [Tue, 21 Feb 2017 18:06:51 +0000 (18:06 +0000)]
Merge "Use base::Callbacks in BleScannerInterface (3/3)"
am: 00c0c74d0c

Change-Id: Idfe4df7bb59fa5d16ae3c55253fe0f25b0cbcec8

7 years agoMerge "Use base::Callbacks in BleScannerInterface (3/3)"
Jakub Pawlowski [Tue, 21 Feb 2017 18:03:40 +0000 (18:03 +0000)]
Merge "Use base::Callbacks in BleScannerInterface (3/3)"

7 years agoHID: Send connection state change broadcast during cleanup
Hemant Gupta [Wed, 2 Nov 2016 08:19:13 +0000 (16:19 +0800)]
HID: Send connection state change broadcast during cleanup

Usecase:
1) Connect HID device with DUT
2) Turn Off BT

Observation:
HID state change is not received by application leading to
application showing connected even when BT is turned off and
HID was connected.

Rootcause:
HidService does not send state change to application if BT is turned off
while connected

Fix:
Send broadcast for HID connection state change during cleanup.

Test: Verified that connection state change intent is received by upper layers
during BT off if HID was connected.

Bug: 35013637
Change-Id: I5d7989887f9089876c78e43d97d066f384cc237e

7 years agoUse base::Callbacks in BleScannerInterface (3/3)
Jakub Pawlowski [Thu, 16 Feb 2017 20:00:20 +0000 (12:00 -0800)]
Use base::Callbacks in BleScannerInterface (3/3)

The remaining four native callbacks need more internal refactoring
before they can be turned into a callbacks.

Bug: 30622771
Test: sl4a FilteringTest
Change-Id: Ibe3cd66af9598a7d0294d36550bf35ab8ddfda43

7 years agoMerge "PBAP: Fix Functionality failure for PBAP" am: fe641c1e38
Hemant Gupta [Fri, 17 Feb 2017 23:14:39 +0000 (23:14 +0000)]
Merge "PBAP: Fix Functionality failure for PBAP" am: fe641c1e38
am: 8e2b8940f1

Change-Id: Ib89244e29ca6dfa75fda87264a286f85971a0a3f

7 years agoMerge "PBAP: Fix Functionality failure for PBAP"
Hemant Gupta [Fri, 17 Feb 2017 23:13:25 +0000 (23:13 +0000)]
Merge "PBAP: Fix Functionality failure for PBAP"
am: fe641c1e38

Change-Id: Ide835f7a3eb1dab26b7c9adff0a0b1710c9cff22

7 years agoMerge "PBAP: Fix Functionality failure for PBAP"
Treehugger Robot [Fri, 17 Feb 2017 23:09:35 +0000 (23:09 +0000)]
Merge "PBAP: Fix Functionality failure for PBAP"

7 years agoMerge "OPP: Fix Functionality failure for OPP Rx" am: 2cc49b962d
Hemant Gupta [Fri, 17 Feb 2017 22:38:01 +0000 (22:38 +0000)]
Merge "OPP: Fix Functionality failure for OPP Rx" am: 2cc49b962d
am: 8977c829a4

Change-Id: I9091842fa616b598209ce444874c07dbca3d7c6c

7 years agoMerge "OPP: Fix Functionality failure for OPP Rx"
Hemant Gupta [Fri, 17 Feb 2017 22:29:08 +0000 (22:29 +0000)]
Merge "OPP: Fix Functionality failure for OPP Rx"
am: 2cc49b962d

Change-Id: I6c139e1ca1e94dc8eeaaaf95912f56aed35474dc

7 years agoMerge "OPP: Fix Functionality failure for OPP Rx"
Treehugger Robot [Fri, 17 Feb 2017 21:30:33 +0000 (21:30 +0000)]
Merge "OPP: Fix Functionality failure for OPP Rx"

7 years agoOPP: Fix Functionality failure for OPP Rx
Hemant Gupta [Fri, 17 Feb 2017 03:10:37 +0000 (08:40 +0530)]
OPP: Fix Functionality failure for OPP Rx

Usecase:
Send file from Remote BT device to DUT

Expectation:
File should be received properly

Observation:
File reception popup does not occur on DUT

Root Cause:
Socket listener not started for OPP

Fix:
Add changes to properly start listeners for OPP

Test:
1) Verified that SDP records for OPP are exposed and can be browsed
  by remote OPP Client.
2) File can be received without issues from OPP Client.

Bug: 35416619
Change-Id: I5b4f343f3fd7b957ce423ce2cb76cd0683e10c3a

7 years agoPBAP: Fix Functionality failure for PBAP
Hemant Gupta [Fri, 17 Feb 2017 03:16:16 +0000 (08:46 +0530)]
PBAP: Fix Functionality failure for PBAP

Usecase:
Connect to DUT from PBAP Client (Carkit)

Expectation:
Carkit is able to browse PBAP SDP and connect to PBAP Profile
with DUT

Observation:
PBAP Connection is successful

Root Cause:
Socket listener not started for PBAP

Fix:
Add changes to properly start listeners for PBAP

Test:
1) Verified that SDP records for PBAP are exposed and can be browsed
  by remote PBAP Client.
2) Connection happens fine and phonebook can eb downloaded properly.

Bug: 35416619
Change-Id: I52acb1c10b91dd5ffecc44badcfd60f0e27b0a55

7 years agoMerge "Add Loopers to tests that require them for message handlers" am: 6a231c7afd...
Ajay Panicker [Fri, 17 Feb 2017 00:49:24 +0000 (00:49 +0000)]
Merge "Add Loopers to tests that require them for message handlers" am: 6a231c7afd am: 5dd715ccd6
am: 78047e26a9

Change-Id: I3f79e4ae2cc4f9596ece598ab488b1e3b73f8367

7 years agoMerge "Add Loopers to tests that require them for message handlers" am: 6a231c7afd
Ajay Panicker [Fri, 17 Feb 2017 00:44:24 +0000 (00:44 +0000)]
Merge "Add Loopers to tests that require them for message handlers" am: 6a231c7afd
am: 5dd715ccd6

Change-Id: I3f3a8699e2bc3cce6b9c73036c7eda7671baea75

7 years agoMerge "Add Loopers to tests that require them for message handlers"
Ajay Panicker [Fri, 17 Feb 2017 00:39:54 +0000 (00:39 +0000)]
Merge "Add Loopers to tests that require them for message handlers"
am: 6a231c7afd

Change-Id: I4e91d1c47ff62a61849aba0c9585ec9f094bbdee

7 years agoMerge "Add Loopers to tests that require them for message handlers"
Ajay Panicker [Fri, 17 Feb 2017 00:34:56 +0000 (00:34 +0000)]
Merge "Add Loopers to tests that require them for message handlers"

7 years agoAdd Loopers to tests that require them for message handlers
Ajay Panicker [Thu, 19 Jan 2017 02:13:54 +0000 (18:13 -0800)]
Add Loopers to tests that require them for message handlers

Bug: 34193424
Test: runtest bluetooth no longer fails
Change-Id: I4612cfb9c16b53293f52350e7f0abe9fb70c7543

7 years agoMerge "Broadcast BOND_STATE_CHANGED to foreground." am: 6d3498fba2 am: 0864a05422
Marie Janssen [Thu, 16 Feb 2017 23:11:05 +0000 (23:11 +0000)]
Merge "Broadcast BOND_STATE_CHANGED to foreground." am: 6d3498fba2 am: 0864a05422
am: 90e812968b

Change-Id: I0125e259acb6b52180135fc8ddc1ca017ab4b92c

7 years agoMerge "Broadcast BOND_STATE_CHANGED to foreground." am: 6d3498fba2
Marie Janssen [Thu, 16 Feb 2017 23:05:20 +0000 (23:05 +0000)]
Merge "Broadcast BOND_STATE_CHANGED to foreground." am: 6d3498fba2
am: 0864a05422

Change-Id: Ia9999e7976b1b931637af472178df20ccf9ad489

7 years agoMerge "Broadcast BOND_STATE_CHANGED to foreground."
Marie Janssen [Thu, 16 Feb 2017 23:00:47 +0000 (23:00 +0000)]
Merge "Broadcast BOND_STATE_CHANGED to foreground."
am: 6d3498fba2

Change-Id: I4142caa728a8beb763d12d706836b8d841723401

7 years agoMerge "Broadcast BOND_STATE_CHANGED to foreground."
Marie Janssen [Thu, 16 Feb 2017 22:54:42 +0000 (22:54 +0000)]
Merge "Broadcast BOND_STATE_CHANGED to foreground."