From 2a216f39999d97075291b0bd5ba25658cda8fce9 Mon Sep 17 00:00:00 2001 From: Ajay Panicker Date: Wed, 28 Feb 2018 11:36:07 -0800 Subject: [PATCH] Bluetooth: Remove adjustAvrcpAbsoluteVolume The AudioManager now handles all calculations for volume stepping now and no longer uses adjustAvrcpAbsoluteVolume. Bug: 68812037 Test: Compile Change-Id: I9cbf7989e49738c7a43fe3142aced5803111271e --- .../java/android/bluetooth/BluetoothA2dp.java | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/core/java/android/bluetooth/BluetoothA2dp.java b/core/java/android/bluetooth/BluetoothA2dp.java index b255a43cbe306..419eda3a85e39 100644 --- a/core/java/android/bluetooth/BluetoothA2dp.java +++ b/core/java/android/bluetooth/BluetoothA2dp.java @@ -25,7 +25,6 @@ import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; -import android.media.AudioManager; import android.os.Binder; import android.os.IBinder; import android.os.ParcelUuid; @@ -598,34 +597,6 @@ public final class BluetoothA2dp implements BluetoothProfile { } } - /** - * Tells remote device to adjust volume. Only if absolute volume is - * supported. Uses the following values: - * - * - * @param direction One of the supported adjust values. - * @hide - */ - public void adjustAvrcpAbsoluteVolume(int direction) { - if (DBG) Log.d(TAG, "adjustAvrcpAbsoluteVolume"); - try { - mServiceLock.readLock().lock(); - if (mService != null && isEnabled()) { - mService.adjustAvrcpAbsoluteVolume(direction); - } - if (mService == null) Log.w(TAG, "Proxy not attached to service"); - } catch (RemoteException e) { - Log.e(TAG, "Error talking to BT service in adjustAvrcpAbsoluteVolume()", e); - } finally { - mServiceLock.readLock().unlock(); - } - } - /** * Tells remote device to set an absolute volume. Only if absolute volume is supported *