OSDN Git Service

android-x86/system-bt.git
3 years ago[automerger skipped] Shows a consent dialog on the local device when pairing a blueto...
Rahul Sabnis [Thu, 30 Jul 2020 00:47:56 +0000 (00:47 +0000)]
[automerger skipped] Shows a consent dialog on the local device when pairing a bluetooth low am: b6bcc43c7b -s ours am: 5cf5a4c43b -s ours am: 3440d38745 -s ours

am skip reason: Change-Id I7de396230beb84bd0fa2b0cea346523b6824472a with SHA-1 fe287947a1 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/12040224

Change-Id: I90870b915d74f811e1ae091c16fbf4b4d5ab6b44

3 years ago[automerger skipped] Shows a consent dialog on the local device when pairing a blueto...
Rahul Sabnis [Thu, 30 Jul 2020 00:30:01 +0000 (00:30 +0000)]
[automerger skipped] Shows a consent dialog on the local device when pairing a bluetooth low am: b6bcc43c7b -s ours am: 5cf5a4c43b -s ours

am skip reason: Change-Id I7de396230beb84bd0fa2b0cea346523b6824472a with SHA-1 fe287947a1 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/12040224

Change-Id: If552b7dc90a1a4cb003bea09d6d67587eeec47b3

3 years ago[automerger skipped] Shows a consent dialog on the local device when pairing a blueto...
Rahul Sabnis [Thu, 30 Jul 2020 00:18:43 +0000 (00:18 +0000)]
[automerger skipped] Shows a consent dialog on the local device when pairing a bluetooth low am: b6bcc43c7b -s ours

am skip reason: Change-Id I7de396230beb84bd0fa2b0cea346523b6824472a with SHA-1 fe287947a1 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/12040224

Change-Id: I6b5ff2607b726813fe329ec2938085cf5da8bffb

3 years ago[automerger skipped] Shows a consent dialog on the local device when pairing a blueto...
Rahul Sabnis [Thu, 30 Jul 2020 00:07:33 +0000 (00:07 +0000)]
[automerger skipped] Shows a consent dialog on the local device when pairing a bluetooth low am: fe287947a1 -s ours am: d48fb2accf -s ours

am skip reason: Change-Id I7de396230beb84bd0fa2b0cea346523b6824472a with SHA-1 03580fc440 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/12040221

Change-Id: Ib14a80e5a172038181f479d6fe8ba8307546d5a1

3 years ago[automerger skipped] Shows a consent dialog on the local device when pairing a blueto...
Rahul Sabnis [Thu, 30 Jul 2020 00:07:05 +0000 (00:07 +0000)]
[automerger skipped] Shows a consent dialog on the local device when pairing a bluetooth low am: fe287947a1 -s ours

am skip reason: Change-Id I7de396230beb84bd0fa2b0cea346523b6824472a with SHA-1 03580fc440 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/12040221

Change-Id: Idc6c5347d68d2d72262293bb4d897a5d383a631e

3 years agoShows a consent dialog on the local device when pairing a bluetooth low am: 03580fc440
Rahul Sabnis [Thu, 30 Jul 2020 00:06:57 +0000 (00:06 +0000)]
Shows a consent dialog on the local device when pairing a bluetooth low am: 03580fc440

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/12010399

Change-Id: I4491e2a0bda3765831ba363f7b98cdfaea2938a1

4 years agoShows a consent dialog on the local device when pairing a bluetooth low
Rahul Sabnis [Fri, 26 Jun 2020 17:27:07 +0000 (10:27 -0700)]
Shows a consent dialog on the local device when pairing a bluetooth low
energy device if the local device has a display.

Tag: #security
Bug: 157038281
Test: Manual
Merged-In: I7de396230beb84bd0fa2b0cea346523b6824472a
Change-Id: I7de396230beb84bd0fa2b0cea346523b6824472a

4 years agoShows a consent dialog on the local device when pairing a bluetooth low
Rahul Sabnis [Fri, 26 Jun 2020 17:27:07 +0000 (10:27 -0700)]
Shows a consent dialog on the local device when pairing a bluetooth low
energy device if the local device has a display.

Tag: #security
Bug: 157038281
Test: Manual
Merged-In: I7de396230beb84bd0fa2b0cea346523b6824472a
Change-Id: I7de396230beb84bd0fa2b0cea346523b6824472a

4 years agoShows a consent dialog on the local device when pairing a bluetooth low
Rahul Sabnis [Fri, 26 Jun 2020 17:27:07 +0000 (10:27 -0700)]
Shows a consent dialog on the local device when pairing a bluetooth low
energy device if the local device has a display.

Tag: #security
Bug: 157038281
Test: Manual
Merged-In: I7de396230beb84bd0fa2b0cea346523b6824472a
Change-Id: I7de396230beb84bd0fa2b0cea346523b6824472a

4 years agoMake libbluetooth-types-header available for native_bridge am: a6d57793a6
Victor Khimenko [Tue, 14 Jul 2020 17:29:52 +0000 (17:29 +0000)]
Make libbluetooth-types-header available for native_bridge am: a6d57793a6

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/12128049

Change-Id: I9107f054b4740cce2a0f726c8a8938b172c3ee9e

4 years agoMake libbluetooth-types-header available for native_bridge
Victor Khimenko [Thu, 11 Jun 2020 01:30:12 +0000 (03:30 +0200)]
Make libbluetooth-types-header available for native_bridge

Bug: http://b/153609531

Test: m libhardware.native_bridge

Change-Id: Ie5b208ce304cadd95bdc121549a20dacbf2d01b1
Merged-In: Ie5b208ce304cadd95bdc121549a20dacbf2d01b1

4 years agoMerge "Enable bitpool sanity checks" into oc-dev am: 15ccbf59de am: b7bd79e254 am...
Joseph Pirozzo [Fri, 26 Jun 2020 14:18:42 +0000 (14:18 +0000)]
Merge "Enable bitpool sanity checks" into oc-dev am: 15ccbf59de am: b7bd79e254 am: e7c4690a6b am: 6c9602b148 am: 31713cdf9f am: 3d17223fed am: 56f635560d

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11593936

Change-Id: I6663ef41447d8b9dcfa0a94fa76e159f797e066c

