OSDN Git Service

android-x86/system-bt.git
5 years ago[automerger skipped] Merge "DO NOT MERGE: osi: Offload mutex pointer to local scope...
Martin Brabham [Wed, 8 May 2019 17:33:14 +0000 (10:33 -0700)]
[automerger skipped] Merge "DO NOT MERGE: osi: Offload mutex pointer to local scope" into oc-dev am: 99a0259cf3 am: dd2e11092a am: 1a99efee01 -s ours am: 62d14464c4 -s ours
am: dd0670dde1

Change-Id: Idbbf2494cc1c6b8caf7221ad4bb741bef9b24924

5 years ago[automerger skipped] Merge "DO NOT MERGE: osi: Offload mutex pointer to local scope...
Martin Brabham [Wed, 8 May 2019 17:04:14 +0000 (10:04 -0700)]
[automerger skipped] Merge "DO NOT MERGE: osi: Offload mutex pointer to local scope" into oc-dev am: 99a0259cf3 am: dd2e11092a am: 1a99efee01 -s ours
am: 62d14464c4 -s ours
am skip reason: subject contains skip directive

Change-Id: Idc3fbc8ff1f84825f1407e80388632d7591ad347

5 years ago[automerger skipped] Merge "DO NOT MERGE: osi: Offload mutex pointer to local scope...
Martin Brabham [Wed, 8 May 2019 16:58:11 +0000 (09:58 -0700)]
[automerger skipped] Merge "DO NOT MERGE: osi: Offload mutex pointer to local scope" into oc-dev am: 99a0259cf3 am: dd2e11092a
am: 1a99efee01 -s ours
am skip reason: subject contains skip directive

Change-Id: Id031a291948c84874a9d70b87cfe4ed57f1ed389

5 years agoMerge "DO NOT MERGE: osi: Offload mutex pointer to local scope" into oc-dev am: 99a02...
Martin Brabham [Wed, 8 May 2019 16:45:37 +0000 (09:45 -0700)]
Merge "DO NOT MERGE: osi: Offload mutex pointer to local scope" into oc-dev am: 99a0259cf3
am: dd2e11092a

Change-Id: I5dcb7baaf68e522a0604a30c53be5d61bf315a73

5 years agoMerge "DO NOT MERGE: osi: Offload mutex pointer to local scope" into oc-dev
Martin Brabham [Wed, 8 May 2019 16:39:30 +0000 (09:39 -0700)]
Merge "DO NOT MERGE: osi: Offload mutex pointer to local scope" into oc-dev
am: 99a0259cf3

Change-Id: Ic593d9a4c421539181402c39860db5771a8f1417

5 years agoMerge "DO NOT MERGE: osi: Offload mutex pointer to local scope" into oc-dev
TreeHugger Robot [Wed, 8 May 2019 16:30:02 +0000 (16:30 +0000)]
Merge "DO NOT MERGE: osi: Offload mutex pointer to local scope" into oc-dev

5 years agoModuleRegistry: Start() injected modules am: 30fa258cf8
Hansong Zhang [Wed, 8 May 2019 06:32:06 +0000 (23:32 -0700)]
ModuleRegistry: Start() injected modules am: 30fa258cf8
am: 104b1ffd15

Change-Id: Ic7896c719e5bf52594141f2c6e6c2422614ab1bf

5 years ago[automerger skipped] Merge "Fix potential OOB read in sdpu_get_len_from_type" into...
Ted Wang [Wed, 8 May 2019 06:30:23 +0000 (23:30 -0700)]
[automerger skipped] Merge "Fix potential OOB read in sdpu_get_len_from_type" into oc-dev am: cd20f25a79 -s ours am: d76a5a7532 -s ours am: 5d37d19091 -s ours am: 22ce813ca2 -s ours
am: b9400cdabd -s ours
am skip reason: change_id I3755e13ee0a7e22ffd5f48fca909610a26b09d0a with SHA1 1243f8da33 is in history

Change-Id: I9e5523bf9d1b8b5cb6c108324c056e2d1b615e6c

5 years agoModuleRegistry: Start() injected modules
Hansong Zhang [Wed, 8 May 2019 06:10:49 +0000 (23:10 -0700)]
ModuleRegistry: Start() injected modules
am: 30fa258cf8

Change-Id: I096fdf186f33e9e690e5dd564f4b5ac28b71701b

5 years ago[automerger skipped] Merge "Fix potential OOB read in sdpu_get_len_from_type" into...
Ted Wang [Wed, 8 May 2019 05:51:52 +0000 (22:51 -0700)]
[automerger skipped] Merge "Fix potential OOB read in sdpu_get_len_from_type" into oc-dev am: cd20f25a79 -s ours am: d76a5a7532 -s ours am: 5d37d19091 -s ours
am: 22ce813ca2 -s ours
am skip reason: change_id I3755e13ee0a7e22ffd5f48fca909610a26b09d0a with SHA1 1243f8da33 is in history

Change-Id: Id0f8d3d489e5b9b19697c6345bf7da7586fc894e

5 years ago[automerger skipped] Merge "Fix potential OOB read in sdpu_get_len_from_type" into...
Ted Wang [Wed, 8 May 2019 04:59:25 +0000 (21:59 -0700)]
[automerger skipped] Merge "Fix potential OOB read in sdpu_get_len_from_type" into oc-dev am: cd20f25a79 -s ours am: d76a5a7532 -s ours
am: 5d37d19091 -s ours
am skip reason: change_id I3755e13ee0a7e22ffd5f48fca909610a26b09d0a with SHA1 08202bdcbe is in history

