OSDN Git Service

android-x86/system-bt.git
6 years agoAdd TEST_MAPPING to system/bt am: 37b717c612
Jack He [Fri, 28 Sep 2018 00:48:20 +0000 (17:48 -0700)]
Add TEST_MAPPING to system/bt am: 37b717c612
am: 5756b395a5

Change-Id: I7bf8295c1a69946d1426243633d22403140e177b

6 years agoAdd TEST_MAPPING to system/bt
Jack He [Fri, 28 Sep 2018 00:44:09 +0000 (17:44 -0700)]
Add TEST_MAPPING to system/bt
am: 37b717c612

Change-Id: Iae641e8d55d26577491853eca958347744638ba9

6 years agoMerge "GATTC: Use hex for conn_id in log" am: 71113b44c3
Hansong Zhang [Thu, 27 Sep 2018 22:35:19 +0000 (15:35 -0700)]
Merge "GATTC: Use hex for conn_id in log" am: 71113b44c3
am: 2a6c1cbbe5

Change-Id: If3fec0b9b153f907039e67c5f0a24652c3674d51

6 years agoMerge "GATTC: Use hex for conn_id in log"
Hansong Zhang [Thu, 27 Sep 2018 22:27:41 +0000 (15:27 -0700)]
Merge "GATTC: Use hex for conn_id in log"
am: 71113b44c3

Change-Id: Iabf9065e751f4090bf676fe109ef23a4310b29d6

6 years agoAdd TEST_MAPPING to system/bt
Jack He [Wed, 29 Aug 2018 01:28:55 +0000 (18:28 -0700)]
Add TEST_MAPPING to system/bt

* Add "postsubmit" test group to TEST_MAPPING in system/bt
* Developer can run tests mannually in system/bt via:
  system/bt$ atest :postsubmit
* Remove legacy configuration files spread across system/bt
* Created unified configuration file system/bt/AndroidTestTemplate.xml
  and add it to the default build config so that developers don't have
  to configure it

Bug: 113359343
Test: atest :postsubmit
Change-Id: I0fdd55b47ef176b5c4ce3d2cd217ffa67cf9bc23

6 years agoMerge "GATTC: Use hex for conn_id in log"
Treehugger Robot [Thu, 27 Sep 2018 22:16:39 +0000 (22:16 +0000)]
Merge "GATTC: Use hex for conn_id in log"

6 years agoMerge "HID: Free timer after removing device" am: 1de8ba51e1
Hemant Gupta [Thu, 27 Sep 2018 21:10:34 +0000 (14:10 -0700)]
Merge "HID: Free timer after removing device" am: 1de8ba51e1
am: b914f16c28

Change-Id: I187ba7b73e0f8961e1f83dbb754c87a6236329c3

6 years agoMerge "HID: Free timer after removing device"
Hemant Gupta [Thu, 27 Sep 2018 21:03:24 +0000 (14:03 -0700)]
Merge "HID: Free timer after removing device"
am: 1de8ba51e1

Change-Id: Ib99739a3e08926b91e0df57564e690eb1604f05c

6 years agoMerge "HID: Free timer after removing device"
Treehugger Robot [Thu, 27 Sep 2018 20:47:50 +0000 (20:47 +0000)]
Merge "HID: Free timer after removing device"

6 years agoMove Bluetooth to using C++17 am: 96bcf14a65
Ajay Panicker [Thu, 27 Sep 2018 19:45:34 +0000 (12:45 -0700)]
Move Bluetooth to using C++17 am: 96bcf14a65
am: 6b3ecc5ff1

Change-Id: I2995e17b065557f7d5571955cec1b0443fff8ddc

6 years agoMove Bluetooth to using C++17
Ajay Panicker [Thu, 27 Sep 2018 19:37:16 +0000 (12:37 -0700)]
Move Bluetooth to using C++17
am: 96bcf14a65

Change-Id: I0cd45059f7e3befa275b25be65ea88947c08b3b5

6 years agoGATTC: Use hex for conn_id in log
Hansong Zhang [Thu, 27 Sep 2018 00:42:40 +0000 (17:42 -0700)]
GATTC: Use hex for conn_id in log

For host conn_id, use hex format

Test: manual
Change-Id: I7d7e690a1dbe0665b827c59d104540eafa45d426

6 years agoHID: Free timer after removing device
Hemant Gupta [Thu, 27 Sep 2018 16:05:46 +0000 (21:35 +0530)]
HID: Free timer after removing device

Timer conn.process_repage_timer is being freed in HID_HostDeregister
which causes use after free condition in HID_HostRemoveDev->
HID_HostCloseDev.

Fix:
Call alarm_free after HID_HostRemoveDev in HID_HostDeregister

Test:
Code analysis

Bug: 116774368
Change-Id: Iddecd126716a5660f4c37ddc917bacee84342297

6 years agoMove Bluetooth to using C++17
Ajay Panicker [Mon, 17 Sep 2018 18:35:24 +0000 (11:35 -0700)]
Move Bluetooth to using C++17

C++ 17 has a bunch of features that will help us refactor the Bluetooth
stack to be much more safe and stable.

