OSDN Git Service

android-x86/system-bt.git
5 years agoMerge "No need to abort the audio HAL / Bluetooth when failed to suspend" am: 0cc83418b1
Cheney Ni [Thu, 14 Mar 2019 18:30:03 +0000 (11:30 -0700)]
Merge "No need to abort the audio HAL / Bluetooth when failed to suspend" am: 0cc83418b1
am: 3b22b4dbd1

Change-Id: Id562fde8f1095896b3ff1f96612d75a66d7512be

5 years agoMerge "No need to abort the audio HAL / Bluetooth when failed to suspend"
Cheney Ni [Thu, 14 Mar 2019 18:24:59 +0000 (11:24 -0700)]
Merge "No need to abort the audio HAL / Bluetooth when failed to suspend"
am: 0cc83418b1

Change-Id: Ia71c87eb6fe33267eee4339d759ee96edaf3ee0a

5 years agoMerge "No need to abort the audio HAL / Bluetooth when failed to suspend"
Treehugger Robot [Thu, 14 Mar 2019 18:08:12 +0000 (18:08 +0000)]
Merge "No need to abort the audio HAL / Bluetooth when failed to suspend"

5 years agoMerge "Move controller_properties.json to the vendor image" am: 6f80399e14
Jorge E. Moreira [Thu, 14 Mar 2019 04:10:44 +0000 (21:10 -0700)]
Merge "Move controller_properties.json to the vendor image" am: 6f80399e14
am: fa444401ba

Change-Id: Ib1d0ed526be24bcd4f33ea487eefc5f4c3f012d9

5 years agoMerge "Move controller_properties.json to the vendor image"
Jorge E. Moreira [Thu, 14 Mar 2019 04:05:39 +0000 (21:05 -0700)]
Merge "Move controller_properties.json to the vendor image"
am: 6f80399e14

Change-Id: I0810d6c2249370828dd442b8c953932902d01dbf

5 years agoMerge "Move controller_properties.json to the vendor image"
Treehugger Robot [Thu, 14 Mar 2019 03:51:30 +0000 (03:51 +0000)]
Merge "Move controller_properties.json to the vendor image"

5 years agoRevert "Revert "[DO NOT MERGE] Implement key attestation using AndroidKeystore.""
Martin Brabham [Wed, 13 Mar 2019 23:39:59 +0000 (16:39 -0700)]
Revert "Revert "[DO NOT MERGE] Implement key attestation using AndroidKeystore.""

This reverts commit 6efe553ed61ebed2e9198ee1754031eabefe11b2.

Removes reference to btif_hl.cc from Android.bp

Change-Id: I66f4a672c4559a3055f06d9ec0eca543d094ea34

5 years agoMerge "Revert "[DO NOT MERGE] Implement key attestation using AndroidKeystore.""...
TreeHugger Robot [Wed, 13 Mar 2019 23:30:14 +0000 (23:30 +0000)]
Merge "Revert "[DO NOT MERGE] Implement key attestation using AndroidKeystore."" into pi-dev-plus-aosp

5 years agoRevert "[DO NOT MERGE] Implement key attestation using AndroidKeystore."
Myles Watson [Wed, 13 Mar 2019 23:28:53 +0000 (23:28 +0000)]
Revert "[DO NOT MERGE] Implement key attestation using AndroidKeystore."

This reverts commit 5f67e5ff1c7eb4255e5faa09bf1f31e3d151deee.

Reason for revert: Broken build

Change-Id: I7953f66d707c68733ac48e8f21d7e5ae3131c72d

5 years agoMerge "[DO NOT MERGE] Implement key attestation using AndroidKeystore." into pi-dev...
TreeHugger Robot [Wed, 13 Mar 2019 22:22:04 +0000 (22:22 +0000)]
Merge "[DO NOT MERGE] Implement key attestation using AndroidKeystore." into pi-dev-plus-aosp

5 years agoMerge "compiler based array initialization" am: e9220762b0
Nick Kralevich [Wed, 13 Mar 2019 18:40:17 +0000 (11:40 -0700)]
Merge "compiler based array initialization" am: e9220762b0
am: dbf14b5620

Change-Id: Ie1808cd0fa8f72f426cf0b3a2c316b5b3dd075a0

5 years agoMerge "compiler based array initialization"
Nick Kralevich [Wed, 13 Mar 2019 18:36:12 +0000 (11:36 -0700)]
Merge "compiler based array initialization"
am: e9220762b0

Change-Id: I03324d9d61a934dc142153f6e64b0f7d9aca53cd

5 years agoMerge "compiler based array initialization"
Nick Kralevich [Wed, 13 Mar 2019 18:24:59 +0000 (18:24 +0000)]
Merge "compiler based array initialization"

5 years agoMerge "Recover from HandsFree client connection collision" am: 3081c2e81a
Joseph Pirozzo [Wed, 13 Mar 2019 16:19:14 +0000 (09:19 -0700)]
Merge "Recover from HandsFree client connection collision" am: 3081c2e81a
am: c862f3b497

Change-Id: If9dd0106f94e16bd2b2514ef8120504f77fac26d

