Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1835c355 authored by Sal Savage's avatar Sal Savage
Browse files

Remove newly introduced audio state APIs that shouldn't be public

Bug: 216476895
Test: make -j
Change-Id: If3cfdf8f063f61e3903d4e7a3c289c2ef7a54b34
parent d4bcf55d
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -330,13 +330,9 @@ package android.bluetooth {
    method @NonNull @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED}) public java.util.List<android.bluetooth.BluetoothDevice> getDevicesMatchingConnectionStates(@NonNull int[]);
    method @Nullable @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED}) public android.bluetooth.BluetoothHeadsetClient.NetworkServiceState getNetworkServiceState(@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);
    field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_AUDIO_STATE_CHANGED = "android.bluetooth.headsetclient.profile.action.AUDIO_STATE_CHANGED";
    field @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED}) public static final String ACTION_CONNECTION_STATE_CHANGED = "android.bluetooth.headsetclient.profile.action.CONNECTION_STATE_CHANGED";
    field @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED}) public static final String ACTION_NETWORK_SERVICE_STATE_CHANGED = "android.bluetooth.headsetclient.profile.action.NETWORK_SERVICE_STATE_CHANGED";
    field public static final String EXTRA_NETWORK_SERVICE_STATE = "android.bluetooth.headsetclient.extra.EXTRA_NETWORK_SERVICE_STATE";
    field public static final int STATE_AUDIO_CONNECTED = 2; // 0x2
    field public static final int STATE_AUDIO_CONNECTING = 1; // 0x1
    field public static final int STATE_AUDIO_DISCONNECTED = 0; // 0x0
  }

  public static final class BluetoothHeadsetClient.NetworkServiceState implements android.os.Parcelable {
+0 −4
Original line number Diff line number Diff line
@@ -102,7 +102,6 @@ public final class BluetoothHeadsetClient implements BluetoothProfile, AutoClose
     *
     * @hide
     */
    @SystemApi
    @RequiresBluetoothConnectPermission
    @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
    @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
@@ -190,17 +189,14 @@ public final class BluetoothHeadsetClient implements BluetoothProfile, AutoClose
    /**
     * @hide
     */
    @SystemApi
    public static final int STATE_AUDIO_DISCONNECTED = 0;
    /**
     * @hide
     */
    @SystemApi
    public static final int STATE_AUDIO_CONNECTING = 1;
    /**
     * @hide
     */
    @SystemApi
    public static final int STATE_AUDIO_CONNECTED = 2;
    /**
     * Extra with information if connected audio is WBS.