Lines Matching defs:volume

377     // Flag that ringtone volume must be limited to music volume until we exit MODE_RINGTONE
714 // apply volume rules for current stream and device if necessary
993 // Force max volume if stream cannot be muted
1006 // compute and apply stream volume on all outputs according to connected device
1031 // if device is AUDIO_DEVICE_OUT_DEFAULT, return volume for device corresponding to
1683 // set initial stream volume for device
2293 // temporary mute output if device selection changes to avoid volume bursts due to
2336 // FIXME: should not need to double latency if volume could be applied immediately by the
2546 // the volume index in the UI is relative to the min and max volume indices for this stream type
2552 // find what part of the curve this index volume belongs to, or if it's out of bounds
2607 // AUDIO_STREAM_SYSTEM, AUDIO_STREAM_ENFORCED_AUDIBLE and AUDIO_STREAM_DTMF volume tracks
2700 float volume = 1.0;
2708 // if volume is not 0 (not muted), force media volume to max on digital output
2718 volume = volIndexToAmpl(device, streamDesc, index);
2722 // - always attenuate ring tones and notifications volume by 6dB
2723 // - if music is playing, always limit the volume to current music volume,
2736 volume *= SONIFICATION_HEADSET_VOLUME_FACTOR;
2749 if (volume > minVol) {
2750 volume = minVol;
2751 ALOGV("computeVolume limiting volume to %f musicVol %f", minVol, musicVol);
2756 return volume;
2767 // do not change actual stream volume if the stream is muted
2774 // do not change in call volume if bluetooth is connected and vice versa
2777 ALOGV("checkAndSetVolume() cannot set stream %d volume with force use = %d for comm",
2782 float volume = computeVolume(stream, index, output, device);
2783 // We actually change the volume if:
2786 if (volume != mOutputs.valueFor(output)->mCurVolume[stream] ||
2788 mOutputs.valueFor(output)->mCurVolume[stream] = volume;
2789 ALOGVV("checkAndSetVolume() for output %d stream %d, volume %f, delay %d", output, stream, volume, delayMs);
2790 // Force VOICE_CALL to track BLUETOOTH_SCO stream volume when bluetooth audio is
2793 mpClientInterface->setStreamVolume(AudioSystem::VOICE_CALL, volume, output, delayMs);
2795 mpClientInterface->setStreamVolume((AudioSystem::stream_type)stream, volume, output, delayMs);
2801 // Force voice volume to max for bluetooth SCO as volume is managed by the headset
2871 // increment mMuteCount after calling checkAndSetVolume() so that volume change is not ignored
3082 snprintf(buffer, SIZE, " Stream volume refCount muteCount\n");