Home
last modified time | relevance | path

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

1234

/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/gatekeeper/include/gatekeeper/
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.cc52 assert(rb); in ringbuffer_available()
57 assert(rb); in ringbuffer_size()
62 assert(rb); in ringbuffer_insert()
63 assert(p); in ringbuffer_insert()
77 assert(rb); in ringbuffer_delete()
90 assert(rb); in ringbuffer_peek()
91 assert(p); in ringbuffer_peek()
92 assert(offset >= 0); in ringbuffer_peek()
93 assert((size_t)offset <= ringbuffer_size(rb)); in ringbuffer_peek()
109 assert(rb); in ringbuffer_pop()
[all …]
/system/memory/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/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()
162 assert(input_consumed == input.available_read()); in UpdateForFinish()
163 assert(output_params.empty()); in UpdateForFinish()
164 assert(output.available_read() == 0); in UpdateForFinish()
Dserializable.cpp120 assert(buffer_size_ >= write_position_); in available_write()
125 assert(buffer_size_ >= write_position_); in available_read()
126 assert(write_position_ >= read_position_); in available_read()
Dkeymaster_enforcement.cpp490 assert(auth_type_index < static_cast<int>(auth_set.size())); in AuthTokenMatches()
491 assert(auth_timeout_index < static_cast<int>(auth_set.size())); in AuthTokenMatches()
513 assert(auth_set[auth_type_index].tag == KM_TAG_USER_AUTH_TYPE); in AuthTokenMatches()
525 assert(auth_set[auth_timeout_index].tag == KM_TAG_AUTH_TIMEOUT); in AuthTokenMatches()
557 assert(current_time >= iter->access_time); in UpdateKeyAccessTime()
/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/bt/gd/dumpsys/bundler/
Dbundler.cc44 assert(filename != nullptr); in LoadBinarySchema()
45 assert(binary_schema != nullptr); in LoadBinarySchema()
82 assert(builder != nullptr); in CreateBinarySchemaBundle()
83 assert(vector_map != nullptr); in CreateBinarySchemaBundle()
84 assert(bundled_names != nullptr); in CreateBinarySchemaBundle()
124 assert(fp != nullptr); in WriteHeaderFile()
196 assert(filename != nullptr); in ReadBundledSchema()
218 assert(filename != nullptr); in WriteBundledSchema()
/system/chre/platform/linux/include/chre/target_platform/
Dassert.h79 assert(condition); \
85 #define CHRE_ASSERT(condition) assert(condition)
/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/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.cpp68 assert(false); in get_uint32_value()
76 assert((dest_integer == nullptr) ^ (dest_integer_set == nullptr)); in insert_integer()
77 assert(value); in insert_integer()
95 assert(false); // Should never get here. in insert_integer()
102 assert(record); in build_auth_list()
290 assert((keymaster_tag_repeatable(entry.tag) && integer_set) || in build_auth_list()
306 assert((keymaster_tag_repeatable(entry.tag) && integer_set) || in build_auth_list()
333 assert(bool_ptr); in build_auth_list()
342 assert(string_ptr); in build_auth_list()
387 assert(asn1_key_desc && asn1_key_desc_len); in build_attestation_record()
[all …]
/system/core/libutils/
DFileMap.cpp177 assert(fd >= 0); in create()
178 assert(offset >= 0); in create()
179 assert(length > 0); in create()
240 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.cpp122 assert(ciphertext && tag); in OcbEncryptKey()
149 assert(ae_err == static_cast<int>(plaintext.key_material_size)); in OcbEncryptKey()
158 assert(plaintext); in OcbDecryptKey()
189 assert(ae_err == static_cast<int>(ciphertext.key_material_size)); in OcbDecryptKey()
/system/core/debuggerd/libdebuggerd/
Dgwp_asan.cpp163 assert(CrashIsMine() && "HasDeallocationTrace(): Crash is not mine!"); in HasDeallocationTrace()
171 assert(HasDeallocationTrace() && "DumpDeallocationTrace(): No dealloc trace!"); in DumpDeallocationTrace()
193 assert(CrashIsMine() && "HasAllocationTrace(): Crash is not mine!"); in HasAllocationTrace()
198 assert(HasAllocationTrace() && "DumpAllocationTrace(): No dealloc trace!"); in DumpAllocationTrace()
/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 …]
/system/core/libsparse/
Dbacked_block.cpp72 assert(bb->type == BACKED_BLOCK_DATA); in backed_block_data()
77 assert(bb->type == BACKED_BLOCK_FILE); in backed_block_filename()
82 assert(bb->type == BACKED_BLOCK_FD); in backed_block_fd()
87 assert(bb->type == BACKED_BLOCK_FILE || bb->type == BACKED_BLOCK_FD); in backed_block_file_offset()
96 assert(bb->type == BACKED_BLOCK_FILL); in backed_block_fill_val()
185 assert(a->block < b->block); in merge_bb()
/system/keymaster/legacy_support/
Dkeymaster0_engine.cpp44 assert(!instance_); in Keymaster0Engine()
81 assert(key_material); in GenerateRsaKey()
98 assert(key_material); in GenerateEcKey()
116 assert(imported_key); in ImportKey()
248 assert(instance_); in rsa_private_transform()
256 assert(instance_); in ecdsa_sign()
Dkeymaster1_engine.cpp51 assert(rsa_index_ != -1); in Keymaster1Engine()
52 assert(ec_key_index_ != -1); in Keymaster1Engine()
53 assert(keymaster1_device); in Keymaster1Engine()
54 assert(!instance_); in Keymaster1Engine()
82 assert(key_blob); in GenerateKey()
104 assert(output_key_blob); in ImportKey()
Decdsa_keymaster1_operation.h62 assert(super::purpose() != KM_PURPOSE_VERIFY); in EcdsaKeymaster1Operation()
63 assert(super::purpose() != KM_PURPOSE_ENCRYPT); in EcdsaKeymaster1Operation()
/system/core/libcutils/
Drecord_stream.cpp50 assert (maxRecordLen <= 0xffff); in record_stream_new()
149 assert (0); in record_stream_get_next()

1234