OSDN Git Service

android-x86/system-bt.git
5 years agoLoad gatt_database if it is empty in bta_gattc_process_indicate
weichinweng [Tue, 11 Jun 2019 14:02:46 +0000 (22:02 +0800)]
Load gatt_database if it is empty in bta_gattc_process_indicate

If Service Changed indication is received but gatt_database is empty,
will try to load database from storage.

Bug: 131814072
Bug: 134994428
Test: 1.CTS Bluetooth LE Secure Test. 2.Unit test.
3. Pair BLE device via APP. 4. Pair device via Bluetooth Setting

Change-Id: Id3f3f0f33d5e0469a6f2ac6612fa9f5ea0b24142

5 years agoMerge "Revert "Open connection if it doesn't exsist in bta_gattc_process_indicate""
Jakub Pawlowski [Tue, 11 Jun 2019 18:18:48 +0000 (18:18 +0000)]
Merge "Revert "Open connection if it doesn't exsist in bta_gattc_process_indicate""

5 years agoRevert "Open connection if it doesn't exsist in bta_gattc_process_indicate"
Jakub Pawlowski [Tue, 11 Jun 2019 11:30:04 +0000 (11:30 +0000)]
Revert "Open connection if it doesn't exsist in bta_gattc_process_indicate"

This reverts commit ffc95919835bbf89d635516955bff1b3b8a17641.

Reason for revert: breaks HA bonding from within app.

Bug: 134942525
Change-Id: I824391b1c84b535d7f251e176a5169eb79921c7f

5 years agoOS: Update Handler unittest
Myles Watson [Fri, 7 Jun 2019 15:57:16 +0000 (08:57 -0700)]
OS: Update Handler unittest

Test: bluetooth_test_gd
Change-Id: I14bb8c8852d8749e9c531ac18f18a39c92dae922

5 years agoOS: Don't hold the lock while the callback runs
Myles Watson [Mon, 10 Jun 2019 20:10:52 +0000 (13:10 -0700)]
OS: Don't hold the lock while the callback runs

Test: bluetooth_test_gd \
     --gtest_filter=*unregister_from_different_thread*
Change-Id: Icd820cd1a68a6ec26f0284b5c2bd7ba673bebb0c

5 years agoDO NOT MERGE - Merge pie-platform-release (PPRL.190605.003) into master
The Android Open Source Project [Mon, 10 Jun 2019 16:32:28 +0000 (09:32 -0700)]
DO NOT MERGE - Merge pie-platform-release (PPRL.190605.003) into master

Bug: 134605042
Change-Id: Icf8a142122c66c40c9e906380778d1d0237ba4be

5 years agoMerge "DO NOT MERGE - Merge pi-platform-release (PPRL.190605.003) into stage-aosp...
TreeHugger Robot [Fri, 7 Jun 2019 07:06:20 +0000 (07:06 +0000)]
Merge "DO NOT MERGE - Merge pi-platform-release (PPRL.190605.003) into stage-aosp-master" into stage-aosp-master

5 years agoDO NOT MERGE - Merge pi-platform-release (PPRL.190605.003) into stage-aosp-master
Xin Li [Wed, 5 Jun 2019 22:41:48 +0000 (15:41 -0700)]
DO NOT MERGE - Merge pi-platform-release (PPRL.190605.003) into stage-aosp-master

Bug: 134605042
Change-Id: I5be87422d75fb89d35135a5e087920fae1f6b2d6

5 years agoMerge "OS: Create Alarms on a Handler's thread"
Myles Watson [Wed, 5 Jun 2019 23:41:55 +0000 (16:41 -0700)]
Merge "OS: Create Alarms on a Handler's thread"
am: e1c1b2d8f6

Change-Id: Ie4238a454195704381a14337cf6c62ba340569f4

5 years agoMerge "OS: Create Alarms on a Handler's thread"
Treehugger Robot [Wed, 5 Jun 2019 23:15:28 +0000 (23:15 +0000)]
Merge "OS: Create Alarms on a Handler's thread"

5 years agoOS: Create Alarms on a Handler's thread
Myles Watson [Mon, 3 Jun 2019 16:25:28 +0000 (09:25 -0700)]
OS: Create Alarms on a Handler's thread

Test: bluetooth_test_gd --gtest_filter=*Alarm*
Change-Id: I017a5f74f1d72468ca487536c88a0cf3eb48ddea

5 years agoRename and reset the proirity of HID host thread
Ugo Yu [Wed, 5 Jun 2019 17:30:25 +0000 (10:30 -0700)]
Rename and reset the proirity of HID host thread
am: 4e25ef13b2