Change-Id: I7df90c8eb729337eb6d6e4425214676a9d0dc32d

5 years ago[automerger skipped] Merge "Fix potential OOB read in sdpu_get_len_from_type" into...
Ted Wang [Wed, 8 May 2019 04:26:09 +0000 (21:26 -0700)]
[automerger skipped] Merge "Fix potential OOB read in sdpu_get_len_from_type" into oc-dev am: cd20f25a79 -s ours
am: d76a5a7532 -s ours
am skip reason: change_id I3755e13ee0a7e22ffd5f48fca909610a26b09d0a with SHA1 08202bdcbe is in history

Change-Id: Ic1064df1d0f2d24d74e030112040e4b53101e7ba

5 years ago[automerger skipped] Merge "Fix potential OOB read in sdpu_get_len_from_type" into...
Ted Wang [Wed, 8 May 2019 04:06:54 +0000 (21:06 -0700)]
[automerger skipped] Merge "Fix potential OOB read in sdpu_get_len_from_type" into oc-dev
am: cd20f25a79 -s ours
am skip reason: change_id I3755e13ee0a7e22ffd5f48fca909610a26b09d0a with SHA1 08202bdcbe is in history

Change-Id: I8465f167bb3054270c8ab3222835bca9096f8212

5 years agoMerge "Fix potential OOB read in sdpu_get_len_from_type" into oc-dev
TreeHugger Robot [Wed, 8 May 2019 03:35:08 +0000 (03:35 +0000)]
Merge "Fix potential OOB read in sdpu_get_len_from_type" into oc-dev

5 years agoModuleRegistry: Start() injected modules
Hansong Zhang [Tue, 7 May 2019 23:40:45 +0000 (16:40 -0700)]
ModuleRegistry: Start() injected modules

Call Start() on injected modules, and set registry_ and handler_
properly

Test: atest --host bluetooth_test_gd
Change-Id: Id655d537982eab285549ff797a907dabb15ca64d

5 years ago[automerger skipped] [automerger] DO NOT MERGE Fix potential OOB read in sdpu_get_len...
Ted Wang [Tue, 7 May 2019 22:43:54 +0000 (15:43 -0700)]
[automerger skipped] [automerger] DO NOT MERGE Fix potential OOB read in sdpu_get_len_from_type am: 08202bdcbe am: d887336efe am: e26c142041 am: 9683021f70 skipped: d691b2dd00 am: 5c82fb9354 am: ee88b904c5 am: 6e197e9332 -s ours am: b7cbe692a1 -s ours
am: 35eaaa76c6 -s ours
am skip reason: change_id I3755e13ee0a7e22ffd5f48fca909610a26b09d0a with SHA1 1243f8da33 is in history

Change-Id: I2f2ea464558af3b98e451e44742ca33306ce72f8

5 years ago[automerger skipped] [automerger] DO NOT MERGE Fix potential OOB read in sdpu_get_len...
Ted Wang [Tue, 7 May 2019 22:30:17 +0000 (15:30 -0700)]
[automerger skipped] [automerger] DO NOT MERGE Fix potential OOB read in sdpu_get_len_from_type am: 08202bdcbe am: d887336efe am: e26c142041 am: 9683021f70 skipped: d691b2dd00 am: 5c82fb9354 am: ee88b904c5 am: 6e197e9332 -s ours
am: b7cbe692a1 -s ours
am skip reason: subject contains skip directive

Change-Id: If1c8417e32909db7846cf1256dbb5b19642983e1

5 years ago[automerger skipped] [automerger] DO NOT MERGE Fix potential OOB read in sdpu_get_len...
Ted Wang [Tue, 7 May 2019 22:27:13 +0000 (15:27 -0700)]
[automerger skipped] [automerger] DO NOT MERGE Fix potential OOB read in sdpu_get_len_from_type am: 08202bdcbe am: d887336efe am: e26c142041 am: 9683021f70 skipped: d691b2dd00 am: 5c82fb9354 am: ee88b904c5
am: 6e197e9332 -s ours
am skip reason: subject contains skip directive

Change-Id: I34a6387c4d3eb5eebe2a94b6ec84a409a6f20808

5 years ago[automerger] DO NOT MERGE Fix potential OOB read in sdpu_get_len_from_type am: 08202b...
Ted Wang [Tue, 7 May 2019 22:14:26 +0000 (15:14 -0700)]
[automerger] DO NOT MERGE Fix potential OOB read in sdpu_get_len_from_type am: 08202bdcbe am: d887336efe am: e26c142041 am: 9683021f70 skipped: d691b2dd00 am: 5c82fb9354
am: ee88b904c5

Change-Id: I1aa9a18fd7e1ccdcc89227d732a7ab758d62ae18

5 years ago[automerger] DO NOT MERGE Fix potential OOB read in sdpu_get_len_from_type am: 08202b...
Ted Wang [Tue, 7 May 2019 22:01:21 +0000 (15:01 -0700)]
[automerger] DO NOT MERGE Fix potential OOB read in sdpu_get_len_from_type am: 08202bdcbe am: d887336efe am: e26c142041 am: 9683021f70 skipped: d691b2dd00
am: 5c82fb9354

