OSDN Git Service

android-x86/system-bt.git
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 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

5 years agoReland Start the media encoder for a successful BTA_AV_START_EVT
Cheney Ni [Tue, 26 Feb 2019 03:56:25 +0000 (11:56 +0800)]
Reland Start the media encoder for a successful BTA_AV_START_EVT

When phone is A2DP source and receives BTA_AV_START_EVT, we need to
proceed to start the encoder of software or offload, and ack back to
audio HAL. When issue happened, the remote as the AVDTP_START initiator
triggered BTA_AV_START_EVT, and caused we did not start the encoder to
stream the audio. This change simplified the handler of BTA_AV_START_EVT
to always start the encoder for a successful event, and ack to audio HAL
if we are AVDTP initiator.

Bug: 126136429
Test: A2DP play and paused manually on Pixel 2 and Pixel 3
Change-Id: Ieb479fd6f42da1bf37f8f32af7794d86e04cac1b
Merged-In: Ieb479fd6f42da1bf37f8f32af7794d86e04cac1b

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

Change-Id: Ifd68da108a3cfb58322e4bc35f6d15ba0c2f23aa

5 years agoMerge "Fix a bunch of incorrect syntax statements"
Yi Kong [Fri, 1 Mar 2019 00:30:53 +0000 (00:30 +0000)]
Merge "Fix a bunch of incorrect syntax statements"

5 years agoFix a bunch of incorrect syntax statements
Yi Kong [Fri, 1 Mar 2019 00:05:09 +0000 (16:05 -0800)]
Fix a bunch of incorrect syntax statements

Found by the upcoming compiler update.

Test: m checkbuild
Change-Id: Ieafcddde7c91de990aaf7bf42de58039ba5555cd

5 years agoMerge "Audio HAL: Check if ProviderFactory is null before printing debugging" am...
Sal Savage [Thu, 28 Feb 2019 19:41:38 +0000 (11:41 -0800)]
Merge "Audio HAL: Check if ProviderFactory is null before printing debugging" am: 32202930cd
am: c67269ce67

Change-Id: I58025c4525ed4b741f2b7b9ce02c775c50f75eea

5 years agoMerge "Audio HAL: Check if ProviderFactory is null before printing debugging"
Sal Savage [Thu, 28 Feb 2019 19:33:24 +0000 (11:33 -0800)]
Merge "Audio HAL: Check if ProviderFactory is null before printing debugging"
am: 32202930cd

Change-Id: I047574f44d3194f23774c3c75839657674174217

5 years agoMerge "Audio HAL: Check if ProviderFactory is null before printing debugging"
Sal Savage [Thu, 28 Feb 2019 19:09:49 +0000 (19:09 +0000)]
Merge "Audio HAL: Check if ProviderFactory is null before printing debugging"

5 years agoAudio HAL: Check if ProviderFactory is null before printing debugging
Sal Savage [Wed, 27 Feb 2019 20:23:07 +0000 (12:23 -0800)]
Audio HAL: Check if ProviderFactory is null before printing debugging

Test: Build and flash on auto hardware to make sure the error went away
Change-Id: I90a8f3a0e0cbc23e7e4a2edcead46402f44ef3a4

5 years agoReactor-based alarm implementation am: 1499636274
Hansong Zhang [Wed, 27 Feb 2019 00:06:01 +0000 (16:06 -0800)]
Reactor-based alarm implementation am: 1499636274
am: e9a215cee5

Change-Id: Ia5afa574b5a1ae4291fd8881f68c2e45ce247d05

5 years agoReactor-based threading model am: 7972cd5401
Hansong Zhang [Wed, 27 Feb 2019 00:05:43 +0000 (16:05 -0800)]
Reactor-based threading model am: 7972cd5401
am: 53453ce4b6

Change-Id: I4574360ef759713e35a4085793227bfdb98e93b4

5 years agoReactor-based alarm implementation
Hansong Zhang [Tue, 26 Feb 2019 23:53:42 +0000 (15:53 -0800)]
Reactor-based alarm implementation
am: 1499636274

Change-Id: I412be63f28f9f4d26b7d7bd9a58c831d597ea0f1

5 years agoReactor-based threading model
Hansong Zhang [Tue, 26 Feb 2019 23:53:24 +0000 (15:53 -0800)]
Reactor-based threading model
am: 7972cd5401

Change-Id: Ibf74ba5506089a6b7b2326e44db963238113f247

5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-maste...
Xin Li [Tue, 26 Feb 2019 03:58:00 +0000 (19:58 -0800)]
[automerger skipped] Merge "DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master" into stage-aosp-master
am: b97284078a -s ours
am skip reason: subject contains skip directive

Change-Id: I4bd6025a21607da5b2ccd79c8948497f48186649

