Lines Matching refs:param
48 status_t AidlConversionVirtualizer::setParameter(EffectParamReader& param) { in setParameter() argument
50 if (OK != param.readFromParameter(&type)) { in setParameter()
51 ALOGE("%s invalid param %s", __func__, param.toString().c_str()); in setParameter()
58 if (OK != param.readFromValue(&strength)) { in setParameter()
59 ALOGE("%s invalid param %s for type %d", __func__, param.toString().c_str(), type); in setParameter()
67 if (OK != param.readFromValue(&deviceType)) { in setParameter()
68 ALOGE("%s invalid param %s for type %d", __func__, param.toString().c_str(), type); in setParameter()
80 aidl::android::legacy2aidl_EffectParameterReader_VendorExtension(param)); in setParameter()
88 status_t AidlConversionVirtualizer::getParameter(EffectParamWriter& param) { in getParameter() argument
90 if (OK != param.readFromParameter(&type)) { in getParameter()
91 ALOGE("%s invalid param %s", __func__, param.toString().c_str()); in getParameter()
92 param.setStatus(BAD_VALUE); in getParameter()
102 return param.writeToValue(&support); in getParameter()
110 return param.writeToValue(&strength); in getParameter()
115 if (OK != param.readFromParameter(&mask) || OK != param.readFromParameter(&device)) { in getParameter()
116 ALOGW("%s illegal param %s", __func__, param.toString().c_str()); in getParameter()
136 if (OK != param.writeToValue(&chMask) || in getParameter()
137 OK != param.writeToValue(&angle.azimuthDegree) || in getParameter()
138 OK != param.writeToValue(&angle.elevationDegree)) { in getParameter()
139 ALOGW("%s can't write angles to param %s", __func__, param.toString().c_str()); in getParameter()
154 return param.writeToValue(&deviceType); in getParameter()
157 VENDOR_EXTENSION_GET_AND_RETURN(Virtualizer, virtualizer, param); in getParameter()