Change-Id: If957c7e793d4ae2462d9b1c5a57e17a91224d02a

5 years agoRename and reset the proirity of HID host thread
Ugo Yu [Wed, 5 Jun 2019 12:08:29 +0000 (20:08 +0800)]
Rename and reset the proirity of HID host thread

* Rename the HH event polling thread to bt_hh_thread
* HH event polling thread is created by bt_main_thread
  with RT priority. Lower the thread priority since the
  tasks in this thread is not timing critical

Bug: 131787936
Test: Connect to a HID device
      Run "adb shell ps -A -T -Z -O rtprio"
Change-Id: Ibd983e96bc339393842d4c2e2aa226534095e225

5 years agoUse Start for testing and add a Stop timeout
Myles Watson [Wed, 5 Jun 2019 02:41:15 +0000 (19:41 -0700)]
Use Start for testing and add a Stop timeout
am: 879fbfbed8

Change-Id: I3ae3d628144a8aadd91f86814513f28413d4d60e

5 years agoSnap for 5524043 from d0b9f6155d878426fa948b28b51b4b4c5989201e to pi-platform-release
android-build-team Robot [Wed, 5 Jun 2019 01:45:50 +0000 (01:45 +0000)]
Snap for 5524043 from d0b9f6155d878426fa948b28b51b4b4c5989201e to pi-platform-release

Change-Id: Id0f4c260caf8b1b91cca9955c2a57e5c194574ba

5 years agoHearing Aid: properly track audio Suspend/Resume
Jakub Pawlowski [Wed, 5 Jun 2019 01:02:17 +0000 (18:02 -0700)]
Hearing Aid: properly track audio Suspend/Resume
am: 054762bcfe

Change-Id: I3aa6513dab1773d521933bc69fb1eb731d6835f1

5 years agoUse Start for testing and add a Stop timeout
Myles Watson [Tue, 7 May 2019 00:54:51 +0000 (17:54 -0700)]
Use Start for testing and add a Stop timeout

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

5 years agoHearing Aid: properly track audio Suspend/Resume
Jakub Pawlowski [Tue, 4 Jun 2019 21:23:16 +0000 (23:23 +0200)]
Hearing Aid: properly track audio Suspend/Resume

When audio is suspended or resumed, we are notified by OnAudioSuspend or
OnAudioResume callback. Unfortunately, when we are the one triggering
the HearingAidAudioSource::Stop(), we would not receive the suspend
callback. This is causing HA to believe audio is being streamed when
it's not.

This patch fixes that by setting audio_running to false when we make
call to Stop()

Bug: 132793574
Test: Play audio, restart Hearing Aid, verify START command is not being
sent

Change-Id: I3c4551114ac275ea8c72f64a8d036373429acd6d

5 years agoOS: Add death tests for en/de-queue registration
Myles Watson [Mon, 3 Jun 2019 21:55:31 +0000 (14:55 -0700)]
OS: Add death tests for en/de-queue registration
am: b06e0b59cb

Change-Id: Ifcbaec5cd56ec89e1a4a965e8b53b38a085f51bf

5 years agoRevert "OS: Construct Handler using Reactor"
Myles Watson [Mon, 3 Jun 2019 21:34:58 +0000 (14:34 -0700)]
Revert "OS: Construct Handler using Reactor"
am: dde08cdba3

Change-Id: I866c437c67e72b0b8f0372f3aa02a1f463f143c8

5 years agoOS: Add death tests for en/de-queue registration
Myles Watson [Mon, 3 Jun 2019 16:13:21 +0000 (09:13 -0700)]
OS: Add death tests for en/de-queue registration

Test: bluetooth_gd_test
Change-Id: Iadf126018a2c919fa10096506009674e7a2cd73c

5 years agoRevert "OS: Construct Handler using Reactor"
Myles Watson [Mon, 3 Jun 2019 16:06:26 +0000 (09:06 -0700)]
Revert "OS: Construct Handler using Reactor"

Reactors are an implementation-specific detail.

This reverts commit 0a2f52e692bb65cea7ecff7ce1b1e839b786d5c7.
Test: bluetooth_gd_test

Change-Id: If74a9e0f32671ba96a723e51eee495f2aebf1e7c

5 years agoMerge "BLE: [IOT] Initiate disconnection when encryption fails during pairing"
Sumit Deshmukh [Mon, 3 Jun 2019 07:42:51 +0000 (00:42 -0700)]
Merge "BLE: [IOT] Initiate disconnection when encryption fails during pairing"
am: d4ce321925

Change-Id: Ifd3589b0b55ba1501e84251351f41b56886b32dc

