Home
last modified time | relevance | path

Searched refs:cond (Results 1 - 25 of 63) sorted by relevance

123

/base/sensors/miscdevice/utils/common/include/
H A Dsensors_errors.h124 #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 Ddevicestatus_define.h41 #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 Ddevicestatus_common.h28 #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 Dsensor_errors.h155 #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 Ddoc_query.cpp28 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 Dsys_event_query.cpp306 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 Diam_check.h25 #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 Diam_check.h25 #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 Diam_check.h25 #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 Diam_check.h25 #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 Dhc_condition.c24 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 Dpower_common.h27 #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 Daccesstoken_log.h46 #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 Dstats_common.h27 #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 Ddisplay_common.h27 #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 Dthermal_common.h27 #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 Dpower_common.h27 #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 Dusb_common.h86 #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 Ddoc_query.h29 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 Dhiappevent_watcher_test.cpp70 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 Dutils_work_queue.c34 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 Dhks_condition.c35 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 Dapp_event_watcher.cpp24 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 Dtime_hilog.h75 #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 Dsys_event_service_ohos_test.cpp325 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...]

Completed in 8 milliseconds

123