Merge "Upgrade RequireAPI annotation to prevent wrong lint error." am: e8d4b0ed09
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2240043 Change-Id: I3c2a9dd2022218e93b8b36949511798ca2e2e934 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -236,7 +236,7 @@ public class A2dpProfile implements LocalBluetoothProfile {
|
|||||||
/**
|
/**
|
||||||
* @return whether high quality audio is enabled or not
|
* @return whether high quality audio is enabled or not
|
||||||
*/
|
*/
|
||||||
@RequiresApi(Build.VERSION_CODES.TIRAMISU)
|
@RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
|
||||||
public boolean isHighQualityAudioEnabled(BluetoothDevice device) {
|
public boolean isHighQualityAudioEnabled(BluetoothDevice device) {
|
||||||
BluetoothDevice bluetoothDevice = (device != null) ? device : getActiveDevice();
|
BluetoothDevice bluetoothDevice = (device != null) ? device : getActiveDevice();
|
||||||
if (bluetoothDevice == null) {
|
if (bluetoothDevice == null) {
|
||||||
@@ -288,7 +288,7 @@ public class A2dpProfile implements LocalBluetoothProfile {
|
|||||||
* @param device to get codec label from
|
* @param device to get codec label from
|
||||||
* @return the label associated with the device codec
|
* @return the label associated with the device codec
|
||||||
*/
|
*/
|
||||||
@RequiresApi(Build.VERSION_CODES.TIRAMISU)
|
@RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
|
||||||
public String getHighQualityAudioOptionLabel(BluetoothDevice device) {
|
public String getHighQualityAudioOptionLabel(BluetoothDevice device) {
|
||||||
BluetoothDevice bluetoothDevice = (device != null) ? device : getActiveDevice();
|
BluetoothDevice bluetoothDevice = (device != null) ? device : getActiveDevice();
|
||||||
int unknownCodecId = R.string.bluetooth_profile_a2dp_high_quality_unknown_codec;
|
int unknownCodecId = R.string.bluetooth_profile_a2dp_high_quality_unknown_codec;
|
||||||
|
|||||||
Reference in New Issue
Block a user