5 years agoMerge "BLE: [IOT] Initiate disconnection when encryption fails during pairing"
Treehugger Robot [Mon, 3 Jun 2019 07:37:32 +0000 (07:37 +0000)]
Merge "BLE: [IOT] Initiate disconnection when encryption fails during pairing"

5 years agoMerge "GD SMP ECC: Add const qualifier to ECC_PointMult"
Jakub Pawlowski [Fri, 31 May 2019 23:35:11 +0000 (16:35 -0700)]
Merge "GD SMP ECC: Add const qualifier to ECC_PointMult"
am: f3136f33b4

Change-Id: I781d4aedae80ae00cd4e3493c8c7fc795f74fc15

5 years agoMerge "GD SMP ECC: Add const qualifier to ECC_PointMult"
Treehugger Robot [Fri, 31 May 2019 23:05:56 +0000 (23:05 +0000)]
Merge "GD SMP ECC: Add const qualifier to ECC_PointMult"

5 years agoGD SMP: use fixed size arrays in packets
Jakub Pawlowski [Fri, 31 May 2019 20:13:52 +0000 (13:13 -0700)]
GD SMP: use fixed size arrays in packets
am: 4ea3700df7

Change-Id: Idbd285f34f15fc9436739d8efd4fd6aeeb0a4d15

5 years agoGD SMP: use fixed size arrays in packets
Jakub Pawlowski [Fri, 31 May 2019 12:16:35 +0000 (14:16 +0200)]
GD SMP: use fixed size arrays in packets

Test: compilation
Bug: 126463795
Change-Id: Iad1fd5004efab67294c6926475625e4c4b35a38c

5 years agoPDL: fixed size type arrays
Jakub Pawlowski [Fri, 31 May 2019 15:56:55 +0000 (08:56 -0700)]
PDL: fixed size type arrays
am: a1a27f8f4c

Change-Id: I179ac2bd7dca5ccf27049a1c89a7e8d765dcc669

5 years agoPDL: fixed size type arrays
Jakub Pawlowski [Fri, 31 May 2019 12:07:44 +0000 (14:07 +0200)]
PDL: fixed size type arrays

Currently attempt to add fixed size array is causing segfault. This
patch fixes that. It also adds a test to verify those arrays are
properly encoded and decoded.

Test: bluetooth_packet_parser_test
Change-Id: I09c7e5595a7d1819a43e9203846bb487fb23aca3

5 years agoHCI Layer: Register CommandComplete and CommandStatus on Start()
Hansong Zhang [Thu, 30 May 2019 23:51:39 +0000 (16:51 -0700)]
HCI Layer: Register CommandComplete and CommandStatus on Start()
am: 712e9e2f79

Change-Id: Id706b779f96c5e9ddfc7f994e9e4d83c65898b99

5 years agoHCI Layer: Register CommandComplete and CommandStatus on Start()
Hansong Zhang [Thu, 30 May 2019 00:52:24 +0000 (17:52 -0700)]
HCI Layer: Register CommandComplete and CommandStatus on Start()

Module.GetHandler() works only after a Module is started. Move
RegisterEventHandler() for CommandComplete and CommandStatus to Start().

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

5 years agoMerge "PDL: Add Arrays"
Jakub Pawlowski [Thu, 30 May 2019 17:57:36 +0000 (10:57 -0700)]
Merge "PDL: Add Arrays"
am: 7d7dd39e90

Change-Id: I56e5fdfba619fb7ea9cede16320c1be360b80133

5 years agoMerge "PDL: Add Arrays"
Jakub Pawlowski [Thu, 30 May 2019 17:45:17 +0000 (17:45 +0000)]
Merge "PDL: Add Arrays"

5 years agoMerge "Make sure the Hearing Aid source is ready before resuming or suspending calls"
Cheney Ni [Thu, 30 May 2019 03:16:45 +0000 (20:16 -0700)]
Merge "Make sure the Hearing Aid source is ready before resuming or suspending calls"
am: f58ec178f5

Change-Id: Ied52e1d024172e4cb369b0af3641f04e294c195c

5 years agoMerge "Make sure the Hearing Aid source is ready before resuming or suspending calls"
Treehugger Robot [Thu, 30 May 2019 02:58:08 +0000 (02:58 +0000)]
Merge "Make sure the Hearing Aid source is ready before resuming or suspending calls"

5 years agoPDL: Add Arrays
Myles Watson [Wed, 6 Feb 2019 22:02:36 +0000 (14:02 -0800)]
PDL: Add Arrays

Test: bluetooth_packet_parser_test
Change-Id: If7f057a16ab40066a53d2c66980c5579a480650f

