aboutsummaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothAdapter.java
Commit message (Collapse)AuthorAgeFilesLines
...
* Document public alternatives to greylisted APIsAndrei Onea2019-06-171-2/+4
| | | | | | | | | Add known public alternatives or recommendations for greylisted APIs in Bluetooth. Bug: 135171386 Test: m Change-Id: I86e708be37eb7d1b0fafa2d64283b7f81bc02e51
* Refine Bluetooth Metadata APIUgo Yu2019-04-011-51/+65
| | | | | | | | | | | | | | | | | - Modify MetadataListener to as an interface and rename it to OnMetadataChangedListener - Fix typo UNTHETHERED -> UNTETHERED - Add NonNull annotation for metadata API parameters - Re-design metadata unregister API - Change metadata type to byte array Bug: 124448651 Bug: 126701203 Bug: 126699213 Test: build pass Change-Id: I79460071c7693f648e92cf849738c24f8bc269d9 Merged-In: I79460071c7693f648e92cf849738c24f8bc269d9
* Add @NonNull annotations to LE CoC APIsStanley Tng2019-03-131-2/+3
| | | | | | | | | | Added NonNull annotations to the 4 LE Connection-oriented channel API in BluetoothDevice and BluetoothAdapter. Bug: 126701988 Bug: 126701989 Test: Compile only Change-Id: I2d4dc8fbd06e30c782123e01f8481d249e40ee02
* DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) intoXin Li2019-02-141-2/+2
|\ | | | | | | | | | | | | stage-aosp-master Bug: 124234733 Change-Id: Ic4f67fde0835da0b1c363906cccef0d244e38393
| * docs: Replacing {#link with {@linkAndrew Solovay2018-10-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Several java files had the typo {#link (for cross-references to other Javadocs) instead of the proper {@link format. This was confusing the new doc publish tool (Mivi) since that's the format used for {# Django comments #}. Fixed a couple of links that had other errors (which prevented building once the {# -> {@ was done) and other typos. Replaced throughout the frameworks/base project; I'll need a separate CL for the AndroidX fixes. Staged to: go/dac-stage/reference/android/app/Instrumentation.html go/dac-stage/reference/android/bluetooth/BluetoothAdapter.html go/dac-stage/reference/android/bluetooth/BluetoothDevice.html go/dac-stage/reference/android/bluetooth/BluetoothServerSocket.html go/dac-stage/reference/android/inputmethodservice/InputMethodService.html go/dac-stage/reference/android/view/KeyCharacterMap.html go/dac-stage/reference/android/view/KeyEvent.html go/dac-stage/reference/android/media/AudioManager.html go/dac-stage/reference/android/net/wifi/WifiConfiguration.html (Other files were not in the public Javadocs.) Bug: 111925950 Test: make ds-docs Exempt-From-Owner-Approval: Docs-only change Change-Id: Ia06e1fffd814671289a1caebd5962aedc18a28d7 Merged-In: Ia06e1fffd814671289a1caebd5962aedc18a28d7
| * Cleanup documentation for LE CoC in BluetoothAdapterStanley Tng2018-04-191-2/+1
| | | | | | | | | | | | | | Test: Compile Bug: 77631591 Change-Id: Ic3c7f13e560534a048bf5c8b274fe62190c214c7 (cherry picked from commit dac8e140184f3ac52210ff3638af3f53edca1ba0)
* | Merge "Change MetadataListener to a abstract static class"Treehugger Robot2019-01-241-1/+1
|\ \
| * | Change MetadataListener to a abstract static classUgo Yu2019-01-241-1/+1
| | | | | | | | | | | | | | | | | | Bug: 121051445 Test: build pass Change-Id: I8148d13d2eb0899d54817197ae0be236e2914e47
* | | Merge "Add Android APIs for Hearing Aids Profile"Treehugger Robot2019-01-241-5/+6
|\ \ \
| * | | Add Android APIs for Hearing Aids ProfileStanley Tng2019-01-221-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the new public Android APIs for the ASHA Hearing Aids Profile. Bug: 119617521 Bug: 120222233 Test: Run with the new HearingAidProfileTest CTS test Change-Id: I05fc3d565bd22b5000765122da7714d961dbc15b
* | | | Merge "Add 2 new ways to check for Support for Hearing Aids Profile"Treehugger Robot2019-01-241-2/+24
|\| | | | |/ / |/| |
| * | Add 2 new ways to check for Support for Hearing Aids ProfileStanley Tng2019-01-221-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The getProfileProxy will return false if Hearing Aids Profile is not supported. Also the getSupportedProfiles will return the correct support for Hearing Aids even when Bluetooth is disabled. Test: Manual testing with configuration enabled and disabled. Bug: 119617521 Change-Id: I146bd3bc36d4c474f7bca18a05b679fb8e70ca63
* | | Skeleton implementation of Bluetooth metadata APIsUgo Yu2019-01-231-0/+175
|/ / | | | | | | | | | | Bug: 121051445 Test: Build pass Change-Id: I5e80210205b37294b1eb8356502ebf242e627ce4
* | Deprecate BluetoothHealth APIsJack He2019-01-091-17/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Mark all BluetoothHealth related APIs as deprecated * Make BluetoothAdapter#getProfileProxy(context, BluetoothProfile.HEALTH) always return false * Remove all logic behind BluetoothHealth APIs and add deprecation error log * Health Device Profile (HDP) and MCAP protocol has been largely replaced by BLE. New applications should use Bluetooth Low Energy instead of legacy Bluetooth Health Device Profile Bug: 111562841 Test: make, unit test, use Bluetooth Change-Id: If99a9d79e9e1b89b75b9b74bd3b1c965247a1892 Merged-In: If99a9d79e9e1b89b75b9b74bd3b1c965247a1892 (cherry picked from commit 07ffaa447fdd967689901cca38eba386a8d97b23)
* | Pass package name as part of startDiscoveryZach Johnson2018-12-121-1/+19
| | | | | | | | | | | | Test: manual Bug: 118347252 Change-Id: Icbc2e7e756b16ffd181924b586a0292c2bf32ec5
* | Unhide the LE CoC APIsStanley Tng2018-09-131-21/+38
| | | | | | | | | | | | | | | | Expose the LE Connection-oriented Channels APIs for applications to use. Test: Run the SL4A ACTS test: BleCocTest Bug: 70683224 Change-Id: I68128bc7154966ec065091c973351f8892da9b4d
* | Merge "Add IntDef to BluetoothAdapter IO_CAP constants"Treehugger Robot2018-08-201-2/+10
|\ \
| * | Add IntDef to BluetoothAdapter IO_CAP constantsPulkit Bhuwalka2018-07-231-2/+10
| | | | | | | | | | | | | | | | | | Bug: None Test: Builds Change-Id: I04f8f6cdcc1a552ae2f2a358308b9a5c862989d3
* | | Merge "Add @UnsupportedAppUsage annotations"Mathew Inwood2018-08-061-0/+15
|\ \ \ | | | | | | | | | | | | | | | | | | | | am: b40b37910d Change-Id: Ic3de9e4c6d17687d4a1f64c02026e5c0711e8fd1
| * | | Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-011-0/+15
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For packages: android.bluetooth.le android.bluetooth This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: Ifcf24c0617acd7facc0e03f30a95c3a6b09b205c Merged-In: I88a1311e27c5f9a5f9d1035db76034f86f650efc
* | | Merge "Get/Set IO capability of Bluetooth device" am: d1ed784438android-build-prod (mdb)2018-04-301-0/+152
|\| | | | | | | | | | | | | | | | | am: 18ac624b58 Change-Id: I112edc1bb98d4dea7c5d166c4858685bb0a40a00
| * | Get/Set IO capability of Bluetooth devicePulkit Bhuwalka2018-04-281-0/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Creates the hidden BluetoothAdapter APIs which can be used to control IO capability settings on the local Bluetooth device. Bug: 36015413 Test: Used a test activity to control getting/setting the value and attempting pairing. Change-Id: Ibbfdc5ae5a1d56c6e3d003ab3bf5d095dcb583e4 (cherry picked from commit 6043b7b90a27a836241bfc05e71eb46ce04c66cf)
* | | Merge "Cleanup documentation for LE CoC in BluetoothAdapter" am: 7b25698549Stanley Tng2018-04-161-2/+1
|\| | | |/ |/| | | | | | | am: d7a1d7ed19 Change-Id: Ia23d8a96128420576d8b6ff5eae0075825df8c2f
| * Cleanup documentation for LE CoC in BluetoothAdapterStanley Tng2018-04-161-2/+1
| | | | | | | | | | | | Test: Compile Bug: 77631591 Change-Id: Ic3c7f13e560534a048bf5c8b274fe62190c214c7
| * Bluetooth: preserve one advertisement slot for GMS coreMiao-chen Chou2018-03-141-0/+4
| | | | | | | | | | | | | | | | | | | | This brings back the check on the multiple advertisement support before granting any Bluetooth LE advertiser. In other words, one slot is preserved for GMS core. Bug: 74819586 Test: Run an BLE application and verify the number of advertisements Change-Id: Iac3b47c76c6f699018982a69e9b04a9d8c631bfb
| * Bluetooth: Use enums for adapter connection statesJack He2018-03-051-4/+5
| | | | | | | | | | | | Bug: 69478930 Test: make, no user visible change Change-Id: I999d0c445fe3b24aca72961c40c3428901542bc1
* | Revert "Bluetooth: preserve one advertisement slot for GMS core"Zach Johnson2018-03-231-4/+0
| | | | | | | | | | | | | | | | | | | | This reverts commit a70a16b3e9d2433b7517e679f630d9dab33eea8a. Reason for revert: This breaks platforms that only support a single advertising slot. Bug: 76135219 Test: advertising does not work, revert change, advertising works Change-Id: Ib8c823eb9990cc06bad95c8c3ad0129afb245e00
* | Bluetooth: preserve one advertisement slot for GMS coreQiyu Hu2018-03-161-0/+4
| | | | | | | | | | | | | | | | | | | | This brings back the check on the multiple advertisement support before granting any Bluetooth LE advertiser. In other words, one slot is preserved for GMS core. Bug: 74819586 Test: Run an BLE application and verify the number of advertisements Change-Id: I05014e597bd5868f18a81842dc341e47991f2c79
* | Bluetooth: Use enums for adapter connection statesJack He2018-03-051-4/+5
| | | | | | | | | | | | | | Bug: 69478930 Test: make, no user visible change Change-Id: I999d0c445fe3b24aca72961c40c3428901542bc1 (cherry picked from commit ee81f9915041875a8c9b6b71a39cb0508f6d7b22)
* | Merge "Hearing Aid profile" am: aca4460b64 am: 313ae85990Jakub Pawlowski2018-02-151-0/+6
|\ \ | | | | | | | | | | | | | | | am: 8b598effb6 Change-Id: Idd601780e2e9483324dbf2e317c925daa78fa049
| * | Merge "Hearing Aid profile" am: aca4460b64Jakub Pawlowski2018-02-151-0/+6
| |\| | | | | | | | | | | | | | | | am: 313ae85990 Change-Id: Ica92a9ffecb205f07288139970cd83f578ef7669
| | * Hearing Aid profileJakub Pawlowski2018-02-141-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is implementation of Hearing Aid Profile that will in future be connected to Bluetooth Manager - see TODOs in BluetoothHearingAid.java Bug: 69623109 Test: compilation. Manual test with HA. Change-Id: I79643ea1e14e9df7f5771169359c964a60c56618
* | | Merge "docs: Added a missing "be" in ACTION_CONNECTION_STATE_CHANGED" into ↵Ricardo Loo Foronda2018-01-291-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | oc-mr1-dev am: 1299d4b0a9 am: 6d9261b9b6 Change-Id: Ie138a98a87f9f4fb895d2b9f834d43ac04866b86
| * | Merge "docs: Added a missing "be" in ACTION_CONNECTION_STATE_CHANGED" into ↵Ricardo Loo Foronda2018-01-291-1/+1
| |\ \ | | |/ | |/| | | | | | | | | | | | | | | | oc-mr1-dev am: 1299d4b0a9 Change-Id: Ib2911651950048305b00df5f26ca5656e205bcee
| | * docs: Added a missing "be" in ACTION_CONNECTION_STATE_CHANGEDRicardo Loo Foronda2018-01-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Status: Ready for writer review. Note: This is a javadoc only change. Test: Build the docs with "make ds-docs" and staged updated content. Staged content: go/dac-stage/reference/android/bluetooth/BluetoothAdapter.html#ACTION_CONNECTION_STATE_CHANGED Bug: 69097875 Change-Id: Ibffea2373ded825558beaa669ae4daf3c0ff3d2f
* | | Merge "Added APIs for Connection-oriented channels" am: d4b90a8748 am: ↵Stanley Tng2018-01-181-5/+121
|\| | | | | | | | | | | | | | | | | | | | | | | ba675d1ecb am: 072abf8e7b Change-Id: I79afa5ef129790588dca91266f79a6125edefd06
| * | Merge "Added APIs for Connection-oriented channels"Treehugger Robot2018-01-181-5/+121
| |\ \
| | * | Added APIs for Connection-oriented channelsStanley Tng2018-01-121-5/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Experimental and hidden APIs are defined for the Connection-oriented Channel (CoC) features. The APIs using PSM are implemented. Test: Can compile Bug: 70683224 Change-Id: Icdb5fa190b0e21881a60437fa48cd575371ee1e4
* | | | Merge "Added internal API getMaxConnectedAudioDevices()" am: 9866e9aa2b am: ↵Pavlin Radoslavov2018-01-181-0/+21
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 081b7f1814 am: 32a5ebf428 Change-Id: I55d0175bb715dbd28176032ace129a2c85a218f0
| * | | Added internal API getMaxConnectedAudioDevices()Pavlin Radoslavov2018-01-171-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The API can be used to obtain the maximum number of connected devices for A2DP or HFP. Test: Manual Bug: 64767509 Change-Id: I80b8a1c85e33ae0b23fdc4812f8991a4202d9abc
| * | | Add SystemApis annotationsSelim Gurun2018-01-051-0/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | There are some number of places where bluetooth APIs are used via reflection from GMSCore. Add proper annotations. Bug: 67052734 Test: Manual - and using make update-api Change-Id: Ib6e3aa1ff5b6f9cdc78367f9be13ed00542d6f65 (cherry picked from commit d9bf8fb5edc93a9f8154943af8ac36e9447df9ca)
* | | Add more IntDef prefixes for auto-documenting.Jeff Sharkey2017-12-131-2/+6
| | | | | | | | | | | | | | | | | | | | | Test: builds, boots Bug: 70177949 Exempt-From-Owner-Approval: annotation-only changes Change-Id: I76dde6054e06f52240bd4b1a0f196dcb74623608
* | | Merge "Auto-format BluetoothAdapter.java" am: fca2a7ead8 am: 9ec215302eMyles Watson2017-12-071-158/+302
|\| | | | | | | | | | | | | | | | | am: 260419aaeb Change-Id: I4f703af6fbffde4287555db1eb2b03e857a50008
| * | Auto-format BluetoothAdapter.javaMyles Watson2017-12-061-158/+302
| | | | | | | | | | | | | | | Test: build Change-Id: I7bfc729373a24cceee05e443195640ff7f6d43b9
* | | Merge changes from topic "bt_get_cod" am: a6549fb9e5 am: ee1e6329bdPulkit Bhuwalka2017-10-241-0/+22
|\| | | | | | | | | | | | | | | | | am: 5d70a7ac47 Change-Id: Ic6d8ff403f54e54d9b353f67f76851bd46b0aff6
| * | Get Bluetooth Class of DevicePulkit Bhuwalka2017-10-231-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds API to fetch Bluetooth CoD value of the stack. The API is hidden to only be used by System code. Bug: 36015415 Test: Verified fetching of COD from test app on flashed device, after modification and after after reboot. Change-Id: Ie35ecf141704c2aac46678da7cabdc7203a088f2
* | | Merge "Persist Bluetooth CoD config value across reboot" am: 85e6b00959 am: ↵Pulkit Bhuwalka2017-10-241-2/+4
|\| | | | | | | | | | | | | | | | | | | | | | | 2742bedd5e am: aab47a1ed5 Change-Id: I4a0d1e8cc4f879896c3029a8f871d794362e0bca
| * | Merge "Persist Bluetooth CoD config value across reboot"Treehugger Robot2017-10-241-2/+4
| |\ \
| | * | Persist Bluetooth CoD config value across rebootPulkit Bhuwalka2017-10-221-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create new Settings key for storage and update the API doc. Bug: 36015415 Test: Verified by storing a value through a test app and restarting the machine to ensure it's picked up. Change-Id: I94aa054e525c4656bb3a824a29cae9c88f8904e0
| * | | Change Bluetooth HID Profile Name (1/6)Hansong Zhang2017-10-231-9/+9
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the Bluetooth HID profile name consistent with the Bluetooth HID service name. BluetoothInputHost → BluetoothHidDevice BluetoothInputDevice → BluetoothHidHost IBluetoothInputHost → IBluetoothHidDevice IBluetoothInputDevice → IBluetoothHidHost BluetoothProfile.INPUT_HOST → BluetoothProfile.HID_DEVICE BluetoothProfile.INPUT_DEVICE → BluetoothProfile.HID_HOST (Cherry-picked from commit c26c76c63d933f8057f795d05624f91b811c8c71) Merged-In: Iadb890a54dd3d6868b87514472bbac6bb0c6179f Bug: 68055651 Test: make Change-Id: Iadb890a54dd3d6868b87514472bbac6bb0c6179f