Home
last modified time | relevance | path

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

12

/system/logging/liblog/include/log/
Dlog_main.h87 #define android_vprintLog(prio, cond, tag, ...) \ argument
122 #define android_printAssert(cond, tag, ...) \ argument
123 __android_log_assert(cond, tag, \
134 #define LOG_ALWAYS_FATAL_IF(cond, ...) \ argument
135 ((__predict_false(cond)) ? (__FAKE_USE_VA_ARGS(__VA_ARGS__), \
136 ((void)android_printAssert(#cond, LOG_TAG, ##__VA_ARGS__))) \
153 #define LOG_FATAL_IF(cond, ...) __FAKE_USE_VA_ARGS(__VA_ARGS__) argument
162 #define LOG_FATAL_IF(cond, ...) LOG_ALWAYS_FATAL_IF(cond, ##__VA_ARGS__) argument
175 #define ALOG_ASSERT(cond, ...) LOG_FATAL_IF(!(cond), ##__VA_ARGS__) argument
214 #define ALOGV_IF(cond, ...) __FAKE_USE_VA_ARGS(__VA_ARGS__) argument
[all …]
Dlog_radio.h64 #define RLOGV_IF(cond, ...) ((void)0) argument
66 #define RLOGV_IF(cond, ...) \ argument
67 ((__predict_false(cond)) \
84 #define RLOGD_IF(cond, ...) \ argument
85 ((__predict_false(cond)) \
101 #define RLOGI_IF(cond, ...) \ argument
102 ((__predict_false(cond)) \
118 #define RLOGW_IF(cond, ...) \ argument
119 ((__predict_false(cond)) \
135 #define RLOGE_IF(cond, ...) \ argument
[all …]
Dlog_system.h62 #define SLOGV_IF(cond, ...) ((void)0) argument
64 #define SLOGV_IF(cond, ...) \ argument
65 ((__predict_false(cond)) \
82 #define SLOGD_IF(cond, ...) \ argument
83 ((__predict_false(cond)) \
99 #define SLOGI_IF(cond, ...) \ argument
100 ((__predict_false(cond)) \
116 #define SLOGW_IF(cond, ...) \ argument
117 ((__predict_false(cond)) \
133 #define SLOGE_IF(cond, ...) \ argument
[all …]
/system/logging/liblog/include_vndk/log/
Dlog_main.h87 #define android_vprintLog(prio, cond, tag, ...) \ argument
122 #define android_printAssert(cond, tag, ...) \ argument
123 __android_log_assert(cond, tag, \
134 #define LOG_ALWAYS_FATAL_IF(cond, ...) \ argument
135 ((__predict_false(cond)) ? (__FAKE_USE_VA_ARGS(__VA_ARGS__), \
136 ((void)android_printAssert(#cond, LOG_TAG, ##__VA_ARGS__))) \
153 #define LOG_FATAL_IF(cond, ...) __FAKE_USE_VA_ARGS(__VA_ARGS__) argument
162 #define LOG_FATAL_IF(cond, ...) LOG_ALWAYS_FATAL_IF(cond, ##__VA_ARGS__) argument
175 #define ALOG_ASSERT(cond, ...) LOG_FATAL_IF(!(cond), ##__VA_ARGS__) argument
214 #define ALOGV_IF(cond, ...) __FAKE_USE_VA_ARGS(__VA_ARGS__) argument
[all …]
Dlog_system.h62 #define SLOGV_IF(cond, ...) ((void)0) argument
64 #define SLOGV_IF(cond, ...) \ argument
65 ((__predict_false(cond)) \
82 #define SLOGD_IF(cond, ...) \ argument
83 ((__predict_false(cond)) \
99 #define SLOGI_IF(cond, ...) \ argument
100 ((__predict_false(cond)) \
116 #define SLOGW_IF(cond, ...) \ argument
117 ((__predict_false(cond)) \
133 #define SLOGE_IF(cond, ...) \ argument
[all …]
Dlog_radio.h64 #define RLOGV_IF(cond, ...) ((void)0) argument
66 #define RLOGV_IF(cond, ...) \ argument
67 ((__predict_false(cond)) \
84 #define RLOGD_IF(cond, ...) \ argument
85 ((__predict_false(cond)) \
101 #define RLOGI_IF(cond, ...) \ argument
102 ((__predict_false(cond)) \
118 #define RLOGW_IF(cond, ...) \ argument
119 ((__predict_false(cond)) \
135 #define RLOGE_IF(cond, ...) \ argument
[all …]
/system/nvram/core/tests/
Dgtest_stubs.h33 #define ASSERT_MSG(cond) \ argument
34 if (!(cond)) { \
36 fprintf(stderr, "Assertion failed: " #cond "\n"); \
39 #define ASSERT_TRUE(cond) ASSERT_MSG(cond) argument
42 #define EXPECT_MSG(cond) \ argument
43 if (!(cond)) { \
45 fprintf(stderr, "Expectation failed: " #cond "\n"); \
47 #define EXPECT_TRUE(cond) EXPECTED_MSG(cond) argument
/system/chre/chpp/platform/linux/include/chpp/platform/
Dplatform_condition_variable.h32 pthread_cond_t cond; // Condition variable member
36 pthread_cond_init(&cv->cond, NULL); in chppConditionVariableInit()
41 pthread_cond_destroy(&cv->cond); in chppConditionVariableDeinit()
46 return pthread_cond_wait(&cv->cond, &mutex->lock) == 0; in chppConditionVariableWait()
59 return pthread_cond_timedwait(&cv->cond, &mutex->lock, &now) == 0; in chppConditionVariableTimedWait()
64 pthread_cond_signal(&cv->cond); in chppConditionVariableSignal()
Dplatform_notifier.h30 pthread_cond_t cond; // Condition variable member
/system/chre/chpp/include/chpp/
Dmacros.h103 #define CHPP_STATIC_ASSERT4(cond, var) typedef char var[(!!(cond)) * 2 - 1]
104 #define CHPP_STATIC_ASSERT3(cond, line) \
105 CHPP_STATIC_ASSERT4(cond, static_assertion_at_line_##line)
106 #define CHPP_STATIC_ASSERT2(cond, line) CHPP_STATIC_ASSERT3(cond, line)
107 #define CHPP_STATIC_ASSERT(cond, msg) CHPP_STATIC_ASSERT2(cond, __LINE__)
/system/chre/std_overrides/include/
Dassert.h20 #define assert(cond) ((void)0) argument
22 #define assert(cond) \ argument
24 if (!(cond)) { \
/system/chre/chpp/platform/linux/
Dnotifier.c36 pthread_cond_init(&notifier->cond, NULL); in chppPlatformNotifierInit()
40 pthread_cond_destroy(&notifier->cond); in chppPlatformNotifierDeinit()
58 pthread_cond_wait(&notifier->cond, &notifier->mutex.lock); in chppPlatformNotifierWait()
86 pthread_cond_timedwait(&notifier->cond, &notifier->mutex.lock, &absTime); in chppPlatformNotifierTimedWait()
102 pthread_cond_signal(&notifier->cond); in chppPlatformNotifierSignal()
/system/logging/liblog/
DREADME.md23 ALOGV_IF(cond, format, ...)
24 SLOGV_IF(cond, format, ...)
25 RLOGV_IF(cond, format, ...)
30 ALOGD_IF(cond, format, ...)
31 SLOGD_IF(cond, format, ...)
32 RLOGD_IF(cond, format, ...)
37 ALOGI_IF(cond, format, ...)
38 SLOGI_IF(cond, format, ...)
39 RLOGI_IF(cond, format, ...)
44 ALOGW_IF(cond, format, ...)
[all …]
/system/nvram/messages/include/nvram/messages/
Dcompiler.h31 #define NVRAM_CHECK(cond) if (!(cond)) abort() argument
/system/tools/hidl/host_utils/
DFormatter.cpp81 Formatter& Formatter::sIf(const std::string& cond, const std::function<void(void)>& block) { in sIf() argument
82 (*this) << "if (" << cond << ") "; in sIf()
86 Formatter& Formatter::sElseIf(const std::string& cond, const std::function<void(void)>& block) { in sElseIf() argument
87 (*this) << " else if (" << cond << ") "; in sElseIf()
116 Formatter& Formatter::sWhile(const std::string& cond, const std::function<void(void)>& block) { in sWhile() argument
117 (*this) << "while (" << cond << ") "; in sWhile()
/system/netd/server/
DNdcDispatcher.h115 void sendGenericOkFail(NdcClient* cli, int cond) const;
134 int sendGenericOkFail(NdcClient* cli, int cond) const;
147 int sendGenericOkFail(NdcClient* cli, int cond) const;
/system/tools/hidl/test/hidl_test/
DFooCallback.cpp80 bool cond; in reportResults() local
83 while ((cond = ((!invokeInfo[0].invoked || in reportResults()
107 leftToWaitNs, cond); in reportResults()
/system/tools/hidl/host_utils/include/hidl-util/
DFormatter.h117 Formatter& sIf(const std::string& cond, const std::function<void(void)>& block);
118 Formatter& sElseIf(const std::string& cond, const std::function<void(void)>& block);
141 Formatter& sWhile(const std::string& cond, const std::function<void(void)>& block);
/system/libhwbinder/vts/performance/
DLatency.cpp29 #define ASSERT(cond) \ argument
31 if (!(cond)) { \
32 cerr << __func__ << ":" << __LINE__ << " condition:" << #cond << " failed\n" << endl; \
39 int cond = (stat); \
40 ASSERT(cond); \
DPerfTest.cpp26 #define ASSERT(cond) \ argument
28 if (!(cond)) { \
29 cerr << __func__ << ":" << __LINE__ << " condition:" << #cond << " failed\n" << endl; \
DBenchmark_throughput.cpp40 #define ASSERT_TRUE(cond) \ argument
42 if (!(cond)) {\
43 cerr << __func__ << ":" << __LINE__ << " condition:" << #cond << " failed\n" << endl; \
/system/extras/simpleperf/scripts/
Dsimpleperf_report_lib.py48 def _check(cond: bool, failmsg: str):
49 if not cond:
330 cond: bool = self._SetLogSeverityFunc(self.getInstance(), _char_pt(log_level))
331 _check(cond, 'Failed to set log level')
335 cond: bool = self._SetSymfsFunc(self.getInstance(), _char_pt(symfs_dir))
336 _check(cond, 'Failed to set symbols directory')
340 cond: bool = self._SetRecordFileFunc(self.getInstance(), _char_pt(record_file))
341 _check(cond, 'Failed to set record file')
373 cond: bool = self._SetKallsymsFileFunc(self.getInstance(), _char_pt(kallsym_file))
374 _check(cond, 'Failed to set kallsyms file')
/system/extras/alloc-stress/
Dalloc-stress.cpp28 #define ASSERT_TRUE(cond) \ argument
30 if (!(cond)) { \
31 cerr << __func__ << "( " << getpid() << "):" << __LINE__ << " condition:" << #cond \
/system/core/fastboot/fuzzy_fastboot/
Dextensions.cpp70 bool XMLAssert(bool cond, const tinyxml2::XMLElement* elem, const char* msg) { in XMLAssert() argument
71 if (!cond) { in XMLAssert()
74 return !cond; in XMLAssert()
/system/logging/liblog/include/android/
Dlog.h140 void __android_log_assert(const char* cond, const char* tag, const char* fmt, ...)

12