diff options
| author | 2024-01-25 02:27:13 +0000 | |
|---|---|---|
| committer | 2024-02-07 00:43:54 +0000 | |
| commit | 2cb2aa0c2fdb6db6502f9f4488e8b3c4e5b964d8 (patch) | |
| tree | dd8e71ec45be3b1eace47a9ab879710a78de945c /framework/api | |
| parent | cc7af64f1eae2cf4bad8b327e0a80885a2558b2c (diff) | |
HidHost interface changes to select preferred transport
Added new setter and getter APIs for preferred transport.
Added transport information in the connection state change intent
Test: mmm packages/modules/Bluetooth
Bug: 324094735
Bug: 320762367
Change-Id: Id9cef158de8084b90098bf2160b233ebe0814461
Diffstat (limited to 'framework/api')
| -rw-r--r-- | framework/api/system-current.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/api/system-current.txt b/framework/api/system-current.txt index 02126d3a1e..52c366fa91 100644 --- a/framework/api/system-current.txt +++ b/framework/api/system-current.txt @@ -442,7 +442,9 @@ package android.bluetooth { method @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED}) public int getConnectionPolicy(@NonNull android.bluetooth.BluetoothDevice); method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public int getConnectionState(@NonNull android.bluetooth.BluetoothDevice); method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public java.util.List<android.bluetooth.BluetoothDevice> getDevicesMatchingConnectionStates(int[]); + method @FlaggedApi("com.android.bluetooth.flags.allow_switching_hid_and_hogp") @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED}) public int getPreferredTransport(@NonNull android.bluetooth.BluetoothDevice); method @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED}) public boolean setConnectionPolicy(@NonNull android.bluetooth.BluetoothDevice, int); + method @FlaggedApi("com.android.bluetooth.flags.allow_switching_hid_and_hogp") @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED}) public boolean setPreferredTransport(@NonNull android.bluetooth.BluetoothDevice, int); field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_CONNECTION_STATE_CHANGED = "android.bluetooth.input.profile.action.CONNECTION_STATE_CHANGED"; } |