Lines Matching refs:param

47 status_t AidlConversionEq::setParameter(EffectParamReader& param) {  in setParameter()  argument
49 if (OK != param.readFromParameter(&type)) { in setParameter()
50 ALOGE("%s invalid param %s", __func__, param.toString().c_str()); in setParameter()
58 if (OK != param.readFromValue(&value)) { in setParameter()
59 ALOGE("%s invalid param %s", __func__, param.toString().c_str()); in setParameter()
68 if (OK != param.readFromParameter(&band) || OK != param.readFromValue(&level)) { in setParameter()
69 ALOGE("%s invalid bandLevel param %s", __func__, param.toString().c_str()); in setParameter()
78 if (OK != param.readFromValue(&num)) { in setParameter()
79 ALOGE("%s invalid param %s", __func__, param.toString().c_str()); in setParameter()
88 if (OK != param.readFromValue(&num)) { in setParameter()
89 ALOGE("%s invalid param %s", __func__, param.toString().c_str()); in setParameter()
95 if (OK != param.readFromValue((uint16_t*)&level.levelMb)) { in setParameter()
96 ALOGE("%s invalid param %s", __func__, param.toString().c_str()); in setParameter()
107 aidl::android::legacy2aidl_EffectParameterReader_VendorExtension(param)); in setParameter()
130 EffectParamWriter& param) { in getParameterPresetName() argument
132 if (OK != param.readFromParameter(&presetIdx)) { in getParameterPresetName()
133 ALOGE("%s invalid param %s", __func__, param.toString().c_str()); in getParameterPresetName()
147 status_t AidlConversionEq::getParameter(EffectParamWriter& param) { in getParameter() argument
149 if (OK != param.readFromParameter(&type)) { in getParameter()
150 param.setStatus(BAD_VALUE); in getParameter()
151 ALOGE("%s invalid param %s", __func__, param.toString().c_str()); in getParameter()
162 return param.writeToValue(&bands); in getParameter()
182 return (OK == param.writeToValue(&min) && OK == param.writeToValue(&max)) in getParameter()
191 if (OK != param.readFromParameter(&bandIdx)) { in getParameter()
201 return param.writeToValue((uint16_t *)&band.levelMb); in getParameter()
208 if (OK != param.readFromParameter(&index)) { in getParameter()
219 return param.writeToValue(&freqs[index]); in getParameter()
223 if (OK != param.readFromParameter(&index)) { in getParameter()
234 return (OK == param.writeToValue(&band.minMh) && in getParameter()
235 OK == param.writeToValue(&band.maxMh)) in getParameter()
244 if (OK != param.readFromParameter(&freq)) { in getParameter()
255 return param.writeToValue((uint16_t*)&band.index); in getParameter()
262 return param.writeToValue((uint16_t*)&preset); in getParameter()
281 return param.writeToValue(&num); in getParameter()
284 std::string name = VALUE_OR_RETURN_STATUS(getParameterPresetName(param)); in getParameter()
285 return param.writeToValue(name.c_str(), name.length()); in getParameter()
289 if (OK != param.writeToValue((uint16_t*)&preset)) { in getParameter()
298 if (OK != param.writeToValue(&bands)) { in getParameter()
304 if (status_t status = param.writeToValue((uint16_t*)&level.levelMb); status != OK) { in getParameter()
311 VENDOR_EXTENSION_GET_AND_RETURN(Equalizer, equalizer, param); in getParameter()
315 param.setStatus(BAD_VALUE); in getParameter()
316 ALOGE("%s invalid param %s", __func__, param.toString().c_str()); in getParameter()