5 years agoOpen connection if it doesn't exsist in bta_gattc_process_indicate
weichinweng [Wed, 29 May 2019 10:46:42 +0000 (03:46 -0700)]
Open connection if it doesn't exsist in bta_gattc_process_indicate
am: ffc9591983

Change-Id: I1aab49dcdb7c2212271b6c0b8006b0edfdbb6712

5 years agoOpen connection if it doesn't exsist in bta_gattc_process_indicate
weichinweng [Wed, 29 May 2019 06:27:15 +0000 (14:27 +0800)]
Open connection if it doesn't exsist in bta_gattc_process_indicate

If Service Changed indication is received before the connection is open
, send the BTA_GATTC_INT_CONN_EVT to open it before processing the
indication.

Bug: 131814072
Test: CTS Bluetooth LE Secure Test. Unit test.

Change-Id: I1b3415ef6aafb52a6ac229409514a85f35de5842

5 years agoMerge "OS: Hold the mutex when decreasing the semaphore"
Myles Watson [Tue, 28 May 2019 20:46:45 +0000 (13:46 -0700)]
Merge "OS: Hold the mutex when decreasing the semaphore"
am: 056e104366

Change-Id: I008b66416a6f1236a005ff1148e7cc57a14e2868

5 years agoMerge "OS: Protect invalidation_list_ with the mutex"
Myles Watson [Tue, 28 May 2019 20:46:26 +0000 (13:46 -0700)]
Merge "OS: Protect invalidation_list_ with the mutex"
am: 0f9422e984

Change-Id: Ib22eaeb3df605985fb3739c476ccdfc717bd8137

5 years agoMerge "OS: Hold the mutex when decreasing the semaphore"
Treehugger Robot [Tue, 28 May 2019 20:31:20 +0000 (20:31 +0000)]
Merge "OS: Hold the mutex when decreasing the semaphore"

5 years agoMerge "OS: Protect invalidation_list_ with the mutex"
Treehugger Robot [Tue, 28 May 2019 20:29:21 +0000 (20:29 +0000)]
Merge "OS: Protect invalidation_list_ with the mutex"

5 years agoMake sure the Hearing Aid source is ready before resuming or suspending calls
Cheney Ni [Fri, 24 May 2019 06:59:43 +0000 (14:59 +0800)]
Make sure the Hearing Aid source is ready before resuming or suspending calls

Those calls to resume / suspend streaming are from the audio's IPC
threads like HwBinder or UIPC, and calls to start / end session are from
the stack main thread. There is timing that those threads may run in
parallel, and trys to change the streaming state when the Hearing Aid
source is not ready. This change checks the source state before resuming
or suspending streaming, and breaks the deadlock between IPC threads and
the stack main thread.

Bug: 132860565
Test: 1. Connected to a Hearing Aids and disable the Bluetooth
      2. Switch the active device manually

Change-Id: I6ae11faab3d530c65f55ffa9b8a9f3cae2bde5f4

5 years agoMerge changes I42c47d98,If38ad50d
Colin Cross [Tue, 28 May 2019 17:58:24 +0000 (10:58 -0700)]
Merge changes I42c47d98,If38ad50d
am: 558c5114b6

Change-Id: I0cd8aba87330c1b8dd77eeefb83542e15d5b76e3

5 years agoGD SMP ECC: Add const qualifier to ECC_PointMult
Jakub Pawlowski [Mon, 27 May 2019 19:40:13 +0000 (21:40 +0200)]
GD SMP ECC: Add const qualifier to ECC_PointMult

Second parameter passed to ECC_PointMult is either remote device public
key, or the constant from the BT spec. Both of them should never be modified.

Assigning the "z" value inside ECC_PointMult had no effect on the rest
of computation.

Test: SmpEccValidationTest
Bug: 126463795
Change-Id: I0530d26e0e8841cb8b263ea948ae7a19850f0670

5 years agoMerge changes I42c47d98,If38ad50d
Treehugger Robot [Tue, 28 May 2019 17:52:14 +0000 (17:52 +0000)]
Merge changes I42c47d98,If38ad50d

* changes:
  Fix mac build
  bpfmt -w $(find . -name Android.bp)

5 years agoMerge "Add missing header in gd/packet/parser/checksum_type_checker.h"
Jakub Pawlowski [Tue, 28 May 2019 17:20:12 +0000 (10:20 -0700)]
Merge "Add missing header in gd/packet/parser/checksum_type_checker.h"
am: 7b4e117cd7

Change-Id: Iaa4dd3b3a6da0812a0e0486dc2286c85794ba4ef

5 years agoOS: Hold the mutex when decreasing the semaphore
Myles Watson [Tue, 28 May 2019 16:43:55 +0000 (09:43 -0700)]
OS: Hold the mutex when decreasing the semaphore