Change-Id: Ia977c5381d95449adf2e20692c23dcd00c9b3fd9

5 years agoMerge "Add benchmark for queue" am: 7ec4793b50
Chienyuan [Tue, 7 May 2019 21:53:36 +0000 (14:53 -0700)]
Merge "Add benchmark for queue" am: 7ec4793b50
am: d6088efbdc

Change-Id: Ieab227b589d2c6681ba1d65d989f2f04b33cff8a

5 years agoMerge "Add benchmark for queue"
Chienyuan [Tue, 7 May 2019 21:44:03 +0000 (14:44 -0700)]
Merge "Add benchmark for queue"
am: 7ec4793b50

Change-Id: I9586994386bbf51fae402424b66c3fa955c29a76

5 years agoMerge "Add benchmark for queue"
Treehugger Robot [Tue, 7 May 2019 21:36:41 +0000 (21:36 +0000)]
Merge "Add benchmark for queue"

5 years agoMerge "[automerger skipped] Merge "Handling of incoming AVRCP Controller connections...
Android Build Merger (Role) [Tue, 7 May 2019 21:14:39 +0000 (21:14 +0000)]
Merge "[automerger skipped] Merge "Handling of incoming AVRCP Controller connections" into qt-dev am: 0c6ec01d88 -s ours am skip reason: change_id I15abd2fd4bc963889d6cdfe9364a651e2b4c3c10 with SHA1 03806fcdd6 is in history" into qt-dev-plus-aosp

5 years ago[automerger skipped] Merge "Handling of incoming AVRCP Controller connections" into...
Sal Savage [Tue, 7 May 2019 21:14:27 +0000 (14:14 -0700)]
[automerger skipped] Merge "Handling of incoming AVRCP Controller connections" into qt-dev
am: 0c6ec01d88 -s ours
am skip reason: change_id I15abd2fd4bc963889d6cdfe9364a651e2b4c3c10 with SHA1 03806fcdd6 is in history

Change-Id: I0586d4d5cc16d8581693c6c6a64298dbb195d550

5 years ago[automerger skipped] Merge "Handling of incoming AVRCP Controller connections" into...
Sal Savage [Tue, 7 May 2019 20:49:56 +0000 (13:49 -0700)]
[automerger skipped] Merge "Handling of incoming AVRCP Controller connections" into qt-dev
am: 0c6ec01d88 -s ours
am skip reason: change_id I15abd2fd4bc963889d6cdfe9364a651e2b4c3c10 with SHA1 03806fcdd6 is in history

Change-Id: Ife7acbf21b18c8eb572d93835ac3b6b0a513e3b8

5 years agoMerge "Handling of incoming AVRCP Controller connections" into qt-dev
Sal Savage [Tue, 7 May 2019 20:20:22 +0000 (20:20 +0000)]
Merge "Handling of incoming AVRCP Controller connections" into qt-dev

5 years ago[automerger skipped] DO NOT MERGE: osi: Offload mutex pointer to local scope am:...
Martin Brabham [Tue, 7 May 2019 20:13:16 +0000 (13:13 -0700)]
[automerger skipped] DO NOT MERGE: osi: Offload mutex pointer to local scope am: 947c58718f -s ours
am: 67014f8193

Change-Id: I241c3aacf9b8c6b72dc9e13af3731519cc6d50b0

5 years ago[automerger skipped] DO NOT MERGE: osi: Offload mutex pointer to local scope
Martin Brabham [Tue, 7 May 2019 19:51:58 +0000 (12:51 -0700)]
[automerger skipped] DO NOT MERGE: osi: Offload mutex pointer to local scope
am: 947c58718f -s ours
am skip reason: subject contains skip directive

Change-Id: Ic551ed6e5bc89f72c7c2531dc019384d02c3ecef

5 years agoDO NOT MERGE: osi: Offload mutex pointer to local scope
Martin Brabham [Thu, 4 Apr 2019 21:57:41 +0000 (14:57 -0700)]
DO NOT MERGE: osi: Offload mutex pointer to local scope

Create a shared_ptr for the callback_mutex in the alarm struct.
When performing the callback, make a local shared_ptr reference.
lock_guard on the local shared_ptr reference.

Bug: 117997080
Test: atest net_test_bluetooth
Change-Id: Iab800f720f4ccc4735e4d494e0d458eb97b40a4a

5 years agoDO NOT MERGE: osi: Offload mutex pointer to local scope
Martin Brabham [Thu, 4 Apr 2019 21:57:41 +0000 (14:57 -0700)]
DO NOT MERGE: osi: Offload mutex pointer to local scope

Create a shared_ptr for the callback_mutex in the alarm struct.
When performing the callback, make a local shared_ptr reference.
lock_guard on the local shared_ptr reference.

Bug: 117997080
Test: atest net_test_bluetooth
Change-Id: Iab800f720f4ccc4735e4d494e0d458eb97b40a4a

5 years agoHandling of incoming AVRCP Controller connections
Joseph Pirozzo [Thu, 2 May 2019 23:45:03 +0000 (16:45 -0700)]
Handling of incoming AVRCP Controller connections

Resolve edge cases on incoming AVRCP Controllers Remote Controller
cases, both caused the remote control component to either generate an
out of bounds error or fail to update peer features.

Test: receive incoming AVRCP connection
Bug: 130750865
Change-Id: I15abd2fd4bc963889d6cdfe9364a651e2b4c3c10
Merged-In: I15abd2fd4bc963889d6cdfe9364a651e2b4c3c10