Bug: 115895445
Test: Compile and testtracker/201115
Change-Id: Ia1e8e179fa1df116969606d119cb8abe11f44761

6 years agoMerge "Add noexcept to move constructors and assignment operators." am: 2e3fa05261
Chih-hung Hsieh [Thu, 27 Sep 2018 04:51:42 +0000 (21:51 -0700)]
Merge "Add noexcept to move constructors and assignment operators." am: 2e3fa05261
am: 6901c69166

Change-Id: I8a77d6538f8e41e5a81358548d92b02e0544f3a8

6 years agoMerge "Add noexcept to move constructors and assignment operators."
Chih-hung Hsieh [Thu, 27 Sep 2018 04:44:30 +0000 (21:44 -0700)]
Merge "Add noexcept to move constructors and assignment operators."
am: 2e3fa05261

Change-Id: Ief6685c41f95433dfa2ac1acd75f18b8895b5da1

6 years agoMerge "Use maximum SSR timeout value when A2DP is streaming" am: 3dd799fd1a
Ugo Yu [Thu, 27 Sep 2018 04:35:42 +0000 (21:35 -0700)]
Merge "Use maximum SSR timeout value when A2DP is streaming" am: 3dd799fd1a
am: 3a0bcd481f

Change-Id: Ia03c912910f08fa13c1cb90f3ed3eafe81c155f8

6 years agoMerge "Add noexcept to move constructors and assignment operators."
Chih-hung Hsieh [Thu, 27 Sep 2018 04:33:34 +0000 (04:33 +0000)]
Merge "Add noexcept to move constructors and assignment operators."

6 years agoMerge "Use maximum SSR timeout value when A2DP is streaming"
Ugo Yu [Thu, 27 Sep 2018 04:20:09 +0000 (21:20 -0700)]
Merge "Use maximum SSR timeout value when A2DP is streaming"
am: 3dd799fd1a

Change-Id: Iafa7a776e8e844e2265d68eb1028402e4957afbf

6 years agoMerge "Use maximum SSR timeout value when A2DP is streaming"
Treehugger Robot [Thu, 27 Sep 2018 01:58:13 +0000 (01:58 +0000)]
Merge "Use maximum SSR timeout value when A2DP is streaming"

6 years agoMerge "Remove obsoleted Coverity-related comment" am: 21cd29ca65
Pavlin Radoslavov [Wed, 26 Sep 2018 23:35:58 +0000 (16:35 -0700)]
Merge "Remove obsoleted Coverity-related comment" am: 21cd29ca65
am: 826f10ca20

Change-Id: Id112020d622e87180feead6c3c6872314c537237

6 years agoMerge "Remove obsoleted Coverity-related comment"
Pavlin Radoslavov [Wed, 26 Sep 2018 23:31:56 +0000 (16:31 -0700)]
Merge "Remove obsoleted Coverity-related comment"
am: 21cd29ca65

Change-Id: I98552cebb24e6b2784dc4771e4ceb213744b9aea

6 years agoMerge "Remove obsoleted Coverity-related comment"
Treehugger Robot [Wed, 26 Sep 2018 23:18:32 +0000 (23:18 +0000)]
Merge "Remove obsoleted Coverity-related comment"

6 years agoUse maximum SSR timeout value when A2DP is streaming
Ugo Yu [Thu, 13 Sep 2018 12:12:36 +0000 (20:12 +0800)]
Use maximum SSR timeout value when A2DP is streaming

* Add a new SSR entry BTA_DM_PM_SSR4 with maximum
  remote/local timeout value.
* Use BTA_DM_PM_SSR4 when A2DP is streaming to prevent
  phone enter sniff subrating mode.

Bug: 113496412
Test: Manually
Change-Id: I194ef9fdb4dd38eab67ff20e1bb9cab47edbfe8f

6 years agoMerge "bta: Pass the correct UUID array size in bta_ag_do_disc" into pi-dev
Myles Watson [Wed, 26 Sep 2018 00:51:15 +0000 (17:51 -0700)]
Merge "bta: Pass the correct UUID array size in bta_ag_do_disc" into pi-dev
am: 611a85c2f5

Change-Id: I38dc92dca41ed5e6e174ac82acc1817e5123a1af

6 years agoMerge "bta: Pass the correct UUID array size in bta_ag_do_disc" into pi-dev
TreeHugger Robot [Wed, 26 Sep 2018 00:45:04 +0000 (00:45 +0000)]
Merge "bta: Pass the correct UUID array size in bta_ag_do_disc" into pi-dev

6 years agoAdd new hidden API to return SDP record's MapSupportedFeatures field. That field...
Vasu Nori [Tue, 25 Sep 2018 23:22:39 +0000 (16:22 -0700)]
Add new hidden API to return SDP record's MapSupportedFeatures field. That field is documented in Bluetooth MAP 1.4 spec, page 114. Spec is here: shortn/_zfoIrfbIzR am: f2b03b49ac
am: 2f5f6970e4

Change-Id: I0477b12698901a8e411e576d106ee87a67d9f02c