Test: bluetooth_test_gd # Run in a loop
Change-Id: I72e9f28c417986f63390cbbbe6467f64df6e9237

5 years agoMerge "Add missing header in gd/packet/parser/checksum_type_checker.h"
Treehugger Robot [Tue, 28 May 2019 17:02:33 +0000 (17:02 +0000)]
Merge "Add missing header in gd/packet/parser/checksum_type_checker.h"

5 years agoOS: Protect invalidation_list_ with the mutex
Myles Watson [Fri, 24 May 2019 21:23:41 +0000 (14:23 -0700)]
OS: Protect invalidation_list_ with the mutex

Test: AclManagerTest.startup_teardown
Change-Id: I5a9467691ffd1bb6bc2bb9d1080dce5f5bc655fa

5 years agoGD ECC: add const qualifiers
Jakub Pawlowski [Tue, 28 May 2019 16:18:58 +0000 (09:18 -0700)]
GD ECC: add const qualifiers
am: c49f35a9e7

Change-Id: I957679ee7cc5e3eb3f8407d6bd608066bac1695d

5 years agoAdd missing header in gd/packet/parser/checksum_type_checker.h
Jakub Pawlowski [Tue, 28 May 2019 15:55:47 +0000 (17:55 +0200)]
Add missing header in gd/packet/parser/checksum_type_checker.h

Test: compilation
Change-Id: I7a72cba471db5e59c8a6fa2ee1ba03cc258719ef

5 years agoGD ECC: add const qualifiers
Jakub Pawlowski [Mon, 27 May 2019 18:25:49 +0000 (20:25 +0200)]
GD ECC: add const qualifiers

Test: SmpEccValidationTest
Bug: 126463795
Change-Id: I2e8b6027f959a181655286fb061bbb30b91e57f8

5 years agoMerge "Disable absolute volume control for AirPods 2"
Ted Wang [Mon, 27 May 2019 02:01:26 +0000 (19:01 -0700)]
Merge "Disable absolute volume control for AirPods 2"
am: d05a79af66

Change-Id: If83644e1903e4e2b8046ff8f21d04131ce9780f6

5 years agoMerge "Disable absolute volume control for AirPods 2"
Ted Wang [Mon, 27 May 2019 01:50:04 +0000 (01:50 +0000)]
Merge "Disable absolute volume control for AirPods 2"

5 years agoGD SMP ECC improvements part 1
Jakub Pawlowski [Sat, 25 May 2019 13:21:24 +0000 (06:21 -0700)]
GD SMP ECC improvements part 1
am: 93ecb665a5

Change-Id: If3afe3f844e8d6134fba4af4105cb5386244923d

5 years agoMerge "Eliptic Curve Cryptography for GD"
Jakub Pawlowski [Sat, 25 May 2019 09:06:40 +0000 (02:06 -0700)]
Merge "Eliptic Curve Cryptography for GD"
am: e5656f79b2

Change-Id: I80ae2e38c782c96b37cc9603cd5eb7f4da71a239

5 years agoGD SMP ECC improvements part 1
Jakub Pawlowski [Thu, 23 May 2019 15:06:58 +0000 (17:06 +0200)]
GD SMP ECC improvements part 1

* make curve parameters into constants
* separate multipoint from BT specific ECC curve

Test: SmpEccValidationTest
Bug: 126463795
Change-Id: If6401c3038b340926310eafb40c2b7c5dc40dba9

5 years agoMerge "Eliptic Curve Cryptography for GD"
Jakub Pawlowski [Sat, 25 May 2019 08:53:14 +0000 (08:53 +0000)]
Merge "Eliptic Curve Cryptography for GD"

5 years agoMerge changes I610e6f4f,Ib7dc12d8
Myles Watson [Fri, 24 May 2019 20:22:48 +0000 (13:22 -0700)]
Merge changes I610e6f4f,Ib7dc12d8
am: a86d1b4490

Change-Id: I92ad02a08fa616879133f76ee55c3d62af5008e7

5 years agoMerge changes I610e6f4f,Ib7dc12d8
Treehugger Robot [Fri, 24 May 2019 19:50:25 +0000 (19:50 +0000)]
Merge changes I610e6f4f,Ib7dc12d8

* changes:
  OS: Construct Handler using Reactor
  Queue: Store callbacks in the runnable

5 years agoMerge "Turn off the new pass manager for coverage builds"
Yi Kong [Fri, 24 May 2019 18:10:42 +0000 (11:10 -0700)]
Merge "Turn off the new pass manager for coverage builds"
am: 0745b6e550