5 years agoMerge "Handling of incoming AVRCP Controller connections" am: e7b536bc93
Joseph Pirozzo [Tue, 7 May 2019 15:48:08 +0000 (08:48 -0700)]
Merge "Handling of incoming AVRCP Controller connections" am: e7b536bc93
am: e4107c877e

Change-Id: I82c81153d3da27154d69e17797481c30a1f061c5

5 years agoMerge "Handling of incoming AVRCP Controller connections"
Joseph Pirozzo [Tue, 7 May 2019 15:41:55 +0000 (08:41 -0700)]
Merge "Handling of incoming AVRCP Controller connections"
am: e7b536bc93

Change-Id: I7574cd7421edb6572472ffef685b70429f6d8d2a

5 years agoMerge "Handling of incoming AVRCP Controller connections"
Joseph Pirozzo [Tue, 7 May 2019 15:29:52 +0000 (15:29 +0000)]
Merge "Handling of incoming AVRCP Controller connections"

5 years agoMerge "Close unexpected HearingAid open event if is not attempting to connect" am...
Weichin Weng [Tue, 7 May 2019 04:15:55 +0000 (21:15 -0700)]
Merge "Close unexpected HearingAid open event if is not attempting to connect" am: f612b732e1
am: 450cefe766

Change-Id: I8c4c157f44bda64a868cb92b5da6fbadcc6a4b66

5 years agoMerge "Close unexpected HearingAid open event if is not attempting to connect"
Weichin Weng [Tue, 7 May 2019 04:12:53 +0000 (21:12 -0700)]
Merge "Close unexpected HearingAid open event if is not attempting to connect"
am: f612b732e1

Change-Id: Id6ca92d830e6e7f10d22260c15f6b47fea3b80fa

5 years agoMerge "Close unexpected HearingAid open event if is not attempting to connect"
Weichin Weng [Tue, 7 May 2019 03:49:50 +0000 (03:49 +0000)]
Merge "Close unexpected HearingAid open event if is not attempting to connect"

5 years agoMerge "A2DP: Fix offload start VSC parameters" am: da0b935bf4
Satish kumar sugasi [Mon, 6 May 2019 21:45:43 +0000 (14:45 -0700)]
Merge "A2DP: Fix offload start VSC parameters" am: da0b935bf4
am: 06f89cbc28

Change-Id: If42a0ec9307eaba4ca89fa38f76b328bf262d775

5 years agoMerge "A2DP: Fix offload start VSC parameters"
Satish kumar sugasi [Mon, 6 May 2019 21:40:29 +0000 (14:40 -0700)]
Merge "A2DP: Fix offload start VSC parameters"
am: da0b935bf4

Change-Id: I3425223bc0c0b49f49f04a164c10fdfa2a50bc57

5 years agoMerge "A2DP: Fix offload start VSC parameters"
Treehugger Robot [Mon, 6 May 2019 21:22:40 +0000 (21:22 +0000)]
Merge "A2DP: Fix offload start VSC parameters"

5 years agoClose unexpected HearingAid open event if is not attempting to connect
weichinweng [Sat, 4 May 2019 00:49:24 +0000 (08:49 +0800)]
Close unexpected HearingAid open event if is not attempting to connect

When HearingAid bta layer receive unexpected HearingAid open event,
should close it if is not attempting to connect.

Bug: 131863877
Test: 1.Forget/Repair HearingAid device from Bluetooth UI.
2.Disconnect/Reconnect HearingAid device from Bluetooth UI.
3.HearingAid device power off/on, check them can reconnect.

Change-Id: I75d63d0441dcc6b7338b1e30453021eb271f4872

5 years ago[automerger] DO NOT MERGE Fix potential OOB read in sdpu_get_len_from_type am: 08202b...
Android Build Merger (Role) [Mon, 6 May 2019 05:57:02 +0000 (05:57 +0000)]
[automerger] DO NOT MERGE Fix potential OOB read in sdpu_get_len_from_type am: 08202bdcbe am: d887336efe am: e26c142041 am: 9683021f70 skipped: d691b2dd00

Change-Id: I12681b184de3aaff511fcf29540b6cde73bc6ac2

5 years ago[automerger] DO NOT MERGE Fix potential OOB read in sdpu_get_len_from_type am: 08202b...
Android Build Merger (Role) [Mon, 6 May 2019 05:56:59 +0000 (05:56 +0000)]
[automerger] DO NOT MERGE Fix potential OOB read in sdpu_get_len_from_type am: 08202bdcbe am: d887336efe am: e26c142041 am: 9683021f70

Change-Id: I91346a746ce3342fc02c6a8afa82ed1904b374d7

5 years ago[automerger] DO NOT MERGE Fix potential OOB read in sdpu_get_len_from_type am: 08202b...
Android Build Merger (Role) [Mon, 6 May 2019 05:56:54 +0000 (05:56 +0000)]
[automerger] DO NOT MERGE Fix potential OOB read in sdpu_get_len_from_type am: 08202bdcbe am: d887336efe am: e26c142041

Change-Id: I8f91d03ebd8ce528acf076443400daed71b261aa

