Home
last modified time | relevance | path

Searched refs:cond (Results 1 – 25 of 60) sorted by relevance

123

/base/sensors/miscdevice/utils/common/include/
Dsensors_errors.h124 #define CHKPL(cond, ...) \ argument
126 if ((cond) == nullptr) { \
128 __FILE__, __LINE__, #cond); \
132 #define CHKPV(cond) \ argument
134 if ((cond) == nullptr) { \
136 __FILE__, __LINE__, #cond); \
141 #define CHKPF(cond) \ argument
143 if ((cond) == nullptr) { \
145 __FILE__, __LINE__, #cond); \
150 #define CHKPC(cond) \ argument
[all …]
/base/msdp/device_status/utils/common/include/
Ddevicestatus_define.h37 #define CHKPL(cond) \ argument
39 if ((cond) == nullptr) { \
40 FI_HILOGW("CHKPL(%{public}s) is null, do nothing", #cond); \
44 #define CHKPV(cond) \ argument
46 if ((cond) == nullptr) { \
47 FI_HILOGE("CHKPV(%{public}s) is null", #cond); \
52 #define CHKPF(cond) \ argument
54 if ((cond) == nullptr) { \
55 FI_HILOGE("CHKPF(%{public}s) is null", #cond); \
60 #define CHKPS(cond) \ argument
[all …]
Ddevicestatus_common.h28 #define DEV_RET_IF_NULL_WITH_RET(cond, retval) if (cond) {return (retval);} argument
29 #define DEV_RET_IF_NULL(cond) if (cond) {return;} argument
30 #define DEV_RET_IF_NULL_WITH_LOG(cond, loginfo) \ argument
32 if (cond) { \
/base/sensors/sensor/utils/common/include/
Dsensor_errors.h155 #define CHKPL(cond, ...) \ argument
157 if ((cond) == nullptr) { \
159 __FILE__, __LINE__, #cond); \
163 #define CHKPV(cond) \ argument
165 if ((cond) == nullptr) { \
167 __FILE__, __LINE__, #cond); \
172 #define CHKPF(cond) \ argument
174 if ((cond) == nullptr) { \
176 __FILE__, __LINE__, #cond); \
181 #define CHKPC(cond) \ argument
[all …]
/base/hiviewdfx/hiview/base/event_store/dao/
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.col_) != innerFields.end(); in IsInnerCond()
50 bool DocQuery::IsContainCond(const Cond& cond, const FieldValue& value) const in IsContainCond() argument
52 switch (cond.op_) { in IsContainCond()
[all …]
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.andConds_) { in Traval()
444 SysEventQuery &SysEventQuery::Where(const Cond &cond) in Where() argument
[all …]
/base/useriam/pin_auth/common/utils/
Diam_check.h25 #define IF_FALSE_LOGE_AND_RETURN(cond) \ argument
27 if (!(cond)) { \
28 IAM_LOGE("(" #cond ") check fail, return"); \
33 #define IF_FALSE_LOGE_AND_RETURN_VAL(cond, retVal) \ argument
35 if (!(cond)) { \
36 IAM_LOGE("(" #cond ") check fail, return"); \
/base/useriam/user_auth_framework/common/utils/
Diam_check.h25 #define IF_FALSE_LOGE_AND_RETURN(cond) \ argument
27 if (!(cond)) { \
28 IAM_LOGE("(" #cond ") check fail, return"); \
33 #define IF_FALSE_LOGE_AND_RETURN_VAL(cond, retVal) \ argument
35 if (!(cond)) { \
36 IAM_LOGE("(" #cond ") check fail, return"); \
/base/useriam/fingerprint_auth/common/utils/
Diam_check.h25 #define IF_FALSE_LOGE_AND_RETURN(cond) \ argument
27 if (!(cond)) { \
28 IAM_LOGE("(" #cond ") check fail, return"); \
33 #define IF_FALSE_LOGE_AND_RETURN_VAL(cond, retVal) \ argument
35 if (!(cond)) { \
36 IAM_LOGE("(" #cond ") check fail, return"); \
/base/useriam/face_auth/common/utils/
Diam_check.h25 #define IF_FALSE_LOGE_AND_RETURN(cond) \ argument
27 if (!(cond)) { \
28 IAM_LOGE("(" #cond ") check fail, return"); \
33 #define IF_FALSE_LOGE_AND_RETURN_VAL(cond, retVal) \ argument
35 if (!(cond)) { \
36 IAM_LOGE("(" #cond ") check fail, return"); \
/base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/
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->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/thermal_manager/utils/native/include/
Dthermal_common.h27 #define THERMAL_RETURN_IF_WITH_RET(cond, retval) \ argument
28 if (cond) { return (retval); }
29 #define THERMAL_RETURN_IF(cond) if (cond) {return;} argument
30 #define THERMAL_RETURN_IF_WITH_LOG(cond, loginfo) … argument
32 if (cond) { \
/base/powermgr/power_manager/utils/native/include/
Dpower_common.h27 #define RETURN_IF_WITH_RET(cond, retval) if (cond) {return (retval);} argument
28 #define RETURN_IF(cond) if (cond) {return;} argument
29 #define RETURN_IF_WITH_LOG(cond, loginfo) \ argument
31 if (cond) { \
/base/powermgr/battery_manager/utils/native/include/
Dpower_common.h27 #define RETURN_IF_WITH_RET(cond, retval) if (cond) {return (retval);} argument
28 #define RETURN_IF(cond) if (cond) {return;} argument
29 #define RETURN_IF_WITH_LOG(cond, loginfo) \ argument
31 if (cond) { \
/base/powermgr/display_manager/state_manager/utils/native/include/
Ddisplay_common.h27 #define RETURN_IF_WITH_RET(cond, retval) if (cond) {return (retval);} argument
28 #define RETURN_IF(cond) if (cond) {return;} argument
29 #define RETURN_IF_WITH_LOG(cond, loginfo) \ argument
31 if (cond) { \
/base/powermgr/battery_statistics/utils/native/include/
Dstats_common.h27 #define STATS_RETURN_IF_WITH_RET(cond, retval) if (cond) { return (retval); } argument
28 #define STATS_RETURN_IF(cond) if (cond) { return; } argument
29 #define STATS_RETURN_IF_WITH_LOG(loglabel, cond, loginfo) \ argument
31 if (cond) { \
/base/usb/usb_manager/utils/native/include/
Dusb_common.h86 #define RETURN_IF_WITH_RET(cond, retval) \ argument
87 if (cond) { \
90 #define RETURN_IF(cond) \ argument
91 if (cond) { \
94 #define RETURN_IF_WITH_LOG(cond, loginfo) \ argument
96 if (cond) { \
/base/hiviewdfx/hiappevent/test/unittest/common/native/
Dhiappevent_watcher_test.cpp68 TriggerCondition cond) in AppEventWatcherTest() argument
69 : AppEventWatcher(name, filters, cond) {} in AppEventWatcherTest()
108 TriggerCondition cond = { in BuildCondition() local
113 return cond; in BuildCondition()
119 TriggerCondition cond = BuildCondition(0, 0, 0); in BuildSimpleWatcher() local
120 return std::make_shared<AppEventWatcherTest>(TEST_WATCHER, filters, cond); in BuildSimpleWatcher()
127 TriggerCondition cond = BuildCondition(1, 0, 0); // row is 1 in BuildWatcherWithRow() local
128 return std::make_shared<AppEventWatcherTest>(TEST_WATCHER_ROW, filters, cond); in BuildWatcherWithRow()
135 TriggerCondition cond = BuildCondition(0, 10, 0); // size is 10 byte in BuildWatcherWithSize() local
136 return std::make_shared<AppEventWatcherTest>(TEST_WATCHER_SIZE, filters, cond); in BuildWatcherWithSize()
[all …]
/base/security/huks/utils/condition/
Dhks_condition.c29 pthread_cond_t cond; member
46 ret = pthread_cond_wait(&condition->cond, &condition->mutex); in HksConditionWait()
68 ret = pthread_cond_signal(&condition->cond); in HksConditionNotify()
88 ret = pthread_cond_broadcast(&condition->cond); in HksConditionNotifyAll()
107 ret = pthread_cond_init(&condition->cond, &attr); in HksConditionCreate()
123 pthread_cond_destroy(&condition->cond); in HksConditionDestroy()
/base/hiviewdfx/hiview/base/event_store/include/
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/security/device_security_level/baselib/utils/src/
Dutils_work_queue.c34 pthread_cond_t cond; member
61 pthread_cond_wait(&queue->cond, &queue->mutex); in WorkQueueThread()
111 iRet = pthread_cond_init(&queue->cond, NULL); in CreateWorkQueue()
120 (void)pthread_cond_destroy(&(queue->cond)); in CreateWorkQueue()
150 iRet = pthread_cond_init(&queue->cond, NULL); in CreateWorkQueue()
159 (void)pthread_cond_destroy(&(queue->cond)); in CreateWorkQueue()
168 (void)pthread_cond_destroy(&(queue->cond)); in CreateWorkQueue()
177 (void)pthread_cond_destroy(&(queue->cond)); in CreateWorkQueue()
197 int32_t iRet = pthread_cond_broadcast(&queue->cond); in DestroyWorkQueue()
241 (void)pthread_cond_broadcast(&queue->cond); in QueueWork()
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
Dnapi_hiappevent_watch.cpp68 bool IsValidCondition(const napi_env env, const napi_value cond) in IsValidCondition() argument
70 if (cond == nullptr) { in IsValidCondition()
73 if (!NapiUtil::IsObject(env, cond)) { in IsValidCondition()
78 napi_value propValue = NapiUtil::GetProperty(env, cond, propName); in IsValidCondition()
175 int GetConditionValue(const napi_env env, const napi_value cond, const std::string& name) in GetConditionValue() argument
177 if (auto value = NapiUtil::GetProperty(env, cond, name); value != nullptr) { in GetConditionValue()
195 napi_value cond = NapiUtil::GetProperty(env, watcher, COND_PROPERTY); in GetCondition() local
196 if (cond == nullptr) { in GetCondition()
201 int row = GetConditionValue(env, cond, COND_PROPS[index++]); in GetCondition()
208 int size = GetConditionValue(env, cond, COND_PROPS[index++]); in GetCondition()
[all …]
/base/time/time_service/utils/native/include/
Dtime_hilog.h74 #define CHECK_AND_RETURN_RET_LOG(module, cond, ret, ...) \ argument
76 if (!(cond)) { \
82 #define CHECK_AND_RETURN_LOG(module, cond, ...) \ argument
84 if (!(cond)) { \
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/
Dapp_event_watcher.cpp24 TriggerCondition cond) in AppEventWatcher() argument
28 reportConfig_.triggerCond = cond; in AppEventWatcher()
/base/startup/appspawn/test/moduletest/threadpool/
Dthread_manager.c32 pthread_cond_t cond; // 线程等待条件 member
55 pthread_cond_t cond; // 同步执行时,等待确认 member
71 static void SetCondAttr(pthread_cond_t *cond) in SetCondAttr() argument
76 pthread_cond_init(cond, &attr); in SetCondAttr()
172 pthread_cond_destroy(&task->cond); in DeleteTask()
195 pthread_cond_broadcast(&mgr->cond); in PushTask()
250 pthread_cond_signal(&task->cond); in CheckTaskComplete()
284 SetCondAttr(&mgr->cond); in CreateThreadMgr()
317 pthread_cond_broadcast(&mgr->cond); in DestroyThreadMgr()
333 pthread_cond_destroy(&mgr->cond); in DestroyThreadMgr()
[all …]

123