Loading media/java/android/media/AudioDeviceVolumeManager.java +12 −1 Original line number Diff line number Diff line Loading @@ -232,7 +232,12 @@ public class AudioDeviceVolumeManager { @FlaggedApi(FLAG_UNIFY_ABSOLUTE_VOLUME_MANAGEMENT) public interface OnAudioDeviceVolumeChangedListener { /** * Called the device for the given audio device has changed. * Called when the volume for the given audio device has changed. * * <p>This method will not be called after #notifyAbsoluteVolumeChanged is called since this * is used to inform the audio framework that the external controller has already applied * the new volume. * * @param device the audio device whose volume has changed * @param vol the new volume for the device */ Loading @@ -242,6 +247,12 @@ public class AudioDeviceVolumeManager { /** * Called when the volume for the given audio device has been adjusted. * * <p>This method will be called only when registered for a volume behavior with the * parameter {@code handlesVolumeAdjustment} set to {@code true} in the * {@code setDeviceAbsoluteVolumeBehavior} registration methods and will be called as a * result of an adjustment to the volume in any direction * * @param device the audio device whose volume has been adjusted * @param vol the volume info for the device * @param direction the direction of the adjustment Loading Loading
media/java/android/media/AudioDeviceVolumeManager.java +12 −1 Original line number Diff line number Diff line Loading @@ -232,7 +232,12 @@ public class AudioDeviceVolumeManager { @FlaggedApi(FLAG_UNIFY_ABSOLUTE_VOLUME_MANAGEMENT) public interface OnAudioDeviceVolumeChangedListener { /** * Called the device for the given audio device has changed. * Called when the volume for the given audio device has changed. * * <p>This method will not be called after #notifyAbsoluteVolumeChanged is called since this * is used to inform the audio framework that the external controller has already applied * the new volume. * * @param device the audio device whose volume has changed * @param vol the new volume for the device */ Loading @@ -242,6 +247,12 @@ public class AudioDeviceVolumeManager { /** * Called when the volume for the given audio device has been adjusted. * * <p>This method will be called only when registered for a volume behavior with the * parameter {@code handlesVolumeAdjustment} set to {@code true} in the * {@code setDeviceAbsoluteVolumeBehavior} registration methods and will be called as a * result of an adjustment to the volume in any direction * * @param device the audio device whose volume has been adjusted * @param vol the volume info for the device * @param direction the direction of the adjustment Loading