6 years agoAdd new hidden API to return SDP record's MapSupportedFeatures field. That field...
Vasu Nori [Tue, 25 Sep 2018 23:14:31 +0000 (16:14 -0700)]
Add new hidden API to return SDP record's MapSupportedFeatures field. That field is documented in Bluetooth MAP 1.4 spec, page 114. Spec is here: shortn/_zfoIrfbIzR
am: f2b03b49ac

Change-Id: I17d43783874233dca4e58965c5e446f60552ff1f

6 years agoAdd new hidden API to return SDP record's MapSupportedFeatures field.
Vasu Nori [Sat, 18 Aug 2018 00:28:11 +0000 (17:28 -0700)]
Add new hidden API to return SDP record's MapSupportedFeatures field.
That field is documented in Bluetooth MAP 1.4 spec, page 114.
Spec is here: http://shortn/_zfoIrfbIzR

Bug: 111614861
Test: tested w/ KitchenSink App
Change-Id: I89903c386d97934ec7b9c80333ecc6a6d560cbec

6 years agoAdd noexcept to move constructors and assignment operators.
Chih-Hung Hsieh [Tue, 25 Sep 2018 21:29:59 +0000 (14:29 -0700)]
Add noexcept to move constructors and assignment operators.

Bug: 116614593
Test: build with WITH_TIDY=1
Change-Id: I4adaf89db5001e9b627beac8160f62b50513d18f

6 years agoRemove obsoleted Coverity-related comment
Pavlin Radoslavov [Tue, 25 Sep 2018 18:18:34 +0000 (11:18 -0700)]
Remove obsoleted Coverity-related comment

Bug: 27078725
Test: Code compilation
Change-Id: I9398f0354e54cc6a754ed46b05b9f7cef09add8f

6 years agoMerge changes I737a864e,Idc41b2a5 am: af09b4eae2
Hansong Zhang [Tue, 25 Sep 2018 04:58:55 +0000 (21:58 -0700)]
Merge changes I737a864e,Idc41b2a5 am: af09b4eae2
am: 7d92087ec1

Change-Id: I15c1c4e86ac331d62a29fbacf24ca5363138ccd9

6 years agoMerge changes I737a864e,Idc41b2a5
Hansong Zhang [Tue, 25 Sep 2018 04:52:59 +0000 (21:52 -0700)]
Merge changes I737a864e,Idc41b2a5
am: af09b4eae2

Change-Id: Icdf4f89ec9d36f680f20d54633bd18d23b88c0fb

6 years agoMerge changes I737a864e,Idc41b2a5
Treehugger Robot [Tue, 25 Sep 2018 04:41:08 +0000 (04:41 +0000)]
Merge changes I737a864e,Idc41b2a5

* changes:
  Timer: Don't run new task at old timepoint
  Timer: Separate code path for single and periodic

6 years ago[automerger skipped] Merge "DO NOT MERGE - Check SDU lower bound before allocate...
Ugo Yu [Tue, 25 Sep 2018 04:31:38 +0000 (21:31 -0700)]
[automerger skipped] Merge "DO NOT MERGE - Check SDU lower bound before allocate p_data" into oc-dev am: bc5bd697c9  -s ours am: 77175af80b  -s ours am: 8be1e6fac4  -s ours
am: 8ad4a12949  -s ours

Change-Id: I6b666e41da9ef95fa5a99284833dece3e59e6542

6 years ago[automerger skipped] Merge "DO NOT MERGE - Check SDU lower bound before allocate...
Ugo Yu [Tue, 25 Sep 2018 04:26:29 +0000 (21:26 -0700)]
[automerger skipped] Merge "DO NOT MERGE - Check SDU lower bound before allocate p_data" into oc-dev am: bc5bd697c9  -s ours am: 77175af80b  -s ours
am: 8be1e6fac4  -s ours

Change-Id: Ic52691d8f86bce01ca6e0b42e512082cb20566d8

6 years ago[automerger skipped] Merge "DO NOT MERGE - Check SDU lower bound before allocate...
Ugo Yu [Tue, 25 Sep 2018 04:21:39 +0000 (21:21 -0700)]
[automerger skipped] Merge "DO NOT MERGE - Check SDU lower bound before allocate p_data" into oc-dev am: bc5bd697c9  -s ours
am: 77175af80b  -s ours

Change-Id: Ic285392e964bd2f5d20f9d38bd79725512d4ea27

6 years ago[automerger skipped] Merge "DO NOT MERGE - Check SDU lower bound before allocate...
Ugo Yu [Tue, 25 Sep 2018 04:10:21 +0000 (21:10 -0700)]
[automerger skipped] Merge "DO NOT MERGE - Check SDU lower bound before allocate p_data" into oc-dev
am: bc5bd697c9  -s ours

Change-Id: I35806d7afb20585bd339bfc333769cd76559f862

6 years agoMerge "DO NOT MERGE - Check SDU lower bound before allocate p_data" into oc-dev
TreeHugger Robot [Tue, 25 Sep 2018 03:52:21 +0000 (03:52 +0000)]
Merge "DO NOT MERGE - Check SDU lower bound before allocate p_data" into oc-dev

6 years agoTimer: Don't run new task at old timepoint
Hansong Zhang [Thu, 20 Sep 2018 17:15:12 +0000 (10:15 -0700)]
Timer: Don't run new task at old timepoint

