From 2cb2aa0c2fdb6db6502f9f4488e8b3c4e5b964d8 Mon Sep 17 00:00:00 2001 From: Himanshu Rawat Date: Thu, 25 Jan 2024 02:27:13 +0000 Subject: 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 --- framework/api/system-current.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'framework/api') 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 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"; } -- cgit v1.2.3-59-g8ed1b