/foundation/multimodalinput/input/util/common/include/ |
H A D | define_multimodal.h | 39 #define CHKPL(cond, ...) \ 41 if ((cond) == nullptr) { \ 43 __FILE__, __LINE__, #cond); \ 47 #define CHKPV(cond) \ 49 if ((cond) == nullptr) { \ 51 __FILE__, __LINE__, #cond); \ 56 #define CHKPF(cond) \ 58 if ((cond) == nullptr) { \ 60 __FILE__, __LINE__, #cond); \ 65 #define CHKPS(cond) \ [all...] |
/foundation/multimedia/av_session/utils/include/ |
H A D | avsession_log.h | 46 #define CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ 48 if (!(cond)) { \ 54 #define CHECK_AND_RETURN_LOG(cond, fmt, ...) \ 56 if (!(cond)) { \ 62 #define CHECK_AND_BREAK_LOG(cond, fmt, ...) \ 64 if (!(cond)) { \ 70 #define CHECK_AND_CONTINUE_LOG(cond, fmt, ...) \ 72 if (!(cond)) { \ 78 #define CHECK_AND_PRINT_LOG(cond, fmt, ...) \ 80 if (!(cond)) { \ [all...] |
/foundation/multimedia/camera_framework/services/deferred_processing_service/include/utils/ |
H A D | dp_log.h | 59 #define DP_CHECK_ERROR_RETURN_RET_LOG(cond, ret, fmt, ...) \ 61 if (cond) { \ 67 #define DP_CHECK_ERROR_RETURN_LOG(cond, fmt, ...) \ 69 if (cond) { \ 75 #define DP_CHECK_ERROR_PRINT_LOG(cond, fmt, ...) \ 77 if (cond) { \ 82 #define DP_CHECK_ERROR_BREAK_LOG(cond, fmt, ...) \ 84 if (cond) { \ 90 #define DP_CHECK_RETURN_RET(cond, ret) \ 92 if (cond) { \ [all...] |
/foundation/resourceschedule/ffrt/src/sync/ |
H A D | condition_variable.cpp | 31 int ffrt_cond_init(ffrt_cond_t* cond, const ffrt_condattr_t* attr) in ffrt_cond_init() argument 33 if (!cond) { in ffrt_cond_init() 34 FFRT_LOGE("cond should not be empty"); in ffrt_cond_init() 40 new (cond) ffrt::condition_variable_private(); in ffrt_cond_init() 45 int ffrt_cond_signal(ffrt_cond_t* cond) in ffrt_cond_signal() argument 47 if (!cond) { in ffrt_cond_signal() 48 FFRT_LOGE("cond should not be empty"); in ffrt_cond_signal() 51 auto p = reinterpret_cast<ffrt::condition_variable_private *>(cond); in ffrt_cond_signal() 57 int ffrt_cond_broadcast(ffrt_cond_t* cond) in ffrt_cond_broadcast() argument 59 if (!cond) { in ffrt_cond_broadcast() 69 ffrt_cond_wait(ffrt_cond_t* cond, ffrt_mutex_t* mutex) ffrt_cond_wait() argument 82 ffrt_cond_timedwait(ffrt_cond_t* cond, ffrt_mutex_t* mutex, const struct timespec* time_point) ffrt_cond_timedwait() argument 101 ffrt_cond_destroy(ffrt_cond_t* cond) ffrt_cond_destroy() argument [all...] |
/foundation/multimedia/camera_framework/common/utils/ |
H A D | camera_log.h | 55 #define CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ 57 if (!(cond)) { \ 63 #define CHECK_ERROR_RETURN_RET_LOG(cond, ret, fmt, ...) \ 65 if (cond) { \ 71 #define CHECK_ERROR_RETURN(cond) \ 73 if (cond) { \ 78 #define CHECK_AND_RETURN_LOG(cond, fmt, ...) \ 80 if (!(cond)) { \ 86 #define CHECK_ERROR_RETURN_LOG(cond, fmt, ...) \ 88 if (cond) { \ [all...] |
/foundation/multimedia/av_codec/services/dfx/include/ |
H A D | avcodec_log.h | 75 #define CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ 77 if (!(cond)) { \ 83 #define CHECK_AND_RETURN_RET_LOGW(cond, ret, fmt, ...) \ 85 if (!(cond)) { \ 91 #define CHECK_AND_RETURN_RET_LOG_LIMIT(cond, ret, frequency, fmt, ...) \ 93 if (!(cond)) { \ 99 #define EXPECT_AND_LOGW(cond, fmt, ...) \ 101 if ((cond)) { \ 106 #define EXPECT_AND_LOGI(cond, fmt, ...) \ 108 if ((cond)) { \ [all...] |
/foundation/multimedia/player_framework/services/utils/include/ |
H A D | media_log.h | 98 #define CHECK_AND_RETURN(cond) \ 100 if (!(cond)) { \ 101 MEDIA_LOGE_NO_RELEASE("%{public}s, check failed!", #cond); \ 106 #define CHECK_AND_RETURN_RET(cond, ret) \ 108 if (!(cond)) { \ 109 MEDIA_LOGE_NO_RELEASE("%{public}s, check failed! ret = %{public}s", #cond, #ret); \ 114 #define CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ 116 if (!(cond)) { \ 122 #define CHECK_AND_RETURN_LOG(cond, fmt, ...) \ 124 if (!(cond)) { \ [all...] |
/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include/ |
H A D | audio_log.h | 52 #define CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ 54 if (!(cond)) { \ 60 #define CHECK_AND_RETURN_LOG(cond, fmt, ...) \ 62 if (!(cond)) { \ 68 #define CHECK_AND_BREAK_LOG(cond, fmt, ...) \ 70 if (!(cond)) { \ 76 #define CHECK_AND_RETURN_RET(cond, ret, ...) \ 78 if (!(cond)) { \ 83 #define CHECK_AND_CONTINUE_LOG(cond, fmt, ...) \ 85 if (!(cond)) { \ [all...] |
/foundation/multimedia/av_codec/test/unittest/video_test/video_test/common/include/ |
H A D | av_codec_sample_log.h | 31 #define CHECK_AND_CONTINUE(cond) \
33 if (!(cond)) { \
38 #define CHECK_AND_BREAK(cond) \
40 if (!(cond)) { \
45 #define CHECK_AND_RETURN(cond) \
47 if (!(cond)) { \
52 #define CHECK_AND_RETURN_RET(cond, ret) \
54 if (!(cond)) { \
|
/foundation/communication/dsoftbus/core/common/dfx/interface/include/ |
H A D | conn_log.h | 67 #define CONN_CHECK_AND_RETURN_RET_LOGW(cond, ret, label, fmt, ...) \ 68 CHECK_AND_RETURN_RET_LOG_INNER(cond, ret, CONN_LOGW, label, fmt, ##__VA_ARGS__) 69 #define CONN_CHECK_AND_RETURN_RET_LOGE(cond, ret, label, fmt, ...) \ 70 CHECK_AND_RETURN_RET_LOG_INNER(cond, ret, CONN_LOGE, label, fmt, ##__VA_ARGS__) 71 #define CONN_CHECK_AND_RETURN_RET_LOGI(cond, ret, label, fmt, ...) \ 72 CHECK_AND_RETURN_RET_LOG_INNER(cond, ret, CONN_LOGI, label, fmt, ##__VA_ARGS__) 73 #define CONN_CHECK_AND_RETURN_RET_LOGD(cond, ret, label, fmt, ...) \ 74 CHECK_AND_RETURN_RET_LOG_INNER(cond, ret, CONN_LOGD, label, fmt, ##__VA_ARGS__) 76 #define CONN_CHECK_AND_RETURN_LOGW(cond, label, fmt, ...) \ 77 CHECK_AND_RETURN_LOG_INNER(cond, CONN_LOG [all...] |
/foundation/distributeddatamgr/pasteboard/utils/native/include/ |
H A D | pasteboard_hilog.h | 100 #define CHECK_AND_RETURN_RET_LOG_INNER(cond, ret, log, label, fmt, ...) \ 102 if (!(cond)) { \ 109 #define CHECK_AND_RETURN_LOG_INNER(cond, log, label, fmt, ...) \ 111 if (!(cond)) { \ 117 #define PASTEBOARD_CHECK_AND_RETURN_RET_LOGD(cond, ret, label, fmt, ...) \ 118 CHECK_AND_RETURN_RET_LOG_INNER(cond, ret, PASTEBOARD_HILOGD, label, fmt, ##__VA_ARGS__) 119 #define PASTEBOARD_CHECK_AND_RETURN_RET_LOGW(cond, ret, label, fmt, ...) \ 120 CHECK_AND_RETURN_RET_LOG_INNER(cond, ret, PASTEBOARD_HILOGW, label, fmt, ##__VA_ARGS__) 121 #define PASTEBOARD_CHECK_AND_RETURN_RET_LOGE(cond, ret, label, fmt, ...) \ 122 CHECK_AND_RETURN_RET_LOG_INNER(cond, re [all...] |
/foundation/distributedhardware/distributed_audio/common/include/ |
H A D | daudio_log.h | 74 #define CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ 76 if ((cond)) { \ 82 #define CHECK_AND_FREE_RETURN_RET_LOG(cond, ret, root, fmt, ...) \ 84 if ((cond)) { \ 91 #define CHECK_AND_FREECHAR_RETURN_RET_LOG(cond, ret, data, fmt, ...) \ 93 if ((cond)) { \ 100 #define CHECK_AND_RETURN_LOG(cond, fmt, ...) \ 102 if ((cond)) { \ 108 #define CHECK_AND_FREE_RETURN_LOG(cond, root, fmt, ...) \ 110 if ((cond)) { \ [all...] |
/foundation/CastEngine/castengine_wifi_display/services/common/ |
H A D | sharing_log.h | 50 #define CHECK_AND_RETURN(cond) \ 52 if (!(cond)) { \ 53 SHARING_LOGE("%{public}s, check failed!", #cond); \ 58 #define CHECK_AND_RETURN_RET(cond, ret) \ 60 if (!(cond)) { \ 61 SHARING_LOGE("%{public}s, check failed! ret: %{public}s.", #cond, #ret); \ 66 #define CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ 68 if (!(cond)) { \ 74 #define CHECK_AND_RETURN_LOG(cond, fmt, ...) \ 76 if (!(cond)) { \ [all...] |
/foundation/multimedia/media_library/interfaces/inner_api/media_library_helper/include/ |
H A D | media_log.h | 47 #define CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ 49 if (!(cond)) { \ 55 #define CHECK_AND_RETURN_LOG(cond, fmt, ...) \ 57 if (!(cond)) { \ 63 #define CHECK_AND_PRINT_LOG(cond, fmt, ...) \ 65 if (!(cond)) { \ 70 #define CHECK_AND_WARN_LOG(cond, fmt, ...) \ 72 if (!(cond)) { \ 77 #define CHECK_AND_RETURN_RET(cond, ret) \ 79 if (!(cond)) { \ [all...] |
/foundation/distributedhardware/distributed_camera/common/include/utils/ |
H A D | dh_log.h | 29 #define CHECK_NULL_RETURN(cond, ret, ...) \ 31 if ((cond)) { \ 36 #define CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ 38 if ((cond)) { \ 44 #define CHECK_AND_RETURN_LOG(cond, fmt, ...) \ 46 if ((cond)) { \ 52 #define CHECK_AND_LOG(cond, fmt, ...) \ 54 if ((cond)) { \ 68 #define CHECK_AND_FREE_RETURN_RET_LOG(cond, ret, root, fmt, ...) \ 70 if ((cond)) { \ [all...] |
H A D | distributed_hardware_log.h | 44 #define CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ 46 if ((cond)) { \ 52 #define CHECK_AND_RETURN_LOG(cond, fmt, ...) \ 54 if ((cond)) { \ 60 #define CHECK_AND_LOG(cond, fmt, ...) \ 62 if ((cond)) { \ 67 #define CHECK_NULL_RETURN(cond, ret, ...) \ 69 if ((cond)) { \ 83 #define CHECK_AND_FREE_RETURN_RET_LOG(cond, ret, root, fmt, ...) \ 85 if ((cond)) { \ [all...] |
/foundation/multimedia/av_codec/test/nativedemo/include/ |
H A D | demo_log.h | 23 #define DEMO_CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ 25 if (!(cond)) { \ 33 #define DEMO_CHECK_AND_RETURN_LOG(cond, fmt, ...) \ 35 if (!(cond)) { \ 43 #define DEMO_CHECK_AND_BREAK_LOG(cond, fmt, ...) \ 44 if (!(cond)) { \ 51 #define DEMO_CHECK_AND_CONTINUE_LOG(cond, fmt, ...) \ 52 if (!(cond)) { \
|
/foundation/multimedia/player_framework/test/unittest/common/include/ |
H A D | unittest_log.h | 26 #define UNITTEST_CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ 28 if (!(cond)) { \ 34 #define UNITTEST_CHECK_AND_RETURN_LOG(cond, fmt, ...) \ 36 if (!(cond)) { \ 42 #define UNITTEST_CHECK_AND_BREAK_LOG(cond, fmt, ...) \ 43 if (!(cond)) { \ 48 #define UNITTEST_CHECK_AND_CONTINUE_LOG(cond, fmt, ...) \ 49 if (!(cond)) { \
|
/foundation/communication/bluetooth/frameworks/js/napi/include/ |
H A D | napi_bluetooth_error.h | 29 #define NAPI_BT_ASSERT_RETURN(env, cond, errCode, retObj) \ 31 if (!(cond)) { \ 40 #define NAPI_BT_ASSERT_RETURN(env, cond, errCode, retObj) \ 42 if (!(cond)) { \ 50 #define NAPI_BT_ASSERT_RETURN_UNDEF(env, cond, errCode) \ 54 NAPI_BT_ASSERT_RETURN((env), (cond), (errCode), res); \ 57 #define NAPI_BT_ASSERT_RETURN_FALSE(env, cond, errCode) \ 61 NAPI_BT_ASSERT_RETURN((env), (cond), (errCode), res); \
|
/foundation/multimedia/media_foundation/tests/unittest/common/include/ |
H A D | unittest_log.h | 24 #define UNITTEST_CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ 26 if (!(cond)) { \ 35 #define UNITTEST_CHECK_AND_RETURN_LOG(cond, fmt, ...) \ 37 if (!(cond)) { \ 46 #define UNITTEST_CHECK_AND_BREAK_LOG(cond, fmt, ...) \ 47 if (!(cond)) { \ 55 #define UNITTEST_CHECK_AND_CONTINUE_LOG(cond, fmt, ...) \ 56 if (!(cond)) { \
|
/foundation/graphic/surface_lite/interfaces/innerkits/ |
H A D | buffer_common.h | 22 #define RETURN_VAL_IF_FAIL(cond, val) { \ 23 if (!(cond)) { \ 24 GRAPHIC_LOGD("'%s' failed.", #cond); \ 29 #define RETURN_IF_FAIL(cond) { \ 30 if (!(cond)) { \ 31 GRAPHIC_LOGD("'%s' failed.", #cond); \
|
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/util/ |
H A D | log.h | 21 #define BASE_ASSERT(cond) assert(cond) 22 #define BASE_ASSERT_MSG(cond, msg) assert((cond) && (msg)) 27 #define BASE_ASSERT(cond) ((void)0) 28 #define BASE_ASSERT_MSG(cond, msg) ((void)0)
|
/foundation/communication/wifi/wifi/frameworks/js/napi/inc/ |
H A D | wifi_napi_errcode.h | 43 #define WIFI_NAPI_ASSERT(env, cond, errCode, sysCap) \ 45 if (!(cond)) { \ 55 #define WIFI_NAPI_RETURN(env, cond, errCode, sysCap) \ 58 if (!(cond)) { \ 69 #define WIFI_NAPI_ASSERT(env, cond, errCode, sysCap) \ 71 if (!(cond)) { \ 73 napi_get_boolean(env, cond, &res); \ 80 #define WIFI_NAPI_RETURN(env, cond, errCode, sysCap) \ 83 napi_get_boolean(env, cond, &res); \
|
/foundation/resourceschedule/ffrt/interfaces/kits/c/ |
H A D | condition_variable.h | 45 * @param cond Indicates a pointer to the condition variable. 53 FFRT_C_API int ffrt_cond_init(ffrt_cond_t* cond, const ffrt_condattr_t* attr); 58 * @param cond Indicates a pointer to the condition variable. 65 FFRT_C_API int ffrt_cond_signal(ffrt_cond_t* cond); 70 * @param cond Indicates a pointer to the condition variable. 77 FFRT_C_API int ffrt_cond_broadcast(ffrt_cond_t* cond); 82 * @param cond Indicates a pointer to the condition variable. 90 FFRT_C_API int ffrt_cond_wait(ffrt_cond_t* cond, ffrt_mutex_t* mutex); 95 * @param cond Indicates a pointer to the condition variable. 106 FFRT_C_API int ffrt_cond_timedwait(ffrt_cond_t* cond, ffrt_mutex_ [all...] |
/foundation/multimedia/av_codec/test/unittest/common/ |
H A D | unittest_log.h | 47 #define UNITTEST_CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ 49 if (!(cond)) { \ 58 #define UNITTEST_CHECK_AND_RETURN_LOG(cond, fmt, ...) \ 60 if (!(cond)) { \ 69 #define UNITTEST_CHECK_AND_INFO_LOG(cond, fmt, ...) \ 71 if (!(cond)) { \ 79 #define UNITTEST_CHECK_AND_BREAK_LOG(cond, fmt, ...) \ 80 if (!(cond)) { \ 88 #define UNITTEST_CHECK_AND_CONTINUE_LOG(cond, fmt, ...) \ 89 if (!(cond)) { \ [all...] |