Lines Matching defs:volume

313     // Flag that ringtone volume must be limited to music volume until we exit MODE_RINGTONE
584 // apply volume rules for current stream and device if necessary
824 // Force max volume if stream cannot be muted
830 // compute and apply stream volume on all outputs according to connected device
1330 // set initial stream volume for A2DP device
1946 // the volume index in the UI is relative to the min and max volume indices for this stream type
1952 // find what part of the curve this index volume belongs to, or if it's out of bounds
2050 float volume = 1.0;
2058 // if volume is not 0 (not muted), force media volume to max on digital output
2066 volume = volIndexToAmpl(device, streamDesc, index);
2070 // - always attenuate ring tones and notifications volume by 6dB
2071 // - if music is playing, always limit the volume to current music volume,
2081 volume *= SONIFICATION_HEADSET_VOLUME_FACTOR;
2088 if (volume > minVol) {
2089 volume = minVol;
2090 LOGV("computeVolume limiting volume to %f musicVol %f", minVol, musicVol);
2095 return volume;
2101 // do not change actual stream volume if the stream is muted
2107 // do not change in call volume if bluetooth is connected and vice versa
2110 LOGV("checkAndSetVolume() cannot set stream %d volume with force use = %d for comm",
2115 float volume = computeVolume(stream, index, output, device);
2116 // We actually change the volume if:
2119 if (volume != mOutputs.valueFor(output)->mCurVolume[stream] ||
2121 mOutputs.valueFor(output)->mCurVolume[stream] = volume;
2122 LOGV("setStreamVolume() for output %d stream %d, volume %f, delay %d", output, stream, volume, delayMs);
2126 // offset value to reflect actual hardware volume that never reaches 0
2127 // 1% corresponds roughly to first step in VOICE_CALL stream volume setting (see AudioService.java)
2128 volume = 0.01 + 0.99 * volume;
2129 // Force VOICE_CALL to track BLUETOOTH_SCO stream volume when bluetooth audio is
2132 mpClientInterface->setStreamVolume(AudioSystem::VOICE_CALL, volume, output, delayMs);
2136 mpClientInterface->setStreamVolume((AudioSystem::stream_type)stream, volume, output, delayMs);
2142 // Force voice volume to max for bluetooth SCO as volume is managed by the headset
2190 // increment mMuteCount after calling checkAndSetVolume() so that volume change is not ignored
2355 snprintf(buffer, SIZE, " Stream volume refCount muteCount\n");