Lines Matching refs:volume

326     // Flag that ringtone volume must be limited to music volume until we exit MODE_RINGTONE
571 // apply volume rules for current stream and device if necessary
802 // Force max volume if stream cannot be muted
808 // compute and apply stream volume on all outputs according to connected device
1155 // set initial stream volume for A2DP device
1657 float volume = 1.0;
1666 volume = AudioSystem::linearToLog(volInt);
1670 // - always attenuate ring tones and notifications volume by 6dB
1671 // - if music is playing, always limit the volume to current music volume,
1680 volume *= SONIFICATION_HEADSET_VOLUME_FACTOR;
1687 if (volume > minVol) {
1688 volume = minVol;
1689 LOGV("computeVolume limiting volume to %f musicVol %f", minVol, musicVol);
1694 return volume;
1700 // do not change actual stream volume if the stream is muted
1706 // do not change in call volume if bluetooth is connected and vice versa
1709 LOGV("checkAndSetVolume() cannot set stream %d volume with force use = %d for comm",
1714 float volume = computeVolume(stream, index, output, device);
1715 // do not set volume if the float value did not change
1716 if (volume != mOutputs.valueFor(output)->mCurVolume[stream] || force) {
1717 mOutputs.valueFor(output)->mCurVolume[stream] = volume;
1718 LOGV("setStreamVolume() for output %d stream %d, volume %f, delay %d", output, stream, volume, delayMs);
1723 // offset value to reflect actual hardware volume that never reaches 0
1724 // 1% corresponds roughly to first step in VOICE_CALL stream volume setting (see AudioService.java)
1725 volume = 0.01 + 0.99 * volume;
1735 mpClientInterface->setStreamVolume((AudioSystem::stream_type)stream, volume, output, delayMs);
1773 // increment mMuteCount after calling checkAndSetVolume() so that volume change is not ignored
1918 snprintf(buffer, SIZE, " Stream volume refCount muteCount\n");