Commit Graph

2038 Commits

Author SHA1 Message Date
Treehugger Robot
ddcee937c1 Merge "gtbs: Add Generic Telephone Bearer Service support" 2022-01-12 07:05:02 +00:00
Md Shahriar Hossain Sajib
f28ab362fc Merge "le advertisement address type settings" 2022-01-12 03:11:00 +00:00
Mariusz Skamra
b91b1c5139 gtbs: Add Generic Telephone Bearer Service support
Tag: #feature
Bug: 159786353
Bug: 213412267
Sponsor: jpawlowski@
Test: build
Change-Id: Iecd56b91ce59f6b014878691fe4c6fae826b73f9
2022-01-11 19:36:33 +00:00
chapin
279b828fd8 Merge "Revert "gtbs: Add Generic Telephone Bearer Service support"" 2022-01-07 14:08:23 +00:00
Jack He
78f425ff07 Revert "gtbs: Add Generic Telephone Bearer Service support"
Revert "gtbs: Add Generic Telephone Bearer Service implementation"

Revert submission 1873900-gtbs

Reason for revert: broke cellular call over BT, see b/213412267
Reverted Changes:
I284ddacfc:gtbs: Add Generic Telephone Bearer Service impleme...
I8264ade4b:gtbs: Add Generic Telephone Bearer Service support...
I996cd5ff9:Add support for Generic Telephone Bearer service (...

Bug: 213412267
Tag: #feature
Test: answer cellular call by pressing button on HFP headset
Change-Id: I9c6b12b794b7378fd852238ad06890f46922c095
2022-01-07 00:34:04 +00:00
Treehugger Robot
d35cd459d6 Merge "Bluetooth: add LE Audio COD constant definition" 2022-01-06 23:47:54 +00:00
Qasim Javed
0809c7789f Add BluetoothLeBroadcastAssistantCallback.
Bug: 205174140
Bug: 208222452
Tag: #feature
Test: gd/cert/run

Change-Id: I302f2d22e6f295db27c4309b7a30dd867a264439
2022-01-06 18:39:53 +00:00
Treehugger Robot
e5fb36cbf2 Merge "Add BluetoothLeBroadcastSourceInfo." 2022-01-06 10:32:39 +00:00
Andriy Naborskyy
d5e7c4d04e le advertisement address type settings
add api to request public or random address type for advertisements.

bug: 155993389
Bug: 199827901
Tag: #feature
Test: atest BluetoothInstrumentationTests
Test: ACTS, SL4A, IOP and BCST, CTS, GTS
Change-Id: I4a2b9918e0f0cc31649e3c1952d9ba34f78d337f
2022-01-06 14:23:34 +08:00
Jakub Pawlowski
c201914d57 Bluetooth: add LE Audio COD constant definition
Tag: #feature
Test: compilation
Bug: 150670922
Change-Id: Ic68cd1e9ce4f10d7c2388eeeabe67acad5e555ea
2022-01-05 23:04:04 +01:00
Treehugger Robot
d5bd847275 Merge "Reduce blocking time when waiting for CharacteristicWrite queue to clear up." 2022-01-05 21:13:56 +00:00
Qasim Javed
63d5150d7d Add BluetoothLeBroadcastSourceInfo.
Bug: 205174140
Bug: 208222452
Tag: #feature
Test: gd/cert/run

Change-Id: I5d129d8b230ab564387212ebe83eb3c4398c7b21
2022-01-05 12:52:01 -08:00
Treehugger Robot
cb64b957f7 Merge "gtbs: Add Generic Telephone Bearer Service support" 2022-01-05 09:58:55 +00:00
Treehugger Robot
ccb536b8e2 Merge "Use Common Audio Service UUID from latest assigned numbers" 2021-12-30 00:16:35 +00:00
Jakub Pawlowski
2b67e53442 Use Common Audio Service UUID from latest assigned numbers
Bug: 150670922
Test: compilation
Merged-In: I35684ecec50c3db757331b6384c2579f5a28a70a
Change-Id: I35684ecec50c3db757331b6384c2579f5a28a70a
2021-12-29 19:11:00 +00:00
Johanna Ye
ff0f688ca4 Reduce blocking time when waiting for CharacteristicWrite queue to clear
up.

Bug: 200073240
Test: manual build
Change-Id: I62070a5789809c363dba3cb4f0d007d17e3a9ef8
2021-12-23 11:47:10 -08:00
Treehugger Robot
4548fa7275 Merge "Pbap use profileConnector, resolveSystemService api fix" 2021-12-21 00:58:16 +00:00
Mariusz Skamra
9537669523 gtbs: Add Generic Telephone Bearer Service support
Tag: #feature
Bug: 159786353
Sponsor: jpawlowski@
Test: build
Change-Id: I8264ade4b07df17fc0207437dfdcae7028cc20ff
2021-12-17 07:56:45 +00:00
Treehugger Robot
a39eb360db Merge "Remove allowBlocking from all BluetoothProfiles" 2021-12-17 02:01:13 +00:00
Etienne Ruffieux
70d456d06c Merge "Moved AttributionSource related APIs in AttributionSource" 2021-12-16 21:16:58 +00:00
William Escande
6b5464ca69 Remove allowBlocking from all BluetoothProfiles
Since Bluetooth is becoming a mainline module, it can no longer call the
allowBlocking hidden api.
Instead, all interface are moved to be oneway and use a synchronous data
to handle the return value.

Bug: 200200870
Test: Build + start Bt and play something on speaker
Tag: #refactor
Merged-In: I776a6322faadca1504bce24f2b6b041e756b6448
Change-Id: I776a6322faadca1504bce24f2b6b041e756b6448
2021-12-16 19:34:35 +01:00
Treehugger Robot
00d8163936 Merge "Add scan result logs." 2021-12-16 04:29:41 +00:00
Hyundo Moon
e4a79de89e Merge "BluetoothGatt: Deprecate unsupported methods" 2021-12-16 01:35:46 +00:00
Etienne Ruffieux
770d50ed43 Moved AttributionSource related APIs in AttributionSource
Modified myAttributionSource() to check for global AS for
process in ActivityThread and fallback to building new AS
with PackageManager#getPackageForUid(myUid()) if null.

Tag: #feature
Bug: 210467846
Bug: 210468546
Test: build
Change-Id: I7aa75395469bf0bb806100420faaf98c52057355
CTS-Coverage-Bug: 210906055
2021-12-15 22:03:50 +00:00
Etienne Ruffieux
4d612ad87b Merge "Replaced Bluetooth SystemProperties.set by sysprop" 2021-12-15 19:14:42 +00:00
Etienne Ruffieux
807dc12c1a Replaced Bluetooth SystemProperties.set by sysprop
Tag: #feature
Bug: 197210455
Test: set/get sysprop with SystemProperties
Merged-In: I613808dbc930c90e391df9857a173a86aedc4acf
Change-Id: I613808dbc930c90e391df9857a173a86aedc4acf
2021-12-15 13:06:17 +00:00
Rahul Sabnis
202ab8ff95 Merge "Remove unused references to android.app.ActivityThread in BluetoothAdapter" 2021-12-14 21:41:26 +00:00
William Escande
9bb1c2b1bf Pbap use profileConnector, resolveSystemService api fix
* All profiles use the BluetoothProfileConnector but not Pbap.
I reproduced the changes that were made in aosp/932813 for all other
profiles. This allow pbap to no longer call resolveSystemService.
* `Intent.resolveSystemService` is an hidden API and can no longer be
called from Bluetooth as we aim to become mainline. It's code is simple
enough to be copied.

Tag: #refactor
Bug: 200200870
Test: atest BluetoothInstrumentationTests
Merged-In: I838b910c633b3ca943fec01f3ccca466ff65f892

Change-Id: I838b910c633b3ca943fec01f3ccca466ff65f892
2021-12-14 16:01:01 +00:00
William Escande
634326680c Copy attributable to Bluetooth
Attributable is called by bluetooth and it's hidden.
By copying into bluetooth we are now allowed to call it
Bug: 210467788
Test: build
Tag: #refactor

Change-Id: I73ea07c9439988ab5477c82799f718c6d81513be
2021-12-14 16:22:07 +01:00
Rahul Sabnis
ac6e0c91b3 Remove unused references to android.app.ActivityThread in
BluetoothAdapter

Tag: #feature
Bug: 210468546
Test: Manual
Change-Id: Ia473afe6bcf4d0824e2fd2c6ca2ce562d0ecbde3
2021-12-13 14:32:46 -08:00
Treehugger Robot
62749e874a Merge "Change isCISCentralSupported() to isLeAudioSupported() API" 2021-12-10 02:10:42 +00:00
Etienne Ruffieux
e97c024d9a Merge "Added missing equals override in new Transport Data classes" 2021-12-09 18:26:45 +00:00
Treehugger Robot
9c2d1e673f Merge "replace CURRENT_OR_SELF with non hidden API" 2021-12-08 23:46:02 +00:00
Treehugger Robot
f0dd744ba6 Merge changes from topic "parse_audio_config_for_le_device"
* changes:
  Remove unnecessary test case
  Parse audio config codec capability for LE devices
2021-12-08 03:28:10 +00:00
Etienne Ruffieux
2a55386e82 Added missing equals override in new Transport Data classes
Tag: #feature
Bug: 208904630
Test: atest
Change-Id: I92cbd152eb063c866f7101040cb228036ae2c07a
2021-12-07 15:00:28 +00:00
Qasim Javed
afd5a827a7 Merge "Add BluetoothLeBroadcast profile API." 2021-12-06 17:27:31 +00:00
Etienne Ruffieux
720d74c835 Merge "Make BluetoothCodecConfig and BluetoothCodecStatus public." 2021-12-06 15:16:44 +00:00
Qasim Javed
6a7bc39edf Add BluetoothLeBroadcast profile API.
Implementation for the APIs will be added later.

Bug: 205174140
Bug: 208222281
Tag: #feature
Test: gd/cert/run

Change-Id: I8781be89cba45a6e7a76fec7df24790a9f02d6a6
2021-12-05 19:45:08 -08:00
Etienne Ruffieux
7121cd7fa5 Make BluetoothCodecConfig and BluetoothCodecStatus public.
Made BluetoothCodecConfig and BluetoothCodecStatus public,
added Builder to BluetoothCodecConfig, added accessor for
SOURCE_CODEC_TYPE_MAX and changed Arrays returns to List.

Tag: #feature
Bug: 200202780
Bug: 170678351
Test: BluetoothCodecConfigTest & BluetoothCodecStatusTest
NoNonSdkCheck: Only user actually requested the changes
Change-Id: Ic61b7087f53f45781f7e0eecca8b6d983093a22d
2021-12-03 23:08:50 +00:00
Jakub Pawłowski
a859e86b5c Merge "Bluetooth: Pretty print LE Audio profile name in logs" 2021-12-03 10:29:20 +00:00
Jakub Pawlowski
6525f0d6b9 Bluetooth: Pretty print LE Audio profile name in logs
Bug: 159786353
Change-Id: I1157a34fa91883a861ff0573431009823c2cd8b1
2021-12-02 19:13:15 +01:00
Patty
ae425ca614 Parse audio config codec capability for LE devices
1. Rename function getHwOffloadEncodingFormatsSupportedForA2DP
    to getHwOffloadFormatsSupportedForBluetoothMedia
 2. Add audio format for LC3
 3. Add public class BluetoothLeAudioCodecConfig to store the
    codec for LE audio
 4. Add test case for BluetoothLeAudioCodecConfig

Tag: #feature
Bug: 203535499
Bug: 150670922
Test: atest BluetoothLeAudioCodecConfigTest BluetoothInstrumentationTests
Change-Id: I5f64d9078ca2c07e13cffd83b879dd95468ed313
Merged-In: I5f64d9078ca2c07e13cffd83b879dd95468ed313
2021-12-02 21:59:26 +08:00
Hyundo Moon
0bb257f785 BluetoothGatt: Deprecate unsupported methods
Bug: 207452114
Test: make update-api -j && make -j;
Change-Id: Ic0534c1e25f9e35fae96886002e5ff1dd33f9fd4
2021-12-01 05:41:46 +00:00
William Escande
d23ab35c01 replace CURRENT_OR_SELF with non hidden API
This API is called by a mainline module (Bluetooth), and needs
to be change to an available API.

Bug: 200200870
Tag: #refactor
Test: Build + start bt + switch user and restart bt
Change-Id: I37bb0d16e61d666d0aa51d5efe48fa9b39f9c1c3
2021-11-30 13:18:29 +00:00
Patty
b897f7728f Change isCISCentralSupported() to isLeAudioSupported() API
Tag: #feature
Bug: 200749925
Bug: 150670922
Test: atest BasicAdapterTest
Change-Id: Ie606f45e148f6d9026495279d718a3cc1523c36f
2021-11-30 20:36:30 +08:00
Treehugger Robot
1e6ac5e1ff Merge "BT MAINLINE ParcelFileDescriptor to dup method" 2021-11-29 17:21:33 +00:00
Treehugger Robot
f33e7ff081 Merge "Create memory safe overload of BluetoothGattServer#notifyCharacteristicChanged" 2021-11-29 07:49:09 +00:00
Rahul Sabnis
4045c6f336 Merge "BT_MAINLINE Delete getControllerActivityEnergyInfo" 2021-11-24 22:54:10 +00:00
William Escande
d12faff084 BT MAINLINE ParcelFileDescriptor to dup method
In order to have Bluetooth a mainline module, we must remove all call to
externa hidden API.

Tag: #refactor
Bug: 200200870
Test: Build
Change-Id: I291d670b1dfc3760bedd5f6666ea04883568df69
2021-11-22 13:49:46 +01:00
William Escande
c9d83ba0d9 BT_MAINLINE Delete getControllerActivityEnergyInfo
This hidden api is deprecated since 2016.
Removing it because it's not used and it's calling 3 hidden apis
Bug: 200200870
Tag: #refactor
Test: Build

Change-Id: Ib84e069dc663def3d6a2d6f64717d76d39b59fb9
2021-11-18 16:04:17 +01:00