/system/core/adb/ |
H A D | sysdeps_win32.c | 11 #define assert(cond) do { if (!(cond)) fatal( "assertion failed '%s' on %s:%ld\n", #cond, __FILE__, __LINE__ ); } while (0)
|
/system/core/include/android/ |
H A D | log.h | 116 void __android_log_assert(const char *cond, const char *tag,
|
/system/core/include/cutils/ |
H A D | log.h | 84 #define CONDITION(cond) (__builtin_expect((cond)!=0, 0)) 88 #define LOGV_IF(cond, ...) ((void)0) 90 #define LOGV_IF(cond, ...) \ 91 ( (CONDITION(cond)) \ 105 #define LOGD_IF(cond, ...) \ 106 ( (CONDITION(cond)) \ 119 #define LOGI_IF(cond, ...) \ 120 ( (CONDITION(cond)) \ 133 #define LOGW_IF(cond, [all...] |
/system/core/liblog/ |
H A D | logd_write.c | 223 void __android_log_assert(const char *cond, const char *tag, argument 234 /* Msg not provided, log condition. N.B. Do not use cond directly as 238 if (cond) 239 snprintf(buf, LOG_BUF_SIZE, "Assertion failed: %s", cond);
|
/system/core/sh/ |
H A D | error.c | 154 exverror(int cond, const char *msg, va_list ap) argument 161 TRACE(("exverror(%d, \"", cond)); 165 TRACE(("exverror(%d, NULL) pid=%d\n", cond, getpid())); 171 exraise(cond); 189 exerror(int cond, const char *msg, ...) argument 194 exverror(cond, msg, ap);
|
/system/extras/tests/bionic/libc/bionic/ |
H A D | test_mutex.c | 44 #define assert(cond) do { if ( !(cond) ) panic( "%s:%d: assertion failure: %s\n", __FILE__, __LINE__, #cond ); } while (0)
|
/system/extras/tests/bionic/libc/common/ |
H A D | test_cpu_set.c | 37 #define TEST_INT_EQ(cond,exp) \ 39 int _cond = (cond); \ 43 __FUNCTION__, __LINE__, #cond, _cond, _exp);\ 47 #define T(cond) \ 49 if (!(cond)) {\ 51 __FUNCTION__, __LINE__, #cond);\ 56 #define F(cond) \ 58 if (!!(cond)) {\ 60 __FUNCTION__, __LINE__, #cond);\
|
H A D | test_pthread_mutex.c | 98 #define TZERO(cond) \ 99 { int _ret = (cond); if (_ret != 0) ERROR(_ret,"%d:%s", __LINE__, #cond); } 101 #define TTRUE(cond) \ 102 { if (!(cond)) PANIC("%d:%s", __LINE__, #cond); } 104 #define TFALSE(cond) \ 105 { if (!!(cond)) PANIC("%d:%s", __LINE__, #cond); } 107 #define TEXPECT_INT(cond,va [all...] |
H A D | test_pthread_rwlock.c | 97 #define TZERO(cond) \ 98 { int _ret = (cond); if (_ret != 0) ERROR(_ret,"%d:%s", __LINE__, #cond); } 100 #define TTRUE(cond) \ 101 { if (!(cond)) PANIC("%d:%s", __LINE__, #cond); } 103 #define TFALSE(cond) \ 104 { if (!!(cond)) PANIC("%d:%s", __LINE__, #cond); } 106 #define TEXPECT_INT(cond,va [all...] |
/system/media/audio_utils/ |
H A D | echo_reference.c | 58 pthread_cond_t cond; // condition signaled when data is ready to read member in struct:echo_reference 252 pthread_cond_signal(&er->cond); 304 pthread_cond_timedwait_relative_np(&er->cond, &er->lock, &ts); 414 pthread_cond_signal(&er->cond);
|
/system/media/wilhelm/tests/listening/ |
H A D | slesTest_playMuteSolo.cpp | 59 static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; variable 94 ok = pthread_cond_signal(&cond); 312 pthread_cond_wait(&cond, &mutex);
|
/system/media/wilhelm/tests/mimeUri/ |
H A D | slesTestLoopUri.cpp | 40 static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; variable 95 ok = pthread_cond_signal(&cond); 243 pthread_cond_wait(&cond, &mutex);
|
H A D | slesTestSlowDownUri.cpp | 42 static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; variable 140 ok = pthread_cond_signal(&cond); 343 pthread_cond_wait(&cond, &mutex);
|
/system/media/wilhelm/tests/native-media/jni/ |
H A D | native-media-jni.c | 77 pthread_cond_t cond = PTHREAD_COND_INITIALIZER; variable 126 ok = pthread_cond_signal(&cond); 545 ok = pthread_cond_wait(&cond, &mutex);
|
/system/media/wilhelm/tests/sandbox/ |
H A D | reverb.c | 179 static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; variable 214 ok = pthread_cond_signal(&cond); 614 pthread_cond_wait(&cond, &mutex);
|
H A D | xaplay.c | 62 static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; variable 120 ok = pthread_cond_signal(&cond); 470 pthread_cond_wait(&cond, &mutex);
|
/system/netd/ |
H A D | CommandListener.cpp | 899 void CommandListener::BandwidthControlCmd::sendGenericOkFail(SocketClient *cli, int cond) { argument 900 if (!cond) {
|
H A D | CommandListener.h | 114 void sendGenericOkFail(SocketClient *cli, int cond);
|