/base/sensors/miscdevice/utils/common/include/ |
H A D | sensors_errors.h | 124 #define CHKPL(cond, ...) \ 126 if ((cond) == nullptr) { \ 128 __FILE__, __LINE__, #cond); \ 132 #define CHKPV(cond) \ 134 if ((cond) == nullptr) { \ 136 __FILE__, __LINE__, #cond); \ 141 #define CHKPF(cond) \ 143 if ((cond) == nullptr) { \ 145 __FILE__, __LINE__, #cond); \ 150 #define CHKPC(cond) \ [all...] |
/base/msdp/device_status/utils/common/include/ |
H A D | devicestatus_define.h | 41 #define CHKPL(cond) \ 43 if ((cond) == nullptr) { \ 44 FI_HILOGW("CHKPL(%{public}s) is null, do nothing", #cond); \ 48 #define CHKPV(cond) \ 50 if ((cond) == nullptr) { \ 51 FI_HILOGE("CHKPV(%{public}s) is null", #cond); \ 56 #define CHKPF(cond) \ 58 if ((cond) == nullptr) { \ 59 FI_HILOGE("CHKPF(%{public}s) is null", #cond); \ 64 #define CHKPS(cond) \ [all...] |
H A D | devicestatus_common.h | 28 #define DEV_RET_IF_NULL_WITH_RET(cond, retval) if (cond) {return (retval);} 29 #define DEV_RET_IF_NULL(cond) if (cond) {return;} 30 #define DEV_RET_IF_NULL_WITH_LOG(cond, loginfo) \ 32 if (cond) { \
|
/base/sensors/sensor/utils/common/include/ |
H A D | sensor_errors.h | 155 #define CHKPL(cond, ...) \ 157 if ((cond) == nullptr) { \ 159 __FILE__, __LINE__, #cond); \ 163 #define CHKPV(cond) \ 165 if ((cond) == nullptr) { \ 167 __FILE__, __LINE__, #cond); \ 172 #define CHKPF(cond) \ 174 if ((cond) == nullptr) { \ 176 __FILE__, __LINE__, #cond); \ 181 #define CHKPC(cond) \ [all...] |
/base/hiviewdfx/hiview/base/event_store/dao/ |
H A D | doc_query.cpp | 28 void DocQuery::And(const Cond& cond)
in And() argument 30 if (cond.col_ == EventCol::DOMAIN || cond.col_ == EventCol::NAME) {
in And() 31 HIVIEW_LOGI("invalid condition, cond.col=%{public}s", cond.col_.c_str());
in And() 34 if (IsInnerCond(cond)) {
in And() 35 innerConds_.push_back(cond);
in And() 38 extraConds_.push_back(cond);
in And() 41 bool DocQuery::IsInnerCond(const Cond& cond) const
in IsInnerCond() 47 return innerFields.find(cond in IsInnerCond() 50 IsContainCond(const Cond& cond, const FieldValue& value) const IsContainCond() argument [all...] |
H A D | sys_event_query.cpp | 306 Cond &Cond::And(const Cond &cond) in And() argument 308 andConds_.emplace_back(cond); in And() 312 bool Cond::IsSimpleCond(const Cond &cond) in IsSimpleCond() argument 314 return !cond.col_.empty() && cond.andConds_.empty(); in IsSimpleCond() 317 void Cond::Traval(DocQuery &docQuery, const Cond &cond) in Traval() argument 319 if (!cond.col_.empty()) { in Traval() 320 docQuery.And(cond); in Traval() 322 if (!cond.andConds_.empty()) { in Traval() 323 for (auto& andCond : cond in Traval() 444 Where(const Cond &cond) Where() argument 450 And(const Cond &cond) And() argument [all...] |
/base/useriam/face_auth/common/utils/ |
H A D | iam_check.h | 25 #define IF_FALSE_LOGE_AND_RETURN(cond) \ 27 if (!(cond)) { \ 28 IAM_LOGE("(" #cond ") check fail, return"); \ 33 #define IF_FALSE_LOGE_AND_RETURN_VAL(cond, retVal) \ 35 if (!(cond)) { \ 36 IAM_LOGE("(" #cond ") check fail, return"); \
|
/base/useriam/pin_auth/common/utils/ |
H A D | iam_check.h | 25 #define IF_FALSE_LOGE_AND_RETURN(cond) \ 27 if (!(cond)) { \ 28 IAM_LOGE("(" #cond ") check fail, return"); \ 33 #define IF_FALSE_LOGE_AND_RETURN_VAL(cond, retVal) \ 35 if (!(cond)) { \ 36 IAM_LOGE("(" #cond ") check fail, return"); \
|
/base/useriam/fingerprint_auth/common/utils/ |
H A D | iam_check.h | 25 #define IF_FALSE_LOGE_AND_RETURN(cond) \ 27 if (!(cond)) { \ 28 IAM_LOGE("(" #cond ") check fail, return"); \ 33 #define IF_FALSE_LOGE_AND_RETURN_VAL(cond, retVal) \ 35 if (!(cond)) { \ 36 IAM_LOGE("(" #cond ") check fail, return"); \
|
/base/useriam/user_auth_framework/common/utils/ |
H A D | iam_check.h | 25 #define IF_FALSE_LOGE_AND_RETURN(cond) \ 27 if (!(cond)) { \ 28 IAM_LOGE("(" #cond ") check fail, return"); \ 33 #define IF_FALSE_LOGE_AND_RETURN_VAL(cond, retVal) \ 35 if (!(cond)) { \ 36 IAM_LOGE("(" #cond ") check fail, return"); \
|
/base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/ |
H A D | hc_condition.c | 24 int Wait(pthread_cond_t* cond, HcMutex* mutex)
in Wait() argument 26 if (cond == NULL || mutex == NULL) {
in Wait() 29 int res = pthread_cond_wait(cond, mutex);
in Wait() 36 void Notify(pthread_cond_t* cond)
in Notify() argument 38 if (cond == NULL) {
in Notify() 41 int res = pthread_cond_signal(cond);
in Notify() 58 ret = Wait(&hcCond->cond, hcCond->mutex);
in HcCondWaitWithoutLock() 76 Notify(&hcCond->cond);
in HcCondNotifyWithoutLock() 96 ret = Wait(&hcCond->cond, hcCond->mutex);
in HcCondWait() 117 Notify(&hcCond->cond);
in HcCondNotify() [all...] |
/base/powermgr/power_manager/utils/native/include/ |
H A D | power_common.h | 27 #define RETURN_IF_WITH_RET(cond, retval) if (cond) {return (retval);} 28 #define RETURN_IF(cond) if (cond) {return;} 29 #define RETURN_IF_WITH_LOG(cond, loginfo) \ 31 if (cond) { \
|
/base/security/access_token/frameworks/common/include/ |
H A D | accesstoken_log.h | 46 #define IF_FALSE_PRINT_LOG(label, cond, fmt, ...) \ 48 if (!(cond)) { \ 53 #define IF_FALSE_RETURN_LOG(label, cond, fmt, ...) \ 55 if (!(cond)) { \ 74 #define IF_FALSE_PRINT_LOG(cond, fmt, ...) \ 76 if (!(cond)) { \ 81 #define IF_FALSE_RETURN_LOG(cond, fmt, ...) \ 83 if (!(cond)) { \
|
/base/powermgr/battery_statistics/utils/native/include/ |
H A D | stats_common.h | 27 #define STATS_RETURN_IF_WITH_RET(cond, retval) if (cond) { return (retval); } 28 #define STATS_RETURN_IF(cond) if (cond) { return; } 29 #define STATS_RETURN_IF_WITH_LOG(loglabel, cond, loginfo) \ 31 if (cond) { \
|
/base/powermgr/display_manager/state_manager/utils/native/include/ |
H A D | display_common.h | 27 #define RETURN_IF_WITH_RET(cond, retval) if (cond) {return (retval);} 28 #define RETURN_IF(cond) if (cond) {return;} 29 #define RETURN_IF_WITH_LOG(cond, loginfo) \ 31 if (cond) { \
|
/base/powermgr/thermal_manager/utils/native/include/ |
H A D | thermal_common.h | 27 #define THERMAL_RETURN_IF_WITH_RET(cond, retval) \ 28 if (cond) { return (retval); } 29 #define THERMAL_RETURN_IF(cond) if (cond) {return;} 30 #define THERMAL_RETURN_IF_WITH_LOG(cond, loginfo) \ 32 if (cond) { \
|
/base/powermgr/battery_manager/utils/native/include/ |
H A D | power_common.h | 27 #define RETURN_IF_WITH_RET(cond, retval) if (cond) {return (retval);} 28 #define RETURN_IF(cond) if (cond) {return;} 29 #define RETURN_IF_WITH_LOG(cond, loginfo) \ 31 if (cond) { \
|
/base/usb/usb_manager/utils/native/include/ |
H A D | usb_common.h | 86 #define RETURN_IF_WITH_RET(cond, retval) \ 87 if (cond) { \ 90 #define RETURN_IF(cond) \ 91 if (cond) { \ 94 #define RETURN_IF_WITH_LOG(cond, loginfo) \ 96 if (cond) { \
|
/base/hiviewdfx/hiview/base/event_store/include/ |
H A D | doc_query.h | 29 void And(const Cond& cond); 48 bool IsContainInnerCond(const InnerFieldStruct& innerField, const Cond& cond) const; 49 bool IsContainCond(const Cond& cond, const FieldValue& value) const; 50 bool IsInnerCond(const Cond& cond) const;
|
/base/hiviewdfx/hiappevent/test/unittest/common/native/ |
H A D | hiappevent_watcher_test.cpp | 70 TriggerCondition cond)
in AppEventWatcherTest() 71 : AppEventWatcher(name, filters, cond) {}
in AppEventWatcherTest() 110 TriggerCondition cond = {
in BuildCondition() local 115 return cond;
in BuildCondition() 121 TriggerCondition cond = BuildCondition(0, 0, 0);
in BuildSimpleWatcher() local 122 return std::make_shared<AppEventWatcherTest>(TEST_WATCHER, filters, cond);
in BuildSimpleWatcher() 129 TriggerCondition cond = BuildCondition(1, 0, 0); // row is 1
in BuildWatcherWithRow() local 130 return std::make_shared<AppEventWatcherTest>(TEST_WATCHER_ROW, filters, cond);
in BuildWatcherWithRow() 137 TriggerCondition cond = BuildCondition(0, 10, 0); // size is 10 byte
in BuildWatcherWithSize() local 138 return std::make_shared<AppEventWatcherTest>(TEST_WATCHER_SIZE, filters, cond);
in BuildWatcherWithSize() 67 AppEventWatcherTest( const std::string& name, const std::vector<AppEventFilter>& filters, TriggerCondition cond) AppEventWatcherTest() argument 145 TriggerCondition cond = BuildCondition(0, 0, 1); // timeout is 1 BuildWatcherWithTimeout() local 153 TriggerCondition cond = BuildCondition(0, 0, 1); // timeout is 1 BuildWatcherWithTimeout2() local 161 TriggerCondition cond = BuildCondition(0, 0, 0); BuildSimpleOsWatcher() local [all...] |
/base/security/device_security_level/baselib/utils/src/ |
H A D | utils_work_queue.c | 34 pthread_cond_t cond; member 65 pthread_cond_wait(&queue->cond, &queue->mutex); in WorkQueueThread() 125 iRet = pthread_cond_init(&queue->cond, NULL); in CreateWorkQueue() 134 (void)pthread_cond_destroy(&(queue->cond)); in CreateWorkQueue() 164 iRet = pthread_cond_init(&queue->cond, NULL); in CreateWorkQueue() 173 (void)pthread_cond_destroy(&(queue->cond)); in CreateWorkQueue() 182 (void)pthread_cond_destroy(&(queue->cond)); in CreateWorkQueue() 191 (void)pthread_cond_destroy(&(queue->cond)); in CreateWorkQueue() 211 int32_t iRet = pthread_cond_broadcast(&queue->cond); in DestroyWorkQueue() 255 (void)pthread_cond_broadcast(&queue->cond); in QueueWork() [all...] |
/base/security/huks/utils/condition/ |
H A D | hks_condition.c | 35 pthread_cond_t cond; member 55 ret = pthread_cond_wait(&condition->cond, &condition->mutex); in HksConditionWait() 84 ret = pthread_cond_signal(&condition->cond); in HksConditionNotify() 112 ret = pthread_cond_broadcast(&condition->cond); in HksConditionNotifyAll() 140 ret = pthread_cond_init(&condition->cond, &attr); in HksConditionCreate() 164 ret = pthread_cond_destroy(&condition->cond); in HksConditionDestroy()
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/ |
H A D | app_event_watcher.cpp | 24 TriggerCondition cond)
in AppEventWatcher() 28 reportConfig_.triggerCond = cond;
in AppEventWatcher() 21 AppEventWatcher( const std::string& name, const std::vector<AppEventFilter>& filters, TriggerCondition cond) AppEventWatcher() argument
|
/base/time/time_service/utils/native/include/ |
H A D | time_hilog.h | 75 #define CHECK_AND_RETURN_RET_LOG(module, cond, ret, ...) \ 77 if (!(cond)) { \ 83 #define CHECK_AND_RETURN_LOG(module, cond, ...) \ 85 if (!(cond)) { \
|
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/test/unittest/common/ |
H A D | sys_event_service_ohos_test.cpp | 325 EventStore::Cond cond; in HWTEST_F() local 328 auto ret = parser.ParseCondition(condStr, cond); in HWTEST_F() 332 ret = parser.ParseCondition(condStr2, cond); in HWTEST_F() 337 ret = parser.ParseCondition(condStr3, cond); in HWTEST_F() 342 ret = parser.ParseCondition(condStr4, cond); in HWTEST_F() 347 ret = parser.ParseCondition(condSt5, cond); in HWTEST_F() 352 ret = parser.ParseCondition(condSt6, cond); in HWTEST_F() 365 EventStore::Cond cond; in HWTEST_F() local 368 auto ret = parser.ParseCondition(condSt7, cond); in HWTEST_F() 373 ret = parser.ParseCondition(condStr8, cond); in HWTEST_F() [all...] |