5 years ago[automerger] DO NOT MERGE Fix potential OOB read in sdpu_get_len_from_type am: 08202b...
Android Build Merger (Role) [Mon, 6 May 2019 05:56:49 +0000 (05:56 +0000)]
[automerger] DO NOT MERGE Fix potential OOB read in sdpu_get_len_from_type am: 08202bdcbe am: d887336efe

Change-Id: I854858463801fabb6b21bc6af67d794387c36b3e

5 years ago[automerger] DO NOT MERGE Fix potential OOB read in sdpu_get_len_from_type am: 08202bdcbe
Android Build Merger (Role) [Mon, 6 May 2019 05:56:45 +0000 (05:56 +0000)]
[automerger] DO NOT MERGE Fix potential OOB read in sdpu_get_len_from_type am: 08202bdcbe

Change-Id: I79d94e8ba10a1f8e5f1657eaab36eacab4c6d0fb

5 years agoDO NOT MERGE Fix potential OOB read in sdpu_get_len_from_type
Ted Wang [Mon, 29 Apr 2019 02:11:04 +0000 (10:11 +0800)]
DO NOT MERGE Fix potential OOB read in sdpu_get_len_from_type

Add boundary check in sdpu_get_len_from_type to prevent potential OOB read.

Bug: 117105007
Test: Manul
Merged-In: I3755e13ee0a7e22ffd5f48fca909610a26b09d0a
Change-Id: I3755e13ee0a7e22ffd5f48fca909610a26b09d0a

5 years ago[automerger skipped] Merge "Don't read HearingAid properties if already have properti...
Weichin Weng [Sat, 4 May 2019 03:29:41 +0000 (20:29 -0700)]
[automerger skipped] Merge "Don't read HearingAid properties if already have properties value." into qt-dev
am: 000b92ce90 -s ours
am skip reason: change_id Id4c30947c75f0615514075ec36c50afb58fc3f14 with SHA1 82e1ca5a0c is in history

Change-Id: I04b632416428576eaee0664c179d40b1845e5372

5 years agoAdd a signaling socket from facade/cert to tester am: 663ee01503
Hansong Zhang [Sat, 4 May 2019 03:13:00 +0000 (20:13 -0700)]
Add a signaling socket from facade/cert to tester am: 663ee01503
am: 8b2987bb5c

Change-Id: Iff56f169e31ebb3b7264dc95ff8395825f2bcd94

5 years agoAdd a signaling socket from facade/cert to tester
Hansong Zhang [Sat, 4 May 2019 03:07:54 +0000 (20:07 -0700)]
Add a signaling socket from facade/cert to tester
am: 663ee01503

Change-Id: I2f2dfb01de8ac8ad132ba7ec9b4e677bdb256277

5 years agoAdd grpc root service for test configuration am: 30bf869b83
Hansong Zhang [Sat, 4 May 2019 01:57:52 +0000 (18:57 -0700)]
Add grpc root service for test configuration am: 30bf869b83
am: dbc3f7b6f5

Change-Id: I20e267498c6e754b078eaaab9264b1d8598f81f4

5 years agoAdd grpc root service for test configuration
Hansong Zhang [Sat, 4 May 2019 01:40:44 +0000 (18:40 -0700)]
Add grpc root service for test configuration
am: 30bf869b83

Change-Id: I9226c028d4a40b7aee39b714e19c9d33b94d36ab

5 years agoMerge "Don't read HearingAid properties if already have properties value." into qt-dev
Weichin Weng [Sat, 4 May 2019 00:29:51 +0000 (00:29 +0000)]
Merge "Don't read HearingAid properties if already have properties value." into qt-dev

5 years agoAdd a signaling socket from facade/cert to tester
Hansong Zhang [Fri, 3 May 2019 22:06:24 +0000 (15:06 -0700)]
Add a signaling socket from facade/cert to tester

The tester needs to wait for grpc server to start up before sending any
RPC. Use a UNIX domain socket to indicate when the grpc server is ready

Test: cert/run_cert.sh
Change-Id: Iaf5e9dfaedaa30a09448da0632ae7d362845c87a

5 years agoAdd benchmark for queue
Chienyuan [Fri, 3 May 2019 01:37:54 +0000 (18:37 -0700)]
Add benchmark for queue

Test: run bluetooth_benchmark_gd
Change-Id: I074f7a6f0a7927f9bf35f92cbc0bb4f3f10adfc8

5 years agoAdd grpc root service for test configuration
Hansong Zhang [Thu, 2 May 2019 22:25:54 +0000 (15:25 -0700)]
Add grpc root service for test configuration

When facade_main and cert_main is started, it only starts grpc root
service, and listens for StartStack() request before brining up required
modules. Then, it listens for StopStack() request before cleaning up
modules. Defining new rootservice.proto for facade and cert.

Test: cert/run_cert.sh
Change-Id: I10fa745b9a235080be7a0c82fe7f3a297c1a112d

5 years agoBreak GdDevice into GdDevice and GdCertDevice am: 87ddd5b26f
Zach Johnson [Fri, 3 May 2019 07:36:32 +0000 (00:36 -0700)]
Break GdDevice into GdDevice and GdCertDevice am: 87ddd5b26f
am: 5e7a39cfc0

Change-Id: I44ae519d80d2ce577dd0eb89f6071a5b07bd7f91

5 years agoBreak GdDevice into GdDevice and GdCertDevice
Zach Johnson [Fri, 3 May 2019 07:31:26 +0000 (00:31 -0700)]
Break GdDevice into GdDevice and GdCertDevice
am: 87ddd5b26f

