TreeHugger Robot
3fe4b24d46
Merge "Pbap use profileConnector, resolveSystemService api fix"
2021-12-20 22:53:32 +00:00
William Escande
a76f95887c
Merge "Remove allowBlocking from all BluetoothProfiles"
2021-12-17 00:15:40 +00:00
Etienne Ruffieux
5251dfbc2a
Merge "Moved AttributionSource related APIs in AttributionSource" am: 70d456d06c am: 52ddc063b0 am: e5d5eefb16 am: 52dfe57f07
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1922817
Change-Id: I60fa5ecea7c9b1bffbd8bfaf0ed85cafb80fa5bc
2021-12-16 22:52:35 +00:00
Etienne Ruffieux
52dfe57f07
Merge "Moved AttributionSource related APIs in AttributionSource" am: 70d456d06c am: 52ddc063b0 am: e5d5eefb16
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1922817
Change-Id: Id6bcfb0cca120540dd251dda22c713539c5c2b8c
2021-12-16 22:08:37 +00:00
Etienne Ruffieux
70d456d06c
Merge "Moved AttributionSource related APIs in AttributionSource"
2021-12-16 21:16:58 +00:00
William Escande
33a146346b
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
Change-Id: I776a6322faadca1504bce24f2b6b041e756b6448
2021-12-16 19:28:02 +01:00
Treehugger Robot
c15418977b
Merge "Add scan result logs." am: 00d8163936 am: eb9fe6b5ec am: ecd5de9078 am: 8150ee9d3f
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1836926
Change-Id: I6e08007cbbe792f7a30ac9ed5aac8e3cc6758b51
2021-12-16 05:28:51 +00:00
Treehugger Robot
8150ee9d3f
Merge "Add scan result logs." am: 00d8163936 am: eb9fe6b5ec am: ecd5de9078
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1836926
Change-Id: Iaeaff1e690f7a28ae984bba05159129c75aed26a
2021-12-16 05:09:46 +00:00
Treehugger Robot
00d8163936
Merge "Add scan result logs."
2021-12-16 04:29:41 +00:00
Hyundo Moon
68d5ff92c5
Merge "BluetoothGatt: Deprecate unsupported methods" am: e4a79de89e am: c57b083537 am: 1e4ab066fa am: d6c8043031
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1899033
Change-Id: I3a5b621e533ff2443d7c7bc2016dcf0b2d4c8110
2021-12-16 02:41:54 +00:00
Hyundo Moon
d6c8043031
Merge "BluetoothGatt: Deprecate unsupported methods" am: e4a79de89e am: c57b083537 am: 1e4ab066fa
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1899033
Change-Id: I171735ba4e583455c3070f30662bf505cd4facc3
2021-12-16 02:24:08 +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
3fac6d3746
Merge "Replaced Bluetooth SystemProperties.set by sysprop" am: 4d612ad87b am: a9e669070b am: c748403369
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1914690
Change-Id: I6b6d7c76f16d392a18ab5aadf1d351a72a693e8c
2021-12-15 20:33:32 +00:00
Bernardo Rufino
3d10fb4b83
Merge "Migrate unsafe parcel APIs in framework-minus-apex"
2021-12-15 19:15:58 +00:00
Etienne Ruffieux
4d612ad87b
Merge "Replaced Bluetooth SystemProperties.set by sysprop"
2021-12-15 19:14:42 +00:00
Bernardo Rufino
90bb3709dc
Migrate unsafe parcel APIs in framework-minus-apex
...
Migrate the following unsafe parcel APIs in framework-minus-apex:
* Parcel.readSerializable()
* Parcel.readArrayList()
* Parcel.readList()
* Parcel.readParcelable()
* Parcel.readParcelableList()
* Parcel.readSparseArray()
This CL was generated by applying lint fixes that infer the expected
type from the caller code and provide that as the type parameter
(ag/16365240).
A few observations:
* In some classes we couldn't migrate because the class also belonged to
another build module whose min SDK wasn't current (as is the case for
framework-minus-apex), hence I suppressed the lint check
(since I'll eventually submit the lint check to the tree).
* In some cases, I needed to do the cast in
https://stackoverflow.com/a/1080525/5765705 to make the compiler happy
since there isn't another way of providing a class of type
Class<MyClassWithGenerics<T>>.
* In the readSerializable() case, the new API also requires the class
loader, that was inferred to by InferredClass.class.getClassLoader().
* Note that automatic formatting and import rely on running hooked up
to the IDE, which wasn't the case here.
Bug: 195622897
Test: TH passes
Change-Id: I11a27b9bdab7959ee86e90aa1e1cbebd7aaf883c
2021-12-15 18:21:38 +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
5965aa4b95
Merge "Remove unused references to android.app.ActivityThread in BluetoothAdapter" am: 202ab8ff95 am: e768d3d44a am: 5cf0381ccb am: 22e2d77b7a
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1920977
Change-Id: I6c30732ad6932b48bdde5be6f15f7f53c96924fa
2021-12-14 22:50:43 +00:00
Rahul Sabnis
22e2d77b7a
Merge "Remove unused references to android.app.ActivityThread in BluetoothAdapter" am: 202ab8ff95 am: e768d3d44a am: 5cf0381ccb
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1920977
Change-Id: I7a3d708119d2bf05cee4d9963559622171e1c3af
2021-12-14 22:32:46 +00:00
Etienne Ruffieux
b47f68cfcd
Merge "Replaced Bluetooth SystemProperties.set by sysprop"
2021-12-14 21:56:32 +00:00
Rahul Sabnis
202ab8ff95
Merge "Remove unused references to android.app.ActivityThread in BluetoothAdapter"
2021-12-14 21:41:26 +00:00
Treehugger Robot
96271aec8a
Merge "Copy attributable to Bluetooth" am: b4950bde08 am: a6d1bd6b57 am: 1cdca58b06 am: 82451a9a6c
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1922462
Change-Id: I510639073615474d1774991645da87c6f71277dd
2021-12-14 21:29:31 +00:00
Treehugger Robot
82451a9a6c
Merge "Copy attributable to Bluetooth" am: b4950bde08 am: a6d1bd6b57 am: 1cdca58b06
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1922462
Change-Id: I085488123dd1214264eb90b4c0b720f2aa69b899
2021-12-14 21:16:45 +00:00
William Escande
0c86889d83
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
Change-Id: I838b910c633b3ca943fec01f3ccca466ff65f892
2021-12-14 16:59:13 +01: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
Etienne Ruffieux
f636a3147f
Replaced Bluetooth SystemProperties.set by sysprop
...
Tag: #feature
Bug: 197210455
Test: set/get sysprop with SystemProperties
Change-Id: I613808dbc930c90e391df9857a173a86aedc4acf
2021-12-14 10:06:37 +00:00
TreeHugger Robot
e4c47bff79
Merge "Revert "Revert "Complete hard removal of BluetoothHeadset#setPri...""
2021-12-14 08:39:05 +00:00
Rahul Sabnis
186d244044
Revert "Revert "Complete hard removal of BluetoothHeadset#setPri..."
...
Revert "Revert "Hard remove BluetoothHeadset#setPriority System ..."
Revert "Revert "Added removal of BluetoothHeadset#setPriority to..."
Revert submission 16433519-hfp-setpriority-hardremove
Tag: #feature
Bug: 209335798
Test: Manual
Reason for revert: CTS issue fixed
Reverted Changes:
I9de1b07f2:Revert "Complete hard removal of BluetoothHeadset#...
If5d408e8b:Revert "Added removal of BluetoothHeadset#setPrior...
I3c717fad0:Revert "Hard remove BluetoothHeadset#setPriority S...
Change-Id: Id86ba6bd922cd862560a635cc9b8bd79ca0f9d28
2021-12-14 00:18:50 +00: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
2da9d79599
Merge "Change isCISCentralSupported() to isLeAudioSupported() API" am: 62749e874a am: d954a3dd2a am: 2a756fc34a am: a780e58bef
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1906211
Change-Id: I876a8e86a13e4d10c7f26b8032a66bbfe117eba2
2021-12-10 03:18:42 +00:00
Treehugger Robot
a780e58bef
Merge "Change isCISCentralSupported() to isLeAudioSupported() API" am: 62749e874a am: d954a3dd2a am: 2a756fc34a
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1906211
Change-Id: I0e5f44854419cf333f79ae7fb5f25a1a8ee03c6b
2021-12-10 03:01:30 +00:00
TreeHugger Robot
1dfa431f86
Merge "Revert "Complete hard removal of BluetoothHeadset#setPriority system API that""
2021-12-10 02:52:34 +00:00
Treehugger Robot
62749e874a
Merge "Change isCISCentralSupported() to isLeAudioSupported() API"
2021-12-10 02:10:42 +00:00
Rahul Sabnis
31bcaf44ae
Revert "Complete hard removal of BluetoothHeadset#setPriority system API that"
...
This reverts commit 7407887e00 .
Bug: 209335798
Test: Manual
Reason for revert: Failing signature test that will be updated by paulduffin@
Change-Id: I9de1b07f2d0f4d01d9e3b57a6ddf8a4232db29b6
2021-12-09 20:01:20 +00:00
Etienne Ruffieux
1aebd33423
Merge "Added missing equals override in new Transport Data classes" am: e97c024d9a am: 320e2a12de am: cadfabd3cb am: 7e3fac14e1
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1913506
Change-Id: Ica7cbefad66391569b2fa5c125f7971b0b7b42c9
2021-12-09 19:37:47 +00:00
Etienne Ruffieux
7e3fac14e1
Merge "Added missing equals override in new Transport Data classes" am: e97c024d9a am: 320e2a12de am: cadfabd3cb
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1913506
Change-Id: I0bfaef983f7a9dc005660f7ec0a0cc087832c1f8
2021-12-09 19:07:40 +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
3e2223b8e9
Merge "replace CURRENT_OR_SELF with non hidden API" am: 9c2d1e673f am: 8ae74e0055 am: 8fb184fe76 am: 63afcd54c0
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1901950
Change-Id: I1c51cb0bba21b68362c2e7f04c134172a9c275af
2021-12-09 01:11:34 +00:00
Treehugger Robot
63afcd54c0
Merge "replace CURRENT_OR_SELF with non hidden API" am: 9c2d1e673f am: 8ae74e0055 am: 8fb184fe76
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1901950
Change-Id: I950e56ed6f2d8c2b6252a1df5136ccaa7d63ef21
2021-12-09 00:54:24 +00:00
Treehugger Robot
9c2d1e673f
Merge "replace CURRENT_OR_SELF with non hidden API"
2021-12-08 23:46:02 +00:00
Patty
5f2d0c1587
Parse audio config codec capability for LE devices am: ae425ca614 am: b8fe694317 am: 448737997e
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1881112
Change-Id: Ie29eb3a7c07155dadbce957b1d8d653e7795e108
2021-12-08 04:20:50 +00:00
Patty
b8fe694317
Parse audio config codec capability for LE devices am: ae425ca614
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1881112
Change-Id: I7cab6bd9cc4bc2fbf6201c88b1f890a88a7c3bd2
2021-12-08 03:54:09 +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
852a197e59
Merge "Add BluetoothLeBroadcast profile API." am: afd5a827a7 am: 562b6f9093 am: aaca31b70b am: 5768697168
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1881629
Change-Id: I274435e25c827f60adf667cfb59aaf055fa106cd
2021-12-06 18:12:28 +00:00
Qasim Javed
5768697168
Merge "Add BluetoothLeBroadcast profile API." am: afd5a827a7 am: 562b6f9093 am: aaca31b70b
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1881629
Change-Id: I594870742bcf4c8ceb4037db4dbb048e61fdf64f
2021-12-06 18:08:38 +00:00
Qasim Javed
afd5a827a7
Merge "Add BluetoothLeBroadcast profile API."
2021-12-06 17:27:31 +00:00
Etienne Ruffieux
61527e371f
Merge "Make BluetoothCodecConfig and BluetoothCodecStatus public." am: 720d74c835 am: 60ee51b45b am: 6140b27f92 am: ff722e5477
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1849460
Change-Id: I3f9eea60be66e06893ddf963e5e8dcf6310ba0e9
2021-12-06 16:34:05 +00:00
Etienne Ruffieux
ff722e5477
Merge "Make BluetoothCodecConfig and BluetoothCodecStatus public." am: 720d74c835 am: 60ee51b45b am: 6140b27f92
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1849460
Change-Id: Ia9a487ca2aaed32193a86c0d0fc22f53356ceea1
2021-12-06 16:18:10 +00:00