Lines Matching refs:ret
40 status_t processReturn(const char* funcName, const Return<R>& ret, T *retval) {
41 if (ret.isOk()) {
43 *retval = static_cast<T>(static_cast<R>(ret));
46 return processReturn(funcName, ret);
50 status_t processReturn(const char* funcName, const Return<T>& ret) {
51 if (!ret.isOk()) {
52 emitError(funcName, ret.description().c_str());
54 return ret.isOk() ? OK : FAILED_TRANSACTION;
57 status_t processReturn(const char* funcName, const Return<hardware::audio::V2_0::Result>& ret) {
58 if (!ret.isOk()) {
59 emitError(funcName, ret.description().c_str());
61 return ret.isOk() ? analyzeResult(ret) : FAILED_TRANSACTION;
66 const char* funcName, const Return<T>& ret, hardware::audio::V2_0::Result retval) {
67 if (!ret.isOk()) {
68 emitError(funcName, ret.description().c_str());
70 return ret.isOk() ? analyzeResult(retval) : FAILED_TRANSACTION;