Lines Matching refs:v
497 status_t AudioHardware::setVoiceVolume(float v) in setVoiceVolume() argument
499 if (v < 0.0) { in setVoiceVolume()
500 LOGW("setVoiceVolume(%f) under 0.0, assuming 0.0\n", v); in setVoiceVolume()
501 v = 0.0; in setVoiceVolume()
502 } else if (v > 1.0) { in setVoiceVolume()
503 LOGW("setVoiceVolume(%f) over 1.0, assuming 1.0\n", v); in setVoiceVolume()
504 v = 1.0; in setVoiceVolume()
507 int vol = lrint(v * 5.0); in setVoiceVolume()
508 LOGD("setVoiceVolume(%f)\n", v); in setVoiceVolume()
516 status_t AudioHardware::setMasterVolume(float v) in setMasterVolume() argument
519 int vol = ceil(v * 5.0); in setMasterVolume()