Searched refs:assert (Results 1 - 25 of 49) sorted by relevance

12

/system/extras/tests/bionic/libstdc++/
H A Dtest_cassert.cpp41 #ifndef assert
42 #error "assert must be a macro"
/system/extras/tests/bionic/libc/glibc/assert/
H A Dtest-assert.c1 /* Test assert().
24 #include <assert.h>
28 assert (1 == 2);
34 assert (1 == 1);
39 #include <assert.h>
43 assert (2 == 3);
/system/extras/fatblock/
H A Dfat.c17 #include <assert.h>
29 assert(de);
39 assert(de);
40 assert(name);
H A Dfdpool.c17 #include <assert.h>
40 assert(node);
55 assert(prev);
56 assert(next);
68 assert(tail != &fdpool_head);
77 assert(pfd);
142 assert(pfd);
H A Dread.c17 #include <assert.h>
31 assert(buf);
32 assert(out);
44 assert(off < buf_len);
45 assert(off + len <= buf_len);
57 assert(f);
78 assert(f);
79 assert(buf);
128 assert(d);
129 assert(bu
[all...]
H A Dfs.c17 #include <assert.h>
31 assert(fs);
32 assert(extent);
52 assert(fs);
84 assert(e_rel_start < e_len);
85 assert(e_rel_start + rel_len <= e_len);
86 assert(r_rel_start < len);
87 assert(r_rel_start + rel_len <= len);
104 assert(fs);
112 assert(f
[all...]
H A Dfatblock.c17 #include <assert.h>
/system/core/libcutils/
H A Darray.c18 #include <assert.h>
37 assert(array != NULL);
93 assert(array != NULL);
105 assert(array != NULL);
106 assert(index < array->size);
107 assert(index >= 0);
141 assert(array != NULL);
142 assert(newSize >= 0);
164 assert(array != NULL);
H A Dbuffer.c19 #include <assert.h>
78 assert(buffer->size < buffer->expected);
97 assert(buffer->remaining > 0);
98 assert(buffer->remaining <= buffer->size);
H A Drecord_stream.c20 #include <assert.h>
49 assert (maxRecordLen <= 0xffff);
148 assert (0);
H A Dstrdup16to8.c21 #include <assert.h>
H A Dproperties.c24 #include <assert.h>
127 assert(gPropFd == -1);
194 assert(0);
H A Dhashmap.c18 #include <assert.h>
45 assert(hash != NULL);
46 assert(equals != NULL);
H A Dstrdup8to16.c19 #include <assert.h>
/system/extras/libublock/
H A Dublock.c17 #include <assert.h>
54 assert(ub_ctx);
61 assert(ub_ctx);
75 assert(ub_ctx);
76 assert(in);
77 assert(out);
110 assert(ub_ctx);
111 assert(in);
112 assert(out);
132 assert(ub_ct
[all...]
/system/core/adb/
H A Dget_my_path_windows.c18 #include <assert.h>
/system/core/liblog/
H A Dlogprint.c26 #include <assert.h>
685 assert(entry->messageLen == (messageBufLen-1) - outRemaining);
955 assert (ANDROID_LOG_INFO == filterPriForTag(p_format, "random"));
956 assert(android_log_shouldPrintLine(p_format, tag, ANDROID_LOG_DEBUG) == 0);
958 assert (ANDROID_LOG_DEBUG == filterPriForTag(p_format, "random"));
959 assert(android_log_shouldPrintLine(p_format, tag, ANDROID_LOG_DEBUG) > 0);
961 assert (ANDROID_LOG_VERBOSE == filterPriForTag(p_format, "random"));
962 assert(android_log_shouldPrintLine(p_format, tag, ANDROID_LOG_DEBUG) > 0);
964 assert (ANDROID_LOG_INFO == filterPriForTag(p_format, "random"));
965 assert(android_log_shouldPrintLin
[all...]
/system/extras/tests/lib/testUtil/
H A DtestUtil.c20 #include <assert.h>
107 assert(first != NULL);
108 assert(second != NULL);
109 assert(first->tv_nsec >= 0 && first->tv_nsec < nSecsPerSec);
110 assert(second->tv_nsec >= 0 && second->tv_nsec < nSecsPerSec);
130 assert(first != NULL);
131 assert(second != NULL);
132 assert(first->tv_usec >= 0 && first->tv_usec < uSecsPerSec);
133 assert(second->tv_usec >= 0 && second->tv_usec < uSecsPerSec);
344 assert((ALE
[all...]
/system/core/libctest/
H A Dctest.c17 #include <assert.h>
50 assert(suite != NULL);
53 assert(suite->out != NULL);
60 assert(testSuite->size <= MAX_TESTS);
/system/extras/tests/bionic/libc/bionic/
H A Dtest_mutex.c44 #define assert(cond) do { if ( !(cond) ) panic( "%s:%d: assertion failure: %s\n", __FILE__, __LINE__, #cond ); } while (0) macro
66 assert( attr_type == PTHREAD_MUTEX_NORMAL );
70 assert( attr_type == PTHREAD_MUTEX_ERRORCHECK );
74 assert( attr_type == PTHREAD_MUTEX_RECURSIVE );
/system/core/libsparse/
H A Dbacked_block.c17 #include <assert.h>
77 assert(bb->type == BACKED_BLOCK_DATA);
83 assert(bb->type == BACKED_BLOCK_FILE);
89 assert(bb->type == BACKED_BLOCK_FD);
95 assert(bb->type == BACKED_BLOCK_FILE || bb->type == BACKED_BLOCK_FD);
105 assert(bb->type == BACKED_BLOCK_FILL);
201 assert(a->block < b->block);
/system/core/libpixelflinger/
H A Dbuffer.cpp19 #include <assert.h>
114 assert((x < s->width) && (y < s->height));
165 assert((x < s->width) && (y < s->height));
280 assert(h);
294 assert(sbits);
332 assert(sbits>=dbits);
/system/core/libpixelflinger/tinyutils/
H A DKeyedVector.h13 #include <assert.h>
118 assert(i>=0);
135 assert(i>=0);
H A DSortedVector.h20 #include <assert.h>
185 assert( index<size() );
196 assert( (index>0 ? index : -index)<size() );
/system/core/toolbox/cp/
H A Dcp.c68 #include <assert.h>
314 assert(dnesp < MAXPATHLEN);
323 assert(dnesp >= 0);

Completed in 297 milliseconds

12