diff options
| author | 2021-11-03 14:23:52 +0000 | |
|---|---|---|
| committer | 2022-01-19 15:36:01 +0000 | |
| commit | 7951f08f7d6fd6f13c98f80a1247b70bbbba6f96 (patch) | |
| tree | b6651b2dd1de10d5cbb61f3e3db39d5c69e1ff45 | |
| parent | f1245786d6c051d85791d29aa958b001c2be9c89 (diff) | |
Added callback from Tethering to PanService
To remove hidden networking APIs we need a new way of
communication with Tethering. Adds callback to notify
Tethering when Bluetooth is ready.
Tag: #feature
Bug: 190438212
Test: atest BluetoothInstrumentationTests
Change-Id: I3102d7c907f9933fceab9da35c2e83982878ba82
| -rw-r--r-- | core/api/module-lib-current.txt | 8 | ||||
| -rw-r--r-- | core/api/system-current.txt | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/core/api/module-lib-current.txt b/core/api/module-lib-current.txt index 21e3cc3aabda..4fa37580a7d0 100644 --- a/core/api/module-lib-current.txt +++ b/core/api/module-lib-current.txt @@ -64,6 +64,14 @@ package android.app.usage { } +package android.bluetooth { + + public final class BluetoothPan implements android.bluetooth.BluetoothProfile { + method @Nullable @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED, android.Manifest.permission.TETHER_PRIVILEGED}) public android.net.TetheringManager.TetheredInterfaceRequest requestTetheredInterface(@NonNull java.util.concurrent.Executor, @NonNull android.net.TetheringManager.TetheredInterfaceCallback); + } + +} + package android.content { public abstract class ContentProvider implements android.content.ComponentCallbacks2 { diff --git a/core/api/system-current.txt b/core/api/system-current.txt index a8ef47e29d67..cf2dd140185b 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -2099,7 +2099,7 @@ package android.bluetooth { method @NonNull @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED}) public java.util.List<android.bluetooth.BluetoothDevice> getConnectedDevices(); method @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED}) public int getConnectionState(@NonNull android.bluetooth.BluetoothDevice); method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean isTetheringOn(); - method @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED, android.Manifest.permission.TETHER_PRIVILEGED}) public void setBluetoothTethering(boolean); + method @Deprecated @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED, android.Manifest.permission.TETHER_PRIVILEGED}) public void setBluetoothTethering(boolean); method @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED}) public boolean setConnectionPolicy(@NonNull android.bluetooth.BluetoothDevice, int); field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_CONNECTION_STATE_CHANGED = "android.bluetooth.pan.profile.action.CONNECTION_STATE_CHANGED"; field public static final String ACTION_TETHERING_STATE_CHANGED = "android.bluetooth.action.TETHERING_STATE_CHANGED"; |