Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af5132e0 authored by Vlad Popa's avatar Vlad Popa
Browse files

Remove usage of abs_volume_index_fix

This flag has been rolled out since 24Q3 and can be removed.

Test: atest VolumeHelperTest, AudioDeviceVolumeManagerTest
Bug: 340693050
Flag: EXEMPT removing com.android.media.audio.abs_volume_index_fix
Change-Id: Ia1fd7e11350e42e6b0a87f944c03ad141d0a1144
parent 1c01120a
Loading
Loading
Loading
Loading
+29 −33
Original line number Diff line number Diff line
@@ -8398,7 +8398,6 @@ float AudioPolicyManager::adjustDeviceAttenuationForAbsVolume(IVolumeCurves &cur
    device_category deviceCategory = Volume::getDeviceCategory({volumeDevice});
    float volumeDb = curves.volIndexToDb(deviceCategory, index);

    if (com_android_media_audio_abs_volume_index_fix()) {
    const auto it = mAbsoluteVolumeDrivingStreams.find(volumeDevice);
    if (it != mAbsoluteVolumeDrivingStreams.end()) {
        audio_attributes_t attributesToDriveAbs = it->second;
@@ -8430,9 +8429,6 @@ float AudioPolicyManager::adjustDeviceAttenuationForAbsVolume(IVolumeCurves &cur
        }
    }
    return volumeDb;
    } else {
        return volumeDb;
    }
}

float AudioPolicyManager::computeVolume(IVolumeCurves &curves,