Change-Id: Ib4a330c7cefacba8bb2f29b83988c73a5e23fba3

5 years agoMerge "Turn off the new pass manager for coverage builds"
Yi Kong [Fri, 24 May 2019 17:33:26 +0000 (17:33 +0000)]
Merge "Turn off the new pass manager for coverage builds"

5 years agoEliptic Curve Cryptography for GD
Jakub Pawlowski [Wed, 22 May 2019 20:37:44 +0000 (22:37 +0200)]
Eliptic Curve Cryptography for GD

This patch moves the code and adds the necessary namespace.
Further improvements in upcoming patches.

Test: SmpEccValidationTest
Bug: 126463795
Change-Id: I2682ff96aa904dd89ca6b5f2487fe72047211374

5 years agoOS: Construct Handler using Reactor
Myles Watson [Fri, 24 May 2019 17:09:05 +0000 (10:09 -0700)]
OS: Construct Handler using Reactor

Store a Reactor instead of a Thread in Handler.  Allow construction from either.
Test: bluetooth_test_gd --gtest_filter=QueueTestSingleThread.no_unregister_enqueue_death_test

Change-Id: I610e6f4ffb48120d1fa47b4ff59b59375c7a11d8

5 years agoQueue: Store callbacks in the runnable
Myles Watson [Thu, 23 May 2019 23:33:11 +0000 (16:33 -0700)]
Queue: Store callbacks in the runnable

Test: bluetooth_test_gd \
  --gtest_filter=QueueTest.pass_smart_pointer_and_unregister
Change-Id: Ib7dc12d8e767125e51d83810ade77c5187a4c174

5 years agoFix mac build
Colin Cross [Thu, 23 May 2019 21:10:48 +0000 (14:10 -0700)]
Fix mac build

system/bt/gd is compiled for the host but does not work on mac,
disable it.

Fixes: 133439713
Test: mmma system/bt/gd
Change-Id: I42c47d987ebfa8bba498a438d742388d216cedd2

5 years agobpfmt -w $(find . -name Android.bp)
Colin Cross [Thu, 23 May 2019 21:12:59 +0000 (14:12 -0700)]
bpfmt -w $(find . -name Android.bp)

Test: none
Change-Id: If38ad50d848c9e40f07c6598272a354312d9efea

5 years agoFix CryptoToolboxTest.bt_spec_test_d_1_test
Jakub Pawlowski [Thu, 23 May 2019 18:14:17 +0000 (11:14 -0700)]
Fix CryptoToolboxTest.bt_spec_test_d_1_test
am: 0a2f6b52e2

Change-Id: Ia2e928cfb293434450426b77b7081681b304f8d8

5 years agoDisable absolute volume control for AirPods 2
Ted Wang [Thu, 23 May 2019 11:26:34 +0000 (19:26 +0800)]
Disable absolute volume control for AirPods 2

Volume of AirPods 2 start out extremely loud when absolute volume
enabled. Interim response from remote show normal when register volume
changed notification. Disable absolute volume control for AirPods 2 to
avoid volume start out extremely loud.

Bug: 129602489
Test: Play music with AirPods 2
Change-Id: I555576be1929a42ae8e01f661572a89d1993dee9

5 years agoGet rid of KEY_LENGTH_DWORDS_P192
Jakub Pawlowski [Thu, 23 May 2019 09:01:21 +0000 (02:01 -0700)]
Get rid of KEY_LENGTH_DWORDS_P192
am: 24ad423f63

Change-Id: I45718435e6721aa84a9523faf7790be6aa122b7f

5 years agoFix CryptoToolboxTest.bt_spec_test_d_1_test
Jakub Pawlowski [Thu, 23 May 2019 07:52:34 +0000 (09:52 +0200)]
Fix CryptoToolboxTest.bt_spec_test_d_1_test

When moving code, ElementsAreArray matcher was replaced by memcmp to
remove dependency, but "== 0" is missing to actually make sure elements
are same.

Bug: 132863815
Test: CryptoToolboxTest.bt_spec_test_d_1_test
Change-Id: I4069ee3baea9de095b23072820cef3bd0673608a

5 years agoTurn off the new pass manager for coverage builds
Yi Kong [Tue, 23 Apr 2019 07:55:27 +0000 (00:55 -0700)]
Turn off the new pass manager for coverage builds

The new pass manager crashes if `-fprofile-instr-generat` cflag is set
on the current stable Android compiler. Turn it off until we roll past
the revision with the fix.

Test: build
Bug: 131855431
Bug: 131132095
Change-Id: I92f36b73747cca898e104118a2721a4796511282