5 years ago[DO NOT MERGE] Implement key attestation using AndroidKeystore.
Martin Brabham [Fri, 1 Feb 2019 21:42:58 +0000 (13:42 -0800)]
[DO NOT MERGE] Implement key attestation using AndroidKeystore.

Store SHA256 hash of the config file in an encrypted file that has been encrypted using the Android Keystore API.

Bug: b/117993149
Test: Manual
Change-Id: I26de9ea05f515d6643a83d11628490fb49e10743
Merged-In: I26de9ea05f515d6643a83d11628490fb49e10743

5 years agoMerge "Recover from HandsFree client connection collision"
Joseph Pirozzo [Wed, 13 Mar 2019 16:15:07 +0000 (09:15 -0700)]
Merge "Recover from HandsFree client connection collision"
am: 3081c2e81a

Change-Id: I9cddf7fc2a827b20f18393ff62d1cb3fd0032320

5 years agoMerge "Recover from HandsFree client connection collision"
Joseph Pirozzo [Wed, 13 Mar 2019 16:04:19 +0000 (16:04 +0000)]
Merge "Recover from HandsFree client connection collision"

5 years agoNo need to abort the audio HAL / Bluetooth when failed to suspend
Cheney Ni [Thu, 7 Mar 2019 06:15:27 +0000 (14:15 +0800)]
No need to abort the audio HAL / Bluetooth when failed to suspend

When the headset was disconnecting, the audio HAL may not be able to
suspend the stream successfully, and it is no need to abort the process
for such acceptable failure. This change also adds extra log messages
about HIDL status.

Bug: 127654107
Test: Play / pause music via the Bluetooth manually
Change-Id: I335fcf75708343c7971ebd97514fea5db50f17a0

5 years agoMerge "Release encoder state when cleaning up the hearing aids instance" am: 714a57639a
Cheney Ni [Wed, 13 Mar 2019 06:06:35 +0000 (23:06 -0700)]
Merge "Release encoder state when cleaning up the hearing aids instance" am: 714a57639a
am: c0d2b0a267

Change-Id: I7d3db64628d53f9f9d24310c9e95e27e48411cce

