Lines Matching refs:volume

394     // Flag that ringtone volume must be limited to music volume until we exit MODE_RINGTONE
791 // apply volume rules for current stream and device if necessary
1120 // Force max volume if stream cannot be muted
1133 // compute and apply stream volume on all outputs according to connected device
1158 // if device is AUDIO_DEVICE_OUT_DEFAULT, return volume for device corresponding to
1979 // set initial stream volume for device
2767 // temporary mute output if device selection changes to avoid volume bursts due to
2812 // FIXME: should not need to double latency if volume could be applied immediately by the
3044 // the volume index in the UI is relative to the min and max volume indices for this stream type
3050 // find what part of the curve this index volume belongs to, or if it's out of bounds
3110 // AUDIO_STREAM_SYSTEM, AUDIO_STREAM_ENFORCED_AUDIBLE and AUDIO_STREAM_DTMF volume tracks
3222 float volume = 1.0;
3230 // if volume is not 0 (not muted), force media volume to max on digital output
3238 volume = volIndexToAmpl(device, streamDesc, index);
3242 // - always attenuate ring tones and notifications volume by 6dB
3243 // - if music is playing, always limit the volume to current music volume,
3256 volume *= SONIFICATION_HEADSET_VOLUME_FACTOR;
3269 if (volume > minVol) {
3270 volume = minVol;
3271 ALOGV("computeVolume limiting volume to %f musicVol %f", minVol, musicVol);
3276 return volume;
3287 // do not change actual stream volume if the stream is muted
3294 // do not change in call volume if bluetooth is connected and vice versa
3297 ALOGV("checkAndSetVolume() cannot set stream %d volume with force use = %d for comm",
3302 float volume = computeVolume(stream, index, output, device);
3303 // We actually change the volume if:
3306 if (volume != mOutputs.valueFor(output)->mCurVolume[stream] ||
3308 mOutputs.valueFor(output)->mCurVolume[stream] = volume;
3309 ALOGVV("checkAndSetVolume() for output %d stream %d, volume %f, delay %d", output, stream, volume, delayMs);
3310 // Force VOICE_CALL to track BLUETOOTH_SCO stream volume when bluetooth audio is
3313 mpClientInterface->setStreamVolume(AudioSystem::VOICE_CALL, volume, output, delayMs);
3315 mpClientInterface->setStreamVolume((AudioSystem::stream_type)stream, volume, output, delayMs);
3321 // Force voice volume to max for bluetooth SCO as volume is managed by the headset
3391 // increment mMuteCount after calling checkAndSetVolume() so that volume change is not ignored
3613 snprintf(buffer, SIZE, " Stream volume refCount muteCount\n");