* Fix a race condition that the task is just finished but IsScheduled
  is true
* Fix a bug where cancelling the old task will make new task run at
  the previous task's scheduled timepoint
* Protect racing read/write to message_loop_thread_ in RunTask() and
  Cancel() by storing a local reference to message_loop_thread_ in
  RunTask()

Bug: 116081383
Test: Run bluetooth_test_common.TimerTest
      reschedule_task_dont_invoke_new_task_early
      schedule_task
      for multiple times
Change-Id: I737a864e1b061adbcd41245711e0d3e8adf448d4

6 years agoMerge "Send volume just once when starting the stream." am: 029945f9f5
Jakub Pawlowski [Mon, 24 Sep 2018 20:49:40 +0000 (13:49 -0700)]
Merge "Send volume just once when starting the stream." am: 029945f9f5
am: 09365b47d2

Change-Id: If93f1b36295df47d42905abcf411891a104b7fa7

6 years agoMerge "Send volume just once when starting the stream."
Jakub Pawlowski [Mon, 24 Sep 2018 20:43:23 +0000 (13:43 -0700)]
Merge "Send volume just once when starting the stream."
am: 029945f9f5

Change-Id: I8c64f2325849333c91010e0f0fdb5239d88187d0

6 years agoMerge "Send volume just once when starting the stream."
Treehugger Robot [Mon, 24 Sep 2018 20:33:51 +0000 (20:33 +0000)]
Merge "Send volume just once when starting the stream."

6 years agoSend volume just once when starting the stream.
Jakub Pawlowski [Mon, 24 Sep 2018 14:43:59 +0000 (16:43 +0200)]
Send volume just once when starting the stream.

The volume is in the Start command already, no need to send it in a
separate command.

Bug: 116145308
Test: play music, pause, adjust volume, start playing again, verify
      playing was re-started with proper volume level.
Change-Id: I2a900b03a35670de4a265184f333517db17497d8

6 years ago[automerger skipped] Merge "DO NOT MERGE - Check SDU lower bound before allocate...
Ugo Yu [Sat, 22 Sep 2018 01:55:18 +0000 (18:55 -0700)]
[automerger skipped] Merge "DO NOT MERGE - Check SDU lower bound before allocate p_data" into oc-mr1-dev am: 3298d1457d  -s ours
am: e3bf088499

Change-Id: I16e8696901ecde8e0b522e7b76d1b2798988dab0

6 years ago[automerger skipped] Merge "DO NOT MERGE - Check SDU lower bound before allocate...
Ugo Yu [Sat, 22 Sep 2018 01:46:51 +0000 (18:46 -0700)]
[automerger skipped] Merge "DO NOT MERGE - Check SDU lower bound before allocate p_data" into oc-mr1-dev
am: 3298d1457d  -s ours

Change-Id: Ib30226371223485479de44ac15466a4a048f9966

6 years agoMerge "DO NOT MERGE - Check SDU lower bound before allocate p_data" into oc-mr1-dev
TreeHugger Robot [Sat, 22 Sep 2018 01:35:20 +0000 (01:35 +0000)]
Merge "DO NOT MERGE - Check SDU lower bound before allocate p_data" into oc-mr1-dev

6 years agoMerge "Check SDU lower bound before allocate p_data" into pi-dev
Ugo Yu [Sat, 22 Sep 2018 01:10:53 +0000 (18:10 -0700)]
Merge "Check SDU lower bound before allocate p_data" into pi-dev
am: 895f3665be

Change-Id: I1087769863865abf07ee12a3594d17b9a8a60113

6 years agoMerge "Check SDU lower bound before allocate p_data" into pi-dev
TreeHugger Robot [Sat, 22 Sep 2018 01:00:32 +0000 (01:00 +0000)]
Merge "Check SDU lower bound before allocate p_data" into pi-dev

6 years agoTimer: Separate code path for single and periodic
Hansong Zhang [Thu, 20 Sep 2018 17:15:12 +0000 (10:15 -0700)]
Timer: Separate code path for single and periodic

* Add helper RunSingleTask() and RunPeriodicTask() to handle two cases
  separately
* In RunTask(), check that it must run on specified message loop thread

Bug: 116081383
Test: Run bluetooth_test_common
Change-Id: Idc41b2a509f43dbe946b2e26f2afd775726514aa

6 years ago[automerger skipped] [automerger] DO NOT MERGE - Check SDU lower bound before allocat...
Ugo Yu [Fri, 21 Sep 2018 21:06:13 +0000 (14:06 -0700)]
[automerger skipped] [automerger] DO NOT MERGE - Check SDU lower bound before allocate p_data am: 87bcda81b8 am: 8e31e9abb4 am: e51a7b9760 am: 90248f8fb3 skipped: b3bef4683a am: c5baf9ac24 am: 9bcb338d3d am: 247c18200e  -s ours
am: 98b1791a40

Change-Id: I1b0fddfdf511c4e106791c139ddfb1a8caed1d76