5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190305.001 into master" am...
Xin Li [Wed, 13 Mar 2019 05:54:41 +0000 (22:54 -0700)]
[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190305.001 into master" am: 01f16ea9f7 -s ours
am: 1df753532b -s ours
am skip reason: subject contains skip directive

Change-Id: I4d783526094eb34484b3f581e84581d81aaa7460

5 years ago[automerger skipped] DO NOT MERGE - Merge PPRL.190305.001 into master am: 145c825e98...
The Android Open Source Project [Wed, 13 Mar 2019 05:34:05 +0000 (22:34 -0700)]
[automerger skipped] DO NOT MERGE - Merge PPRL.190305.001 into master am: 145c825e98 -s ours
am: 1b16661782 -s ours
am skip reason: subject contains skip directive

Change-Id: I55ea3cfa72601fc8090a16cc165696af6eeca0eb

5 years agoMerge "Release encoder state when cleaning up the hearing aids instance"
Cheney Ni [Wed, 13 Mar 2019 05:31:51 +0000 (22:31 -0700)]
Merge "Release encoder state when cleaning up the hearing aids instance"
am: 714a57639a

Change-Id: Iebef7301770d31cd38df3007b49aa52873aa0e29

5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190305.001 into master"
Xin Li [Wed, 13 Mar 2019 05:21:51 +0000 (22:21 -0700)]
[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190305.001 into master"
am: 01f16ea9f7 -s ours
am skip reason: subject contains skip directive

Change-Id: I23b7ed3c6c0b6f9af14443698fe7918d58269595

5 years ago[automerger skipped] DO NOT MERGE - Merge PPRL.190305.001 into master
The Android Open Source Project [Wed, 13 Mar 2019 04:47:15 +0000 (21:47 -0700)]
[automerger skipped] DO NOT MERGE - Merge PPRL.190305.001 into master
am: 145c825e98 -s ours
am skip reason: subject contains skip directive

Change-Id: I23b7e1711f6351d09973e25d9defd9a6fefd4032

5 years agoMerge "Release encoder state when cleaning up the hearing aids instance"
Treehugger Robot [Wed, 13 Mar 2019 02:43:26 +0000 (02:43 +0000)]
Merge "Release encoder state when cleaning up the hearing aids instance"

5 years agoMerge "DO NOT MERGE - Merge PPRL.190305.001 into master"
Xin Li [Wed, 13 Mar 2019 02:26:03 +0000 (02:26 +0000)]
Merge "DO NOT MERGE - Merge PPRL.190305.001 into master"

5 years agoMove controller_properties.json to the vendor image
Jorge E. Moreira [Tue, 12 Mar 2019 22:16:42 +0000 (15:16 -0700)]
Move controller_properties.json to the vendor image

Bug: 128355308
Test: build
Change-Id: I3cb9140b34af18569a983122eef3bd642516440c

5 years agocompiler based array initialization
Nick Kralevich [Tue, 12 Mar 2019 20:19:02 +0000 (13:19 -0700)]
compiler based array initialization

Have the caller null out the array rather than rely on the callee
performing a memset.

Bug: 121194976
Test: compiles. No runtime tests performed.
Change-Id: I1ce3f0530080769b97be0af313e822b74fd375ce

5 years agoRecover from HandsFree client connection collision
Joseph Pirozzo [Tue, 12 Mar 2019 19:30:19 +0000 (12:30 -0700)]
Recover from HandsFree client connection collision

If a HF client fails to connect (due to collision), clean up state such
that subsequent connection attempts will pass.

Bug: 118422992
Test: Connect HF client to AG
Change-Id: I093cf3d229956c66d9e8501eb882071600321555

5 years agoMerge "Hearing Aid Dump Audio Tool: Add No Start Cmd feature" am: 812ea5b2a4
Weichin Weng [Tue, 12 Mar 2019 06:39:42 +0000 (23:39 -0700)]
Merge "Hearing Aid Dump Audio Tool: Add No Start Cmd feature" am: 812ea5b2a4
am: 37dbb1af4b

Change-Id: If55b46e573d01a777befaa423a3b4e5e1f3b2300

5 years agoRelease encoder state when cleaning up the hearing aids instance
Cheney Ni [Fri, 8 Mar 2019 15:41:42 +0000 (23:41 +0800)]
Release encoder state when cleaning up the hearing aids instance

When the Bluetooth state changes from ON to BLE_ON, the hearing aid
instance was cleaned up, but not encoder state. Since the Bluetooth
process is kept at BLE_ON but not exited, the new instance of the
hearing aids would see the encoder as initialized without starting a new
Bluetooth audio session, and caused the audio HAL to be unable to talk
to the stack. We now reset the encoder state when cleaning up the
instance, so it will start a session next time during the first
connection of a new hearing aid instance.

Bug: 127610666
Test: ON / OFF BT with BLE_ON and switch active device manually
Change-Id: I426fed4ea22c0b858bee273727fca6e2e7481e84

5 years agoMerge "Hearing Aid Dump Audio Tool: Add No Start Cmd feature"
Weichin Weng [Tue, 12 Mar 2019 06:29:40 +0000 (23:29 -0700)]
Merge "Hearing Aid Dump Audio Tool: Add No Start Cmd feature"
am: 812ea5b2a4

Change-Id: I4ac4ba987795a949cb455f6e7159351045b77dd7

5 years agoMerge "Hearing Aid Dump Audio Tool: Add No Start Cmd feature"
Weichin Weng [Tue, 12 Mar 2019 06:12:19 +0000 (06:12 +0000)]
Merge "Hearing Aid Dump Audio Tool: Add No Start Cmd feature"

5 years agoDO NOT MERGE - Merge PPRL.190305.001 into master
The Android Open Source Project [Mon, 11 Mar 2019 18:55:08 +0000 (11:55 -0700)]
DO NOT MERGE - Merge PPRL.190305.001 into master

Bug: 127812889
Change-Id: I733a17b7dd1e24a6f4a19aac2d45e312b15e0199

5 years ago[automerger skipped] Merge "DO NOT MERGE: Use a weak pointer to deliver updates to...
Ajay Panicker [Mon, 11 Mar 2019 17:32:32 +0000 (10:32 -0700)]
[automerger skipped] Merge "DO NOT MERGE: Use a weak pointer to deliver updates to AVRCP devices." into pi-dev
am: cac66ef659 -s ours
am skip reason: SHA1 cac66ef659 skipped by user apanicke

Change-Id: Icea737fc2c51d0df1fb3bfc0bf9652cbcf3b6bbe

5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190305.001 into stage-aosp...
Xin Li [Mon, 11 Mar 2019 16:29:52 +0000 (09:29 -0700)]
[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190305.001 into stage-aosp-master" into stage-aosp-master
am: d41cac112d -s ours
am skip reason: subject contains skip directive

Change-Id: Ib68c3354a2515fb510b4695220470b5821dd83ca

5 years ago[automerger skipped] DO NOT MERGE - Merge PPRL.190305.001 into stage-aosp-master
The Android Open Source Project [Mon, 11 Mar 2019 16:21:57 +0000 (09:21 -0700)]
[automerger skipped] DO NOT MERGE - Merge PPRL.190305.001 into stage-aosp-master
am: 4a6c7d8b2e -s ours
am skip reason: subject contains skip directive

Change-Id: I83c0c9d7e480814ae58c8cb6a438c60b8b39ebfa

5 years agoMerge "DO NOT MERGE - Merge PPRL.190305.001 into stage-aosp-master" into stage-aosp...
Xin Li [Mon, 11 Mar 2019 16:09:42 +0000 (16:09 +0000)]
Merge "DO NOT MERGE - Merge PPRL.190305.001 into stage-aosp-master" into stage-aosp-master

5 years agoHearing Aid Dump Audio Tool: Add No Start Cmd feature
weichinweng [Thu, 7 Mar 2019 07:25:43 +0000 (15:25 +0800)]
Hearing Aid Dump Audio Tool: Add No Start Cmd feature

When the HCI Snoop logs wraparound, the Hearing Aid Audio Control
Command "Start" is lost. For the case, we can enable No Start Cmd
feature to set a fake "Start" to extract audio data.

Bug: 127745964
Test: ./dump_hearingaid_audio.py -c1 1 -c2 3 -ns true btsnoop_hci.log
Change-Id: Id7f67da0d5476faf38352ab57339fed8e358bac6

5 years agoMerge "DO NOT MERGE: Use a weak pointer to deliver updates to AVRCP devices." into...
TreeHugger Robot [Sat, 9 Mar 2019 03:09:41 +0000 (03:09 +0000)]
Merge "DO NOT MERGE: Use a weak pointer to deliver updates to AVRCP devices." into pi-dev

5 years agoMerge "Use a weak pointer to deliver updates to AVRCP devices." am: 80eeba2af3
Ajay Panicker [Sat, 9 Mar 2019 00:33:09 +0000 (16:33 -0800)]
Merge "Use a weak pointer to deliver updates to AVRCP devices." am: 80eeba2af3
am: b37ce65dce

Change-Id: Ic2052e18456948bc21d88a13887ccb24eb965a4e

5 years agoMerge "Use a weak pointer to deliver updates to AVRCP devices."
Ajay Panicker [Sat, 9 Mar 2019 00:29:03 +0000 (16:29 -0800)]
Merge "Use a weak pointer to deliver updates to AVRCP devices."
am: 80eeba2af3

Change-Id: Ie9d8501153264be4a755ae88956b585df3c1bdad

5 years agoMerge "Use a weak pointer to deliver updates to AVRCP devices."
Treehugger Robot [Sat, 9 Mar 2019 00:18:09 +0000 (00:18 +0000)]
Merge "Use a weak pointer to deliver updates to AVRCP devices."

5 years agoDO NOT MERGE - Merge PPRL.190305.001 into stage-aosp-master
The Android Open Source Project [Fri, 8 Mar 2019 23:57:00 +0000 (15:57 -0800)]
DO NOT MERGE - Merge PPRL.190305.001 into stage-aosp-master

Bug: 127812889
Change-Id: I433e1bf1f64c8be7187bda2c22a2554a936e4d43

5 years agoDO NOT MERGE: Use a weak pointer to deliver updates to AVRCP devices.
Ajay Panicker [Fri, 14 Dec 2018 22:55:02 +0000 (14:55 -0800)]
DO NOT MERGE: Use a weak pointer to deliver updates to AVRCP devices.

If a device disconnects right before a update message gets queued, the
device becomes null and there is a crash when the callback for the
update executes on the disconnected device. This patch switches the
device reference from being Unretained to using a weak pointer so that
the callback just doesn't execute if the device is disconnected.

Bug: 120431125
Bug: 120445479
Test: Use the same test as b/120477414 as that bug causes a disconnect
at the same time as a media update.

Change-Id: I1dcc08e5c9866106e7ec0dad52505e34b42da600

5 years agoMerge "osi: explicitly release wakelock during turn off" am: b5414b30a0
Martin Brabham [Fri, 8 Mar 2019 23:00:39 +0000 (15:00 -0800)]
Merge "osi: explicitly release wakelock during turn off" am: b5414b30a0
am: 8b130a9a0d

Change-Id: I224709754de1c2318923168c3fbc9d5ea928a6e0

5 years agoMerge "osi: explicitly release wakelock during turn off"
Martin Brabham [Fri, 8 Mar 2019 22:33:29 +0000 (14:33 -0800)]
Merge "osi: explicitly release wakelock during turn off"
am: b5414b30a0

Change-Id: Ib3b886cfca8edc7faf4a3484e3fa80e14d799616

5 years agoMerge "osi: explicitly release wakelock during turn off"
Treehugger Robot [Fri, 8 Mar 2019 22:11:05 +0000 (22:11 +0000)]
Merge "osi: explicitly release wakelock during turn off"

5 years agoSnap for 5240760 from b9dd3863033facdd8608904e4dd59ff3cc52871b to pi-platform-release
android-build-team Robot [Fri, 8 Mar 2019 18:50:37 +0000 (18:50 +0000)]
Snap for 5240760 from b9dd3863033facdd8608904e4dd59ff3cc52871b to pi-platform-release

Change-Id: I8098c6f610e684be5b84a984b163088d255420b8

5 years agoUse a weak pointer to deliver updates to AVRCP devices.
Ajay Panicker [Fri, 14 Dec 2018 22:55:02 +0000 (14:55 -0800)]
Use a weak pointer to deliver updates to AVRCP devices.

If a device disconnects right before a update message gets queued, the
device becomes null and there is a crash when the callback for the
update executes on the disconnected device. This patch switches the
device reference from being Unretained to using a weak pointer so that
the callback just doesn't execute if the device is disconnected.

Bug: 120431125
Test: Use the same test as b/120477414 as that bug causes a disconnect
at the same time as a media update.

Change-Id: I1dcc08e5c9866106e7ec0dad52505e34b42da600

5 years ago[automerger skipped] [automerger] DO NOT MERGE Fix length for L2CAP config type EXT...
Hansong Zhang [Fri, 8 Mar 2019 01:20:23 +0000 (17:20 -0800)]
[automerger skipped] [automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am: 1fa0f29dbe am: 066e401178 am: c97a452b7c am: a2661852ce skipped: 3c413e34d2 am: ec1eca1dfb am: 294210a1a2 am: aa03b49791 -s ours
am: 3b4b1a0828

Change-Id: If82c4742558c51a3bb50d9c1b2809ec6980241f4

5 years ago[automerger skipped] [automerger] DO NOT MERGE Fix length for L2CAP config type EXT...
Hansong Zhang [Fri, 8 Mar 2019 00:39:34 +0000 (16:39 -0800)]
[automerger skipped] [automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am: 1fa0f29dbe am: 066e401178 am: c97a452b7c am: a2661852ce skipped: 3c413e34d2 am: ec1eca1dfb am: 294210a1a2
am: aa03b49791 -s ours
am skip reason: subject contains skip directive

Change-Id: I640047c7412d16eb5e48e15027eec92aeea13f5e

5 years ago[automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am: 1fa0f29dbe...
Hansong Zhang [Fri, 8 Mar 2019 00:09:35 +0000 (16:09 -0800)]
[automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am: 1fa0f29dbe am: 066e401178 am: c97a452b7c am: a2661852ce skipped: 3c413e34d2 am: ec1eca1dfb
am: 294210a1a2

Change-Id: I770c49c0620e4267d2134abbecc8b55193149227

5 years ago[automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am: 1fa0f29dbe...
Hansong Zhang [Thu, 7 Mar 2019 23:22:20 +0000 (15:22 -0800)]
[automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am: 1fa0f29dbe am: 066e401178 am: c97a452b7c am: a2661852ce skipped: 3c413e34d2
am: ec1eca1dfb

Change-Id: I8d891af970d9eea45384eff2967544adb6ffafc7

5 years ago[automerger skipped] Clear the link key when releasing security records
Jakub Pawlowski [Thu, 7 Mar 2019 23:08:11 +0000 (15:08 -0800)]
[automerger skipped] Clear the link key when releasing security records
am: fe73464f09 -s ours
am skip reason: change_id Ia571a2048fa5ca85c45b03b39d398e480aadb55a with SHA1 acb0a7eb17 is in history

Change-Id: I954b5b385d894ca4dfc155a7ef3c3866072c7263

5 years agoosi: explicitly release wakelock during turn off
Martin Brabham [Tue, 26 Feb 2019 22:54:58 +0000 (14:54 -0800)]
osi: explicitly release wakelock during turn off

Ensures we release the wakelock when turning off if any module hasn't stopped timers properly

Bug: 123289721
Test: atest net_test_bluetooth
Change-Id: Ibec5c262d2ec33ce22f2c8bb2a9b838e8d6b90a7

5 years agoClear the link key when releasing security records
Jakub Pawlowski [Tue, 5 Mar 2019 11:10:02 +0000 (12:10 +0100)]
Clear the link key when releasing security records

Test: compilation
Bug: 127479372
Change-Id: Ia571a2048fa5ca85c45b03b39d398e480aadb55a
Merged-In: Ia571a2048fa5ca85c45b03b39d398e480aadb55a
(cherry picked from commit acb0a7eb17ec327b46071bc482c8b9687b730fdc)

5 years agoAVRCP Controller Play Position Changed am: 6f22c6e83c
Joseph Pirozzo [Thu, 7 Mar 2019 19:40:35 +0000 (11:40 -0800)]
AVRCP Controller Play Position Changed am: 6f22c6e83c
am: 0b588803c8

Change-Id: I743f38c588c028ceb5f2e1053cbe04d4ac498242

5 years agoAVRCP Controller Play Position Changed
Joseph Pirozzo [Thu, 7 Mar 2019 19:13:18 +0000 (11:13 -0800)]
AVRCP Controller Play Position Changed
am: 6f22c6e83c

Change-Id: I0aeb82a4a8fc1619626d1b546adb8803bd2c1525

5 years ago[automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am: 1fa0f29dbe...
Android Build Merger (Role) [Thu, 7 Mar 2019 18:51:47 +0000 (18:51 +0000)]
[automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am: 1fa0f29dbe am: 066e401178 am: c97a452b7c am: a2661852ce skipped: 3c413e34d2

Change-Id: I5f0ad541fa702233322b96e5dd5c9d53233dea94

5 years ago[automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am: 1fa0f29dbe...
Android Build Merger (Role) [Thu, 7 Mar 2019 18:51:45 +0000 (18:51 +0000)]
[automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am: 1fa0f29dbe am: 066e401178 am: c97a452b7c am: a2661852ce

Change-Id: I6e56a6c02e5d7a3e23832c8e24550ae626a4dc6a

5 years ago[automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am: 1fa0f29dbe...
Android Build Merger (Role) [Thu, 7 Mar 2019 18:51:43 +0000 (18:51 +0000)]
[automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am: 1fa0f29dbe am: 066e401178 am: c97a452b7c

Change-Id: I747585195e3cf9137449dc777b64174a4a93c1f3

5 years ago[automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am: 1fa0f29dbe...
Android Build Merger (Role) [Thu, 7 Mar 2019 18:51:42 +0000 (18:51 +0000)]
[automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am: 1fa0f29dbe am: 066e401178

Change-Id: Ie35b3f093063898bc9d8cab84d221194f1ca007b

5 years ago[automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am: 1fa0f29dbe
Android Build Merger (Role) [Thu, 7 Mar 2019 18:51:38 +0000 (18:51 +0000)]
[automerger] DO NOT MERGE Fix length for L2CAP config type EXT FLOW am: 1fa0f29dbe

Change-Id: I24f0d31be7582e28ba9b96d836cd85bcf7f3ef4c

5 years agoDO NOT MERGE Fix length for L2CAP config type EXT FLOW
Hansong Zhang [Thu, 7 Mar 2019 18:50:04 +0000 (10:50 -0800)]
DO NOT MERGE Fix length for L2CAP config type EXT FLOW

Bug: 119870451
Test: POC
Change-Id: I11041dd03caad5569e930ff36b50fc9c2719c57f

5 years agoAVRCP Controller Play Position Changed
Joseph Pirozzo [Thu, 7 Mar 2019 00:00:21 +0000 (16:00 -0800)]
AVRCP Controller Play Position Changed

Implement code to register for the AVRCP notification
EVENT_PLAYBACK_POS_CHANGED such that playback position gets update on
skip to beginning, and during audio scrubbing from phone.

Bug: 119119967
Test: Play music, scrub audio to another position on phone, observe
playback position is in sync.

Change-Id: Ib8459dece7629622649ba6ed340dcd697c700b09

5 years agoFix for connection attempt after connection cancel am: 27870c9803
Jakub Pawlowski [Wed, 6 Mar 2019 21:24:14 +0000 (13:24 -0800)]
Fix for connection attempt after connection cancel am: 27870c9803
am: a9a610dfd2

Change-Id: Ib4f5446a7ef52f768bf5dbc8b5a316e7679f38b0

5 years agoFix for connection attempt after connection cancel
Jakub Pawlowski [Wed, 6 Mar 2019 21:01:46 +0000 (13:01 -0800)]
Fix for connection attempt after connection cancel
am: 27870c9803

Change-Id: I53d5bce8962f5e3789f0ae41c39bc916ffe85ca7

5 years agoFix for connection attempt after connection cancel
Jakub Pawlowski [Wed, 6 Mar 2019 11:47:59 +0000 (12:47 +0100)]
Fix for connection attempt after connection cancel

When connection attempt is canceled, we put the transport control block
(p_tcb) into CLOSING state, but we never close or free it.
For LE devices that have not established the connection, it's safe to
go straight to CLOSED state and free the p_tcb.

This issue was introduced during connection manager refactor.

Bug: 127242749
Test: GattConnectTest
Change-Id: I8e45ead9b071c60e95d2e60dcea8afdbaefb92b1

5 years agoMerge "Clear the link key when releasing security records" am: 6c228c5b58
Jakub Pawlowski [Wed, 6 Mar 2019 06:56:02 +0000 (22:56 -0800)]
Merge "Clear the link key when releasing security records" am: 6c228c5b58
am: 581a08707f

Change-Id: Id1a605ee6ada4cbc2c7e73b0012cf7835cab6308

5 years agoMerge "Clear the link key when releasing security records"
Jakub Pawlowski [Wed, 6 Mar 2019 06:51:59 +0000 (22:51 -0800)]
Merge "Clear the link key when releasing security records"
am: 6c228c5b58

Change-Id: I5989cec3929a07dbbf36d112c329ffb5c2d37433

5 years agoMerge "Clear the link key when releasing security records"
Jakub Pawlowski [Wed, 6 Mar 2019 06:40:54 +0000 (06:40 +0000)]
Merge "Clear the link key when releasing security records"

5 years agoMerge "Fall back to CLOCK_BOOTTIME if CLOCK_BOOTTIME_ALARM fails" am: bbec743e47
Alistair Strachan [Tue, 5 Mar 2019 23:19:23 +0000 (15:19 -0800)]
Merge "Fall back to CLOCK_BOOTTIME if CLOCK_BOOTTIME_ALARM fails" am: bbec743e47
am: 218c46a761

Change-Id: I1c4b43d6a028548748b25ab4852690e9d739e80b

5 years agoMerge "Fall back to CLOCK_BOOTTIME if CLOCK_BOOTTIME_ALARM fails"
Alistair Strachan [Tue, 5 Mar 2019 23:04:15 +0000 (15:04 -0800)]
Merge "Fall back to CLOCK_BOOTTIME if CLOCK_BOOTTIME_ALARM fails"
am: bbec743e47

Change-Id: I831f7c3f113b807e4ba73169d3ad00d2770e02b8

5 years agoMerge "Fall back to CLOCK_BOOTTIME if CLOCK_BOOTTIME_ALARM fails"
Treehugger Robot [Tue, 5 Mar 2019 20:57:51 +0000 (20:57 +0000)]
Merge "Fall back to CLOCK_BOOTTIME if CLOCK_BOOTTIME_ALARM fails"

5 years agoClear the link key when releasing security records
Jakub Pawlowski [Tue, 5 Mar 2019 11:10:02 +0000 (12:10 +0100)]
Clear the link key when releasing security records

Test: compilation
Bug: 127479372
Change-Id: Ia571a2048fa5ca85c45b03b39d398e480aadb55a

5 years agoAdd btm_free() to clean up btm properly am: 91b7bb254f
Fukai Wang [Tue, 5 Mar 2019 14:54:34 +0000 (06:54 -0800)]
Add btm_free() to clean up btm properly am: 91b7bb254f
am: 10a7c19849

Change-Id: Ia0c1ac7d7b55861e07ce85b73788a9ef04c629a3

5 years agoAdd btm_free() to clean up btm properly
Fukai Wang [Tue, 5 Mar 2019 14:50:23 +0000 (06:50 -0800)]
Add btm_free() to clean up btm properly
am: 91b7bb254f

Change-Id: I8e17143167c49d9b938ee7026aea94ea17a6ec79

5 years agoAdd btm_free() to clean up btm properly
Fukai Wang [Wed, 26 Jul 2017 01:35:21 +0000 (09:35 +0800)]
Add btm_free() to clean up btm properly

Test: Run AdapterRepeatedEnableDisable in system/bt/test with
kTestRepeatCount set to 1000.

Change-Id: I6d6650e735697bf97098827b5a9d39552c6616d8

5 years agoFall back to CLOCK_BOOTTIME if CLOCK_BOOTTIME_ALARM fails
Alistair Strachan [Sat, 2 Mar 2019 01:45:09 +0000 (17:45 -0800)]
Fall back to CLOCK_BOOTTIME if CLOCK_BOOTTIME_ALARM fails

If the cuttlefish device does not have an rtc device (such as the crosvm
VMM) the bt osi layer can promote crashes due to it not being able to
create a CLOCK_BOOTTIME_ALARM timer. Bring back a fallback but enable it
at runtime instead of compile time.

Bug: 126955943
Test: run with cuttlefish
Change-Id: I3ab0282b3e8fde776aa7b37d5772c8f62cf957bf

5 years agoMerge "bta_jv_act: Avoid writing through NULL/freed pointer" am: bed859917b
Greg Kaiser [Mon, 4 Mar 2019 19:46:10 +0000 (11:46 -0800)]
Merge "bta_jv_act: Avoid writing through NULL/freed pointer" am: bed859917b
am: 4e47db47af

Change-Id: I647d3c7f43633ee179575570a71242a43cebda35

5 years agoMerge "bta_jv_act: Avoid potential NULL dereference" am: b81c6e7f04
Greg Kaiser [Mon, 4 Mar 2019 19:44:52 +0000 (11:44 -0800)]
Merge "bta_jv_act: Avoid potential NULL dereference" am: b81c6e7f04
am: e4f250f1c8

Change-Id: Ib7f39147e8bc73b09668e0728fdc2ceb88497c30

5 years agoMerge "bta_jv_act: Avoid writing through NULL/freed pointer"
Greg Kaiser [Mon, 4 Mar 2019 19:33:20 +0000 (11:33 -0800)]
Merge "bta_jv_act: Avoid writing through NULL/freed pointer"
am: bed859917b

Change-Id: I30585d79f53f3647aa626f268f31cb16e29aaf0c

5 years agoMerge "bta_jv_act: Avoid potential NULL dereference"
Greg Kaiser [Mon, 4 Mar 2019 19:32:01 +0000 (11:32 -0800)]
Merge "bta_jv_act: Avoid potential NULL dereference"
am: b81c6e7f04

Change-Id: I6dcb774ab24978fb56d9d1e9c502e4fccad3dfd8

5 years agoMerge "bta_jv_act: Avoid writing through NULL/freed pointer"
Treehugger Robot [Mon, 4 Mar 2019 18:49:24 +0000 (18:49 +0000)]
Merge "bta_jv_act: Avoid writing through NULL/freed pointer"

5 years agoMerge "bta_jv_act: Avoid potential NULL dereference"
Treehugger Robot [Mon, 4 Mar 2019 18:45:11 +0000 (18:45 +0000)]
Merge "bta_jv_act: Avoid potential NULL dereference"

5 years agoMerge "When stopping Hearing Aids, send Stop cmd to devices" am: 937988bbf8
Stanley Tng [Mon, 4 Mar 2019 16:48:25 +0000 (08:48 -0800)]
Merge "When stopping Hearing Aids, send Stop cmd to devices" am: 937988bbf8
am: 9257bc15a4

Change-Id: I5cd00921b50fa4a5bd1e70d3234891c756e43a77

5 years agoMerge "When stopping Hearing Aids, send Stop cmd to devices"
Stanley Tng [Mon, 4 Mar 2019 16:39:15 +0000 (08:39 -0800)]
Merge "When stopping Hearing Aids, send Stop cmd to devices"
am: 937988bbf8

Change-Id: I08f9b717d39d3dec7589b407579ad51450ae25fe

5 years agoMerge "When stopping Hearing Aids, send Stop cmd to devices"
Treehugger Robot [Mon, 4 Mar 2019 16:20:17 +0000 (16:20 +0000)]
Merge "When stopping Hearing Aids, send Stop cmd to devices"

5 years agoMerge "Reland BluetoothAudio HAL: flip to be enabled by default" am: 86c4e25f06
Cheney Ni [Sat, 2 Mar 2019 01:12:31 +0000 (17:12 -0800)]
Merge "Reland BluetoothAudio HAL: flip to be enabled by default" am: 86c4e25f06
am: 3f8fc33318

Change-Id: I56fafc72f283025c13b60807217fb6a5d07509bf

5 years agoWhen stopping Hearing Aids, send Stop cmd to devices
Stanley Tng [Sat, 2 Mar 2019 00:54:11 +0000 (16:54 -0800)]
When stopping Hearing Aids, send Stop cmd to devices

This fixes the bug where the Stop command is not send to the Hearing
Aids devices which switching audio away from Hearing Aid.

Bug: 126465843
Test: Manual switching between A2DP and Hearing Aids while
playing audio.

Change-Id: Ifd8eaed7496e7e16c3948683c518d7627824d3e8

5 years agoMerge "Reland BluetoothAudio HAL: flip to be enabled by default"
Cheney Ni [Sat, 2 Mar 2019 00:58:13 +0000 (16:58 -0800)]
Merge "Reland BluetoothAudio HAL: flip to be enabled by default"
am: 86c4e25f06

Change-Id: I2bb2b5e4665ad38da3704ec73fc26704d6454748

5 years agoMerge "Reland BluetoothAudio HAL: flip to be enabled by default"
Treehugger Robot [Sat, 2 Mar 2019 00:37:41 +0000 (00:37 +0000)]
Merge "Reland BluetoothAudio HAL: flip to be enabled by default"

5 years agobta_jv_act: Avoid writing through NULL/freed pointer
Greg Kaiser [Fri, 1 Mar 2019 13:54:56 +0000 (05:54 -0800)]
bta_jv_act: Avoid writing through NULL/freed pointer

Before writing to 't->init_called', we know that 't' might be
NULL (there's an explicit check), so we add another check here
to assure it's not NULL.  Furthermore, we're possibly freeing
't' prior to writing to 't->init_called'.  So we set 't' NULL
in that case, so our new NULL check will let us avoid corrupting
memory we no longer own.

Test: TreeHugger
Change-Id: Iaa246d5190f5f99610dace24707e74a846df3cf3

5 years agobta_jv_act: Avoid potential NULL dereference
Greg Kaiser [Fri, 1 Mar 2019 13:34:26 +0000 (05:34 -0800)]
bta_jv_act: Avoid potential NULL dereference

When 'tc' is NULL (a condition we check for), 't' is never
set to a non-NULL value, yet is still dereferenced.  We move
our NULL check of 't' to make this code safe.

Test: TreeHugger
Change-Id: Ibfea74963dd763401ea18ccdd24a51ecd0baefc5

5 years agoMerge "Reland Start the media encoder for a successful BTA_AV_START_EVT" am: a55c26ab5f
Cheney Ni [Fri, 1 Mar 2019 02:56:52 +0000 (18:56 -0800)]
Merge "Reland Start the media encoder for a successful BTA_AV_START_EVT" am: a55c26ab5f
am: 5b140b11d0

Change-Id: I33775fe6b07b73cdd8ee591e3730588bb7e69c8f

5 years agoMerge "Reland Start the media encoder for a successful BTA_AV_START_EVT"
Cheney Ni [Fri, 1 Mar 2019 02:48:43 +0000 (18:48 -0800)]
Merge "Reland Start the media encoder for a successful BTA_AV_START_EVT"
am: a55c26ab5f

Change-Id: Iec8d2e35dfc2eae1c841069b372de81079928f05

5 years agoMerge "Reland Start the media encoder for a successful BTA_AV_START_EVT"
Treehugger Robot [Fri, 1 Mar 2019 02:33:47 +0000 (02:33 +0000)]
Merge "Reland Start the media encoder for a successful BTA_AV_START_EVT"

5 years agoMerge "Fix a bunch of incorrect syntax statements" am: 84cf37a3c4
Yi Kong [Fri, 1 Mar 2019 01:16:43 +0000 (17:16 -0800)]
Merge "Fix a bunch of incorrect syntax statements" am: 84cf37a3c4
am: 5809432605

Change-Id: Ic82b6dcfb71fe987e345dbe6b52ad94cb996c6f0

5 years agoReland BluetoothAudio HAL: flip to be enabled by default
Cheney Ni [Sat, 23 Feb 2019 18:14:20 +0000 (02:14 +0800)]
Reland BluetoothAudio HAL: flip to be enabled by default

Bug: 126304229
Test: Switch BluetoothAudio HAL and A2DP offload manully
Change-Id: I936e6c9e9fa3e35508ec435dcff8fa54b3f4d883
Merged-In: I936e6c9e9fa3e35508ec435dcff8fa54b3f4d883