Home
last modified time | relevance | path

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

12

/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/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_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/extras/simpleperf/
DRecordFilter.cpp59 RecordFilterCondition& cond = GetCondition(exclude); in AddPids() local
60 cond.used = true; in AddPids()
61 cond.pids.insert(pids.begin(), pids.end()); in AddPids()
65 RecordFilterCondition& cond = GetCondition(exclude); in AddTids() local
66 cond.used = true; in AddTids()
67 cond.tids.insert(tids.begin(), tids.end()); in AddTids()
71 RecordFilterCondition& cond = GetCondition(exclude); in AddProcessNameRegex() local
72 cond.used = true; in AddProcessNameRegex()
73 cond.process_name_regs.emplace_back(process_name, std::regex::optimize); in AddProcessNameRegex()
77 RecordFilterCondition& cond = GetCondition(exclude); in AddThreadNameRegex() local
[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.h102 #define CHPP_STATIC_ASSERT4(cond, var) typedef char var[(!!(cond)) * 2 - 1]
103 #define CHPP_STATIC_ASSERT3(cond, line) \
104 CHPP_STATIC_ASSERT4(cond, static_assertion_at_line_##line)
105 #define CHPP_STATIC_ASSERT2(cond, line) CHPP_STATIC_ASSERT3(cond, line)
106 #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/extras/simpleperf/scripts/
Dsimpleperf_report_lib.py46 def _check(cond: bool, failmsg: str):
47 if not cond:
292 cond: bool = self._SetLogSeverityFunc(self.getInstance(), _char_pt(log_level))
293 _check(cond, 'Failed to set log level')
297 cond: bool = self._SetSymfsFunc(self.getInstance(), _char_pt(symfs_dir))
298 _check(cond, 'Failed to set symbols directory')
302 cond: bool = self._SetRecordFileFunc(self.getInstance(), _char_pt(record_file))
303 _check(cond, 'Failed to set record file')
330 cond: bool = self._SetKallsymsFileFunc(self.getInstance(), _char_pt(kallsym_file))
331 _check(cond, 'Failed to set kallsyms file')
/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/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/netd/server/
DNdcDispatcher.h115 void sendGenericOkFail(NdcClient* cli, int cond) const;
134 int sendGenericOkFail(NdcClient* cli, int cond) const;
154 int sendGenericOkFail(NdcClient* cli, int cond) const;
/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; \
/system/extras/alloc-stress/
Dalloc-stress.cpp26 #define ASSERT_TRUE(cond) \ argument
28 if (!(cond)) { \
29 cerr << __func__ << "( " << getpid() << "):" << __LINE__ << " condition:" << #cond \
/system/bt/btif/include/
Dbtif_common.h39 #define ASSERTC(cond, msg, val) \ argument
41 if (!(cond)) { \
/system/bt/stack/btm/
Dbtm_devctl.cc644 uint8_t cond; in BTM_EnableTestMode() local
650 cond = HCI_DO_AUTO_ACCEPT_CONNECT; in BTM_EnableTestMode()
652 HCI_FILTER_COND_NEW_DEVICE, &cond, sizeof(cond)); in BTM_EnableTestMode()

12