Change-Id: I9fb0d8bdb0b718a8846de25f5aaa8fbdaa33c1e4

5 years agoConsolidate facade and cert entry point naming am: 4999504f61
Zach Johnson [Fri, 3 May 2019 07:21:50 +0000 (00:21 -0700)]
Consolidate facade and cert entry point naming am: 4999504f61
am: 1b2aa7e794

Change-Id: Ia2314c2422651d49559ea988eb9cacb286e9a3ac

5 years agoAdd BidiQueue am: d5b7ba71ba
Zach Johnson [Fri, 3 May 2019 07:21:30 +0000 (00:21 -0700)]
Add BidiQueue am: d5b7ba71ba
am: 6d56f233ac

Change-Id: I0e6a7ee2c1422a6b21971bca560cd2e3e7de71f3

5 years agoConsolidate facade and cert entry point naming
Zach Johnson [Fri, 3 May 2019 07:17:39 +0000 (00:17 -0700)]
Consolidate facade and cert entry point naming
am: 4999504f61

Change-Id: Ia48e8a6f3b4c6849e2e5cb5c0751e8e156f5c306

5 years agoAdd BidiQueue
Zach Johnson [Fri, 3 May 2019 07:17:24 +0000 (00:17 -0700)]
Add BidiQueue
am: d5b7ba71ba

Change-Id: I00a6898e46cb7e8ad550944fe63bc0cd3a9105ca

5 years agoFix potential OOB read in sdpu_get_len_from_type
Ted Wang [Mon, 29 Apr 2019 02:11:04 +0000 (10:11 +0800)]
Fix potential OOB read in sdpu_get_len_from_type

Add boundary check in sdpu_get_len_from_type to prevent potential OOB read.

Bug: 117105007
Test: Manul
Merged-In: I3755e13ee0a7e22ffd5f48fca909610a26b09d0a
Change-Id: I3755e13ee0a7e22ffd5f48fca909610a26b09d0a
(cherry picked from commit 1243f8da338dadfe2a3c281a08297b431402d41c)

5 years agoMerge "Fix potential OOB read in sdpu_get_len_from_type" into qt-dev
Ted Wang [Fri, 3 May 2019 06:03:23 +0000 (23:03 -0700)]
Merge "Fix potential OOB read in sdpu_get_len_from_type" into qt-dev
am: 3b2226d8ff

Change-Id: Id22d7d715ca82be48e9bf213a9b500ceae74834e

5 years agoMerge "Fix potential OOB read in sdpu_get_len_from_type" into qt-dev
Ted Wang [Fri, 3 May 2019 05:53:51 +0000 (05:53 +0000)]
Merge "Fix potential OOB read in sdpu_get_len_from_type" into qt-dev

5 years agoBreak GdDevice into GdDevice and GdCertDevice
Zach Johnson [Fri, 3 May 2019 03:31:39 +0000 (20:31 -0700)]
Break GdDevice into GdDevice and GdCertDevice

We need distinct devices, since the gRPC capabilities are
different from each other and we need to tell them apart
from each other in tests.