4 years agoMerge "Enable bitpool sanity checks" into oc-dev am: 15ccbf59de am: b7bd79e254 am...
Joseph Pirozzo [Fri, 26 Jun 2020 14:07:56 +0000 (14:07 +0000)]
Merge "Enable bitpool sanity checks" into oc-dev am: 15ccbf59de am: b7bd79e254 am: e7c4690a6b am: 6c9602b148 am: 31713cdf9f am: 3d17223fed

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11593936

Change-Id: Iaa730fbb18f95495c23c40711227dd01a2ebffd6

4 years agoMerge "Enable bitpool sanity checks" into oc-dev am: 15ccbf59de am: b7bd79e254 am...
Joseph Pirozzo [Fri, 26 Jun 2020 13:53:52 +0000 (13:53 +0000)]
Merge "Enable bitpool sanity checks" into oc-dev am: 15ccbf59de am: b7bd79e254 am: e7c4690a6b am: 6c9602b148 am: 31713cdf9f

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11593936

Change-Id: I8bf46f136caa5defcca728a93f2807a63cfa1096

4 years agoMerge "Enable bitpool sanity checks" into oc-dev am: 15ccbf59de am: b7bd79e254 am...
Joseph Pirozzo [Fri, 26 Jun 2020 13:42:17 +0000 (13:42 +0000)]
Merge "Enable bitpool sanity checks" into oc-dev am: 15ccbf59de am: b7bd79e254 am: e7c4690a6b am: 6c9602b148

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11593936

Change-Id: Ie5a818b066a2d2d4401cbe22d399fd75a97a4f5b

4 years agoMerge "Enable bitpool sanity checks" into oc-dev am: 15ccbf59de am: b7bd79e254 am...
Joseph Pirozzo [Fri, 26 Jun 2020 13:29:50 +0000 (13:29 +0000)]
Merge "Enable bitpool sanity checks" into oc-dev am: 15ccbf59de am: b7bd79e254 am: e7c4690a6b

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11593936

Change-Id: Id273f7a0dcccdd41a0cc5f7dc9c782477aaf046b

4 years agoMerge "Enable bitpool sanity checks" into oc-dev am: 15ccbf59de am: b7bd79e254
Joseph Pirozzo [Fri, 26 Jun 2020 13:13:54 +0000 (13:13 +0000)]
Merge "Enable bitpool sanity checks" into oc-dev am: 15ccbf59de am: b7bd79e254

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11593936

Change-Id: I1f53339a2b08ec342d65fe45f6a69965b87edf4a

4 years agoMerge "Enable bitpool sanity checks" into oc-dev am: 15ccbf59de
Joseph Pirozzo [Fri, 26 Jun 2020 13:01:21 +0000 (13:01 +0000)]
Merge "Enable bitpool sanity checks" into oc-dev am: 15ccbf59de

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11593936

Change-Id: I53a4ce34dba71b7715f791a03b6128458f8bc7e8

4 years agoMerge "Enable bitpool sanity checks" into oc-dev
Joseph Pirozzo [Fri, 26 Jun 2020 12:40:58 +0000 (12:40 +0000)]
Merge "Enable bitpool sanity checks" into oc-dev

4 years agoMerge "HF_CLIENT: Upgrade version from 1.6 to 1.7" into rvc-dev am: ab6c52b3b5
TreeHugger Robot [Fri, 26 Jun 2020 00:03:00 +0000 (00:03 +0000)]
Merge "HF_CLIENT: Upgrade version from 1.6 to 1.7" into rvc-dev am: ab6c52b3b5

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11988411

Change-Id: Ic04683a3dde34e9b358dc50c159328405be536d6

4 years agoMerge "HF_CLIENT: Upgrade version from 1.6 to 1.7" into rvc-dev
TreeHugger Robot [Thu, 25 Jun 2020 23:51:18 +0000 (23:51 +0000)]
Merge "HF_CLIENT: Upgrade version from 1.6 to 1.7" into rvc-dev