6 years ago[automerger skipped] [automerger] DO NOT MERGE - Check SDU lower bound before allocat...
Ugo Yu [Fri, 21 Sep 2018 21:00:46 +0000 (14:00 -0700)]
[automerger skipped] [automerger] DO NOT MERGE - Check SDU lower bound before allocate p_data am: 87bcda81b8 am: 8e31e9abb4 am: e51a7b9760 am: 90248f8fb3 skipped: b3bef4683a am: c5baf9ac24 am: 9bcb338d3d
am: 247c18200e  -s ours

Change-Id: I55bc0845e682b7cf381bcd68e471c34e839bea2e

6 years ago[automerger] DO NOT MERGE - Check SDU lower bound before allocate p_data am: 87bcda81...
Ugo Yu [Fri, 21 Sep 2018 20:54:48 +0000 (13:54 -0700)]
[automerger] DO NOT MERGE - Check SDU lower bound before allocate p_data am: 87bcda81b8 am: 8e31e9abb4 am: e51a7b9760 am: 90248f8fb3 skipped: b3bef4683a am: c5baf9ac24
am: 9bcb338d3d

Change-Id: I99df5a715a420c7b797996b7235277cb8901585a

6 years ago[automerger] DO NOT MERGE - Check SDU lower bound before allocate p_data am: 87bcda81...
Ugo Yu [Fri, 21 Sep 2018 20:47:18 +0000 (13:47 -0700)]
[automerger] DO NOT MERGE - Check SDU lower bound before allocate p_data am: 87bcda81b8 am: 8e31e9abb4 am: e51a7b9760 am: 90248f8fb3 skipped: b3bef4683a
am: c5baf9ac24

Change-Id: Ifc64ce2a02192aa306e8716ce24098abc1d75b42

6 years agoDO NOT MERGE - Check SDU lower bound before allocate p_data
Ugo Yu [Mon, 17 Sep 2018 07:59:30 +0000 (15:59 +0800)]
DO NOT MERGE - Check SDU lower bound before allocate p_data

Bug: 112321180
Test: SL4A BleCocTest:test_coc_insecured_connection_write_ascii
Change-Id: Id0c9aa2097f0b6bdc2bb9fa9086daa9452188e1d
Merged-In: Id0c9aa2097f0b6bdc2bb9fa9086daa9452188e1d

6 years agoDO NOT MERGE - Check SDU lower bound before allocate p_data
Ugo Yu [Mon, 17 Sep 2018 07:59:30 +0000 (15:59 +0800)]
DO NOT MERGE - Check SDU lower bound before allocate p_data

Bug: 112321180
Test: SL4A BleCocTest:test_coc_insecured_connection_write_ascii
Change-Id: Id0c9aa2097f0b6bdc2bb9fa9086daa9452188e1d

6 years agoMerge "Add net_test_avrcp to general-tests suite" am: 425bca9026
Dan Shi [Wed, 19 Sep 2018 01:04:50 +0000 (18:04 -0700)]
Merge "Add net_test_avrcp to general-tests suite" am: 425bca9026
am: bfbcafd3ed

Change-Id: I3440270bea418fc739e89ab10774e789ad8ffa8a

6 years agoMerge "Add net_test_avrcp to general-tests suite"
Dan Shi [Wed, 19 Sep 2018 00:42:34 +0000 (17:42 -0700)]
Merge "Add net_test_avrcp to general-tests suite"
am: 425bca9026

Change-Id: Iedd9cfa3afce7d3aa0d5e5eafc03cc6cf269dc0b

6 years agoMerge "Add net_test_avrcp to general-tests suite"
Treehugger Robot [Wed, 19 Sep 2018 00:12:50 +0000 (00:12 +0000)]
Merge "Add net_test_avrcp to general-tests suite"

6 years ago[automerger] DO NOT MERGE - Check SDU lower bound before allocate p_data am: 87bcda81...
Android Build Merger (Role) [Tue, 18 Sep 2018 12:50:00 +0000 (12:50 +0000)]
[automerger] DO NOT MERGE - Check SDU lower bound before allocate p_data am: 87bcda81b8 am: 8e31e9abb4 am: e51a7b9760 am: 90248f8fb3 skipped: b3bef4683a

Change-Id: I839953933568edcea6c43f0e0b772ae07fb7244a

6 years ago[automerger] DO NOT MERGE - Check SDU lower bound before allocate p_data am: 87bcda81...
Android Build Merger (Role) [Tue, 18 Sep 2018 12:49:56 +0000 (12:49 +0000)]
[automerger] DO NOT MERGE - Check SDU lower bound before allocate p_data am: 87bcda81b8 am: 8e31e9abb4 am: e51a7b9760 am: 90248f8fb3

Change-Id: I99e2abfb378fbfba47ff55cfeb6b825b825088e8

6 years ago[automerger] DO NOT MERGE - Check SDU lower bound before allocate p_data am: 87bcda81...
Android Build Merger (Role) [Tue, 18 Sep 2018 12:49:52 +0000 (12:49 +0000)]
[automerger] DO NOT MERGE - Check SDU lower bound before allocate p_data am: 87bcda81b8 am: 8e31e9abb4 am: e51a7b9760

Change-Id: I13a2cd3d213f204feb8a7dcf0430aa5a729efddd