Also, remove unused gd/cert/run_cert.py
Also, don't indicate rootcanal error at end of test if
return code indicates it was terminated by the SIGINT we sent it.
(-N return code indicates terminated by N signal, as per
https://docs.python.org/2/library/subprocess.html#subprocess.Popen.returncode)

Test: cert/run_cert.sh
Change-Id: Idf14a05d73f2f80f5b871b2c41118219c27a0f76

5 years agoConsolidate facade and cert entry point naming
Zach Johnson [Fri, 3 May 2019 02:56:10 +0000 (19:56 -0700)]
Consolidate facade and cert entry point naming

Test: atest --host bluetooth_test_gd and cert/run_cert.sh
Change-Id: I517391d2884d5cc8d5b77a9b9847637d83053a16

5 years agoAdd BidiQueue
Zach Johnson [Fri, 3 May 2019 02:21:40 +0000 (19:21 -0700)]
Add BidiQueue

An interface for passing a pair of queues (an up and a down),

Also adds BidiQueueEnd, so you can pass the end around without worrying
about your clients using your end of the queue by mistake.

Test: atest --host bluetooth_test_gd
Change-Id: Ib2d1904ec799af335db07fb474d0ba6b1d4d9949

5 years agoCert stack bring up and test Inquiry with two stacks am: 90ec7400f0
Hansong Zhang [Fri, 3 May 2019 02:43:10 +0000 (19:43 -0700)]
Cert stack bring up and test Inquiry with two stacks am: 90ec7400f0
am: 66b59f634e

Change-Id: I0bab806e7eeaff4814656b03a28563678c0bc624

5 years agoCert stack bring up and test Inquiry with two stacks
Hansong Zhang [Fri, 3 May 2019 02:42:05 +0000 (19:42 -0700)]
Cert stack bring up and test Inquiry with two stacks
am: 90ec7400f0

Change-Id: I85e10a876b52922ca0ce558292b0f54d87752405

5 years agoCert stack bring up and test Inquiry with two stacks
Hansong Zhang [Mon, 29 Apr 2019 23:04:07 +0000 (16:04 -0700)]
Cert stack bring up and test Inquiry with two stacks

* Add main entry point for cert stack.
* Add a test case where cert stack enables page scan and inquiry scan
and DUT starts inquiry. Verify the inquiry result.

Test: cert/run_cert.sh
Change-Id: I2deaf12b6f929301a3542c082a8f77513af8ce68

5 years agoGATT: Use a list for services in a GATT database
Myles Watson [Fri, 3 May 2019 02:25:43 +0000 (19:25 -0700)]
GATT: Use a list for services in a GATT database
am: 1bff698b4e

Change-Id: I8674c8ebc0b3daa8140d029c0a858f35368cdac2

5 years agoMerge "Add separate enqueue and dequeue interfaces for queue" am: 55778d288e
Zach Johnson [Fri, 3 May 2019 02:21:20 +0000 (19:21 -0700)]
Merge "Add separate enqueue and dequeue interfaces for queue" am: 55778d288e
am: 69cf12243b

Change-Id: Id860ca596898c178080a187953218aaf7bcde559

5 years agoMerge "Don't read HearingAid properties if already have properties value." am: 52d50e51e9
Weichin Weng [Fri, 3 May 2019 02:20:47 +0000 (19:20 -0700)]
Merge "Don't read HearingAid properties if already have properties value." am: 52d50e51e9
am: eaa95ab25f

Change-Id: I05d02f8176d4f5f6cf11dfafc9472fdede32d59e

5 years agoCert: implement assert function with event buffer am: c3d8c16207
Chienyuan [Fri, 3 May 2019 02:19:47 +0000 (19:19 -0700)]
Cert: implement assert function with event buffer am: c3d8c16207
am: 733acf9612

Change-Id: I071cc2895932d86579cc1bb460a2d862fc79addc

5 years agoMerge "Add separate enqueue and dequeue interfaces for queue"
Zach Johnson [Fri, 3 May 2019 02:18:13 +0000 (19:18 -0700)]
Merge "Add separate enqueue and dequeue interfaces for queue"
am: 55778d288e

Change-Id: I5f244be668f66c7940037f9360f125f1f43e1757

5 years agoMerge "Add separate enqueue and dequeue interfaces for queue"
Treehugger Robot [Fri, 3 May 2019 01:41:40 +0000 (01:41 +0000)]
Merge "Add separate enqueue and dequeue interfaces for queue"

5 years agoMerge "Don't read HearingAid properties if already have properties value."
Weichin Weng [Fri, 3 May 2019 01:40:31 +0000 (18:40 -0700)]
Merge "Don't read HearingAid properties if already have properties value."
am: 52d50e51e9

Change-Id: I6a8a532978d441b8cc5494d204ba5970aff073cc

5 years agoCert: implement assert function with event buffer
Chienyuan [Fri, 3 May 2019 01:39:35 +0000 (18:39 -0700)]
Cert: implement assert function with event buffer
am: c3d8c16207

Change-Id: I0328031ca4c390eed86edc92ceb8d70a279856e1

5 years agoMerge "Don't read HearingAid properties if already have properties value."
Weichin Weng [Fri, 3 May 2019 01:12:24 +0000 (01:12 +0000)]
Merge "Don't read HearingAid properties if already have properties value."

5 years agoDon't read HearingAid properties if already have properties value.
weichinweng [Thu, 2 May 2019 07:31:33 +0000 (15:31 +0800)]
Don't read HearingAid properties if already have properties value.

When read HearingAid properties, don't read it if already have the
HearingAid properties in config file. Will use these values in config
file since these values should never change.

Bug: 128464408
Test: 1.Forget/Repair HearingAid device from Bluetooth UI.
2.Disconnect/Reconnect HearingAid device from Bluetooth UI.
3.HearingAid device power off/on, check them can reconnect.

Change-Id: Id4c30947c75f0615514075ec36c50afb58fc3f14
Merged-In: Id4c30947c75f0615514075ec36c50afb58fc3f14

5 years agoAdd separate enqueue and dequeue interfaces for queue
Zach Johnson [Fri, 3 May 2019 00:05:44 +0000 (17:05 -0700)]
Add separate enqueue and dequeue interfaces for queue

Allows you to pass one around without exposing the rest of the queue surface.
Test: atest --host bluetooth_test_gd

Change-Id: I468c59208cf021feb8bcea9e3a3b0a72c35ead8d

5 years agoCert: implement assert function with event buffer
Chienyuan [Thu, 2 May 2019 20:29:20 +0000 (13:29 -0700)]
Cert: implement assert function with event buffer

Test: run gd/cert/run_cert.sh
Change-Id: I237ecdee7e70b860f3e73d4825dd79b0235ae22b

5 years agoHandling of incoming AVRCP Controller connections
Joseph Pirozzo [Thu, 2 May 2019 23:45:03 +0000 (16:45 -0700)]
Handling of incoming AVRCP Controller connections

Resolve edge cases on incoming AVRCP Controllers Remote Controller
cases, both caused the remote control component to either generate an
out of bounds error or fail to update peer features.

Test: receive incoming AVRCP connection
Bug: 130750865
Change-Id: I15abd2fd4bc963889d6cdfe9364a651e2b4c3c10

5 years agoMerge "Module: Add TestModule for dependency injection" am: c310d49b97
Myles Watson [Thu, 2 May 2019 22:01:44 +0000 (15:01 -0700)]
Merge "Module: Add TestModule for dependency injection" am: c310d49b97
am: 0dff394165

Change-Id: I65c834580b74d4e53fcf76110b868f7ccb927592

5 years agoMerge "Module: Add TestModule for dependency injection"
Myles Watson [Thu, 2 May 2019 21:47:43 +0000 (14:47 -0700)]
Merge "Module: Add TestModule for dependency injection"
am: c310d49b97

Change-Id: Ic68642cd4cfda8b7059a61aef63bb990e9f2d84a

5 years agoMerge "Module: Add TestModule for dependency injection"
Treehugger Robot [Thu, 2 May 2019 21:21:12 +0000 (21:21 +0000)]
Merge "Module: Add TestModule for dependency injection"

5 years agoModule: Add TestModule for dependency injection
Myles Watson [Thu, 2 May 2019 17:31:26 +0000 (10:31 -0700)]
Module: Add TestModule for dependency injection

Test: HciLayerTest
Change-Id: I32dbfaa051be5cb42adb7a081b37966479df5268

5 years agoGATT: Use a list for services in a GATT database
Myles Watson [Fri, 22 Mar 2019 23:51:39 +0000 (16:51 -0700)]
GATT: Use a list for services in a GATT database

Iterators to list elements are not invalidated by the addition and
removal of other elements.

Bug: 128938477
Test: net_test_bta
Change-Id: I45d74a63fc6b55ece3a4af02e0cc3e1de757cc4d

5 years agoA2DP: Fix offload start VSC parameters
Satish kumar sugasi [Fri, 26 Apr 2019 02:55:31 +0000 (19:55 -0700)]
A2DP: Fix offload start VSC parameters

* Add more codec specific parameters in VSC.
* Deliver AAC parameters to the audio HAL.

Bug: 131209515
Test: manual
Change-Id: I3908abcb8f7703e4b89513ed473f6949b3c1bbe3

5 years agoDon't read HearingAid properties if already have properties value.
weichinweng [Thu, 2 May 2019 07:31:33 +0000 (15:31 +0800)]
Don't read HearingAid properties if already have properties value.

When read HearingAid properties, don't read it if already have the
HearingAid properties in config file. Will use these values in config
file since these values should never change.

Bug: 128464408
Test: 1.Forget/Repair HearingAid device from Bluetooth UI.
2.Disconnect/Reconnect HearingAid device from Bluetooth UI.
3.HearingAid device power off/on, check them can reconnect.

Change-Id: Id4c30947c75f0615514075ec36c50afb58fc3f14

5 years agoFix potential OOB read in sdpu_get_len_from_type
Ted Wang [Mon, 29 Apr 2019 02:11:04 +0000 (10:11 +0800)]
Fix potential OOB read in sdpu_get_len_from_type

Add boundary check in sdpu_get_len_from_type to prevent potential OOB read.

Bug: 117105007
Test: Manul
Change-Id: I3755e13ee0a7e22ffd5f48fca909610a26b09d0a

5 years agoCert: add common helper for event stream on the py side am: 89430fe73d
Chienyuan [Thu, 2 May 2019 01:00:00 +0000 (18:00 -0700)]
Cert: add common helper for event stream on the py side am: 89430fe73d
am: e6083fcb7c

Change-Id: Ide3c51884d49fe6c76bf4b953a263841740594d9

5 years agoCert: add common helper for event stream on the py side
Chienyuan [Thu, 2 May 2019 00:11:18 +0000 (17:11 -0700)]
Cert: add common helper for event stream on the py side
am: 89430fe73d

Change-Id: I4c0ce2ced3c292c316ee25f35e0d25fdfd972aed

5 years agoCert: add common helper for event stream on the py side
Chienyuan [Tue, 30 Apr 2019 23:21:32 +0000 (16:21 -0700)]
Cert: add common helper for event stream on the py side

* add common helper for event stream on the py side, implement
  assert_event_occurs in the helper
* add event stream helpers for hci event, sco and acl in GdDevice
* add take_for() function in BlockingQueue for take data with timeout

Test: run gd/cert/run_cert.sh
Change-Id: Ia8168159ee47441ec332046627124e0ed3811d6b

5 years agoMake SnoopLogger a Module am: 5158bf5eeb
Hansong Zhang [Wed, 1 May 2019 02:24:19 +0000 (19:24 -0700)]
Make SnoopLogger a Module am: 5158bf5eeb
am: 8264f6eae8

Change-Id: If673281f8f4f472ee3034bb158bcab95d9b6eed6

5 years agoMake SnoopLogger a Module
Hansong Zhang [Wed, 1 May 2019 02:17:12 +0000 (19:17 -0700)]
Make SnoopLogger a Module
am: 5158bf5eeb

Change-Id: If905e7c85293c2b2abbf0f23c3efa3d77743bef7

5 years agoMake SnoopLogger a Module
Hansong Zhang [Tue, 30 Apr 2019 21:52:43 +0000 (14:52 -0700)]
Make SnoopLogger a Module

* Add API SnoopLogger::SetFilePath to set output file path
* Add return code check for GdDevice backing process and rootcanal

Test: cert/run_cert.sh
Change-Id: Iac33070d4ac880d50a0dd78ad75f7ac7ccc239b2

5 years agoRootcanal: Exit local loopback mode on HciReset am: 843271b29b
Hansong Zhang [Tue, 30 Apr 2019 22:10:38 +0000 (15:10 -0700)]
Rootcanal: Exit local loopback mode on HciReset am: 843271b29b
am: d91439bf3a

Change-Id: Idd7c9bef19120a492e6aeda679616c4c728af899