5 years agoReactor-based alarm implementation
Hansong Zhang [Wed, 12 Dec 2018 22:52:00 +0000 (14:52 -0800)]
Reactor-based alarm implementation

* Use Reactor+Thread (common/thread.h) to replace existing
  libchrome-based message_loop_thread
* Use Alarm/RepeatingAlarm to replace existing Timer, by using
  kernel-based timerfd, to make all components unified

Bug: 110303473
Test: run unit test, and run benchmark
Change-Id: I6d6bc8dc3897649d0f6cc00ce0aa7054a3ddc09d

5 years agoReactor-based threading model
Hansong Zhang [Wed, 12 Dec 2018 22:52:00 +0000 (14:52 -0800)]
Reactor-based threading model

* Use Reactor+Thread (common/thread.h) to replace existing
  libchrome-based message_loop_thread
* Use Handler to implement multiple message queue per thread, by using
  kernel-based eventfd

Test: run unit test, and run benchmark
Change-Id: Idd2e4ef99fb9a7b2c0956de0e372c67a1098f1b6

5 years ago[automerger skipped] DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master
Xin Li [Tue, 26 Feb 2019 00:19:46 +0000 (16:19 -0800)]
[automerger skipped] DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master
am: 00f9d294b1 -s ours
am skip reason: subject contains skip directive

Change-Id: I5dc1cb04bd75ea5c465ff1671c0ea0372f42ed4b

5 years agoMerge "clang: Set to 120 characters per line" am: b228330d0e
Hansong Zhang [Mon, 25 Feb 2019 21:12:34 +0000 (13:12 -0800)]
Merge "clang: Set to 120 characters per line" am: b228330d0e
am: a0cd616877

Change-Id: I6f8e27e643a8c9fc7d4432775be85ba2917fb76c

5 years agoDon't require A2DP codec information when initialize audio_hal_interface am: 8552e95c46
Cheney Ni [Mon, 25 Feb 2019 21:12:02 +0000 (13:12 -0800)]
Don't require A2DP codec information when initialize audio_hal_interface am: 8552e95c46
am: 5024f3c93c

Change-Id: I71af6133894791a2ffe21a0d5c00ac250c224070

5 years agoMerge "Fix mtu assignment with correct value" into pi-dev
Ted Wang [Sat, 23 Feb 2019 07:38:23 +0000 (23:38 -0800)]
Merge "Fix mtu assignment with correct value" into pi-dev
am: 2a1ee659ea

Change-Id: Idb209fa6e679af4bd1418730ecb805dbcd83af95

5 years agoMerge "Fix mtu assignment with correct value" into pi-dev
TreeHugger Robot [Sat, 23 Feb 2019 07:30:06 +0000 (07:30 +0000)]
Merge "Fix mtu assignment with correct value" into pi-dev

5 years agoMerge "DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master" into stage-aosp...
Xin Li [Sat, 23 Feb 2019 00:39:20 +0000 (00:39 +0000)]
Merge "DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master" into stage-aosp-master

5 years agoMerge "clang: Set to 120 characters per line"
Hansong Zhang [Fri, 22 Feb 2019 06:54:07 +0000 (22:54 -0800)]
Merge "clang: Set to 120 characters per line"
am: b228330d0e

Change-Id: I28e6c28cdc9ec2a56fe0cc4c9d1bf9f7d7c84d5e

5 years agoMerge "clang: Set to 120 characters per line"
Treehugger Robot [Fri, 22 Feb 2019 06:41:12 +0000 (06:41 +0000)]
Merge "clang: Set to 120 characters per line"

5 years ago[automerger skipped] Merge "Do not close dump file descriptor" into pi-dev
vich [Fri, 22 Feb 2019 05:17:57 +0000 (21:17 -0800)]
[automerger skipped] Merge "Do not close dump file descriptor" into pi-dev
am: fdd0bb033f -s ours
am skip reason: change_id Id351b5429cb17b48e37313850a363d739d78c4a1 with SHA1 e8ab460e35 is in history

Change-Id: Ic52d4819823fe29d07f4ae668e7c8f78e2133d45

5 years agoMerge "Do not close dump file descriptor" into pi-dev
TreeHugger Robot [Fri, 22 Feb 2019 05:04:53 +0000 (05:04 +0000)]
Merge "Do not close dump file descriptor" into pi-dev

5 years agoMerge "Fix for Bluetooth device name is resetting to default name after reboot" into...
Aiswarya Cyriac [Thu, 21 Feb 2019 23:53:59 +0000 (15:53 -0800)]
Merge "Fix for Bluetooth device name is resetting to default name after reboot" into pi-dev
am: 80c748c407

