/system/gatekeeper/include/gatekeeper/ |
D | UniquePtr.h | 187 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/ |
D | ringbuffer.cc | 52 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/security/keystore2/src/km_compat/ |
D | lib.rs | 63 assert!(hinfo.is_ok()); in test_get_hardware_info() 70 assert!(result.is_ok(), "{:?}", result); in test_add_rng_entropy() 134 assert!(creation_result.certificateChain.len() > 1); in generate_rsa_key() 179 assert!(result.is_ok() || result.is_err()); in test_import_wrapped_key() 188 assert!(result.is_ok() || result.is_err()); in test_upgrade_key() 196 assert!(result.is_ok(), "{:?}", result); in test_delete_key() 203 assert!(result.is_ok(), "{:?}", result); in test_delete_all_keys() 210 assert!(result.is_err()); in test_destroy_attestation_ids() 264 assert!(result.is_ok(), "{:?}", result); in begin() 275 assert!(result.is_ok(), "{:?}", result); in test_begin_abort() [all …]
|
/system/bt/gd/rust/shim/src/ |
D | stack.rs | 38 assert!(init_flags::gd_rust_is_enabled()); in stack_create() 50 assert!(init_flags::gd_rust_is_enabled()); in stack_start() 54 assert!(init_flags::gd_rust_is_enabled()); in stack_stop() 60 assert!(init_flags::gd_rust_is_enabled()); in get_hci() 61 assert!(init_flags::gd_hci_is_enabled()); in get_hci() 70 assert!(init_flags::gd_rust_is_enabled()); in get_controller() 71 assert!(init_flags::gd_controller_is_enabled()); in get_controller()
|
D | message_loop_thread.rs | 40 assert!(init_flags::gd_rust_is_enabled()); in main_message_loop_thread_create() 54 assert!(init_flags::gd_rust_is_enabled()); in main_message_loop_thread_start() 64 assert!(init_flags::gd_rust_is_enabled()); in main_message_loop_thread_do_delayed()
|
/system/security/keystore2/src/ |
D | permission.rs | 651 assert!(result.is_err(), "Permission check should have failed."); 675 assert!(check_keystore_permission(&system_server_ctx, KeystorePerm::add_auth()).is_ok()); in check_keystore_permission_test() 676 assert!(check_keystore_permission(&system_server_ctx, KeystorePerm::clear_ns()).is_ok()); in check_keystore_permission_test() 677 assert!(check_keystore_permission(&system_server_ctx, KeystorePerm::get_state()).is_ok()); in check_keystore_permission_test() 678 assert!(check_keystore_permission(&system_server_ctx, KeystorePerm::lock()).is_ok()); in check_keystore_permission_test() 679 assert!(check_keystore_permission(&system_server_ctx, KeystorePerm::reset()).is_ok()); in check_keystore_permission_test() 680 assert!(check_keystore_permission(&system_server_ctx, KeystorePerm::unlock()).is_ok()); in check_keystore_permission_test() 681 assert!(check_keystore_permission(&system_server_ctx, KeystorePerm::change_user()).is_ok()); in check_keystore_permission_test() 682 assert!( in check_keystore_permission_test() 685 assert!(check_keystore_permission(&system_server_ctx, KeystorePerm::clear_uid()).is_ok()); in check_keystore_permission_test() [all …]
|
D | id_rotation.rs | 92 assert!(!temp_file_path.exists()); in test_had_factory_reset_since_id_rotation() 95 assert!(id_rotation_state.had_factory_reset_since_id_rotation()?); in test_had_factory_reset_since_id_rotation() 98 assert!(temp_file_path.exists()); in test_had_factory_reset_since_id_rotation() 101 assert!(id_rotation_state.had_factory_reset_since_id_rotation()?); in test_had_factory_reset_since_id_rotation() 118 assert!(!id_rotation_state.had_factory_reset_since_id_rotation()?); in test_had_factory_reset_since_id_rotation()
|
D | legacy_blob.rs | 1183 assert!(LegacyBlobLoader::decode_alias(ENCODED_ALIAS_ERROR_UTF8) in decode_encode_alias_test() 1207 assert!(!blob.is_encrypted()); in read_golden_key_blob_test() 1208 assert!(!blob.is_fallback()); in read_golden_key_blob_test() 1209 assert!(!blob.is_strongbox()); in read_golden_key_blob_test() 1210 assert!(!blob.is_critical_to_device_encryption()); in read_golden_key_blob_test() 1217 assert!(!blob.is_encrypted()); in read_golden_key_blob_test() 1218 assert!(!blob.is_fallback()); in read_golden_key_blob_test() 1219 assert!(!blob.is_strongbox()); in read_golden_key_blob_test() 1220 assert!(!blob.is_critical_to_device_encryption()); in read_golden_key_blob_test() 1253 assert!(blob.is_encrypted()); in read_aes_gcm_encrypted_key_blob_test() [all …]
|
/system/memory/libmemunreachable/ |
D | Allocator.cpp | 151 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/ |
D | ipc.c | 40 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/keymaster/include/keymaster/ |
D | remote_provisioning_utils.h | 44 assert(isOk()); 48 assert(isOk()); 52 assert(isOk()); 57 assert(!isOk()); in moveError()
|
/system/extras/tests/lib/testUtil/ |
D | testUtil.c | 105 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() 343 assert((ALEN(line) - 4) >= (linep - line)); in testXDump()
|
/system/chre/std_overrides/include/ |
D | assert.h | 20 #define assert(cond) ((void)0) macro 22 #define assert(cond) \ macro
|
/system/bt/gd/packet/parser/ |
D | packetgen.gni | 35 assert(defined(sources), "sources must be set") 36 assert(defined(include), "include must be set") 37 assert(defined(source_root), "source root must be set") 56 assert(shards <= 10, "Maximum supported shards is 10.") 108 assert(defined(sources), "sources must be set") 109 assert(defined(include), "include must be set") 110 assert(defined(source_root), "source root must be set") 157 assert(defined(sources), "sources must be set") 158 assert(defined(include), "include must be set") 159 assert(defined(source_root), "source root must be set")
|
/system/keymaster/android_keymaster/ |
D | operation.cpp | 59 assert(false); in is_public_key_algorithm() 82 assert(false); in is_public_key_operation() 158 assert(input_consumed == input.available_read()); in UpdateForFinish() 159 assert(output_params.empty()); in UpdateForFinish() 160 assert(output.available_read() == 0); in UpdateForFinish()
|
/system/core/trusty/fuzz/ |
D | counters.cpp | 48 assert(fuzzer::ExtraCountersBegin()); in ExtraCounters() 49 assert(fuzzer::ExtraCountersEnd()); in ExtraCounters() 54 assert(end - begin <= sizeof(counters)); in ExtraCounters()
|
/system/sepolicy/tools/ |
D | checkfc.c | 49 } 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/ |
D | bundler.cc | 44 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()
|
D | bundler.gni | 30 assert(defined(include_dir), "include_dir must be set") 31 assert(defined(sources), "sources must be set") 117 assert(defined(deps), "deps must be set") 118 assert(defined(invoker.root_name), "root_name must be set") 119 assert(defined(invoker.filename), "filename must be set") 120 assert(defined(invoker.namespace), "namespace must be set")
|
/system/extras/verity/fec/ |
D | image.cpp | 53 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/ |
D | block_cipher_operation.cpp | 46 assert(false /* Can't get here */); in allows_padding() 207 assert(output_written >= 0); in Finish() 208 assert(static_cast<size_t>(output_written) <= block_size_bytes()); in Finish() 223 assert(false); in need_iv() 292 assert(tag_length_ > 0); in HandleAad() 293 assert(error); in HandleAad() 316 assert(aad.data_length == 0); in HandleAad() 364 assert(output); in InternalUpdate() 365 assert(error); in InternalUpdate() 507 assert(tag_buf_unused() == 0); in ProcessAllButTagLengthBytes() [all …]
|
/system/extras/ioshark/ |
D | ioshark_bench_mmap.c | 68 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/core/libutils/ |
D | FileMap.cpp | 177 assert(fd >= 0); in create() 178 assert(offset >= 0); in create() 179 assert(length > 0); in create() 240 assert(false); in advise()
|
/system/keymaster/key_blob_utils/ |
D | ocb_utils.cpp | 117 assert(ciphertext && tag); in OcbEncryptKey() 140 assert(ae_err == static_cast<int>(plaintext.key_material_size)); in OcbEncryptKey() 149 assert(plaintext); in OcbDecryptKey() 177 assert(ae_err == static_cast<int>(ciphertext.key_material_size)); in OcbDecryptKey()
|
/system/core/trusty/coverage/ |
D | coverage.cpp | 203 assert(shm_); in GetRegionBounds() 224 assert(shm_); in GetRawData() 238 assert(region->second <= record_len_); in GetRawCounts() 252 assert(region->second <= record_len_); in GetRawPCs() 259 assert(shm_); in TotalEdgeCounts()
|