Home
last modified time | relevance | path

Searched refs:assert (Results 1 – 25 of 111) sorted by relevance

12345

/system/keymaster/include/keymaster/
DUniquePtr.h187 static void assert(bool b) {
202 assert(*p == 123);
216 assert(cCount == 1);
218 assert(cCount == 0);
223 assert(cCount == 1);
226 assert(cCount == 1);
231 assert(cCount == 1);
233 assert(cCount == 1);
235 assert(cCount == 0);
244 assert(cCount == 4);
[all …]
/system/nfc/utils/
Dringbuffer.cc50 assert(rb); in ringbuffer_available()
55 assert(rb); in ringbuffer_size()
60 assert(rb); in ringbuffer_insert()
61 assert(p); in ringbuffer_insert()
75 assert(rb); in ringbuffer_delete()
88 assert(rb); in ringbuffer_peek()
89 assert(p); in ringbuffer_peek()
90 assert(offset >= 0); in ringbuffer_peek()
91 assert((size_t)offset <= ringbuffer_size(rb)); in ringbuffer_peek()
107 assert(rb); in ringbuffer_pop()
[all …]
/system/tools/hidl/docs/src/parser/elements/declarations/
DInterfaceDeclarationParser.kt36 assert(tokens.isNotEmpty()) in parseTokens()
37 assert(tokens.first().identifier == TokenGrammar.INTERFACE) in parseTokens()
38 assert(tokens.last().identifier == TokenGrammar.SEMICOLON) in parseTokens()
42 assert(sigToks[1].category == TokenCategory.Word) in parseTokens()
43assert(sigToks.last().category == TokenCategory.Word) //either interface name or extends name in parseTokens()
DMethodDeclarationParser.kt41 assert(tokens.last().identifier == TokenGrammar.SEMICOLON) in parseTokens()
58 assert(iter.hasNext()) in parseTokens()
64 assert(iter.hasNext()) in parseTokens()
71 assert(iter.hasNext()) in parseTokens()
75 assert(token.identifier == TokenGrammar.SEMICOLON) in parseTokens()
DTypedefDeclarationParser.kt32 assert(tokens.isNotEmpty()) in parseTokens()
33 assert(tokens.first().identifier == TokenGrammar.TYPEDEF) in parseTokens()
34 assert(tokens.last().identifier == TokenGrammar.SEMICOLON) in parseTokens()
DEnumDeclarationParser.kt41 assert(token.identifier == TokenGrammar.ENUM) in parseTokens()
42 assert(tokens.last().identifier == TokenGrammar.SEMICOLON) in parseTokens()
55 assert(iter.hasNext()) in parseTokens()
68 assert(statementTokens.isNotEmpty()) in parseTokens()
95 assert(tokens.isNotEmpty())
DCompoundDeclarationParser.kt42 assert(token.identifier == TokenGrammar.STRUCT || token.identifier == TokenGrammar.UNION) in parseTokens()
43 assert(tokens.last().identifier == TokenGrammar.SEMICOLON) in parseTokens()
79 assert(statementTokens.first().category == TokenCategory.TypeDef) in parseTokens()
89 assert(statementTokens.size > 1) in parseTokens()
/system/core/libmemunreachable/
DAllocator.cpp151 assert(map_size > size); in MapAligned()
152 assert(ptr != NULL); in MapAligned()
215 assert(count == sizeof(Chunk)); in operator new()
226 assert(reinterpret_cast<Chunk*>(ptr) == ptr_to_chunk(ptr)); in operator delete()
248 assert(free_count_ > 0); in Alloc()
252 assert(i < arraysize(free_bitmap_)); in Alloc()
254 assert(free_bitmap_[i] & (1U << bit)); in Alloc()
257 assert(n < max_allocations_); in Alloc()
260 assert(page / 32 < arraysize(dirty_pages_)); in Alloc()
272 assert(is_chunk(ptr)); in Free()
[all …]
/system/core/trusty/storage/proxy/
Dipc.c40 assert(tipc_fd == -1); in ipc_connect()
61 assert(tipc_fd >= 0); in ipc_disconnect()
72 assert(tipc_fd >= 0); in ipc_get_msg()
101 assert(tipc_fd >= 0); in ipc_respond()
/system/extras/perfprofd/tests/
Dperfprofdmockutils.cc34 assert(mock_log); in append_to_log()
40 assert(!mock_log); in mock_perfprofdutils_init()
46 assert(mock_log); in mock_perfprofdutils_finish()
53 assert(mock_log); in mock_perfprofdutils_getlogged()
/system/extras/tests/lib/testUtil/
DtestUtil.c105 assert(first != NULL); in tsDelta()
106 assert(second != NULL); in tsDelta()
107 assert(first->tv_nsec >= 0 && first->tv_nsec < nSecsPerSec); in tsDelta()
108 assert(second->tv_nsec >= 0 && second->tv_nsec < nSecsPerSec); in tsDelta()
128 assert(first != NULL); in tvDelta()
129 assert(second != NULL); in tvDelta()
130 assert(first->tv_usec >= 0 && first->tv_usec < uSecsPerSec); in tvDelta()
131 assert(second->tv_usec >= 0 && second->tv_usec < uSecsPerSec); in tvDelta()
342 assert((ALEN(line) - 4) >= (linep - line)); in testXDump()
/system/keymaster/android_keymaster/
Doperation.cpp63 assert(false); in is_public_key_algorithm()
85 assert(false); in is_public_key_operation()
153 assert(input_consumed == input.available_read()); in UpdateForFinish()
154 assert(output_params.empty()); in UpdateForFinish()
155 assert(output.available_read() == 0); in UpdateForFinish()
/system/core/lmkd/
Dstatslog.h45 assert(log_ctx != NULL); in statslog_init()
46 assert(enable_stats_log != NULL); in statslog_init()
55 assert(log_ctx != NULL); in statslog_destroy()
/system/sepolicy/tools/
Dcheckfc.c49 } assert; member
174 uint32_t len = ebitmap_length(&global_state.assert.set); in validate()
177 &global_state.assert.set); in validate()
180 dump_char_array(stderr, global_state.assert.attrs); in validate()
229 ebitmap_destroy(&global_state.assert.set); in cleanup()
310 global_state.assert.attrs = filemode_to_assert_attrs(mode); in do_fc_check_and_die_on_error()
312 … bool ret = ebitmap_attribute_assertion_init(&global_state.assert.set, global_state.assert.attrs); in do_fc_check_and_die_on_error()
/system/netd/resolv/
Dgetaddrinfo.cpp217 assert(p != NULL); in str2number()
282 assert(res != nullptr); in android_getaddrinfofornetcontext()
283 assert(netcontext != nullptr); in android_getaddrinfofornetcontext()
443 assert(pai != NULL); in explore_fqdn()
446 assert(res != NULL); in explore_fqdn()
485 assert(pai != NULL); in explore_null()
487 assert(res != NULL); in explore_null()
539 assert(pai != NULL); in explore_numeric()
542 assert(res != NULL); in explore_numeric()
598 assert(pai != NULL); in explore_numeric_scope()
[all …]
/system/extras/verity/fec/
Dimage.cpp53 assert(ctx->input == ctx->output); in image_free()
138 assert(ctx->pos % FEC_BLOCKSIZE == 0); in file_image_load()
147 assert(ctx->roots > 0 && ctx->roots < FEC_RSM); in image_load()
194 assert(ctx->rounds > 0); /* image_load should be called first */ in image_ecc_new()
226 assert(sizeof(fec_header) <= FEC_BLOCKSIZE); in image_ecc_load()
294 assert(2 * sizeof(fec_header) <= FEC_BLOCKSIZE); in image_ecc_save()
313 assert(ctx->fec_filename); in image_ecc_save()
365 assert(ctx->rounds > 0); in image_process()
418 assert(args[i].start < args[i].end); in image_process()
419 assert((args[i].end - args[i].start) % ctx->rs_n == 0); in image_process()
/system/chre/platform/linux/include/chre/target_platform/
Dassert.h79 assert(condition); \
85 #define CHRE_ASSERT(condition) assert(condition)
/system/keymaster/km_openssl/
Dblock_cipher_operation.cpp48 assert(false /* Can't get here */); in allows_padding()
204 assert(output_written >= 0); in Finish()
205 assert(static_cast<size_t>(output_written) <= block_size_bytes()); in Finish()
220 assert(false); in need_iv()
289 assert(tag_length_ > 0); in HandleAad()
290 assert(error); in HandleAad()
313 assert(aad.data_length == 0); in HandleAad()
361 assert(output); in InternalUpdate()
362 assert(error); in InternalUpdate()
504 assert(tag_buf_unused() == 0); in ProcessAllButTagLengthBytes()
[all …]
Dattestation_record.cpp65 assert(false); in get_uint32_value()
73 assert((dest_integer == nullptr) ^ (dest_integer_set == nullptr)); in insert_integer()
74 assert(value); in insert_integer()
92 assert(false); // Should never get here. in insert_integer()
99 assert(record); in build_auth_list()
275 assert((keymaster_tag_repeatable(entry.tag) && integer_set) || in build_auth_list()
291 assert((keymaster_tag_repeatable(entry.tag) && integer_set) || in build_auth_list()
318 assert(bool_ptr); in build_auth_list()
327 assert(string_ptr); in build_auth_list()
373 assert(asn1_key_desc && asn1_key_desc_len); in build_attestation_record()
[all …]
/system/tools/hidl/docs/src/parser/elements/
DEntryParser.kt95 assert(peekToken(iter)!!.identifier == TokenGrammar.DOC_START) in parseTokens()
97 assert(peekPreviousToken(iter)!!.identifier == TokenGrammar.DOC_END) in parseTokens()
130 assert(token.identifier != TokenGrammar.AT && token.category != TokenCategory.Annotation) in parseTokens()
DDocParser.kt60 assert(token.identifier == TokenGrammar.DOC_START) in parseTokens()
61 assert(tokens.last().identifier == TokenGrammar.DOC_END) in parseTokens()
/system/core/libutils/
DFileMap.cpp177 assert(fd >= 0); in create()
178 assert(offset >= 0); in create()
179 assert(length > 0); in create()
236 assert(false); in advise()
/system/extras/ioshark/
Dioshark_bench_mmap.c68 assert(mio->num_entries < MMAP_ENTS + 1); in setup_mmap_io_state()
186 assert(offset + len <= statbuf.st_size); in ioshark_handle_mmap()
194 assert(mio.num_entries > 0); in ioshark_handle_mmap()
196 assert((offset + len) <= in ioshark_handle_mmap()
/system/keymaster/key_blob_utils/
Docb_utils.cpp123 assert(ciphertext && tag); in OcbEncryptKey()
150 assert(ae_err == static_cast<int>(plaintext.key_material_size)); in OcbEncryptKey()
159 assert(plaintext); in OcbDecryptKey()
190 assert(ae_err == static_cast<int>(ciphertext.key_material_size)); in OcbDecryptKey()
/system/chre/external/flatbuffers/include/flatbuffers/
Dflatbuffers.h57 #ifdef assert
58 #define FLATBUFFERS_PRIOR_ASSERT assert
59 #undef assert
61 #define assert CHRE_ASSERT macro
183 assert(*reinterpret_cast<char *>(&endiantest) == FLATBUFFERS_LITTLEENDIAN); in EndianCheck()
215 assert(0); in EndianSwap()
389 assert(i < size());
415 assert(i < size());
423 assert(i < size());
424 assert(sizeof(T) == sizeof(uoffset_t));
[all …]

12345