Change-Id: If88101d9dd7c3dc8427f497674602fdd50b8b9fc

5 years agoMerge "Fix for Bluetooth device name is resetting to default name after reboot" into...
TreeHugger Robot [Thu, 21 Feb 2019 23:44:19 +0000 (23:44 +0000)]
Merge "Fix for Bluetooth device name is resetting to default name after reboot" into pi-dev

5 years agoclang: Set to 120 characters per line
Hansong Zhang [Wed, 9 Jan 2019 03:39:22 +0000 (19:39 -0800)]
clang: Set to 120 characters per line

Modern terminals and text editors can display 120 characters

Test: compile
Change-Id: I799de73e622d045ba997e749eb15d5f786764fdd

5 years agoDon't require A2DP codec information when initialize audio_hal_interface
Cheney Ni [Thu, 21 Feb 2019 19:54:46 +0000 (11:54 -0800)]
Don't require A2DP codec information when initialize audio_hal_interface
am: 8552e95c46

Change-Id: I4f64760c7f30ca670637d7dfecea7b70e015054f

5 years agoDO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master
Xin Li [Thu, 21 Feb 2019 19:27:44 +0000 (11:27 -0800)]
DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master

Bug: 120848293
Change-Id: I1ef532e784869beb11b0487c266063f903523e95

5 years agoDon't require A2DP codec information when initialize audio_hal_interface
Cheney Ni [Thu, 21 Feb 2019 11:54:10 +0000 (19:54 +0800)]
Don't require A2DP codec information when initialize audio_hal_interface

Before set active device, it is normal that can't get the current codec
information, and will be setup later. If we query the codec and break
the init, it will cause the stack can't use Bluetooth Audio HAL for
A2DP, so remove here.

Bug: 125245738
Test: Connect / disconnect multiple A2DP manually when playing
Change-Id: Ic5493141cfba60115783c03fac4faf56a7a64b07

5 years agoFix crash when more than 2 PHYs specified for connection am: d20051b26a
Kim Schulz [Wed, 20 Feb 2019 21:16:51 +0000 (13:16 -0800)]
Fix crash when more than 2 PHYs specified for connection am: d20051b26a
am: 8919facfd7

Change-Id: I1856eddfa20e13b24fd3eaad4530d9fab4cb9752

5 years agoMerge changes I58ceea50,I73319018 am: fcbe660320
Cheney Ni [Wed, 20 Feb 2019 21:09:32 +0000 (13:09 -0800)]
Merge changes I58ceea50,I73319018 am: fcbe660320
am: abfb80dacb

Change-Id: Icd5788b1aaec2cf2d878423bb1db81fec96bd752

5 years agoFix crash when more than 2 PHYs specified for connection
Kim Schulz [Wed, 20 Feb 2019 20:44:47 +0000 (12:44 -0800)]
Fix crash when more than 2 PHYs specified for connection
am: d20051b26a

Change-Id: I05749d14830cf2217dab8ae8fc30660cc30b2950

5 years agoMerge changes I58ceea50,I73319018
Cheney Ni [Wed, 20 Feb 2019 20:28:19 +0000 (12:28 -0800)]
Merge changes I58ceea50,I73319018
am: fcbe660320

Change-Id: Id62babcd79cd2565e3a537b838dc3814dfeb048e

5 years agoFix crash when more than 2 PHYs specified for connection
Kim Schulz [Wed, 20 Feb 2019 15:33:38 +0000 (16:33 +0100)]
Fix crash when more than 2 PHYs specified for connection

Bug: 124793834
Change-Id: Ide304e22d4b390f252ba9577aeb5d9a67fa1a1cd

5 years ago[automerger skipped] DO NOT MERGE - Merge PPRL.190205.001 into master am: b5d88246be...
Xin Li [Wed, 20 Feb 2019 17:31:23 +0000 (09:31 -0800)]
[automerger skipped] DO NOT MERGE - Merge PPRL.190205.001 into master am: b5d88246be -s ours
am: 74e82c1777 -s ours
am skip reason: subject contains skip directive

Change-Id: Ie26f39b03fe7b51d92f3da9e4fdd2c1ecc6ba270

5 years agoMerge changes I58ceea50,I73319018
Treehugger Robot [Wed, 20 Feb 2019 17:30:52 +0000 (17:30 +0000)]
Merge changes I58ceea50,I73319018

* changes:
  Check A2DP UIPC state before feeding data
  Break the control early when the stream state of Bluetooth Audio changed

5 years ago[automerger skipped] DO NOT MERGE - Merge PPRL.190205.001 into master
Xin Li [Wed, 20 Feb 2019 16:54:51 +0000 (08:54 -0800)]
[automerger skipped] DO NOT MERGE - Merge PPRL.190205.001 into master
am: b5d88246be -s ours
am skip reason: subject contains skip directive

