Home | History | Annotate | Download | only in src

Lines Matching refs:Volume

65 status_t Element<audio_stream_type_t>::setVolumeProfile(Volume::device_category category,
68 ALOGD("%s: adding volume profile for %s for device category %d, points nb =%d", __FUNCTION__,
94 float Element<audio_stream_type_t>::volIndexToDb(Volume::device_category deviceCategory,
104 if (curve.size() != Volume::VOLCNT) {
110 // the volume index in the UI is relative to the min and max volume indices for this stream type
111 int nbSteps = 1 + curve[Volume::VOLMAX].mIndex -
112 curve[Volume::VOLMIN].mIndex;
115 ALOGE("%s: Invalid volume indexes Min=Max=%d", __FUNCTION__, mIndexMin);
121 // find what part of the curve this index volume belongs to, or if it's out of bounds
123 if (volIdx < curve[Volume::VOLMIN].mIndex) { // out of bounds
125 } else if (volIdx < curve[Volume::VOLKNEE1].mIndex) {
127 } else if (volIdx < curve[Volume::VOLKNEE2].mIndex) {
129 } else if (volIdx <= curve[Volume::VOLMAX].mIndex) {
143 ALOGV("VOLUME vol index=[%d %d %d], dB=[%.1f %.1f %.1f]",