Home
last modified time | relevance | path

Searched refs:malloc (Results 1 – 25 of 118) sorted by relevance

12345

/system/core/libmemunreachable/tests/
DDisableMalloc_test.cpp41 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/
Dvalgrind.supp4 fun:malloc
12 fun:malloc
27 fun:malloc
Dsoft_keymaster_device.cpp313 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/
DREADME16 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/
Ddevice_test.cpp117 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/
Dallocator.c30 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/
Dallocation_tracker_test.cpp30 void *dummy_allocation = malloc(4); in TEST()
51 void *dummy_allocation = malloc(with_canary_size); in TEST()
/system/vold/
DDevmapper.cpp43 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/
Dfc_sort.c348 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/
Dcpustats.c109 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/
DActionTest.cpp24 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/
Dadf.c119 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/
Dpm_memusage.c63 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/
Ddumpcache.c59 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/
Dload_file.c37 data = (char*) malloc(sz + 1); in load_file()
Dprocess_name.c50 char* copy = (char*) malloc(len + 1); in set_process_name()
Dnative_handle.c38 native_handle_t* h = malloc(mallocSize); in native_handle_create()
Dstrdup16to8.c164 ret = malloc(len + 1); in strndup16to8()
/system/extras/f2fs_utils/
Df2fs_sparseblock.c218 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/
Dmkbootfs.c173 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/
Dtrusty_gatekeeper_ipc.c50 struct gatekeeper_message *msg = malloc(msg_size); in trusty_gatekeeper_call()
/system/extras/tests/pftest/
Dpftest.c47 char *mem = malloc((N_PAGES+1) * 4096); in main()
/system/core/libdiskconfig/
Dwrite_lst.c34 if (!(item = malloc(sizeof(struct write_list) + data_len))) { in alloc_wl()
/system/media/audio_utils/
Dtinysndfile.c75 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/
Dopentest.c64 fds = malloc(nfiles * sizeof(int)); in main()

12345