4 years ago[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: 85b5df...
Myles Watson [Thu, 25 Jun 2020 22:48:36 +0000 (22:48 +0000)]
[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: 85b5df1d0d am: ab50a6b284 -s ours am: 14b17d2fb1 -s ours am: db513f6c97 -s ours am: aba777da25 -s ours am: 43c721bd30 -s ours am: 287bfb55d0 -s ours

am skip reason: Change-Id I048b7b142e3fe2096cf1a9aa2931c175fa52cd45 with SHA-1 e29c52cfda is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11934228

Change-Id: I32dcd45c8d21e96685748164dadb20b81d0c90b5

4 years ago[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: 85b5df...
Myles Watson [Thu, 25 Jun 2020 22:33:31 +0000 (22:33 +0000)]
[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: 85b5df1d0d am: ab50a6b284 -s ours am: 14b17d2fb1 -s ours am: db513f6c97 -s ours am: aba777da25 -s ours am: 43c721bd30 -s ours

am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11934228

Change-Id: I001906a261ca3465f9da21804c3ed6b388bfb9d1

4 years ago[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: 85b5df...
Myles Watson [Thu, 25 Jun 2020 22:22:23 +0000 (22:22 +0000)]
[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: 85b5df1d0d am: ab50a6b284 -s ours am: 14b17d2fb1 -s ours am: db513f6c97 -s ours am: aba777da25 -s ours

am skip reason: Change-Id I048b7b142e3fe2096cf1a9aa2931c175fa52cd45 with SHA-1 e29c52cfda is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11934228

Change-Id: Ib670a2692d6c3961d4e2eaade6b62d8994d690b4

4 years ago[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: 85b5df...
Myles Watson [Thu, 25 Jun 2020 22:05:37 +0000 (22:05 +0000)]
[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: 85b5df1d0d am: ab50a6b284 -s ours am: 14b17d2fb1 -s ours am: db513f6c97 -s ours

am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11934228

Change-Id: Id0a0e93bcdc38a92212eed4e41d09db6ed6ab37f

4 years ago[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: 85b5df...
Myles Watson [Thu, 25 Jun 2020 21:45:08 +0000 (21:45 +0000)]
[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: 85b5df1d0d am: ab50a6b284 -s ours am: 14b17d2fb1 -s ours

am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11934228

Change-Id: Ide10d75b623cdb0bc7047529ce0c79e57a18120f

4 years ago[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: 85b5df...
Myles Watson [Thu, 25 Jun 2020 21:28:30 +0000 (21:28 +0000)]
[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: 85b5df1d0d am: ab50a6b284 -s ours

am skip reason: Change-Id I048b7b142e3fe2096cf1a9aa2931c175fa52cd45 with SHA-1 e29c52cfda is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11934228

Change-Id: I01231f49767b1f5e54f43bf119e410a147198033

4 years agoDO NOT MERGE: Remove pairing on incoming bond request am: 85b5df1d0d
Myles Watson [Thu, 25 Jun 2020 21:15:23 +0000 (21:15 +0000)]
DO NOT MERGE: Remove pairing on incoming bond request am: 85b5df1d0d

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11934228

Change-Id: Icf0c4b744a56a06669fea1effd45c898063a4631

4 years ago[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: e29c52...
Myles Watson [Thu, 25 Jun 2020 21:09:32 +0000 (21:09 +0000)]
[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: e29c52cfda -s ours am: 594c470d27 -s ours am: 230d3180fb -s ours am: 61ceb1cf17 -s ours am: 4002fb5a01 -s ours

am skip reason: Change-Id I048b7b142e3fe2096cf1a9aa2931c175fa52cd45 with SHA-1 21e580de3b is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11931864

Change-Id: I367958abd3ed090b93dab948606ee40b62b8bfaa

4 years ago[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: e29c52...
Myles Watson [Thu, 25 Jun 2020 20:55:50 +0000 (20:55 +0000)]
[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: e29c52cfda -s ours am: 594c470d27 -s ours am: 230d3180fb -s ours am: 61ceb1cf17 -s ours

am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11931864

Change-Id: Id3cc3bff887d7d5a3fb7a0bd0e49462e9555feb2

4 years ago[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: e29c52...
Myles Watson [Thu, 25 Jun 2020 20:39:33 +0000 (20:39 +0000)]
[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: e29c52cfda -s ours am: 594c470d27 -s ours am: 230d3180fb -s ours

am skip reason: Change-Id I048b7b142e3fe2096cf1a9aa2931c175fa52cd45 with SHA-1 21e580de3b is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11931864

Change-Id: I2a7bfd5c6ee7f01688ea3c680e29d692ed9cc56e

4 years ago[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: e29c52...
Myles Watson [Thu, 25 Jun 2020 20:27:15 +0000 (20:27 +0000)]
[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: e29c52cfda -s ours am: 594c470d27 -s ours

am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11931864

Change-Id: I57e23a03647c13e6ffbb2e42b016e2fbb20c516f

4 years agoRemove pairing on incoming bond request am: 21e580de3b am: 73dd59984c am: c038497ddd...
Myles Watson [Thu, 25 Jun 2020 20:27:00 +0000 (20:27 +0000)]
Remove pairing on incoming bond request am: 21e580de3b am: 73dd59984c am: c038497ddd am: e176975842

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11922796

Change-Id: I11c068ac2139bcc3675e43ab84a012a225e17165

4 years ago[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: e29c52...
Myles Watson [Thu, 25 Jun 2020 20:03:22 +0000 (20:03 +0000)]
[automerger skipped] DO NOT MERGE: Remove pairing on incoming bond request am: e29c52cfda -s ours

am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11931864

Change-Id: I289b55466f022e0ee4422a142427014146eeb936

4 years agoRemove pairing on incoming bond request am: 21e580de3b am: 73dd59984c am: c038497ddd
Myles Watson [Thu, 25 Jun 2020 20:03:16 +0000 (20:03 +0000)]
Remove pairing on incoming bond request am: 21e580de3b am: 73dd59984c am: c038497ddd

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11922796

Change-Id: I61ab971764bdb4b58cec261428c5bb8c2f3ed9b0

4 years agoRemove pairing on incoming bond request am: 21e580de3b am: 73dd59984c
Myles Watson [Thu, 25 Jun 2020 19:50:05 +0000 (19:50 +0000)]
Remove pairing on incoming bond request am: 21e580de3b am: 73dd59984c

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11922796

Change-Id: If7636b869c35d1313637ca8200e36d13778832e3

4 years agoRemove pairing on incoming bond request am: 21e580de3b
Myles Watson [Thu, 25 Jun 2020 19:38:38 +0000 (19:38 +0000)]
Remove pairing on incoming bond request am: 21e580de3b

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11922796

Change-Id: I8eab6881fc28cd96fc7c7975d4ffb4bf75626eb2

4 years agoHF_CLIENT: Upgrade version from 1.6 to 1.7
Song Gao [Tue, 10 Dec 2019 02:36:17 +0000 (10:36 +0800)]
HF_CLIENT: Upgrade version from 1.6 to 1.7

In HFP client version 1.7, mandatory S4 setting for eSCO
CVSD coding is introduced. S4 setting takes parameters
as maximum latency = 12msec and retransmission effort = 2.

Cherrypicked from https://r.android.com/1212759

Test: ./run_unit_tests.sh net_test_btif_hf_client_service
Test: ./run_unit_tests.sh net_test_hf_client_add_record
Bug: 146090794
Tag: #feature

Change-Id: Ia450b4c237f130021511efb4795d4b2a98892cef

4 years agoMerge "Fix: fragment packets" into rvc-dev am: fcd29a053e
TreeHugger Robot [Wed, 24 Jun 2020 02:12:22 +0000 (02:12 +0000)]
Merge "Fix: fragment packets" into rvc-dev am: fcd29a053e

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11939225

Change-Id: I2780ba37b20f35438745b0bf54dac6f030c13038

4 years agoMerge "Fix: fragment packets" into rvc-dev
TreeHugger Robot [Wed, 24 Jun 2020 01:58:54 +0000 (01:58 +0000)]
Merge "Fix: fragment packets" into rvc-dev

4 years agoDO NOT MERGE Check a2dp packet length is zero
Chris Manton [Tue, 10 Mar 2020 15:59:02 +0000 (08:59 -0700)]
DO NOT MERGE Check a2dp packet length is zero

Bug: 142546668
Test: net_test_stack_a2dp_native

(cherry picked from commit 96392b0f2cfb2adc72cc7cad0d74dec8f4041582)
(cherry picked from commit d61cf5fe04063619afc6454034a7458d97bb0365)

Change-Id: I3a365b69aaac7edcff27909d15c842614a9a4603

4 years agoresolve merge conflicts of c28294c6dd218f4d98bb3b4331acf9155aeecb3a to rvc-d1-dev
Jack He [Tue, 23 Jun 2020 08:13:07 +0000 (08:13 +0000)]
resolve merge conflicts of c28294c6dd218f4d98bb3b4331acf9155aeecb3a to rvc-d1-dev

Change-Id: I01071c9498e52caa24907b09520aa5ac5567f5a0

4 years agoMerge "Add Honda High End carkit to IOP table to only use AVRCP 1.4" into rvc-d1-dev
TreeHugger Robot [Tue, 23 Jun 2020 06:47:19 +0000 (06:47 +0000)]
Merge "Add Honda High End carkit to IOP table to only use AVRCP 1.4" into rvc-d1-dev

4 years agoA2DP: Use codec_specific_1 to report AAC bitrate mode to upper layer
Cheney Ni [Tue, 14 Jan 2020 03:02:29 +0000 (11:02 +0800)]
A2DP: Use codec_specific_1 to report AAC bitrate mode to upper layer

This CL uses the AAC's btav_a2dp_codec_config_t.codec_specific_1 to
store its bitrate mode, and report this information to upper layer, and
upper layer would be able to use this variable to change settings, too.

There are 7 constant numbers to present those bitrate modes:
* AACENC_BR_MODE_CBR - AAC VBR is unable to use, and upper layer can use
  this value to keep the current configuration without touched.
* AACENC_BR_MODE_VBR_C - AAC VBR is supported by both source and sink,
  and we use or are going to use AAC CBR.
* AACENC_BR_MODE_VBR_1 ~ AACENC_BR_MODE_VBR_5 - Using AAC VBR with
  different quality.

Bug: 112325138
Test: check the codec status from frameworks manually
Change-Id: I2096d9569c7aa0e5c79708946ba117d3edc4f041
Merged-In: I2096d9569c7aa0e5c79708946ba117d3edc4f041

4 years agoA2DP: Enable AAC VBR for A2DP source feature
Cheney Ni [Tue, 31 Dec 2019 09:29:58 +0000 (17:29 +0800)]
A2DP: Enable AAC VBR for A2DP source feature

This CL adds AAC variable bitrate to the source capabilities, and the
software encoder uses VBR mode 5 (vary high bitrate) by default.

Bug: 112325138
Test: atest net_test_stack / IOP test
Tag: #feature
Change-Id: I4271154248af5ea82c3de2c97bb39526e9f904ba
Merged-In: I4271154248af5ea82c3de2c97bb39526e9f904ba

4 years agoFine tune btif config mechanism to limit the number of section in bt config cache...
jonerlin [Thu, 21 May 2020 02:47:22 +0000 (10:47 +0800)]
Fine tune btif config mechanism to limit the number of section in bt config cache and improve the bt config clone performance

* Bt config cache will grow bigger and bigger without limitation and
cause many Bluetooth stability issues
* Do not clone the whole config cache before writing config cache
into file, clone paired devices section instead.
* Implement BtifConfigCache class to handle bt devices config add,
remove, paired, unpaired,..etc.

Bug: 143515989
Test: 1. Add BtifConfigCacheTest unit tests to test bt config cache
setup, paire with a new devices, unpaire with a devices, remove the
sections with specific key.
2. Checking the paired devices information still existed in settings
after Bluetooth disable or device reboot.
3. Checking the paired devices information still saved in btif_config
file after Bluetooth disable and device reboot.
4. Remove btif_confing files and enable Bluetooth, checking the
btif_config file can be created and included adapter information
normally.
5. Checking the paired devices information be clean in btif_config
file after device factory reset
6. keep BLE scanning, then pair with a bluetooth device, connect a
bluetooth device, disable Bluetooth, checking the function work
normally.
Tag: #stability

Merged-In: Ide1ba1b6daaf9d102ab96976cbf28e65031423d0
Change-Id: Ide1ba1b6daaf9d102ab96976cbf28e65031423d0
(cherry picked from commit 098212937ba1fd16c7630659d98af877c16f10f3)

4 years agoFix: fragment packets
Chris Manton [Thu, 5 Mar 2020 17:57:14 +0000 (09:57 -0800)]
Fix: fragment packets

Small overflow window

Bug: 147227320
Test: net_test_hci_fragmenter_native

Merged-In: I3b7b4cbcbd292ed6fbbf9eacf3be66cf7c4120cc
(cherry picked from commit 8e2aa03a846bad0ff8c701a8a2468c1442f17b7a)
Change-Id: Ie64e1e107966c8b0d187739777d3abfe199c66bc

4 years agoLruCache: Improve efficieny and ease of use of APIs
Jack He [Wed, 17 Jun 2020 09:15:23 +0000 (02:15 -0700)]
LruCache: Improve efficieny and ease of use of APIs

* Add a Find() function that returns the pointer to the value associated
  with a key, further changes to the value using that poitner does not
  warm up the cache
* Remove eviction callback, but instead return an optional evicted node
  when Put() evicts a cold node. This prevents potential deadlock when
  calling LruCache methods in the callback
* HasKey() is not zero-copy
* Get() calls Find()
* Add unit tests for these new features
* Modify MetricIdAllocator to use these new features

Bug: 143515989
Test: atest --host bluetooth_test_common
Change-Id: I9071c86a9041e5c95b349824889ccedf9f9c18dc
Merged-In: I9071c86a9041e5c95b349824889ccedf9f9c18dc
(cherry picked from commit 42f8c2b972c3fb39a9b1e3fbff3fcb3a0060c33e)

4 years agoOsi: Implement Has/Get/Set methods for section_t and config_t
Jack He [Wed, 17 Jun 2020 09:17:47 +0000 (02:17 -0700)]
Osi: Implement Has/Get/Set methods for section_t and config_t

* Implement convenience methods so that users don't have to loop
  through them manually

Bug: 143515989
Test: atest --host net_test_osi:ConfigTest
Change-Id: I570a49bec9496409ba60f8223c58c9e642b41c1a
Merged-In: I570a49bec9496409ba60f8223c58c9e642b41c1a
(cherry picked from commit ea96adb18201c603a65b49583281a372a830af69)

4 years agoLruCache: Allow Get to take nullptr
Jack He [Wed, 17 Jun 2020 09:15:23 +0000 (02:15 -0700)]
LruCache: Allow Get to take nullptr

* When nullptr is given, copy of item is omitted

Bug: 143515989
Test: atest --host bluetooth_test_common
Change-Id: If5405611e8a32709bf0bf18f416d17adbd07b5ea
Merged-In: If5405611e8a32709bf0bf18f416d17adbd07b5ea
(cherry picked from commit 44229e65df659fa78ab04dfafea65f756ac9b18f)

4 years agoMerge "Don't query for metadata on playing status" into rvc-dev am: 12d6bc5db8
Sal Savage [Fri, 19 Jun 2020 23:53:25 +0000 (23:53 +0000)]
Merge "Don't query for metadata on playing status" into rvc-dev am: 12d6bc5db8

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11921967

Change-Id: I7a1e935dd2c78282ac4ade3bdd6cfe3b36a32384

4 years agoMerge "Don't query for metadata on playing status" into rvc-dev
Sal Savage [Fri, 19 Jun 2020 23:35:51 +0000 (23:35 +0000)]
Merge "Don't query for metadata on playing status" into rvc-dev

4 years agoDO NOT MERGE: Remove pairing on incoming bond request
Myles Watson [Thu, 18 Jun 2020 21:35:53 +0000 (14:35 -0700)]
DO NOT MERGE: Remove pairing on incoming bond request

Bug: 150156492
Tag: #security
Test: Bond two devices, forget from one device and reconnect
Change-Id: I048b7b142e3fe2096cf1a9aa2931c175fa52cd45
(cherry picked from commit 13f409ad3a2423b06af7a7f1a9b06fb06c8820a7)
Merged-In: I048b7b142e3fe2096cf1a9aa2931c175fa52cd45

4 years agoDO NOT MERGE: Remove pairing on incoming bond request
Myles Watson [Thu, 18 Jun 2020 21:35:53 +0000 (14:35 -0700)]
DO NOT MERGE: Remove pairing on incoming bond request

Bug: 150156492
Tag: #security
Test: Bond two devices, forget from one device and reconnect
Change-Id: I048b7b142e3fe2096cf1a9aa2931c175fa52cd45
(cherry picked from commit 13f409ad3a2423b06af7a7f1a9b06fb06c8820a7)
Merged-In: I048b7b142e3fe2096cf1a9aa2931c175fa52cd45

4 years agoRemove pairing on incoming bond request
Myles Watson [Thu, 18 Jun 2020 21:35:53 +0000 (14:35 -0700)]
Remove pairing on incoming bond request

Bug: 150156492
Tag: #security
Test: Bond two devices, forget from one device and reconnect
Change-Id: I048b7b142e3fe2096cf1a9aa2931c175fa52cd45
Merged-In: I048b7b142e3fe2096cf1a9aa2931c175fa52cd45
(cherry picked from commit 13f409ad3a2423b06af7a7f1a9b06fb06c8820a7)

4 years agoDon't query for metadata on playing status
Sal Savage [Thu, 4 Jun 2020 20:35:39 +0000 (13:35 -0700)]
Don't query for metadata on playing status

These removed lines of code were for a problem that no longer seems to
exist with other phones. It was a band-aid at best, having us pull
metadaa on 'playing status' when a phone really should have just been
sending the update to us anyway. Pulling metadata here causes a bad user
experience with cover artwork where the new metadata is interpreted as a
track change in Java land and cover artwork can be redownloaded. This
happens primarily with non-database aware players after a BIP reconnect
where we're guarenteed nothing about the handle we receive.

Tag: #compatibility
Bug: 158232844
Test: atest BluetoothInstrumentationTests
Merged-In: Idb88e7c1e1553319cb26eba2c18e3cd2bbd552cc
Change-Id: Idb88e7c1e1553319cb26eba2c18e3cd2bbd552cc

4 years agoAdd Honda High End carkit to IOP table to only use AVRCP 1.4
Ted Wang [Thu, 18 Jun 2020 17:05:51 +0000 (01:05 +0800)]
Add Honda High End carkit to IOP table to only use AVRCP 1.4

Bug: 158722323
Test: Manual
Change-Id: Ia496633871c9a7f8e36b61266add059ac3f28536

4 years agoRootCanal: Use a state machine in ScriptedBeacon am: 80b43139bf
Sanjay Ramankandath [Wed, 17 Jun 2020 00:03:42 +0000 (00:03 +0000)]
RootCanal: Use a state machine in ScriptedBeacon am: 80b43139bf

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11882435

Change-Id: I49094be6dc2a397061c813fcd94bb4c7f2f0230e

4 years agoRootCanal: Use a state machine in ScriptedBeacon
Sanjay Ramankandath [Wed, 3 Jun 2020 22:24:06 +0000 (22:24 +0000)]
RootCanal: Use a state machine in ScriptedBeacon

  Add indication for ble add playback completion
  bt HCI: Make sure the device numbers match
  Clean up static variables in scripted beacon
  Clean up logs in scripted beacon

Test: boot cuttlefish and check logcat
Tag: #gd-refactor
Bug: 154491371
Bug: 158019041
(cherry picked from commit 79f168b7f3b03722cf2d0bb5ee97258824dc3832)
(cherry picked from commit 1c66bdaa38c46e859b66f8cc055993c5f0e7f5a1)
(cherry picked from commit 82656e9682e9de7596b7327618cf680936f34589)
Change-Id: I7f54ecef4ba08acc33b9d773b02b8428ca91a415
(cherry picked from commit 53c68dba78cc8f746c93e3db062ef358a976f0bf)
Merged-In: I7f54ecef4ba08acc33b9d773b02b8428ca91a415

4 years agoGAP: Use proper page scan rep mode for connection am: 78d863bd30
Venkata Jagadeesh Garaga [Fri, 12 Jun 2020 01:57:30 +0000 (01:57 +0000)]
GAP: Use proper page scan rep mode for connection am: 78d863bd30

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bt/+/11839912

Change-Id: I0bf0569afabb56cfdaaf9b022f89177bdcca4294

4 years agoGAP: Use proper page scan rep mode for connection
Venkata Jagadeesh Garaga [Fri, 17 Apr 2020 10:36:17 +0000 (16:06 +0530)]
GAP: Use proper page scan rep mode for connection

Issue: Page time out seen when user initiated pairing from LE scan response

Steps to reproduce
==================
Steps:
1. Turn on BT
2. inquiry any dual mode device
3. Initiate pairing (only LE scan response received but br/edr
   inquiry response not received)

Actual Result:
Remote name request or create connection got page timeout some times

Expected result:
Remote name request and create connection should be successful

Root Cause:
If user finds only LE scan response for dual mode  devices, then stack
treats it as dual mode based on br/edr not supported bit. If pairing
initiated from LE scan response, then stack initiates RNR and ACL connection
on br/edr transport with wrong page scan response from LE inquiry database,
it leads to page time out.

Fix:
Use page scan response from inquiry data base if br/edr inquiry response
received, else use default page scan response R1 in RNR and create connection.

Test: Follow steps above
Bug: 154286616
Change-Id: I281ebc6d0e67d88c30328cb67df7f28793f354c1

4 years agoRootCanal: Use GD defaults to define OS_ANDROID am: b5deb4ac2e
Myles Watson [Sun, 31 May 2020 13:38:46 +0000 (13:38 +0000)]
RootCanal: Use GD defaults to define OS_ANDROID am: b5deb4ac2e

Change-Id: I270cfc33908038be119865a9cd1d166929cb3842

4 years agoRootCanal: Use GD defaults to define OS_ANDROID
Myles Watson [Fri, 29 May 2020 19:17:43 +0000 (12:17 -0700)]
RootCanal: Use GD defaults to define OS_ANDROID

When OS_ANDROID is defined logs go to logcat.
When OS_ANDROID is not defined logs to stderr.

Bug: 157706301
Test: cert/run --host
Tag: #gd-refactor
Change-Id: I3e735a4716fbc35a3d66e03909fdbf905436d285
Merged-In: I3e735a4716fbc35a3d66e03909fdbf905436d285

4 years agoMerge "Enable bitpool sanity checks" into rvc-dev am: 02cca0f8df
TreeHugger Robot [Fri, 29 May 2020 16:20:36 +0000 (16:20 +0000)]
Merge "Enable bitpool sanity checks" into rvc-dev am: 02cca0f8df

Change-Id: I60d8c55db1d48f91362905de9516da0480dc1bda

4 years agoMerge "Enable bitpool sanity checks" into rvc-dev
TreeHugger Robot [Fri, 29 May 2020 16:09:13 +0000 (16:09 +0000)]
Merge "Enable bitpool sanity checks" into rvc-dev

4 years agoMerge "Respond AVRCP profile descritpion list 1.4 only for some device" into rvc...
TreeHugger Robot [Wed, 27 May 2020 05:18:46 +0000 (05:18 +0000)]
Merge "Respond AVRCP profile descritpion list 1.4 only for some device" into rvc-d1-dev

4 years agoMerge "Update Bluetooth AVRCP default version to 1.5" into rvc-d1-dev
TreeHugger Robot [Wed, 27 May 2020 05:18:46 +0000 (05:18 +0000)]
Merge "Update Bluetooth AVRCP default version to 1.5" into rvc-d1-dev

4 years agobtif_config: Fix pointer to freed memory am: d96e89cd9c
Greg Kaiser [Wed, 27 May 2020 03:45:10 +0000 (03:45 +0000)]
btif_config: Fix pointer to freed memory am: d96e89cd9c

Change-Id: I52aac3213e98a32d74e9828dffdf409b0bc9793b

4 years agobtif_config: Fix pointer to freed memory
Greg Kaiser [Tue, 26 May 2020 12:42:36 +0000 (05:42 -0700)]
btif_config: Fix pointer to freed memory

We change the scope of our 'string' declaration so the contents
are still in scope when we use a pointer to them.  Previously,
the contents were out of scope when we referenced them through
a pointer.

Bug: 148758680
Test: TreeHugger
Change-Id: Ib0aa689bf4547d079b77965d958cc382ba0276e6

4 years agoNIAP: Add a map to store the LTTKM am: ae93daab29
weichinweng [Tue, 26 May 2020 03:46:51 +0000 (03:46 +0000)]
NIAP: Add a map to store the LTTKM am: ae93daab29

Change-Id: Ie2d7ad8254c1b680cb23e8f3587944a62b34030f

4 years agoNIAP: Use bluetooth keystore to encrypt/decrypt LTTKM. am: 85c92841f5
weichinweng [Tue, 26 May 2020 03:46:48 +0000 (03:46 +0000)]
NIAP: Use bluetooth keystore to encrypt/decrypt LTTKM. am: 85c92841f5

Change-Id: I26b58e1d73bdbd6588c7d61ce500f8f728976127

4 years agoNIAP: implement bluetooth keystore interface.(2/2) am: b30bb98bf5
weichinweng [Tue, 26 May 2020 03:46:45 +0000 (03:46 +0000)]
NIAP: implement bluetooth keystore interface.(2/2) am: b30bb98bf5

Change-Id: I2a75725c6d6ed27e92f11e37eaee598d129c19c3

4 years agoNIAP: Add new argument to determine config checksum check result.(2/4) am: 14b98e02f1
weichinweng [Tue, 26 May 2020 03:46:42 +0000 (03:46 +0000)]
NIAP: Add new argument to determine config checksum check result.(2/4) am: 14b98e02f1

Change-Id: I1f381a046909abb58caf9de0aa3cdd15341d7858

4 years agoNIAP: Add keystore.proto for java layer usage. am: a7b61f45e0
weichinweng [Tue, 26 May 2020 03:46:39 +0000 (03:46 +0000)]
NIAP: Add keystore.proto for java layer usage. am: a7b61f45e0

Change-Id: Iaa46f7e3134677d83a5e2c7e4169fd42077843df

4 years agoEnable bitpool sanity checks
Joseph Pirozzo [Mon, 25 May 2020 17:36:26 +0000 (10:36 -0700)]
Enable bitpool sanity checks

Enable bitpool sanity checks to run all the time, not just in debug
mode.

Tag: #security
Test: sbcdecoder_fuzzer
Bug: 146398979
Change-Id: Iff58305cd18de35e37290f0c09fba01ee14e787a

4 years agoEnable bitpool sanity checks
Joseph Pirozzo [Mon, 25 May 2020 17:36:26 +0000 (10:36 -0700)]
Enable bitpool sanity checks

Enable bitpool sanity checks to run all the time, not just in debug
mode.

Tag: #security
Test: sbcdecoder_fuzzer
Bug: 146398979
Change-Id: Iff58305cd18de35e37290f0c09fba01ee14e787a

4 years agoRespond AVRCP profile descritpion list 1.4 only for some device
Ted Wang [Mon, 18 May 2020 10:02:34 +0000 (18:02 +0800)]
Respond AVRCP profile descritpion list 1.4 only for some device

Some devices (Toyota Car Audio), will not perfomance general AVRCP
initial action like get capabilities or register for any notification
when receiving AVRCP profile version 1.5. Create black list for these
devices so we can reply AVRCP 1.4 when we are in higher AVRCP version.

Bug: 154780267
Test: manaul
Change-Id: If6c9453ad1f844d255fade63afad828b185b7fdf

4 years agoUpdate Bluetooth AVRCP default version to 1.5
Ted Wang [Tue, 19 May 2020 07:05:17 +0000 (15:05 +0800)]
Update Bluetooth AVRCP default version to 1.5

Bug: 154780267
Test: Manual
Change-Id: I13f77b46acb3f13b02b61a69cc0239ef4cbb5642

4 years agoNIAP: Add a map to store the LTTKM
weichinweng [Mon, 27 Apr 2020 03:52:15 +0000 (11:52 +0800)]
NIAP: Add a map to store the LTTKM

When do pairing, the set_encrypt_key_or_remove_key will be later than
get_key due to they are in different thread. Use a map to store them and
will check whether the key exist in map. If no, will get the key from
the JAVA bluetoothKeystore.

Bug: 148758680
Test: m
Change-Id: I044b11a231c6f65978019ce6092657c1bdd814d1
Merged-In: I044b11a231c6f65978019ce6092657c1bdd814d1

4 years agoNIAP: Use bluetooth keystore to encrypt/decrypt LTTKM.
weichinweng [Thu, 23 Apr 2020 09:33:02 +0000 (17:33 +0800)]
NIAP: Use bluetooth keystore to encrypt/decrypt LTTKM.

Bug: 148758680
Test: m
Change-Id: Ic1e4ddd186d900c5058f40e8eeef500ce23087b7
Merged-In: Ic1e4ddd186d900c5058f40e8eeef500ce23087b7

4 years agoNIAP: implement bluetooth keystore interface.(2/2)
weichinweng [Tue, 21 Apr 2020 01:42:27 +0000 (09:42 +0800)]
NIAP: implement bluetooth keystore interface.(2/2)

Bug: 148758680
Test: m

Change-Id: I89f782039123d1deac173d13670de4d9dae5252a
Merged-In: I89f782039123d1deac173d13670de4d9dae5252a

4 years agoNIAP: Add new argument to determine config checksum check result.(2/4)
weichinweng [Tue, 21 Apr 2020 02:26:26 +0000 (10:26 +0800)]
NIAP: Add new argument to determine config checksum check result.(2/4)

Bug: 148758680
Test: m
Change-Id: I07eb90a144e172212c7a1a55ef200111efd297e0
Merged-In: I07eb90a144e172212c7a1a55ef200111efd297e0

4 years agoNIAP: Add keystore.proto for java layer usage.
weichinweng [Mon, 20 Apr 2020 09:48:43 +0000 (17:48 +0800)]
NIAP: Add keystore.proto for java layer usage.

Add keystore.proto for java layer usage.

Bug: 148758680
Test: m
Change-Id: I8fecbcdc46eb12336c9fd1fa1e2166df80d80f19
Merged-In: I8fecbcdc46eb12336c9fd1fa1e2166df80d80f19

4 years agoMerge "BluetoothMetrics: Fix LRU eviction callback bug" into rvc-dev am: bb0b795283
TreeHugger Robot [Thu, 14 May 2020 10:08:41 +0000 (10:08 +0000)]
Merge "BluetoothMetrics: Fix LRU eviction callback bug" into rvc-dev am: bb0b795283

Change-Id: I5124047540863cf3a902f9c00efec78bf6220c1f

4 years agoMerge "BluetoothMetrics: Fix LRU eviction callback bug" into rvc-dev
TreeHugger Robot [Thu, 14 May 2020 09:50:48 +0000 (09:50 +0000)]
Merge "BluetoothMetrics: Fix LRU eviction callback bug" into rvc-dev

4 years agoBluetoothMetrics: Fix LRU eviction callback bug
Chen Chen [Wed, 13 May 2020 22:35:42 +0000 (15:35 -0700)]
BluetoothMetrics: Fix LRU eviction callback bug

Test: atest bluetooth_test_common
Bug: 156504089
Tag: #stability
Change-Id: I594070a0dc1c33bd8f971bb8a7752fd317872a55
Merged-In: I594070a0dc1c33bd8f971bb8a7752fd317872a55
(cherry picked from commit 184414edd1a0851892865241d9287ca0d808b54e)

4 years agoSupport for reading playback file in scripted beacon am: 466f60ad97
Sanjay Ramankandath [Mon, 11 May 2020 15:57:07 +0000 (15:57 +0000)]
Support for reading playback file in scripted beacon am: 466f60ad97

Change-Id: If08572674ce2bf90c58548d10bc60e9b06842b0f

4 years agoRootCanal: Add a scripted beacon for testing am: 544c47cef8
Myles Watson [Mon, 11 May 2020 15:57:05 +0000 (15:57 +0000)]
RootCanal: Add a scripted beacon for testing am: 544c47cef8

Change-Id: I33217ec8576702e377a3e5426ead41f2f2267c44

4 years agoSupport for reading playback file in scripted beacon
Sanjay Ramankandath [Fri, 24 Apr 2020 14:40:59 +0000 (14:40 +0000)]
Support for reading playback file in scripted beacon

Bug: 154491371
Tag: #feature
Test: Manual test on cuttlefish
Test: gd/cert/run --host
Change-Id: Ie0ce31796a0c28826002b0677d27e5db075dde6d

4 years agoRootCanal: Add a scripted beacon for testing
Myles Watson [Mon, 20 Apr 2020 22:57:07 +0000 (15:57 -0700)]
RootCanal: Add a scripted beacon for testing

Bug: 154491371
Tag: #feature
Test: Scan for devices
Test: gd/cert/run --host
Change-Id: I3354d621d4253d051eb7b814de8d7889dcf99f64

4 years agoAllow Java-land to request current track metadata through JNI am: d39a5ba44a
Sal Savage [Fri, 8 May 2020 22:48:25 +0000 (22:48 +0000)]
Allow Java-land to request current track metadata through JNI am: d39a5ba44a

Change-Id: Ib6a0928f4c13e00781dd138b18f3c99d4772e216

4 years agoAllow Java-land to request current track metadata through JNI
Sal Savage [Thu, 30 Apr 2020 22:10:08 +0000 (15:10 -0700)]
Allow Java-land to request current track metadata through JNI

AVRCP Targets are not supposed to give image handles over with metadata
until an AVRCP BIP client connects from a particular controller. Because
this connection can happen any time and there's nothing forcing a target
to send us a track changed notification to inform us of the new handle,
the best thing we can do to work with all devices is to request it when
we connect on BIP. Otherwise, we risk a race condition between the BIP
connection and any amount of track changed notifications that might
happen organically. Our JNI doesn't current support requesting current
track metadata.

This change adds/implements a get_current_track_metadata() method to the
JNI. This, paired with a change in /packages/apps/Bluetooth/, fixes the
above mentioned race condition and keeps us from missing out on possible
cover art image handles.

Bug: 152655644
Test: Build, flash, test with AVRCP target cover art devices
Change-Id: I9d1f28068b4fded61d5336da8d864fbd9ef34f98
Merged-In: I9d1f28068b4fded61d5336da8d864fbd9ef34f98

4 years agoMerge "Check search state when cancel read remote name procedure" into rvc-dev am...
TreeHugger Robot [Wed, 6 May 2020 17:39:20 +0000 (17:39 +0000)]
Merge "Check search state when cancel read remote name procedure" into rvc-dev am: fd6bc2f4e1

Change-Id: I08afd971c1580eea0cdacd018c26fd5208b29e2d

4 years agoMerge "Check search state when cancel read remote name procedure" into rvc-dev
TreeHugger Robot [Wed, 6 May 2020 17:22:06 +0000 (17:22 +0000)]
Merge "Check search state when cancel read remote name procedure" into rvc-dev

4 years agoservice: A2DP source callback to query the preferred codec am: 1c682f8f22
Cheney Ni [Wed, 6 May 2020 08:56:05 +0000 (08:56 +0000)]
service: A2DP source callback to query the preferred codec am: 1c682f8f22

Change-Id: I40971aebf892d508b125be82e5be36094608aa83

4 years agoA2DP: Don't select disabled optional codecs when local SRC reconnecting am: 32379e3062
Cheney Ni [Wed, 6 May 2020 08:56:02 +0000 (08:56 +0000)]
A2DP: Don't select disabled optional codecs when local SRC reconnecting am: 32379e3062

Change-Id: I2a8112143887448fc765bb44abc04130a1e22202

4 years agoservice: A2DP source callback to query the preferred codec
Cheney Ni [Tue, 5 May 2020 07:17:29 +0000 (15:17 +0800)]
service: A2DP source callback to query the preferred codec

In order to apply user's preferred codec while reconnecting, we need a
callback method to talk to Bluetooth stack whether the mandatory codec
has higher priority than others. This change implements a dummy method
in the fluoride service, so is working with the stack.

Bug: 134131114
Bug: 147572898
Test: bluetoothtbd_test
Change-Id: Ib99cf12eba85450526e22723d1509405469c2ebc
Merged-In: Ib99cf12eba85450526e22723d1509405469c2ebc
(cherry picked from commit 3254942410f182533675645392d7f72d14bf7543)

4 years agoA2DP: Don't select disabled optional codecs when local SRC reconnecting
Cheney Ni [Tue, 14 Apr 2020 06:25:20 +0000 (14:25 +0800)]
A2DP: Don't select disabled optional codecs when local SRC reconnecting

When local SRC is establishing a connection, the Bluetooth stack follows
those default priorities to choose a codec, and A2dpService needs to
judge again after this connection up event. If a user prefers the
mandatory codec, the peer state is OPEN -> RECONFIG -> OPEN which
is redundant but lousy. Since codecs preference is saved at the
upper-layer, this change queries the mandatory codec, and raises
the priority for more preferred codec while reconnecting from local.

Bug: 134131114
Bug: 147572898
Test: Local A2DP initializes connections
Change-Id: I110ffa463dd4c9ec62e18e1843b5aebc84d73093
Merged-In: I110ffa463dd4c9ec62e18e1843b5aebc84d73093
(cherry picked from commit 2fda2f0e415b2da9e7d5201bf8089492db88e73a)

4 years agoSet min_sdk_version to be part of mainline modules am: 5c54cb7229
Jooyung Han [Wed, 29 Apr 2020 15:58:20 +0000 (15:58 +0000)]
Set min_sdk_version to be part of mainline modules am: 5c54cb7229

Change-Id: I8e978818c51398d1177a8244eeab2814d3383c6d

4 years agoSet min_sdk_version to be part of mainline modules
Jooyung Han [Thu, 16 Apr 2020 09:48:33 +0000 (18:48 +0900)]
Set min_sdk_version to be part of mainline modules

Modules contributing mainline modules (APK/APEX) should set
min_sdk_version as well as apex_available.

For now setting min_sdk_version doesn't change build outputs.
But build-time checks will be added soon.

Bug: 152655956
Test: m
Merged-In: Ifb9e0d4cd57a0e8212341cf493cd9fb20d0e264c
Change-Id: Ifb9e0d4cd57a0e8212341cf493cd9fb20d0e264c
(cherry picked from commit da09207b693706b0ed5cc2fef65401dbe972925e)