Loading media/libaudioclient/AudioRecord.cpp +0 −9 Original line number Diff line number Diff line Loading @@ -35,15 +35,6 @@ #include <media/MediaMetricsItem.h> #include <media/TypeConverter.h> #define VALUE_OR_FATAL(result) \ ({ \ auto _tmp = (result); \ LOG_ALWAYS_FATAL_IF(!_tmp.ok(), \ "Failed result (%d)", \ _tmp.error()); \ std::move(_tmp.value()); \ }) #define WAIT_PERIOD_MS 10 namespace android { Loading media/libaudioclient/AudioTrack.cpp +0 −9 Original line number Diff line number Diff line Loading @@ -38,15 +38,6 @@ #include <media/MediaMetricsItem.h> #include <media/TypeConverter.h> #define VALUE_OR_FATAL(result) \ ({ \ auto _tmp = (result); \ LOG_ALWAYS_FATAL_IF(!_tmp.ok(), \ "Failed result (%d)", \ _tmp.error()); \ std::move(_tmp.value()); \ }) #define WAIT_PERIOD_MS 10 #define WAIT_STREAM_END_TIMEOUT_SEC 120 static const int kMaxLoopCountNotifications = 32; Loading media/libaudioclient/include/media/AidlConversionUtil.h +9 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,15 @@ using ConversionResult = base::expected<T, status_t>; std::move(_tmp.value()); \ }) #define VALUE_OR_FATAL(result) \ ({ \ auto _tmp = (result); \ LOG_ALWAYS_FATAL_IF(!_tmp.ok(), \ "Function: %s Line: %d Failed result (%d)",\ __FUNCTION__, __LINE__, _tmp.error()); \ std::move(_tmp.value()); \ }) /** * A generic template to safely cast between integral types, respecting limits of the destination * type. Loading services/audioflinger/AudioFlinger.cpp +0 −9 Original line number Diff line number Diff line Loading @@ -85,15 +85,6 @@ #include "TypedLogger.h" #define VALUE_OR_FATAL(result) \ ({ \ auto _tmp = (result); \ LOG_ALWAYS_FATAL_IF(!_tmp.ok(), \ "Failed result (%d)", \ _tmp.error()); \ std::move(_tmp.value()); \ }) // ---------------------------------------------------------------------------- // Note: the following macro is used for extremely verbose logging message. In Loading Loading
media/libaudioclient/AudioRecord.cpp +0 −9 Original line number Diff line number Diff line Loading @@ -35,15 +35,6 @@ #include <media/MediaMetricsItem.h> #include <media/TypeConverter.h> #define VALUE_OR_FATAL(result) \ ({ \ auto _tmp = (result); \ LOG_ALWAYS_FATAL_IF(!_tmp.ok(), \ "Failed result (%d)", \ _tmp.error()); \ std::move(_tmp.value()); \ }) #define WAIT_PERIOD_MS 10 namespace android { Loading
media/libaudioclient/AudioTrack.cpp +0 −9 Original line number Diff line number Diff line Loading @@ -38,15 +38,6 @@ #include <media/MediaMetricsItem.h> #include <media/TypeConverter.h> #define VALUE_OR_FATAL(result) \ ({ \ auto _tmp = (result); \ LOG_ALWAYS_FATAL_IF(!_tmp.ok(), \ "Failed result (%d)", \ _tmp.error()); \ std::move(_tmp.value()); \ }) #define WAIT_PERIOD_MS 10 #define WAIT_STREAM_END_TIMEOUT_SEC 120 static const int kMaxLoopCountNotifications = 32; Loading
media/libaudioclient/include/media/AidlConversionUtil.h +9 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,15 @@ using ConversionResult = base::expected<T, status_t>; std::move(_tmp.value()); \ }) #define VALUE_OR_FATAL(result) \ ({ \ auto _tmp = (result); \ LOG_ALWAYS_FATAL_IF(!_tmp.ok(), \ "Function: %s Line: %d Failed result (%d)",\ __FUNCTION__, __LINE__, _tmp.error()); \ std::move(_tmp.value()); \ }) /** * A generic template to safely cast between integral types, respecting limits of the destination * type. Loading
services/audioflinger/AudioFlinger.cpp +0 −9 Original line number Diff line number Diff line Loading @@ -85,15 +85,6 @@ #include "TypedLogger.h" #define VALUE_OR_FATAL(result) \ ({ \ auto _tmp = (result); \ LOG_ALWAYS_FATAL_IF(!_tmp.ok(), \ "Failed result (%d)", \ _tmp.error()); \ std::move(_tmp.value()); \ }) // ---------------------------------------------------------------------------- // Note: the following macro is used for extremely verbose logging message. In Loading