5 years agoGet rid of KEY_LENGTH_DWORDS_P192
Jakub Pawlowski [Wed, 27 Feb 2019 09:00:17 +0000 (10:00 +0100)]
Get rid of KEY_LENGTH_DWORDS_P192

Only KEY_LENGTH_DWORDS_P256 is used.

Test: compilation
Bug: 126463795
Change-Id: I32a80e4b012c4606a70994fa9d0b5c2602707bb3

5 years agoMerge "PDL: Strengthen CamelCase checks"
Myles Watson [Thu, 23 May 2019 02:00:02 +0000 (19:00 -0700)]
Merge "PDL: Strengthen CamelCase checks"
am: 957842ff56

Change-Id: Iedb4254872db5fded4731c20df6d075bd203f057

5 years agocrypto_toolbox
Jakub Pawlowski [Thu, 23 May 2019 01:56:14 +0000 (18:56 -0700)]
crypto_toolbox
am: 5c70347620

Change-Id: I80c9e53d5beffc5fea7a310c72454fdeaf2d1dbe

5 years agoMerge "PDL: Strengthen CamelCase checks"
Treehugger Robot [Wed, 22 May 2019 22:26:17 +0000 (22:26 +0000)]
Merge "PDL: Strengthen CamelCase checks"

5 years agoPDL: Strengthen CamelCase checks
Myles Watson [Wed, 22 May 2019 17:52:49 +0000 (10:52 -0700)]
PDL: Strengthen CamelCase checks

Test: bluetooth_packet_parser_test
Change-Id: I1f85a0435aeab79cee8b938061c3961b6a21c49b

5 years agocrypto_toolbox
Jakub Pawlowski [Wed, 22 May 2019 15:36:24 +0000 (17:36 +0200)]
crypto_toolbox

This is copy of the crypto_toolbox for GD usage.
Only necessary changes were made:
* removed dependency on bt_types.h
* removed dependency on libbase
* reformatted code
* added namespace

Further improvements will be stacked on top of this patch.

Test: CryptoToolboxTest
Bug: 132863815
Change-Id: I639ba42705b23218a14085abcf431d744f87b913

5 years agoMerge "Fix use-after-free in ReactorPerformanceTest::TearDown."
Evgenii Stepanov [Wed, 22 May 2019 03:10:15 +0000 (20:10 -0700)]
Merge "Fix use-after-free in ReactorPerformanceTest::TearDown."
am: 6af0cf0de9

Change-Id: If9d01dd2f3a6cef54ded5ad66bff85039943e511

5 years agoMerge "Fix use-after-free in ReactorPerformanceTest::TearDown."
Treehugger Robot [Wed, 22 May 2019 00:18:35 +0000 (00:18 +0000)]
Merge "Fix use-after-free in ReactorPerformanceTest::TearDown."

5 years agoFix use-after-free in ReactorPerformanceTest::TearDown.
Evgenii Stepanov [Tue, 21 May 2019 21:12:39 +0000 (14:12 -0700)]
Fix use-after-free in ReactorPerformanceTest::TearDown.

Bug: 128921871
Test: net_test_performance
Change-Id: I7b7fda7c437f75019564a0b56764d40704b0b33f

5 years agoMerge "QueueTest: UnregisterDequeue before promise set value"
Chienyuan [Tue, 21 May 2019 16:10:37 +0000 (09:10 -0700)]
Merge "QueueTest: UnregisterDequeue before promise set value"
am: 569cc603b0

Change-Id: I05e083c4f6ca40e93b015e8320742aa3a7181386

5 years agoMerge "QueueTest: UnregisterDequeue before promise set value"
Treehugger Robot [Tue, 21 May 2019 15:45:42 +0000 (15:45 +0000)]
Merge "QueueTest: UnregisterDequeue before promise set value"

5 years agoMerge "Hearing Aid Dump Audio Tool: Add dump debug buffer feature"
Weichin Weng [Mon, 20 May 2019 03:44:22 +0000 (20:44 -0700)]
Merge "Hearing Aid Dump Audio Tool: Add dump debug buffer feature"
am: 45c9bb02a9

Change-Id: Ib2b58ae5ed347759bf59d2bea9e03060fd3ff1e1

5 years agoMerge "Hearing Aid Dump Audio Tool: Add dump debug buffer feature"
Weichin Weng [Mon, 20 May 2019 03:38:04 +0000 (03:38 +0000)]
Merge "Hearing Aid Dump Audio Tool: Add dump debug buffer feature"

5 years agoMerge "Remove Address dependency from PacketParserTest"
Myles Watson [Sat, 18 May 2019 01:08:36 +0000 (18:08 -0700)]
Merge "Remove Address dependency from PacketParserTest"
am: 46512f1526

