Loading audio/aidl/default/include/effect-impl/EffectTypes.h +30 −30 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ inline std::ostream& operator<<(std::ostream& out, const RetCode& code) { do { \ const ::ndk::ScopedAStatus curr_status = (status); \ if (!curr_status.isOk()) { \ LOG(ERROR) << __func__ << ":" << __LINE__ \ LOG(ERROR) << __func__ << ": line" << __LINE__ \ << " return with status: " << curr_status.getDescription() << (message); \ return ndk::ScopedAStatus::fromExceptionCodeWithMessage( \ curr_status.getExceptionCode(), (message)); \ Loading @@ -89,7 +89,7 @@ inline std::ostream& operator<<(std::ostream& out, const RetCode& code) { #define RETURN_IF(expr, exception, message) \ do { \ if (expr) { \ LOG(ERROR) << __func__ << ":" << __LINE__ << " return with expr " << #expr; \ LOG(ERROR) << __func__ << ": line" << __LINE__ << " return with expr " << #expr; \ return ndk::ScopedAStatus::fromExceptionCodeWithMessage((exception), (message)); \ } \ } while (0) Loading @@ -97,7 +97,7 @@ inline std::ostream& operator<<(std::ostream& out, const RetCode& code) { #define RETURN_OK_IF(expr) \ do { \ if (expr) { \ LOG(INFO) << __func__ << ":" << __LINE__ << " return with expr " << #expr; \ LOG(INFO) << __func__ << ": line" << __LINE__ << " return with expr " << #expr; \ return ndk::ScopedAStatus::ok(); \ } \ } while (0) Loading @@ -105,7 +105,7 @@ inline std::ostream& operator<<(std::ostream& out, const RetCode& code) { #define RETURN_VALUE_IF(expr, ret, log) \ do { \ if (expr) { \ LOG(ERROR) << __func__ << ":" << __LINE__ << " return with expr \"" << #expr \ LOG(ERROR) << __func__ << ": line" << __LINE__ << " return with expr \"" << #expr \ << "\":" << (log); \ return ret; \ } \ Loading Loading
audio/aidl/default/include/effect-impl/EffectTypes.h +30 −30 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ inline std::ostream& operator<<(std::ostream& out, const RetCode& code) { do { \ const ::ndk::ScopedAStatus curr_status = (status); \ if (!curr_status.isOk()) { \ LOG(ERROR) << __func__ << ":" << __LINE__ \ LOG(ERROR) << __func__ << ": line" << __LINE__ \ << " return with status: " << curr_status.getDescription() << (message); \ return ndk::ScopedAStatus::fromExceptionCodeWithMessage( \ curr_status.getExceptionCode(), (message)); \ Loading @@ -89,7 +89,7 @@ inline std::ostream& operator<<(std::ostream& out, const RetCode& code) { #define RETURN_IF(expr, exception, message) \ do { \ if (expr) { \ LOG(ERROR) << __func__ << ":" << __LINE__ << " return with expr " << #expr; \ LOG(ERROR) << __func__ << ": line" << __LINE__ << " return with expr " << #expr; \ return ndk::ScopedAStatus::fromExceptionCodeWithMessage((exception), (message)); \ } \ } while (0) Loading @@ -97,7 +97,7 @@ inline std::ostream& operator<<(std::ostream& out, const RetCode& code) { #define RETURN_OK_IF(expr) \ do { \ if (expr) { \ LOG(INFO) << __func__ << ":" << __LINE__ << " return with expr " << #expr; \ LOG(INFO) << __func__ << ": line" << __LINE__ << " return with expr " << #expr; \ return ndk::ScopedAStatus::ok(); \ } \ } while (0) Loading @@ -105,7 +105,7 @@ inline std::ostream& operator<<(std::ostream& out, const RetCode& code) { #define RETURN_VALUE_IF(expr, ret, log) \ do { \ if (expr) { \ LOG(ERROR) << __func__ << ":" << __LINE__ << " return with expr \"" << #expr \ LOG(ERROR) << __func__ << ": line" << __LINE__ << " return with expr \"" << #expr \ << "\":" << (log); \ return ret; \ } \ Loading