Lines Matching refs:volume
385 // Flag that ringtone volumevolume until we exit MODE_RINGTONE
782 // apply volume rules for current stream and device if necessary
1111 // Force max volume if stream cannot be muted
1124 // compute and apply stream volume on all outputs according to connected device
1149 // if device is AUDIO_DEVICE_OUT_DEFAULT, return volume for device corresponding to
1970 // set initial stream volume for device
2758 // temporary mute output if device selection changes to avoid volume bursts due to
2803 // FIXME: should not need to double latency if volume could be applied immediately by the
3035 // the volume index in the UI is relative to the min and max volume indices for this stream type
3041 // find what part of the curve this index volume belongs to, or if it's out of bounds
3065 ALOGVV("VOLUME vol index=[%d %d %d], dB=[%.1f %.1f %.1f] ampl=%.5f",
3101 // AUDIO_STREAM_SYSTEM, AUDIO_STREAM_ENFORCED_AUDIBLE and AUDIO_STREAM_DTMF volume tracks
3213 float volume = 1.0;
3221 // if volume is not 0 (not muted), force media volume to max on digital output
3229 volume = volIndexToAmpl(device, streamDesc, index);
3233 // - always attenuate ring tones and notifications volume by 6dB
3234 // - if music is playing, always limit the volume to current music volume,
3247 volume *= SONIFICATION_HEADSET_VOLUME_FACTOR;
3260 if (volume > minVol) {
3261 volume = minVol;
3262 ALOGV("computeVolume limiting volume to %f musicVol %f", minVol, musicVol);
3267 return volume;
3278 // do not change actual stream volume if the stream is muted
3285 // do not change in call volume if bluetooth is connected and vice versa
3288 ALOGV("checkAndSetVolume() cannot set stream %d volume with force use = %d for comm",
3293 float volume = computeVolume(stream, index, output, device);
3294 // We actually change the volume if:
3297 if (volume != mOutputs.valueFor(output)->mCurVolume[stream] ||
3299 mOutputs.valueFor(output)->mCurVolume[stream] = volume;
3300 ALOGVV("checkAndSetVolume() for output %d stream %d, volume %f, delay %d", output, stream, volume, delayMs);
3301 // Force VOICE_CALL to track BLUETOOTH_SCO stream volume when bluetooth audio is
3304 mpClientInterface->setStreamVolume(AudioSystem::VOICE_CALL, volume, output, delayMs);
3306 mpClientInterface->setStreamVolume((AudioSystem::stream_type)stream, volume, output, delayMs);
3312 // Force voice volume to max for bluetooth SCO as volume is managed by the headset
3382 // increment mMuteCount after calling checkAndSetVolume() so that volume change is not ignored
3604 snprintf(buffer, SIZE, " Stream volume refCount muteCount\n");