Loading media/java/android/media/AudioManager.java +0 −15 Original line number Diff line number Diff line Loading @@ -5203,21 +5203,6 @@ public class AudioManager { } } /** * @hide * Notifies AudioService that it is connected to an A2DP device that supports absolute volume, * so that AudioService can send volume change events to the A2DP device, rather than handling * them. */ public void avrcpSupportsAbsoluteVolume(String address, boolean support) { final IAudioService service = getService(); try { service.avrcpSupportsAbsoluteVolume(address, support); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } /** * {@hide} */ Loading media/java/android/media/IAudioService.aidl +0 −2 Original line number Diff line number Diff line Loading @@ -171,8 +171,6 @@ interface IAudioService { int getEncodedSurroundMode(int targetSdkVersion); oneway void avrcpSupportsAbsoluteVolume(String address, boolean support); void setSpeakerphoneOn(IBinder cb, boolean on); boolean isSpeakerphoneOn(); Loading services/core/java/com/android/server/audio/AudioService.java +6 −1 Original line number Diff line number Diff line Loading @@ -6136,6 +6136,11 @@ public class AudioService extends IAudioService.Stub if (pkgName == null) { pkgName = ""; } if (device.getType() == AudioDeviceInfo.TYPE_BLUETOOTH_A2DP) { avrcpSupportsAbsoluteVolume(device.getAddress(), deviceVolumeBehavior == AudioManager.DEVICE_VOLUME_BEHAVIOR_ABSOLUTE); return; } int audioSystemDeviceOut = AudioDeviceInfo.convertDeviceTypeToInternalDevice( device.getType()); Loading Loading @@ -7792,7 +7797,7 @@ public class AudioService extends IAudioService.Stub } } public void avrcpSupportsAbsoluteVolume(String address, boolean support) { private void avrcpSupportsAbsoluteVolume(String address, boolean support) { // address is not used for now, but may be used when multiple a2dp devices are supported sVolumeLogger.log(new AudioEventLogger.StringEvent("avrcpSupportsAbsoluteVolume addr=" + address + " support=" + support)); Loading Loading
media/java/android/media/AudioManager.java +0 −15 Original line number Diff line number Diff line Loading @@ -5203,21 +5203,6 @@ public class AudioManager { } } /** * @hide * Notifies AudioService that it is connected to an A2DP device that supports absolute volume, * so that AudioService can send volume change events to the A2DP device, rather than handling * them. */ public void avrcpSupportsAbsoluteVolume(String address, boolean support) { final IAudioService service = getService(); try { service.avrcpSupportsAbsoluteVolume(address, support); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } /** * {@hide} */ Loading
media/java/android/media/IAudioService.aidl +0 −2 Original line number Diff line number Diff line Loading @@ -171,8 +171,6 @@ interface IAudioService { int getEncodedSurroundMode(int targetSdkVersion); oneway void avrcpSupportsAbsoluteVolume(String address, boolean support); void setSpeakerphoneOn(IBinder cb, boolean on); boolean isSpeakerphoneOn(); Loading
services/core/java/com/android/server/audio/AudioService.java +6 −1 Original line number Diff line number Diff line Loading @@ -6136,6 +6136,11 @@ public class AudioService extends IAudioService.Stub if (pkgName == null) { pkgName = ""; } if (device.getType() == AudioDeviceInfo.TYPE_BLUETOOTH_A2DP) { avrcpSupportsAbsoluteVolume(device.getAddress(), deviceVolumeBehavior == AudioManager.DEVICE_VOLUME_BEHAVIOR_ABSOLUTE); return; } int audioSystemDeviceOut = AudioDeviceInfo.convertDeviceTypeToInternalDevice( device.getType()); Loading Loading @@ -7792,7 +7797,7 @@ public class AudioService extends IAudioService.Stub } } public void avrcpSupportsAbsoluteVolume(String address, boolean support) { private void avrcpSupportsAbsoluteVolume(String address, boolean support) { // address is not used for now, but may be used when multiple a2dp devices are supported sVolumeLogger.log(new AudioEventLogger.StringEvent("avrcpSupportsAbsoluteVolume addr=" + address + " support=" + support)); Loading