Lines Matching refs:v
399 status_t AudioHardware::setVoiceVolume(float v) in setVoiceVolume() argument
401 if (v < 0.0) { in setVoiceVolume()
402 LOGW("setVoiceVolume(%f) under 0.0, assuming 0.0\n", v); in setVoiceVolume()
403 v = 0.0; in setVoiceVolume()
404 } else if (v > 1.0) { in setVoiceVolume()
405 LOGW("setVoiceVolume(%f) over 1.0, assuming 1.0\n", v); in setVoiceVolume()
406 v = 1.0; in setVoiceVolume()
409 int vol = lrint(v * 5.0); in setVoiceVolume()
410 LOGD("setVoiceVolume(%f)\n", v); in setVoiceVolume()
418 status_t AudioHardware::setMasterVolume(float v) in setMasterVolume() argument
421 int vol = ceil(v * 5.0); in setMasterVolume()