Home
last modified time | relevance | path

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

12345

/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/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/chre/platform/slpi/
Dmemory.cc67 return malloc(size); in memoryAlloc()
72 return malloc(size); in memoryAllocBigImage()
76 return malloc(size); in palSystemApiMemoryAlloc()
/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/core/libmemunreachable/
DREADME.md6 …ferences to remove the overhead. Instead of instrumenting every call to malloc and free, it queri…
19 To enable malloc\_debug backtraces on allocations for a single app process on a userdebug device, u…
22 adb shell setprop libc.debug.malloc.program app_process
24 adb shell setprop libc.debug.malloc.options backtrace=4
29 To disable malloc\_debug:
31 adb shell setprop libc.debug.malloc.options "''"
32 adb shell setprop libc.debug.malloc.program "''"
90 - `malloc enable()`: re-enable allocations in all threads.
/system/vold/
DDevmapper.cpp64 char* buffer = (char*)malloc(DEVMAPPER_BUFFER_SIZE); in create()
164 char* buffer = (char*)malloc(DEVMAPPER_BUFFER_SIZE); in destroy()
198 char* buffer = (char*)malloc(1024 * 64); in destroyAll()
205 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/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/keymaster/contexts/
Dsoft_keymaster_device.cpp350 malloc(sizeof(keymaster_key_characteristics_t))); in BuildCharacteristics()
434 reinterpret_cast<keymaster_algorithm_t*>(malloc(*algorithms_length * sizeof(**algorithms))); in get_supported_algorithms()
470 *modes = reinterpret_cast<keymaster_block_mode_t*>(malloc(*modes_length * sizeof(**modes))); in get_supported_block_modes()
506 *modes = reinterpret_cast<keymaster_padding_t*>(malloc(*modes_length * sizeof(**modes))); in get_supported_padding_modes()
541 *digests = reinterpret_cast<keymaster_digest_t*>(malloc(*digests_length * sizeof(**digests))); in get_supported_digests()
574 reinterpret_cast<keymaster_key_format_t*>(malloc(*formats_length * sizeof(**formats))); in get_supported_import_formats()
607 reinterpret_cast<keymaster_key_format_t*>(malloc(*formats_length * sizeof(**formats))); in get_supported_export_formats()
763 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(key_blob->key_material_size)); in generate_key()
845 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(key_blob->key_material_size)); in generate_key()
967 key_blob->key_material = reinterpret_cast<uint8_t*>(malloc(key_blob->key_material_size)); in import_key()
[all …]
/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/tests/memeater/
Dmemeater.c69 char *p = malloc(bytesToAllocate); 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()
318 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()
616 char *buf = malloc(F2FS_BLKSIZE); 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/libdiskconfig/
Dwrite_lst.c34 if (!(item = malloc(sizeof(struct write_list) + data_len))) { in alloc_wl()
/system/core/trusty/gatekeeper/
Dtrusty_gatekeeper_ipc.c53 struct gatekeeper_message *msg = malloc(msg_size); in trusty_gatekeeper_call()

12345