Home
last modified time | relevance | path

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

123456

/system/core/libmemunreachable/tests/
DDisableMalloc_test.cpp44 void* ptr1 = malloc(128); in TEST_F()
48 void* ptr2 = malloc(128); in TEST_F()
59 void* ptr = malloc(128); in TEST_F()
65 void* ptr = malloc(128); in TEST_F()
110 void* ptr = malloc(128); in TEST_F()
/system/keymaster/
Dvalgrind.supp4 fun:malloc
12 fun:malloc
27 fun:malloc
/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/chre/platform/slpi/
Dmemory.cc67 return malloc(size); in memoryAlloc()
72 return malloc(size); in memoryAllocBigImage()
76 return malloc(size); in palSystemApiMemoryAlloc()
/system/chre/platform/linux/
Dmemory.cc24 return malloc(size); in memoryAlloc()
28 return malloc(size); in palSystemApiMemoryAlloc()
Dplatform_audio.cc146 malloc(sizeof(uint8_t) * sampleCount)); in addAudioSource()
150 malloc(sizeof(uint16_t) * sampleCount)); in addAudioSource()
/system/bt/osi/src/
Dallocator.cc30 void* ptr = malloc(real_size); in osi_strdup()
46 void* ptr = malloc(real_size); in osi_strndup()
60 void* ptr = malloc(real_size); in osi_malloc()
/system/keymaster/android_keymaster/
Dkeymaster_stl.cpp28 return malloc(__sz); in operator new()
31 return malloc(__sz); in operator new[]()
/system/bt/osi/test/
Dallocation_tracker_test.cc28 void* dummy_allocation = malloc(4); in TEST()
51 void* dummy_allocation = malloc(with_canary_size); in TEST()
/system/vold/
DDevmapper.cpp67 char *buffer = (char *) malloc(DEVMAPPER_BUFFER_SIZE); in create()
167 char *buffer = (char *) malloc(DEVMAPPER_BUFFER_SIZE); in destroy()
201 char *buffer = (char *) malloc(1024 * 64); in destroyAll()
208 char *buffer2 = (char *) malloc(DEVMAPPER_BUFFER_SIZE); in destroyAll()
/system/extras/cpustats/
Dcpustats.c110 old_cpus = malloc(sizeof(struct cpu_info) * cpu_count); in main()
112 new_cpus = malloc(sizeof(struct cpu_info) * cpu_count); in main()
119 new_cpus[i].freqs = malloc(sizeof(struct freq_info) * new_cpus[i].freq_count); in main()
121 old_cpus[i].freqs = malloc(sizeof(struct freq_info) * old_cpus[i].freq_count); in main()
131 new_total_cpu.freqs = malloc(sizeof(struct freq_info) * new_total_cpu.freq_count); in main()
133 old_total_cpu.freqs = malloc(sizeof(struct freq_info) * old_total_cpu.freq_count); in main()
/system/chre/util/
Dcontainer_support.cc31 return malloc(bytes); in chreHeapAlloc()
/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/libcutils/
Dload_file.cpp39 data = (char*) malloc(sz + 1); in load_file()
/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/keymaster/contexts/
Dsoft_keymaster_device.cpp349 malloc(sizeof(keymaster_key_characteristics_t))); in BuildCharacteristics()
433 reinterpret_cast<keymaster_algorithm_t*>(malloc(*algorithms_length * sizeof(**algorithms))); in get_supported_algorithms()
469 *modes = reinterpret_cast<keymaster_block_mode_t*>(malloc(*modes_length * sizeof(**modes))); in get_supported_block_modes()
505 *modes = reinterpret_cast<keymaster_padding_t*>(malloc(*modes_length * sizeof(**modes))); in get_supported_padding_modes()
540 *digests = reinterpret_cast<keymaster_digest_t*>(malloc(*digests_length * sizeof(**digests))); in get_supported_digests()
573 reinterpret_cast<keymaster_key_format_t*>(malloc(*formats_length * sizeof(**formats))); in get_supported_import_formats()
606 reinterpret_cast<keymaster_key_format_t*>(malloc(*formats_length * sizeof(**formats))); in get_supported_export_formats()
762 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(key_blob->key_material_size)); in generate_key()
844 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(key_blob->key_material_size)); in generate_key()
966 key_blob->key_material = reinterpret_cast<uint8_t*>(malloc(key_blob->key_material_size)); in import_key()
[all …]
/system/iot/attestation/atap/libatap/
Datap_sysdeps_posix.c57 return malloc(size); in atap_malloc()
/system/security/keystore/
Dkeystore_get.cpp41 *value = reinterpret_cast<uint8_t*>(malloc(result.size())); in keystore_get()
/system/chre/external/kiss_fft/
Dkiss_fft.h32 #define KISS_FFT_MALLOC malloc
/system/extras/pagecache/
Ddumpcache.c60 info->name = malloc(strlen(fpath) + 1); in get_file_info()
134 g_files = malloc(INITIAL_NUM_FILES * sizeof(struct file_info*)); in main()
/system/extras/f2fs_utils/
Df2fs_sparseblock.c221 cp_block_1 = malloc(F2FS_BLKSIZE); in validate_checkpoint()
234 cp_block_2 = malloc(F2FS_BLKSIZE); in validate_checkpoint()
322 info->sit_blocks = malloc(num_sit_blocks * sizeof(struct f2fs_sit_block)); in gather_sit_info()
394 sb = malloc(sizeof(*sb)); in generate_f2fs_info()
427 info->sit_bmp = malloc(bmp_size); in generate_f2fs_info()
620 char *buf = malloc(F2FS_BLKSIZE); in main()
/system/extras/tests/memeater/
Dmemeater.c69 char *p = malloc(bytesToAllocate); in main()
/system/libufdt/tests/src/
Dutil.c31 char *buf = malloc(len); in load_file_contents()
/system/nvram/messages/
Dblob.cpp56 data_ = static_cast<uint8_t*>(malloc(size)); in Assign()
/system/core/trusty/gatekeeper/
Dtrusty_gatekeeper_ipc.c53 struct gatekeeper_message *msg = malloc(msg_size); in trusty_gatekeeper_call()

123456