Loading services/core/java/com/android/server/audio/AudioService.java +6 −4 Original line number Diff line number Diff line Loading @@ -9554,9 +9554,11 @@ public class AudioService extends IAudioService.Stub index = (mIndexMap.valueAt(i) + 5)/10; } if (mStreamType == AudioSystem.STREAM_MUSIC) { sendMsg(mAudioHandler, SoundDoseHelper.MSG_CSD_UPDATE_ATTENUATION, SENDMSG_REPLACE, device, isAbsoluteVolume ? 1 : 0, this, SENDMSG_QUEUE, device, isAbsoluteVolume ? 1 : 0, this, /*delay=*/0); } setStreamVolumeIndex(index, device); } Loading Loading @@ -10103,7 +10105,7 @@ public class AudioService extends IAudioService.Stub /*package*/ void setDeviceVolume(VolumeStreamState streamState, int device) { synchronized (VolumeStreamState.class) { sendMsg(mAudioHandler, SoundDoseHelper.MSG_CSD_UPDATE_ATTENUATION, SENDMSG_REPLACE, sendMsg(mAudioHandler, SoundDoseHelper.MSG_CSD_UPDATE_ATTENUATION, SENDMSG_QUEUE, device, (isAbsoluteVolumeDevice(device) || isA2dpAbsoluteVolumeDevice(device) || AudioSystem.isLeAudioDeviceType(device) ? 1 : 0), streamState, /*delay=*/0); Loading services/core/java/com/android/server/audio/AudioServiceEvents.java +2 −2 Original line number Diff line number Diff line Loading @@ -657,8 +657,8 @@ public class AudioServiceEvents { return "CSD lowering volume to RS1"; case UPDATE_ABS_VOLUME_ATTENUATION: return String.format(java.util.Locale.US, "Updating CSD absolute volume attenuation on device %d with %.2f dB ", mLongValue, mFloatValue); "Updating CSD absolute volume attenuation on device 0x%s with %.2f dB ", Long.toHexString(mLongValue), mFloatValue); } return new StringBuilder("FIXME invalid event type:").append(mEventType).toString(); } Loading Loading
services/core/java/com/android/server/audio/AudioService.java +6 −4 Original line number Diff line number Diff line Loading @@ -9554,9 +9554,11 @@ public class AudioService extends IAudioService.Stub index = (mIndexMap.valueAt(i) + 5)/10; } if (mStreamType == AudioSystem.STREAM_MUSIC) { sendMsg(mAudioHandler, SoundDoseHelper.MSG_CSD_UPDATE_ATTENUATION, SENDMSG_REPLACE, device, isAbsoluteVolume ? 1 : 0, this, SENDMSG_QUEUE, device, isAbsoluteVolume ? 1 : 0, this, /*delay=*/0); } setStreamVolumeIndex(index, device); } Loading Loading @@ -10103,7 +10105,7 @@ public class AudioService extends IAudioService.Stub /*package*/ void setDeviceVolume(VolumeStreamState streamState, int device) { synchronized (VolumeStreamState.class) { sendMsg(mAudioHandler, SoundDoseHelper.MSG_CSD_UPDATE_ATTENUATION, SENDMSG_REPLACE, sendMsg(mAudioHandler, SoundDoseHelper.MSG_CSD_UPDATE_ATTENUATION, SENDMSG_QUEUE, device, (isAbsoluteVolumeDevice(device) || isA2dpAbsoluteVolumeDevice(device) || AudioSystem.isLeAudioDeviceType(device) ? 1 : 0), streamState, /*delay=*/0); Loading
services/core/java/com/android/server/audio/AudioServiceEvents.java +2 −2 Original line number Diff line number Diff line Loading @@ -657,8 +657,8 @@ public class AudioServiceEvents { return "CSD lowering volume to RS1"; case UPDATE_ABS_VOLUME_ATTENUATION: return String.format(java.util.Locale.US, "Updating CSD absolute volume attenuation on device %d with %.2f dB ", mLongValue, mFloatValue); "Updating CSD absolute volume attenuation on device 0x%s with %.2f dB ", Long.toHexString(mLongValue), mFloatValue); } return new StringBuilder("FIXME invalid event type:").append(mEventType).toString(); } Loading