/system/core/libmemunreachable/tests/ |
D | DisableMalloc_test.cpp | 41 void *ptr1 = malloc(128); in TEST_F() 47 void *ptr2 = malloc(128); in TEST_F() 56 void *ptr = malloc(128); in TEST_F() 62 void* ptr = malloc(128); in TEST_F() 98 void *ptr = malloc(128); in TEST_F()
|
/system/keymaster/ |
D | valgrind.supp | 4 fun:malloc 12 fun:malloc 27 fun:malloc
|
D | soft_keymaster_device.cpp | 313 malloc(sizeof(keymaster_key_characteristics_t))); in BuildCharacteristics() 424 reinterpret_cast<keymaster_algorithm_t*>(malloc(*algorithms_length * sizeof(**algorithms))); in get_supported_algorithms() 460 *modes = reinterpret_cast<keymaster_block_mode_t*>(malloc(*modes_length * sizeof(**modes))); in get_supported_block_modes() 496 *modes = reinterpret_cast<keymaster_padding_t*>(malloc(*modes_length * sizeof(**modes))); in get_supported_padding_modes() 531 *digests = reinterpret_cast<keymaster_digest_t*>(malloc(*digests_length * sizeof(**digests))); in get_supported_digests() 564 reinterpret_cast<keymaster_key_format_t*>(malloc(*formats_length * sizeof(**formats))); in get_supported_import_formats() 597 reinterpret_cast<keymaster_key_format_t*>(malloc(*formats_length * sizeof(**formats))); in get_supported_export_formats() 754 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(key_blob->key_material_size)); in generate_key() 816 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(key_blob->key_material_size)); in generate_key() 945 key_blob->key_material = reinterpret_cast<uint8_t*>(malloc(key_blob->key_material_size)); in import_key() [all …]
|
/system/extras/memory_replay/dumps/ |
D | README | 16 malloc - Allocate memory using the malloc function. 26 <tid>: malloc <ptr> <size> 27 Allocation made by malloc(<size>). <ptr> is the value returned by malloc. 31 100: malloc 0xb48390a0 48
|
/system/core/libion/tests/ |
D | device_test.cpp | 117 void *buf1 = malloc(bigger_than_cache); in blowCache() 118 void *buf2 = malloc(bigger_than_cache); in blowCache() 136 void *alloc = malloc(8192 + 1024); in TEST_F() 170 void *alloc = malloc(8192 + 1024); in TEST_F() 204 void *alloc = malloc(8192 + 1024); in TEST_F() 236 void *alloc = malloc(8192 + 1024); in TEST_F() 270 void *alloc = malloc(8192 + 1024); in TEST_F() 304 void *alloc = malloc(8192 + 1024); in TEST_F() 338 void *alloc = malloc(8192 + 1024); in TEST_F() 372 void *alloc = malloc(8192 + 1024); in TEST_F() [all …]
|
/system/bt/osi/src/ |
D | allocator.c | 30 void *ptr = malloc(real_size); in osi_strdup() 50 void *ptr = malloc(real_size); in osi_strndup() 67 void *ptr = malloc(real_size); in osi_malloc()
|
/system/bt/osi/test/ |
D | allocation_tracker_test.cpp | 30 void *dummy_allocation = malloc(4); in TEST() 51 void *dummy_allocation = malloc(with_canary_size); in TEST()
|
/system/vold/ |
D | Devmapper.cpp | 43 char *buffer = (char *) malloc(1024 * 64); in dumpState() 50 char *buffer2 = (char *) malloc(DEVMAPPER_BUFFER_SIZE); in dumpState() 134 char *buffer = (char *) malloc(DEVMAPPER_BUFFER_SIZE); in lookupActive() 168 char *buffer = (char *) malloc(DEVMAPPER_BUFFER_SIZE); in create() 265 char *buffer = (char *) malloc(DEVMAPPER_BUFFER_SIZE); in destroy()
|
/system/sepolicy/tools/fc_sort/ |
D | fc_sort.c | 348 head = current = (file_context_node_t*)malloc(sizeof(file_context_node_t)); in main() 372 temp = (file_context_node_t *)malloc(sizeof(file_context_node_t)); in main() 423 temp->file_type = (char *)malloc(sizeof(char) * 3); in main() 492 malloc(sizeof(file_context_bucket_t)); in main() 509 malloc(sizeof(file_context_bucket_t)); in main()
|
/system/extras/cpustats/ |
D | cpustats.c | 109 old_cpus = malloc(sizeof(struct cpu_info) * cpu_count); in main() 111 new_cpus = malloc(sizeof(struct cpu_info) * cpu_count); in main() 116 new_cpus[i].freqs = malloc(sizeof(struct freq_info) * new_cpus[i].freq_count); in main() 118 old_cpus[i].freqs = malloc(sizeof(struct freq_info) * old_cpus[i].freq_count); in main() 128 new_total_cpu.freqs = malloc(sizeof(struct freq_info) * new_total_cpu.freq_count); in main() 130 old_total_cpu.freqs = malloc(sizeof(struct freq_info) * old_total_cpu.freq_count); in main()
|
/system/extras/memory_replay/tests/ |
D | ActionTest.cpp | 24 TEST(ActionTest, malloc) { in TEST() argument 55 pointers.Add(0x1234, malloc(10)); in TEST() 105 pointers.Add(0xabcd, malloc(10)); in TEST()
|
/system/core/adf/libadf/ |
D | adf.c | 119 data->attachments = malloc(sizeof(data->attachments[0]) * in adf_get_device_data() 127 malloc(sizeof(data->allowed_attachments[0]) * in adf_get_device_data() 136 data->custom_data = malloc(data->custom_data_size); in adf_get_device_data() 358 data->available_modes = malloc(sizeof(data->available_modes[0]) * in adf_get_interface_data() 365 data->custom_data = malloc(data->custom_data_size); in adf_get_interface_data() 596 data->supported_formats = malloc(sizeof(data->supported_formats[0]) * in adf_get_overlay_engine_data() 603 data->custom_data = malloc(data->custom_data_size); in adf_get_overlay_engine_data() 678 event_ret = malloc(header.length); in adf_read_event()
|
/system/extras/libpagemap/ |
D | pm_memusage.c | 63 p_swap = malloc(sizeof(pm_proportional_swap_t)); in pm_memusage_pswap_create() 103 soff = malloc(sizeof(pm_swap_offset_t)); in pm_memusage_pswap_add_offset()
|
/system/extras/pagecache/ |
D | dumpcache.c | 59 info->name = malloc(strlen(fpath) + 1); in get_file_info() 130 g_files = malloc(INITIAL_NUM_FILES * sizeof(struct file_info*)); in main()
|
/system/core/libcutils/ |
D | load_file.c | 37 data = (char*) malloc(sz + 1); in load_file()
|
D | process_name.c | 50 char* copy = (char*) malloc(len + 1); in set_process_name()
|
D | native_handle.c | 38 native_handle_t* h = malloc(mallocSize); in native_handle_create()
|
D | strdup16to8.c | 164 ret = malloc(len + 1); in strndup16to8()
|
/system/extras/f2fs_utils/ |
D | f2fs_sparseblock.c | 218 cp_block_1 = malloc(F2FS_BLKSIZE); in validate_checkpoint() 231 cp_block_2 = malloc(F2FS_BLKSIZE); in validate_checkpoint() 319 info->sit_blocks = malloc(num_sit_blocks * sizeof(struct f2fs_sit_block)); in gather_sit_info() 391 sb = malloc(sizeof(*sb)); in generate_f2fs_info() 424 info->sit_bmp = malloc(bmp_size); in generate_f2fs_info() 617 char *buf = malloc(F2FS_BLKSIZE); in main()
|
/system/core/cpio/ |
D | mkbootfs.c | 173 char** names = malloc(size * sizeof(char*)); in _archive_dir() 248 tmp = (char*) malloc(s.st_size); in _archive() 290 (struct fs_config_entry*)malloc(allocated * sizeof(struct fs_config_entry)); in read_canned_config()
|
/system/core/trusty/gatekeeper/ |
D | trusty_gatekeeper_ipc.c | 50 struct gatekeeper_message *msg = malloc(msg_size); in trusty_gatekeeper_call()
|
/system/extras/tests/pftest/ |
D | pftest.c | 47 char *mem = malloc((N_PAGES+1) * 4096); in main()
|
/system/core/libdiskconfig/ |
D | write_lst.c | 34 if (!(item = malloc(sizeof(struct write_list) + data_len))) { in alloc_wl()
|
/system/media/audio_utils/ |
D | tinysndfile.c | 75 SNDFILE *handle = (SNDFILE *) malloc(sizeof(SNDFILE)); in sf_open_read() 367 SNDFILE *handle = (SNDFILE *) malloc(sizeof(SNDFILE)); in sf_open_write() 434 temp = malloc(desiredBytes); in sf_readf_short() 483 temp = malloc(desiredBytes); in sf_readf_float() 534 temp = malloc(desiredBytes); in sf_readf_int()
|
/system/extras/tests/storage/ |
D | opentest.c | 64 fds = malloc(nfiles * sizeof(int)); in main()
|