6 years ago[automerger] DO NOT MERGE - Check SDU lower bound before allocate p_data am: 87bcda81...
Android Build Merger (Role) [Tue, 18 Sep 2018 12:49:49 +0000 (12:49 +0000)]
[automerger] DO NOT MERGE - Check SDU lower bound before allocate p_data am: 87bcda81b8 am: 8e31e9abb4

Change-Id: Icfc1e9961a59325a522ab4385411efe446b19ce1

6 years ago[automerger] DO NOT MERGE - Check SDU lower bound before allocate p_data am: 87bcda81b8
Android Build Merger (Role) [Tue, 18 Sep 2018 12:49:46 +0000 (12:49 +0000)]
[automerger] DO NOT MERGE - Check SDU lower bound before allocate p_data am: 87bcda81b8

Change-Id: I51d65f4d9ddba01e86ee88b600e820af4f431415

6 years agoDO NOT MERGE - Check SDU lower bound before allocate p_data
Ugo Yu [Tue, 18 Sep 2018 12:49:22 +0000 (20:49 +0800)]
DO NOT MERGE - Check SDU lower bound before allocate p_data

Bug: 112321180
Test: SL4A BleCocTest:test_coc_insecured_connection_write_ascii
Change-Id: Id0c9aa2097f0b6bdc2bb9fa9086daa9452188e1d

6 years agoCheck SDU lower bound before allocate p_data
Ugo Yu [Mon, 17 Sep 2018 07:59:30 +0000 (15:59 +0800)]
Check SDU lower bound before allocate p_data

Bug: 112321180
Test: SL4A BleCocTest:test_coc_insecured_connection_write_ascii
Change-Id: Id0c9aa2097f0b6bdc2bb9fa9086daa9452188e1d

6 years agoFix clang-tidy performance warnings in system/bt. am: b78d2791de
Chih-Hung Hsieh [Tue, 18 Sep 2018 10:51:30 +0000 (03:51 -0700)]
Fix clang-tidy performance warnings in system/bt. am: b78d2791de
am: 14a0a9f225

Change-Id: Ic378e2de4c7ca747fef76a398e83f65d20e53dba

6 years agoFix clang-tidy performance warnings in system/bt.
Chih-Hung Hsieh [Tue, 18 Sep 2018 10:36:22 +0000 (03:36 -0700)]
Fix clang-tidy performance warnings in system/bt.
am: b78d2791de

Change-Id: I3c9d0768e73523dac093e00842d658ea25050dac

6 years agoFix clang-tidy performance warnings in system/bt.
Chih-Hung Hsieh [Mon, 17 Sep 2018 22:16:18 +0000 (15:16 -0700)]
Fix clang-tidy performance warnings in system/bt.

* Use more efficient overloaded string methods.

Bug: 30411878
Test: build with WITH_TIDY=1
Change-Id: Iff759bf68ede3bb6bdd8e332b3490128eee3b5fe

6 years agoSuppress implicit-fallthrough warnings. am: d464658a77
Chih-Hung Hsieh [Mon, 17 Sep 2018 19:44:25 +0000 (12:44 -0700)]
Suppress implicit-fallthrough warnings. am: d464658a77
am: e60632db7a

Change-Id: I006e1889251c8a5b0fc81d376169879009b3c731

6 years agoSuppress implicit-fallthrough warnings.
Chih-Hung Hsieh [Mon, 17 Sep 2018 19:40:21 +0000 (12:40 -0700)]
Suppress implicit-fallthrough warnings.
am: d464658a77

Change-Id: I98938affe622af4a82422cfe550cd8ef38afb8cb

6 years agoSuppress implicit-fallthrough warnings.
Chih-Hung Hsieh [Wed, 12 Sep 2018 22:20:43 +0000 (15:20 -0700)]
Suppress implicit-fallthrough warnings.

Add FALLTHROUGH_INTENDED for clang compiler.

Bug: 112564944
Test: build with global -Wimplicit-fallthrough.
Change-Id: Iedf7e46445101a5e3358473e1200212d67cf58d1

6 years agoMerge "AVRCP Controller media session queue" am: ad6183c330
Joseph Pirozzo [Sat, 15 Sep 2018 00:38:06 +0000 (17:38 -0700)]
Merge "AVRCP Controller media session queue" am: ad6183c330
am: 8f413cbb9d

Change-Id: Ic3e315278b1f777373a6299367f45b3ca6404f24

6 years agoMerge "AVRCP Controller media session queue"
Joseph Pirozzo [Sat, 15 Sep 2018 00:18:53 +0000 (17:18 -0700)]
Merge "AVRCP Controller media session queue"
am: ad6183c330

Change-Id: I8ecc2b8214fa174ab7eec531965a8edb57323a4a

6 years agoMerge "AVRCP Controller media session queue"
Joseph Pirozzo [Fri, 14 Sep 2018 22:48:55 +0000 (22:48 +0000)]
Merge "AVRCP Controller media session queue"

6 years agoAdd Timer as an alternative to osi alarm am: 438b08c27d
Hansong Zhang [Fri, 14 Sep 2018 18:19:38 +0000 (11:19 -0700)]
Add Timer as an alternative to osi alarm am: 438b08c27d
am: 59f0c33051

Change-Id: I15f47b50641c51603285fdc8320ea04c327658e9

