From d3c62fdc1247a02431a28cca0f547fa94c388dfa Mon Sep 17 00:00:00 2001 From: Etienne Ruffieux Date: Tue, 8 Mar 2022 13:37:12 +0000 Subject: Hide Bluetooth codec classes constructors Added BluetoothCodecStatus Builder and hid constructor. Hid BluetoothCodecConfig constructor. Bug: 222540543 Bug: 222539659 Test: atest BluetoothCodecsTest Tag: #feature Change-Id: I6836e31ed4a689fb327b3ad94ab5df7d144da06a --- framework/java/android/bluetooth/BluetoothCodecConfig.java | 1 + 1 file changed, 1 insertion(+) (limited to 'framework/java/android/bluetooth/BluetoothCodecConfig.java') diff --git a/framework/java/android/bluetooth/BluetoothCodecConfig.java b/framework/java/android/bluetooth/BluetoothCodecConfig.java index 098605b799..faaa6cf506 100644 --- a/framework/java/android/bluetooth/BluetoothCodecConfig.java +++ b/framework/java/android/bluetooth/BluetoothCodecConfig.java @@ -273,6 +273,7 @@ public final class BluetoothCodecConfig implements Parcelable { * values to 0. * * @param codecType the source codec type + * @hide */ public BluetoothCodecConfig(@SourceCodecType int codecType) { this(codecType, BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT, -- cgit v1.2.3 From 4c28ea22dc8647f38961b5be8d195698d02186d6 Mon Sep 17 00:00:00 2001 From: William Escande Date: Tue, 8 Mar 2022 12:19:43 +0100 Subject: Fix after API_review * isMandatoryCodec is now public * SCAN_FAILED_OUT_OF_HARDWARE/SCANNING_TOO_FREQUENTLY is now public with a IntDef (method using the value are changed accordingly) * Update doc for EXTRA_BATTERY_LEVEL and EXTRA_PAIRING_INITIATOR and ACTION_CONNECTION_STATE_CHANGED * Add Autoclosable to BluetoothSap to remove the NotCloseable * BluetoothClass.Device.PERI* are now public Bug: 222725037 Fix: 221851154 Test: Build + TH Tag: #refactor CTS-Coverage-Bug: 222539659 Ignore-AOSP-First: merge conflict resolution Change-Id: Ia6aa778d6bdc0319266c52a84633ee593eaa7eb0 --- framework/java/android/bluetooth/BluetoothCodecConfig.java | 3 --- 1 file changed, 3 deletions(-) (limited to 'framework/java/android/bluetooth/BluetoothCodecConfig.java') diff --git a/framework/java/android/bluetooth/BluetoothCodecConfig.java b/framework/java/android/bluetooth/BluetoothCodecConfig.java index 91e234aaaf..36d29f53c0 100644 --- a/framework/java/android/bluetooth/BluetoothCodecConfig.java +++ b/framework/java/android/bluetooth/BluetoothCodecConfig.java @@ -19,7 +19,6 @@ package android.bluetooth; import android.annotation.IntDef; import android.annotation.NonNull; import android.annotation.Nullable; -import android.annotation.SystemApi; import android.compat.annotation.UnsupportedAppUsage; import android.os.Parcel; import android.os.Parcelable; @@ -484,9 +483,7 @@ public final class BluetoothCodecConfig implements Parcelable { * See {@link #SOURCE_CODEC_TYPE_SBC}. * * @return {@code true} if the codec is mandatory, {@code false} otherwise - * @hide */ - @SystemApi public boolean isMandatoryCodec() { return mCodecType == SOURCE_CODEC_TYPE_SBC; } -- cgit v1.2.3