aboutsummaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothAdapter.java
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge "Throw exception when LE state is on, but bluetooth service is null." ↵Treehugger Robot2022-03-031-0/+12
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4a680b9117 am: 835b73ada9 am: 29b1dbad79 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2003692 Change-Id: I96894ea704c5d63734d8490d846c8748d8770bd1
| * | | Merge "Throw exception when LE state is on, but bluetooth service is null." ↵Treehugger Robot2022-03-031-0/+12
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4a680b9117 am: 835b73ada9 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2003692 Change-Id: I39c45b58ce30a8f12914c34b45e9efc87fbbe547
| | * | Throw exception when LE state is on, but bluetooth service is null.Patty2022-03-011-0/+12
| | |/ | | | | | | | | | | | | | | | | | | Tag: #refactor Bug: 216528836 Test: atest BluetoothInstrumentationTests Change-Id: Id61478f81b74bc3398d71e1fe8a410058ab05142
| * | Make BluetoothHeadset APIs used by Telecom into System APIs and update am: ↵Rahul Sabnis2022-02-251-9/+9
| |\| | | | | | | | | | | | | | | | | | | | | | e0fad4a088 am: e61f19841a Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1932850 Change-Id: Ic97746062cb75e618ad78f7d8286b7a10082ec7d
| | * Make BluetoothHeadset APIs used by Telecom into System APIs and updateRahul Sabnis2022-02-241-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | service code to match. Tag: #feature Bug: 195156304 Test: Manual Merged-In: I8af246091ae49c8f9cf34c1f4a894b3a66a28cf8 Change-Id: I8af246091ae49c8f9cf34c1f4a894b3a66a28cf8
* | | Revert "Revert "Enable binder caches in Bluetooth module""William Escande2022-02-181-194/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit b13a1a0131e2b831f313409c70dd73b4fecdb100. Reason for revert: Fixing original CL Some code was left commented in original CL Change-Id: Ib834ebbec25d502ecab6bc78987f56fc6ff23b44 Fix: 214455273 Tag: #refactor Test: Manual testing Ignore-AOSP-First: No such api in aosp
* | | Merge "Update closeRfcommServer api to stopRfcommServer" am: 0da11503b4 am: ↵Treehugger Robot2022-02-181-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | 001acc4c27 am: 7fb7f7eda6 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1986668 Change-Id: I0bab018f520a876083fa43a35ce59e255a207cb0
| * | Merge "Update closeRfcommServer api to stopRfcommServer" am: 0da11503b4 am: ↵Treehugger Robot2022-02-181-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | 001acc4c27 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1986668 Change-Id: If67ed23cf1bbe1913586f563ea524bee5923dc7d
| | * Merge "Update closeRfcommServer api to stopRfcommServer"Treehugger Robot2022-02-171-1/+1
| | |\
| | | * Update closeRfcommServer api to stopRfcommServertadvana2022-02-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was an API introduced to create an RFCOMM server socket called startRfcommServer. Its companion call to shutdown the server was originally named closeRfcommServer. This is not consistent with the start name, and this change updates the API to rename it to be stopRfcommServer instead. Tag: #feature Test: Run the background rfcomm CtsVerifier test with an updated version of CtsVerifier that uses the new API. Bug: 218494317 Change-Id: I503ceac84af086cdea8a6a0cc7965f1ba5366c53
* | | | Merge "Handle RemoteException when getstate exception" am: c89178f725 am: ↵Zach Johnson2022-02-161-4/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d0ef283bfa am: 84a5eedc00 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1984750 Change-Id: I32a27455e99a7ee4fc62a5c09460be7e85204d94
| * | | Merge "Handle RemoteException when getstate exception" am: c89178f725 am: ↵Zach Johnson2022-02-161-4/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d0ef283bfa Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1984750 Change-Id: Iad36a4d4cb404a45579930484f4e23f461b1e9ed
| | * | Handle RemoteException when getstate exceptionweichinweng2022-02-151-4/+1
| | |/ | | | | | | | | | | | | | | | | | | | | | Tag: #feature Bug: 218313435 Test: Bluetooth on/off Let Bluetooth enable fail to check system status Change-Id: I234b14aa40d9a464d0daf8a79b361332938f0ef6
| * | Fix some API recently added am: 371420336d am: c19637e188William Escande2022-02-141-4/+7
| |\| | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1982209 Change-Id: Ia4e2b3da9e0bebd8a8ca0ce41da69b306b7b1ac1
| | * Fix some API recently addedWilliam Escande2022-02-141-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 217352944 Test: atest BluetoothHostTest#testAdapterGetConnectionState Test: atest BluetoothHostTest#testAdapterGetMostRecentlyConnectedDevices Test: atest BluetoothHostTest#testAdapterGetUuids Test: atest BluetoothHostTest#testAdapterNameForState Test: atest BluetoothHostTest#testAdapterRegisterBluetoothConnectionCallback Test: atest BluetoothHostTest#testAdapterRegisterServiceLifecycleCallback Test: atest BluetoothHostTest#testAdapterRequestControllerActivityEnergyInfo Tag: #refactor Merged-In: If90840d37d41cead376edeff946e552eab5bae85 Change-Id: If90840d37d41cead376edeff946e552eab5bae85 CTS-Coverage-Bug: 217352944
| * | API Changes needed for apex to build am: 3f38e42843 am: be7ee9429dWilliam Escande2022-02-141-10/+30
| |\| | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1982208 Change-Id: I72868a395b7b4449c51a17104f0c891b02af4070
| | * API Changes needed for apex to buildWilliam Escande2022-02-141-10/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | internal cherry-pick Bug: 216476895 Test: Compile Tag: #refactor Change-Id: I09108622038b174104457ca18ac6ec7949978f66 Merged-In: I09108622038b174104457ca18ac6ec7949978f66 CTS-Coverage-Bug: 217352944
| * | Merge "Adding a SystemApi for RFCOMM test case in the CtsVerifier" am: ↵Treehugger Robot2022-02-101-0/+2
| |\| | | | | | | | | | | | | | | | | | | | | | 80913c0e89 am: 0863b9dc71 am: e72c7e84fb Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1976749 Change-Id: I7e818398934317c1fe0ece2dacac390d10efbe40
| | * Adding a SystemApi for RFCOMM test case in the CtsVerifierRoopa Sattiraju2022-02-091-0/+2
| | | | | | | | | | | | | | | | | | | | | Bug: 218545584 Test: Compile and test again apex presubmits Change-Id: Idccd85979e71edf26042fc1ef90a4978663f22d4 Merged-In: I875b488694d73bf94a12b422df7766db67d6bee1
| * | hap: Add initial implementation am: b87fc995f2 am: 68b17a7977 am: 0921283f1bJakub Tyszkowski2022-02-031-0/+7
| |\| | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1903553 Change-Id: I6b590f47be0351a40efde96acd5189b87b58e7c1
| | * hap: Add initial implementationJakub Tyszkowski2022-02-021-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements Hearing Access Profile client. Bug: 150670922 Tag: #feature Test: atest BluetoothInstrumentationTests bluetooth_has_test bluetooth_has_test Sponsor: jpawlowski@ Change-Id: If3cc9f2146d08326800eb922d7e2f795cf110e7d Merged-In: If3cc9f2146d08326800eb922d7e2f795cf110e7d (cherry picked from commit 8e723645df2f56f0edc346302c9c1e5a39f82795)
| * | Merge "Add getRemoteLeDevice to specify ADDRESS_TYPE" am: 36011ac6d4 am: ↵Treehugger Robot2022-02-021-0/+23
| |\| | | | | | | | | | | | | | | | | | | | | | 15b2bbb57d am: 0fcbafc9e7 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1956855 Change-Id: Idd2dac55da3aa5daa1f9aa60d965fe2f285ec6e7
| | * Merge "Add getRemoteLeDevice to specify ADDRESS_TYPE"Treehugger Robot2022-02-021-0/+23
| | |\
| | | * Add getRemoteLeDevice to specify ADDRESS_TYPEMyles Watson2022-01-281-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 215724286 Test: cts Tag: #feature Change-Id: Id6415cf5f0236a82cb294538c22b5dc22555a6ff Merged-In: Id6415cf5f0236a82cb294538c22b5dc22555a6ff
| * | | Merge "Remove allowBlocking from BluetoothManagerService" am: 9c157d574a am: ↵Treehugger Robot2022-02-011-178/+353
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d2ae431a14 am: a69efa32c7 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1943964 Change-Id: I4487b41a991a909e76d67fc1fb68d373b1f19f8c
| | * | Remove allowBlocking from BluetoothManagerServiceWilliam Escande2022-02-011-178/+353
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since Bluetooth is becoming a mainline module, it can no longer call the allowBlocking hidden api. Instead, corresponding aidl are moved to be oneway and use a synchronous data to handle the return value. also: aosp/1927380 for similar work on all bluetooth profiles BluetoothGatt will be done next Bug: 211851706 Test: build + start bt Tag: #refactor Change-Id: I715cc2d8f2ae42be6d1099cd73095d37fa9e30f4 Merged-In: I715cc2d8f2ae42be6d1099cd73095d37fa9e30f4
| * | Merge "Introduces mechanism for background rfcomm servers" am: 0662f5b93c ↵Treehugger Robot2022-01-281-0/+155
| |\| | | | | | | | | | | | | | | | | | | | | | am: d6f8dbbcfe am: a4195e47e4 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1885648 Change-Id: I3013042961946d71a13d67308e07a9a1998fc149
| | * Introduces mechanism for background rfcomm serverstadvana2022-01-271-0/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds a mechanism in the AdapterService which allows it to register RFCOMM listeners requested by a BluetoothAdapter. This is so that applications can request the framework to listen for incoming RFCOMM connections in the background. Apps can request that the bluetooth manager, via a BluetoothAdapter, listen on a specific service record, and then transact incoming socket connections after receiving a notification of availability via a PendingIntent. Tag: #feature Test: Run the CTS Bluetooth Rfcomm Handoff service Test. This requires two devices. Bug: 186494155 Ignore-AOSP-First: Need to commit to downstream first in order to resolve a merge conflict. Change-Id: Ia0c71969e691e6353f22fe3b7dae4a7500230e03 Merged-In: Ia0c71969e691e6353f22fe3b7dae4a7500230e03
| * | Merge changes from topic "mig" am: 7e8af675eb am: 2dd3ce73ee am: 570df21f56Treehugger Robot2022-01-271-2/+9
| |\| | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1952559 Change-Id: I6aaa1c076fe848ee2939ab7d44f175c1360d002b
| | * [framework] Migration of hidden APIs to System APIsMd Shahriar Hossain Sajib2022-01-271-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 199827901 Tag: #compatibility Test: IOP, BCST, GTS Merged-In: Ib0a205bc575e4cc3cf97eac539cd303acd878134 Change-Id: Ib0a205bc575e4cc3cf97eac539cd303acd878134
| * | Merge "Moving over core/api/*txt files" am: 268d01fbd6 am: 232de1de64 am: ↵Rahul Sabnis2022-01-271-5/+6
| |\| | | | | | | | | | | | | | | | | | | | | | 811aa14b2c Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1960689 Change-Id: I46d1c61a44fb88f1ee8c158139c73b85743c8a91
| | * Moving over core/api/*txt filesRoopa Sattiraju2022-01-261-5/+6
| | | | | | | | | | | | | | | | | | | | | Bug: 196026708 Test: Compile merged-In: I9cc8086b3e98bfa821b402250dcb9b233178d4b6 Change-Id: I9cc8086b3e98bfa821b402250dcb9b233178d4b6
* | | Revert "Enable binder caches in Bluetooth module"Lee Shombert2022-02-151-112/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 3e8fdcf3a141216196c27c15eed57cb7d0913877. Reason for revert: Bug: 219424192 Test: No test. Change-Id: Ibe7e246a85d048d55904f2a2f61ec5ac1f97a449
* | | Enable binder caches in Bluetooth moduleLee Shombert2022-02-111-161/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 214455273 Tag: #refactor Re-enabled binder caches in the Bluetooth mainline module. Manual testing was done by pairing a phone with a headset and verifying that the caches were in use via 'dumpsys cacheinfo'. Test: presubmit Change-Id: I1948f22d2b0ca43152468cebf5395b786fd68ab0
* | | Merge "Adding a SystemApi for RFCOMM test case in the CtsVerifier"TreeHugger Robot2022-02-091-0/+2
|\ \ \
| * | | Adding a SystemApi for RFCOMM test case in the CtsVerifierRoopa Sattiraju2022-02-091-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 218545584 Test: Compile and test again apex presubmits Change-Id: I875b488694d73bf94a12b422df7766db67d6bee1
* | | | Deprecating BluetoothAdapter enable/disableEtienne Ruffieux2022-02-081-0/+26
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Starting from T, BluetoothAdapter enable/disable APIs are limited to system apps or device owners. Tag: #feature Bug: 218493289 Test: manual Ignore-AOSP-First: Merge conflict Change-Id: I851830eae8a3a2bb4be4b2bcf6147fd81e092f2a
* | | Fix some API recently addedWilliam Escande2022-02-071-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 217352944 Test: atest BluetoothHostTest#testAdapterGetConnectionState Test: atest BluetoothHostTest#testAdapterGetMostRecentlyConnectedDevices Test: atest BluetoothHostTest#testAdapterGetUuids Test: atest BluetoothHostTest#testAdapterNameForState Test: atest BluetoothHostTest#testAdapterRegisterBluetoothConnectionCallback Test: atest BluetoothHostTest#testAdapterRegisterServiceLifecycleCallback Test: atest BluetoothHostTest#testAdapterRequestControllerActivityEnergyInfo Tag: #refactor Change-Id: If90840d37d41cead376edeff946e552eab5bae85 Ignore-AOSP-First: no such api on aosp yet
* | | API Changes needed for apex to buildWilliam Escande2022-02-011-12/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 216476895 Test: Compile Tag: #refactor Ignore-AOSP-First: AOSP will be updated later Change-Id: I09108622038b174104457ca18ac6ec7949978f66 CTS-Coverage-Bug: 217352944
* | | Check the result of getBluetoothServiceManagerMyles Watson2022-01-281-10/+15
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 216233593 Test: atest BluetoothInstrumentationTests Tag: #stability Ignore-AOSP-First: not in AOSP Change-Id: Ieb201a04928ddb3d3572c88173abbe7a8306c64b
* | | Remove allowBlocking from BluetoothManagerServiceWilliam Escande2022-01-281-166/+349
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since Bluetooth is becoming a mainline module, it can no longer call the allowBlocking hidden api. Instead, corresponding aidl are moved to be oneway and use a synchronous data to handle the return value. also: aosp/1927380 for similar work on all bluetooth profiles BluetoothGatt will be done next Bug: 211851706 Test: build + start bt Tag: #refactor Ignore-AOSP-First: merge conflict resolution Change-Id: I715cc2d8f2ae42be6d1099cd73095d37fa9e30f4
* | | hap: Add initial implementationJakub Tyszkowski2022-01-271-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements Hearing Access Profile client. Bug: 150670922 Tag: #feature Test: atest BluetoothInstrumentationTests bluetooth_has_test bluetooth_has_test Sponsor: jpawlowski@ Change-Id: If3cc9f2146d08326800eb922d7e2f795cf110e7d
* | | Merge "Add getRemoteLeDevice to specify ADDRESS_TYPE"Rahul Sabnis2022-01-271-0/+22
|\ \ \
| * | | Add getRemoteLeDevice to specify ADDRESS_TYPEMyles Watson2022-01-271-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 215724286 Test: cts Tag: #feature Change-Id: Id6415cf5f0236a82cb294538c22b5dc22555a6ff
* | | | Introduces mechanism for background rfcomm serverstadvana2022-01-261-0/+155
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds a mechanism in the AdapterService which allows it to register RFCOMM listeners requested by a BluetoothAdapter. This is so that applications can request the framework to listen for incoming RFCOMM connections in the background. Apps can request that the bluetooth manager, via a BluetoothAdapter, listen on a specific service record, and then transact incoming socket connections after receiving a notification of availability via a PendingIntent. Tag: #feature Test: Run the CTS Bluetooth Rfcomm Handoff service Test. This requires two devices. Bug: 186494155 Ignore-AOSP-First: Need to commit to downstream first in order to resolve a merge conflict. Change-Id: Ia0c71969e691e6353f22fe3b7dae4a7500230e03
* | | [framework] Migration of hidden APIs to System APIsMd Shahriar Hossain Sajib2022-01-261-3/+9
| | | | | | | | | | | | | | | | | | | | | Bug: 199827901 Tag: #compatibility Test: IOP, BCST, GTS Change-Id: Ib0a205bc575e4cc3cf97eac539cd303acd878134
* | | Moving over core/api/*txt filesRoopa Sattiraju2022-01-251-5/+6
| | | | | | | | | | | | | | | | | | Bug: 196026708 Test: Compile Change-Id: I9cc8086b3e98bfa821b402250dcb9b233178d4b6
* | | Migrating Bluetooth resources to Bluetooth module am: 46f0869e44 am: ↵Etienne Ruffieux2022-01-251-4/+4
|\| | | | | | | | | | | | | | | | | | | | | | | 41f1eda6e5 am: 2b17efdfab am: cd8180a341 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1931007 Change-Id: I57b927ec983e8906fcda0f9cc7a4407906e55d1c
| * | Migrating Bluetooth resources to Bluetooth module am: 46f0869e44 am: ↵Etienne Ruffieux2022-01-251-4/+4
| |\| | | | | | | | | | | | | | | | | | | | | | 41f1eda6e5 am: 2b17efdfab Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1931007 Change-Id: I013b0c545f7f4b8eff4d93490bad0fbf1b8d5f21
| | * Migrating Bluetooth resources to Bluetooth moduleEtienne Ruffieux2022-01-251-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order for the Bluetooth module to build as an apex all non-public resources must be located in the same package. Made getMaxConnectedAudioDevices system API in order for development Settings to access it. Removed isInbandRingingSupported as only usage was by bt service (config is now directly in service). Removed isBluetoothVoiceDialingEnabled as there were no usages, and no overlays. All configs used only by the Bluetooth app are moved to the Bluetooth module. Tag: #feature Bug: 211570675 Test: build Test: make RunSettingsRoboTests Change-Id: Ieed30c31fc44b5b477d43ae120ef11f96ab115ca