Change-Id: Iff97fcf52ecc8de81ba3bf5a9a4735073af6bbd3

5 years agoMerge "Remove Address dependency from PacketParserTest"
Treehugger Robot [Sat, 18 May 2019 00:19:33 +0000 (00:19 +0000)]
Merge "Remove Address dependency from PacketParserTest"

5 years agoMerge "While AVDT opened or its AVRC_TIMER_EVT expired, it is no needed to start...
Cheney Ni [Fri, 17 May 2019 21:52:59 +0000 (14:52 -0700)]
Merge "While AVDT opened or its AVRC_TIMER_EVT expired, it is no needed to start the 2nd AVDT stream"
am: ef34871622

Change-Id: I72f4d8301214c3fb3cd25f1be593a7bfdeebd917

5 years agoMerge "While AVDT opened or its AVRC_TIMER_EVT expired, it is no needed to start...
Treehugger Robot [Fri, 17 May 2019 21:29:23 +0000 (21:29 +0000)]
Merge "While AVDT opened or its AVRC_TIMER_EVT expired, it is no needed to start the 2nd AVDT stream"

5 years agoImport ::testing::DoAll
Haibo Huang [Fri, 17 May 2019 19:27:39 +0000 (12:27 -0700)]
Import ::testing::DoAll
am: 1c360dc577

Change-Id: I9ec0bcfc9c46d2ce45cf7ffd8ab46df62abf1836

5 years agoRemove Address dependency from PacketParserTest
Myles Watson [Fri, 17 May 2019 16:01:36 +0000 (09:01 -0700)]
Remove Address dependency from PacketParserTest

Test: bluetooth_packet_parser_test
Change-Id: I769e0ea2feacbc8c14598762f01746c76efe1079

5 years agoHearing Aid Dump Audio Tool: Add dump debug buffer feature
weichinweng [Fri, 19 Apr 2019 09:27:32 +0000 (17:27 +0800)]
Hearing Aid Dump Audio Tool: Add dump debug buffer feature

Add dump HearingAid debug buffer feature to let the HearingAid debug
information dump to debug file and make it readable.

Bug: 130781854
Test: ./dump_hearingaid_audio.py -d true btsnoop_hci.log
      ./dump_hearingaid_audio.py -sd true btsnoop_hci.log

Change-Id: I150fd897e6f197d5b853554734926ad613de4e6b

5 years agoImport ::testing::DoAll
Haibo Huang [Fri, 17 May 2019 04:59:01 +0000 (21:59 -0700)]
Import ::testing::DoAll

It is used in this file but didn't have corresponding using statement.
It fails compile in new googletest.

Test: build
Change-Id: I1ac9d04c1bc8c46b57ecfb7859ee0e3c31bbb092

5 years agoQueueTest: UnregisterDequeue before promise set value
Chienyuan [Fri, 17 May 2019 02:57:46 +0000 (10:57 +0800)]
QueueTest: UnregisterDequeue before promise set value

For some tests, ~Queue will() be trigger right after we get promise
we should UnregisterDequeue before promise set value to prevent
race condition

Test: atest bluetooth_test_gd
Change-Id: I9409b6829cce61ef95c766a1d3b3679197b8f9f4

5 years agoMerge changes I2526f4bc,Iafe4a46d
Hansong Zhang [Fri, 17 May 2019 00:10:01 +0000 (17:10 -0700)]
Merge changes I2526f4bc,Iafe4a46d
am: 55696dd72c

Change-Id: Iee52bb52cd210cc3f353a37c968102022b213438

5 years agoMerge changes I2526f4bc,Iafe4a46d
Treehugger Robot [Thu, 16 May 2019 22:48:06 +0000 (22:48 +0000)]
Merge changes I2526f4bc,Iafe4a46d

* changes:
  Allow Handler synchronization in test code
  Remove testing code from ModuleRegistry

5 years agoMerge "crypto_toolbox: add const qualifiers to f4, f5, and f6 parameters"
Jakub Pawlowski [Thu, 16 May 2019 20:37:13 +0000 (13:37 -0700)]
Merge "crypto_toolbox: add const qualifiers to f4, f5, and f6 parameters"
am: fe02675de8

Change-Id: I9f7c445718ef3a2f54a019a6f4a87c8ba94cfb9d

5 years agoMerge "crypto_toolbox: add const qualifiers to f4, f5, and f6 parameters"
Jakub Pawlowski [Thu, 16 May 2019 19:42:35 +0000 (19:42 +0000)]
Merge "crypto_toolbox: add const qualifiers to f4, f5, and f6 parameters"