6 years agoAdd Timer as an alternative to osi alarm
Hansong Zhang [Fri, 14 Sep 2018 18:08:31 +0000 (11:08 -0700)]
Add Timer as an alternative to osi alarm
am: 438b08c27d

Change-Id: I63c59ba8d40104220d0d8762ef41722e8f1d219f

6 years agoAdd net_test_avrcp to general-tests suite
Dan Shi [Fri, 14 Sep 2018 17:38:26 +0000 (10:38 -0700)]
Add net_test_avrcp to general-tests suite

This is the first step for it to run in lab. With this, the test binary
will be included in general-tests.zip (test_suite* target). From there,
we can kick off the test in the lab using TF, with the right options.

Bug: 111921389
Test: m -j net_test_avrcp
./host/linux-x86/testcases/net_test_avrcp/x86_64/net_test_avrcp

Change-Id: I4de9409b4a9d4c066a9024a33d6a980ecb451dc1

6 years agoAdd Timer as an alternative to osi alarm
Hansong Zhang [Tue, 14 Aug 2018 21:29:23 +0000 (14:29 -0700)]
Add Timer as an alternative to osi alarm

* Add a private method MessageLoopThread.DoInThreadDelayed to post a
  delayed task in message loop, as an alternative approach to osi alarm
  clock
* Add a unit test for MessageLoopThread to check ShutDown() waits until
  current task finishes
* Add Timer using MessageLoopThread.DoInThreadDelayed
* Timer provides similar API as osi alarm, and uses same OS clock (boot
  timer) as alarm
* Add benchmark and unit tests to ensure the performance is comparable
  to the existing osi alarm

Test: Run unit test and benchmark test
      ./test/run_unit_tests.sh bluetooth_test_common
      ./test/run_benchmarks.sh bluetooth_benchmark_timer_performance
      --benchmark_repetitions=10 --benchmark_report_aggregates_only=true
Bug: 110303473
Change-Id: I6f2e7ae2f80f9889fc5fe3c8cd6b9b2670938b46

6 years agoMerge "Add support for A2DP LDAC Sink function" am: 58eac77949
Chisato Kenmochi [Thu, 13 Sep 2018 02:51:17 +0000 (19:51 -0700)]
Merge "Add support for A2DP LDAC Sink function" am: 58eac77949
am: a6586cc4d0

Change-Id: I570ae016c40ec9c15a4e7de603107ae2bb3ec23e

6 years agoMerge "Add support for A2DP LDAC Sink function"
Chisato Kenmochi [Thu, 13 Sep 2018 02:33:47 +0000 (19:33 -0700)]
Merge "Add support for A2DP LDAC Sink function"
am: 58eac77949

Change-Id: Ic25017f7eb5186af86262d9215c9aab7f6b15eae

6 years agoMerge "Add support for A2DP LDAC Sink function"
Treehugger Robot [Thu, 13 Sep 2018 01:30:08 +0000 (01:30 +0000)]
Merge "Add support for A2DP LDAC Sink function"

6 years agoMerge "Add extractBE to the Bluetooth Packets Iterators" am: 7314f08016
Ajay Panicker [Wed, 12 Sep 2018 23:25:45 +0000 (16:25 -0700)]
Merge "Add extractBE to the Bluetooth Packets Iterators" am: 7314f08016
am: 0557ce7e71

Change-Id: I8baa21a2b69607c31aac756df7f069821092186a

6 years agoMerge "Add extractBE to the Bluetooth Packets Iterators"
Ajay Panicker [Wed, 12 Sep 2018 23:04:49 +0000 (16:04 -0700)]
Merge "Add extractBE to the Bluetooth Packets Iterators"
am: 7314f08016

Change-Id: Ib385dd3b0dd39f09f455d40e6ecbf195006954ff

6 years agoMerge "Add extractBE to the Bluetooth Packets Iterators"
Ajay Panicker [Wed, 12 Sep 2018 22:27:42 +0000 (22:27 +0000)]
Merge "Add extractBE to the Bluetooth Packets Iterators"

6 years agoAdd a check whether an A2DP codec is supported before including it am: 7240fe907d
Pavlin Radoslavov [Wed, 12 Sep 2018 22:17:48 +0000 (15:17 -0700)]
Add a check whether an A2DP codec is supported before including it am: 7240fe907d
am: 543791d858

Change-Id: Id1ace154ecbc7e8fc5ba080a360dddbcd8eda141

6 years agoAdd a check whether an A2DP codec is supported before including it
Pavlin Radoslavov [Wed, 12 Sep 2018 20:47:47 +0000 (13:47 -0700)]
Add a check whether an A2DP codec is supported before including it
am: 7240fe907d

Change-Id: Iea19097028e8d0e39ec36f069c201b556780986c

6 years agoAdd support for A2DP LDAC Sink function
Chisato Kenmochi [Fri, 10 Aug 2018 11:44:05 +0000 (20:44 +0900)]
Add support for A2DP LDAC Sink function

Note: The LDAC decoder source code is needed to run with this patch.