Change-Id: I7fbd5d8dca44de835df547ec2336571b3ee6f2d0

5 years agoCheck A2DP UIPC state before feeding data
Cheney Ni [Wed, 20 Feb 2019 13:41:33 +0000 (21:41 +0800)]
Check A2DP UIPC state before feeding data

When using the new Bluetooth Audio HAL, A2DP UIPC won't be initialized
and can't be accessed. This change checks the UIPC is valid before
accessing, and prevents unexpected SIGSEGV.

Bug: 124645960
Test: Start / pause A2DP manually
Change-Id: I58ceea503d0c159817167bb3ca3b99b6f933bf23

5 years agoBreak the control early when the stream state of Bluetooth Audio changed
Cheney Ni [Wed, 20 Feb 2019 06:27:06 +0000 (14:27 +0800)]
Break the control early when the stream state of Bluetooth Audio changed

When switching active device, the Bluetooth stack would first stop the
datapath while the audio HAL was still streaming, and the failure by
busy was returned to HAL. Since the control status was returned, HAL
should not ignore the result or kept waiting, because the stack wouldn't
queue the control.

Bug: 124838461
Test: switch the codec and active device manually
Change-Id: I73319018f726590c52c07547af90fac57114b58a

5 years agoDO NOT MERGE - Merge PPRL.190205.001 into master
Xin Li [Mon, 18 Feb 2019 23:58:54 +0000 (15:58 -0800)]
DO NOT MERGE - Merge PPRL.190205.001 into master

Bug: 124234733
Change-Id: I260dc329f1d83ef8a9cab7e9caee32ba47277477

5 years agoMerge "Add support for a2dp offload HAL ver2.0" am: 10cad005f5
Satish kumar sugasi [Mon, 18 Feb 2019 03:15:25 +0000 (19:15 -0800)]
Merge "Add support for a2dp offload HAL ver2.0" am: 10cad005f5
am: f7fe77da3c

Change-Id: I3c7d70aac14c1544a244b7dcb91c6bdb1280b491

5 years agoMerge "Add support for a2dp offload HAL ver2.0"
Satish kumar sugasi [Mon, 18 Feb 2019 03:12:19 +0000 (19:12 -0800)]
Merge "Add support for a2dp offload HAL ver2.0"
am: 10cad005f5

Change-Id: Ic77b64e6703e89599399c8f857647d58c29d3310

5 years agoMerge "Add support for a2dp offload HAL ver2.0"
Treehugger Robot [Mon, 18 Feb 2019 03:01:45 +0000 (03:01 +0000)]
Merge "Add support for a2dp offload HAL ver2.0"

5 years agoMerge "Rename a2dp_software_encoding to a2dp_encoding" am: ad392e481f
Hansong Zhang [Sat, 16 Feb 2019 04:25:52 +0000 (20:25 -0800)]
Merge "Rename a2dp_software_encoding to a2dp_encoding" am: ad392e481f
am: 8994b9c6d3

Change-Id: I22e9e6d052870e04aae0839df13b049d1ade1422

5 years agoMerge "Rename a2dp_software_encoding to a2dp_encoding"
Hansong Zhang [Sat, 16 Feb 2019 04:10:36 +0000 (20:10 -0800)]
Merge "Rename a2dp_software_encoding to a2dp_encoding"
am: ad392e481f

Change-Id: I24ca935afc634a93f62ed9b72ea23bbe244cece6

5 years agoMerge "Rename a2dp_software_encoding to a2dp_encoding"
Treehugger Robot [Sat, 16 Feb 2019 04:05:34 +0000 (04:05 +0000)]
Merge "Rename a2dp_software_encoding to a2dp_encoding"

5 years agoAdd support for a2dp offload HAL ver2.0
Satish kumar sugasi [Thu, 7 Feb 2019 22:40:35 +0000 (14:40 -0800)]
Add support for a2dp offload HAL ver2.0

Test: manual
Change-Id: Id5323b3c22d6aff6c194e3835eefeb22e32145c9

5 years agoRename a2dp_software_encoding to a2dp_encoding
Hansong Zhang [Sat, 16 Feb 2019 00:19:44 +0000 (16:19 -0800)]
Rename a2dp_software_encoding to a2dp_encoding

Change-Id: Ief1c8cb1a768902a719c4956947d16081ad20add

5 years agoRemove unnecessary unlock am: 9ddb2adeb6
Cheney Ni [Fri, 15 Feb 2019 19:37:58 +0000 (11:37 -0800)]
Remove unnecessary unlock am: 9ddb2adeb6
am: 8e25ada513

Change-Id: I130a1e086998a57d46c81e00c3323c40027e6c01