summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothStatusCodes.java
AgeCommit message (Collapse)Author
2022-03-18Merge "Address API council feedback on GATT API changes." am: 56ddf94ade am: ↵Rahul Sabnis
f387f74474 am: 45840994d4 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2030693 Change-Id: Ia4e5d5503f7708c3749456ee408119025c30f9b8
2022-03-17Address API council feedback on GATT API changes.Rahul Sabnis
This CL also updates the permission enforcement mechanism for GATT APIs so it now throws a SecurityException on new APIs as well as on older APIs called by apps targeting T+. Tag: #feature Bug: 217742355 Test: Manual Change-Id: I87fe2ffd088cbce4a9887538964e73f3f5198157
2022-02-24Make BluetoothHeadset APIs used by Telecom into System APIs and updateRahul Sabnis
service code to match. Tag: #feature Bug: 195156304 Test: Manual Merged-In: I8af246091ae49c8f9cf34c1f4a894b3a66a28cf8 Change-Id: I8af246091ae49c8f9cf34c1f4a894b3a66a28cf8
2022-02-11Merge "Fix duplicate status code" am: fab058791c am: de407f2d4a am: e3e480f725Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1976759 Change-Id: I154a8ce2698fb18d2c1d2764b9bc29702120cce9
2022-02-11Fix duplicate status codeJakub Tyszkowski
Bug: 150670922 Tag: #feature Test: compilation Sponsor: jpawlowski@ Change-Id: I866dd732ad72cbb34539ae2669acb335805324b8
2022-02-02LE Audio: Expose more system APIsJakub Tyszkowski
* Expose two intentss: * ACTION_LE_AUDIO_ACTIVE_DEVICE_CHANGED * ACTION_LE_AUDIO_GROUP_NODE_STATUS_CHANGED * Settings and Telecom are interested in the group node status information, therefore lets expose the API as a SystemApi * Reduce scope of HAP connection state API to system API * Expose more system APIs for HAP client * To select different hearing presets * To get notified about changes in hearing presets * To get all available hearing presets * Expose more system APIs for CSIP * To make error codes more visible for the API caller * Expose GROUP_ID_INVALID to public API for getGroupId() Bug: 150670922 Test: atest BluetoothInstrumentationTests Tag: #feature Sponsor: siyuanh@ Ignore-AOSP-First: earlier change merged on internal Change-Id: If87e0863f23b989632603ac1253e4a77bfff028d Merged-In: If87e0863f23b989632603ac1253e4a77bfff028d (cherry picked from commit a89f2e1a02f986de04078ee399f39ad09d0c53f8)
2022-02-02Introduce LE audio broadcast system APIsJack He
* Rename BluetoothLeBroadcastSourceInfo to BluetoothLeBroadcastReceiveState so that it matches the name in the Bluetooth specification * Added callbacks to BluetoothLeBroadcast so that caller that wait for asynchronouze operations with reason code in the hope to reduce potential race conditions * Allow multiple broadcast to be set up on the same deivce if the device supports it * Added ScanFilter to searchForSources() method and removed selectSources() method for BluetoothLeBroadcastAssistant so that the Bluetooth stack can automatically handle periodic sync after a Broadcast source is found and only do this for a limited number of devices * Added structural APIs to store Broadcast Source and Group information * Added unknown address type in BluetoothDevice Bug: 208222281 Test: make Tag: #feature Ignore-AOSP-First: Merge conflict in master Change-Id: If4c3af658b5bc1283d76e5d1899485a487ab7626 Merged-In: If4c3af658b5bc1283d76e5d1899485a487ab7626 (cherry picked from commit 4f9d902028fbe271167547884c33fb9ec7601080)
2022-01-28LE Audio: Expose more system APIsJakub Tyszkowski
* Expose two intentss: * ACTION_LE_AUDIO_ACTIVE_DEVICE_CHANGED * ACTION_LE_AUDIO_GROUP_NODE_STATUS_CHANGED * Settings and Telecom are interested in the group node status information, therefore lets expose the API as a SystemApi * Reduce scope of HAP connection state API to system API * Expose more system APIs for HAP client * To select different hearing presets * To get notified about changes in hearing presets * To get all available hearing presets * Expose more system APIs for CSIP * To make error codes more visible for the API caller * Expose GROUP_ID_INVALID to public API for getGroupId() Bug: 150670922 Test: atest BluetoothInstrumentationTests Tag: #feature Sponsor: siyuanh@ Ignore-AOSP-First: earlier change merged on internal Change-Id: If87e0863f23b989632603ac1253e4a77bfff028d
2022-01-27Introduces mechanism for background rfcomm serverstadvana
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
2022-01-27Introduce LE audio broadcast system APIsJack He
* Rename BluetoothLeBroadcastSourceInfo to BluetoothLeBroadcastReceiveState so that it matches the name in the Bluetooth specification * Added callbacks to BluetoothLeBroadcast so that caller that wait for asynchronouze operations with reason code in the hope to reduce potential race conditions * Allow multiple broadcast to be set up on the same deivce if the device supports it * Added ScanFilter to searchForSources() method and removed selectSources() method for BluetoothLeBroadcastAssistant so that the Bluetooth stack can automatically handle periodic sync after a Broadcast source is found and only do this for a limited number of devices * Added structural APIs to store Broadcast Source and Group information * Added unknown address type in BluetoothDevice Bug: 208222281 Test: make Tag: #feature Ignore-AOSP-First: Merge conflict in master Change-Id: If4c3af658b5bc1283d76e5d1899485a487ab7626
2022-01-27[framework] Migration of hidden APIs to System APIsMd Shahriar Hossain Sajib
Bug: 199827901 Tag: #compatibility Test: IOP, BCST, GTS Merged-In: Ib0a205bc575e4cc3cf97eac539cd303acd878134 Change-Id: Ib0a205bc575e4cc3cf97eac539cd303acd878134
2022-01-26Introduces mechanism for background rfcomm serverstadvana
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
2022-01-26[framework] Migration of hidden APIs to System APIsMd Shahriar Hossain Sajib
Bug: 199827901 Tag: #compatibility Test: IOP, BCST, GTS Change-Id: Ib0a205bc575e4cc3cf97eac539cd303acd878134
2022-01-12Make BluetoothHeadset APIs used by Telecom into System APIsRahul Sabnis
Tag: #feature Bug: 195156304 Test: Manual CTS-Coverage-Bug: 211914959 Change-Id: I13d6f553f5b9d6ca7c2ae9a42450875b16cd1490
2021-12-06Merge "Add BluetoothLeBroadcast profile API." am: b058b49d87 am: 68056b6d35 ↵Qasim Javed
am: 8e0a9a1f62 am: e5aede7b89 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1881629 Change-Id: I274435e25c827f60adf667cfb59aaf055fa106cd
2021-12-05Add BluetoothLeBroadcast profile API.Qasim Javed
Implementation for the APIs will be added later. Bug: 205174140 Bug: 208222281 Tag: #feature Test: gd/cert/run Change-Id: I8781be89cba45a6e7a76fec7df24790a9f02d6a6
2021-11-16Refactor Bluetooth scan mode APIsEtienne Ruffieux
Removed setScanMode(int, long), setScanMode(int mode) is now a SystemApi. Made getDiscoverableTimeout a public API. setDiscoverableTimeout is now SystemApi and takes java.time.Duration as parameter. Tag: #feature Bug: 195150096 Test: Manual Change-Id: I824b24464987e1db87efc193d30452a6d9d0411e
2021-11-05Deprecate GATT callbacks and methods that were not memory safe andRahul Sabnis
replace with memory safe versions. Tag: #feature Bug: 195157393 Test: Manual CTS-Coverage-Bug: 205190062 Merged-In: I5ae604ec20febcf646bfe6a8f866b218448349c1 Change-Id: I5ae604ec20febcf646bfe6a8f866b218448349c1
2021-11-04Deprecate GATT callbacks and methods that were not memory safe andRahul Sabnis
replace with memory safe versions. Tag: #feature Bug: 195157393 Test: Manual CTS-Coverage-Bug: 205190062 Change-Id: I5ae604ec20febcf646bfe6a8f866b218448349c1
2021-10-27Expose isCISCentralSupported() and ↵Patty
isLePeriodicAdvertisingSyncTransferSenderSupported() API Tag: #feature Bug: 200749925 Bug: 150670922 Test: Compile Change-Id: I45c674dcc8719d209f0e790aa9716bbbf0052fce
2021-09-29Add BluetoothDevice#connect and BluetoothDevice#disconnect as System APIsRahul Sabnis
Tag: #feature Bug: 201462141 Test: Manual Change-Id: I79332c63e99efd9e90036ba2c693835151cc1240
2021-05-17Update BluetoothDevice#setAlias based on API council feedback: nowRahul Sabnis
accepts null input and returns an int (with error codes). Update CompanionDeviceManager#canPairWithoutPrompt to take a UserHandle instead of an int. Adds BluetoothStatusCodes class for all new Bluetooth error / success codes. Moved OOB and hci disconnect constants to the new BluetoothStatusCodes class. Tag: #feature Bug: 184714087 Test: atest BluetoothDeviceTest#test_setAlias_getAlias Change-Id: Ife03506f2cf68800f5824cb5fa94fec8aa34a39c