Bug: 112839060
Test: Manual
Change-Id: Idce0070dcce4d6b83cfd08213b846d957d694d26
Signed-off-by: Chisato Kenmochi <Chisato.Kenmochi@sony.com>
6 years agoAdd a check whether an A2DP codec is supported before including it
Pavlin Radoslavov [Tue, 11 Sep 2018 23:47:47 +0000 (16:47 -0700)]
Add a check whether an A2DP codec is supported before including it

Some of the A2DP SRC or SNK codecs might not be supported if the
corresponding shared library is not included.
Don't include such codecs when configuring and registering
the stream end points on the local device.

Bug: 112839060
Test: Manual - remove A2DP codec shared libraries and check the
      returned AVDTP Capabilities
Change-Id: Ia8fbdac915b208f9950ef7c9f50e3e0dc87e9111

6 years agoAdd extractBE to the Bluetooth Packets Iterators
Ajay Panicker [Mon, 10 Sep 2018 19:01:50 +0000 (12:01 -0700)]
Add extractBE to the Bluetooth Packets Iterators

ExtractBE allows data to be extracted from Bluetooth packets in a big
endian format.

Bug: 114751344
Test: run net_test_btpackets
Change-Id: Ib01d726893e106d34c11048acc09fee201d81c09

6 years agoMerge "Fix spacing in hearing aid dumpsys" am: 3ffd7b89f4
Hansong Zhang [Mon, 10 Sep 2018 23:58:28 +0000 (16:58 -0700)]
Merge "Fix spacing in hearing aid dumpsys" am: 3ffd7b89f4
am: b0958b1406

Change-Id: I5745b12c0570cab764627f30260840886d771319

6 years agoMerge "Fix spacing in hearing aid dumpsys"
Hansong Zhang [Mon, 10 Sep 2018 23:53:05 +0000 (16:53 -0700)]
Merge "Fix spacing in hearing aid dumpsys"
am: 3ffd7b89f4

Change-Id: I191efc21cc16fdca30bf8801a58ab42bd53607a9

6 years agoMerge "Fix spacing in hearing aid dumpsys"
Treehugger Robot [Mon, 10 Sep 2018 23:40:29 +0000 (23:40 +0000)]
Merge "Fix spacing in hearing aid dumpsys"

6 years agoDisable absolute volume control for deepblue2 speaker am: a81834c826
Pavlin Radoslavov [Mon, 10 Sep 2018 18:42:05 +0000 (11:42 -0700)]
Disable absolute volume control for deepblue2 speaker am: a81834c826
am: ab839b3bb7

Change-Id: I7675fd1a45a54552135a3a8c79024eb411df1b0f

6 years agoDisable absolute volume control for deepblue2 speaker
Pavlin Radoslavov [Mon, 10 Sep 2018 18:36:58 +0000 (11:36 -0700)]
Disable absolute volume control for deepblue2 speaker
am: a81834c826

Change-Id: Ibfa7c7315559eb333965cbefc537a948d2f8352a

6 years agoDisable absolute volume control for deepblue2 speaker
Pavlin Radoslavov [Sun, 9 Sep 2018 18:06:21 +0000 (11:06 -0700)]
Disable absolute volume control for deepblue2 speaker

The speaker does not accept the volume levels from the Phone.
It responds back with rounded down volume levels.

Bug: b/37834035
Test: Manual
Change-Id: Ie5575233c3cf31c087addd3cef1c12ad36b820b0

6 years agoFix spacing in hearing aid dumpsys
Hansong Zhang [Fri, 7 Sep 2018 16:39:22 +0000 (09:39 -0700)]
Fix spacing in hearing aid dumpsys

Bug: 114242876
Test: See dumpsys output for bluetooth_manager
Change-Id: Ifb0884ba4e90e2b925bafc52a15d3375c9aec288

6 years agoMerge "Check data length when parsing AVRCP vendor specific command responses" into...
Pavlin Radoslavov [Fri, 7 Sep 2018 16:39:21 +0000 (09:39 -0700)]
Merge "Check data length when parsing AVRCP vendor specific command responses" into oc-dev am: 03e6de3be8 am: 36e56d4b33 am: e03c093530
am: 80207d727b

Change-Id: Iaca49963c9981f6ee966818483126247be906afe

6 years agoMerge changes from topic "bt-security-avrc_pars_vendor_rsp-length-check-nyc-dev"...
Pavlin Radoslavov [Fri, 7 Sep 2018 16:38:47 +0000 (09:38 -0700)]
Merge changes from topic "bt-security-avrc_pars_vendor_rsp-length-check-nyc-dev" into oc-dev am: a57a887b16 am: 0c13a140c9 am: 8dd01ede32
am: d217ea4fe5

Change-Id: I46926aee204eafe4b93471b7265756e3fbdb0daf

6 years agoMerge changes from topic "bt-security-avrc_ctrl_pars_vendor_rsp-length-check-nyc...
Pavlin Radoslavov [Fri, 7 Sep 2018 16:35:18 +0000 (09:35 -0700)]
Merge changes from topic "bt-security-avrc_ctrl_pars_vendor_rsp-length-check-nyc-dev" into oc-dev am: 5e20d5088c am: afc8839cea am: 9b86fdb58e
am: c5fec613ad

Change-Id: Ib22ebfe396f9eda7071557ddd4ca07159283897b