diff options
| author | Ajay Panicker <apanicke@google.com> | 2018-03-01 21:27:16 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2018-03-01 21:27:16 +0000 |
| commit | d8185da22796251158d111bde3056666175d4773 (patch) | |
| tree | 689b7c34344f8a97701285b8631a6cc3e9466af3 /core/java/android | |
| parent | 91ca55c1742a199e0170a037e5cdce00b4bdd751 (diff) | |
| parent | ad2f9017ad7fea80e4806ae1af88b9b47caecb51 (diff) | |
Merge "Bluetooth: Remove adjustAvrcpAbsoluteVolume" am: 2cd2a6aef0
am: ad2f9017ad
Change-Id: I2526a89c6f366a77dbbeb0b3310438cbef2af857
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/bluetooth/BluetoothA2dp.java | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/core/java/android/bluetooth/BluetoothA2dp.java b/core/java/android/bluetooth/BluetoothA2dp.java index b255a43cbe30..419eda3a85e3 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; @@ -599,34 +598,6 @@ public final class BluetoothA2dp implements BluetoothProfile { } /** - * Tells remote device to adjust volume. Only if absolute volume is - * supported. Uses the following values: - * <ul> - * <li>{@link AudioManager#ADJUST_LOWER}</li> - * <li>{@link AudioManager#ADJUST_RAISE}</li> - * <li>{@link AudioManager#ADJUST_MUTE}</li> - * <li>{@link AudioManager#ADJUST_UNMUTE}</li> - * </ul> - * - * @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 * * @param volume Absolute volume to be set on AVRCP side |
