Home | History | Annotate | Download | only in src

Lines Matching refs:Volume

28 #include <Volume.h>
36 Gains::sDefaultVolumeCurve[Volume::VOLCNT] = {
42 Gains::sDefaultMediaVolumeCurve[Volume::VOLCNT] = {
47 Gains::sExtMediaSystemVolumeCurve[Volume::VOLCNT] = {
52 Gains::sSpeakerMediaVolumeCurve[Volume::VOLCNT] = {
57 Gains::sSpeakerMediaVolumeCurveDrc[Volume::VOLCNT] = {
62 Gains::sSpeakerSonificationVolumeCurve[Volume::VOLCNT] = {
67 Gains::sSpeakerSonificationVolumeCurveDrc[Volume::VOLCNT] = {
71 // AUDIO_STREAM_SYSTEM, AUDIO_STREAM_ENFORCED_AUDIBLE and AUDIO_STREAM_DTMF volume tracks
77 Gains::sDefaultSystemVolumeCurve[Volume::VOLCNT] = {
82 Gains::sDefaultSystemVolumeCurveDrc[Volume::VOLCNT] = {
87 Gains::sHeadsetSystemVolumeCurve[Volume::VOLCNT] = {
92 Gains::sDefaultVoiceVolumeCurve[Volume::VOLCNT] = {
97 Gains::sSpeakerVoiceVolumeCurve[Volume::VOLCNT] = {
102 Gains::sLinearVolumeCurve[Volume::VOLCNT] = {
107 Gains::sSilentVolumeCurve[Volume::VOLCNT] = {
112 Gains::sFullScaleVolumeCurve[Volume::VOLCNT] = {
117 [Volume::DEVICE_CATEGORY_CNT] = {
200 float Gains::volIndexToDb(Volume::device_category deviceCategory,
206 // the volume index in the UI is relative to the min and max volume indices for this stream type
207 int nbSteps = 1 + curve[Volume::VOLMAX].mIndex -
208 curve[Volume::VOLMIN].mIndex;
212 // find what part of the curve this index volume belongs to, or if it's out of bounds
214 if (volIdx < curve[Volume::VOLMIN].mIndex) { // out of bounds
216 } else if (volIdx < curve[Volume::VOLKNEE1].mIndex) {
218 } else if (volIdx < curve[Volume::VOLKNEE2].mIndex) {
220 } else if (volIdx <= curve[Volume::VOLMAX].mIndex) {
234 ALOGVV("VOLUME vol index=[%d %d %d], dB=[%.1f %.1f %.1f]",
246 float Gains::volIndexToAmpl(Volume::device_category deviceCategory,
250 return Volume::DbToAmpl(volIndexToDb(deviceCategory, streamDesc, indexInUi));