Home
last modified time | relevance | path

Searched refs:endVolume (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/media/java/android/media/
DVolumeShaper.java1087 final float endVolume = mVolumes[mVolumes.length - 1]; in scaleToEndVolume() local
1088 if (endVolume == startVolume) { in scaleToEndVolume()
1096 final float scale = (volume - startVolume) / (endVolume - startVolume); in scaleToEndVolume()
1121 final float endVolume = mVolumes[mVolumes.length - 1]; in scaleToStartVolume() local
1122 if (endVolume == startVolume) { in scaleToStartVolume()
1129 final float scale = (volume - endVolume) / (startVolume - endVolume); in scaleToStartVolume()
1131 mVolumes[i] = scale * (mVolumes[i] - endVolume) + endVolume; in scaleToStartVolume()
/frameworks/av/include/media/
DVolumeShaper.h275 const T endVolume = last().second; in scaleToStartVolume() local
276 if (endVolume == startVolume) { in scaleToStartVolume()
284 const T scale = (volume - endVolume) / (startVolume - endVolume); in scaleToStartVolume()
286 it->second = scale * (it->second - endVolume) + endVolume; in scaleToStartVolume()