Home
last modified time | relevance | path

Searched refs:calloc (Results 1 – 25 of 63) sorted by relevance

123

/system/extras/memory_replay/dumps/
DREADME17 calloc - Allocate memory using the calloc function.
33 <tid>: calloc <ptr> <nmemb> <size>
34 Allocation made by calloc(<nmemb>, <size>. <ptr> is the value returned
35 by calloc.
39 200: calloc 0xb48c1100 32 8
/system/extras/ext4_utils/
Dext4_utils.cpp143 aux_info.sb_zero = (struct ext4_super_block *)calloc(1, info.block_size); in ext4_create_fs_aux_info()
152 aux_info.sb_block = (struct ext4_super_block *)calloc(1, info.block_size); in ext4_create_fs_aux_info()
162 aux_info.backup_sb = (struct ext4_super_block **)calloc(aux_info.groups, sizeof(char *)); in ext4_create_fs_aux_info()
167 aux_info.bg_desc = (struct ext2_group_desc *)calloc(info.block_size, aux_info.bg_desc_blocks); in ext4_create_fs_aux_info()
/system/sepolicy/tests/
Dsepol_wrap.cpp28 calloc(1, sizeof(struct genfs_iter)); in init_genfs_iter()
102 calloc(1, sizeof(struct type_iter)); in init_type_iter()
202 db = (policydb_t *) calloc(1, sizeof(policydb_t)); in load_policy()
311 calloc(1, sizeof(struct avtab_iter)); in init_avtab_common()
349 calloc(1, sizeof(struct avtab_iter)); in init_expanded_avtab_common()
355 avtab_t *avtab = (avtab_t *) calloc(1, sizeof(avtab_t)); in init_expanded_avtab_common()
/system/core/libsparse/
Dbacked_block.cpp114 reinterpret_cast<backed_block_list*>(calloc(sizeof(struct backed_block_list), 1)); in backed_block_list_new()
275 struct backed_block* bb = reinterpret_cast<backed_block*>(calloc(1, sizeof(struct backed_block))); in backed_block_add_fill()
292 struct backed_block* bb = reinterpret_cast<backed_block*>(calloc(1, sizeof(struct backed_block))); in backed_block_add_data()
309 struct backed_block* bb = reinterpret_cast<backed_block*>(calloc(1, sizeof(struct backed_block))); in backed_block_add_file()
327 struct backed_block* bb = reinterpret_cast<backed_block*>(calloc(1, sizeof(struct backed_block))); in backed_block_add_fd()
Dsimg2simg.cpp75 out_s = calloc(sizeof(struct sparse_file*), files); in main()
Doutput_file.cpp516 out->zero_buf = reinterpret_cast<char*>(calloc(block_size, 1)); in output_file_init()
522 out->fill_buf = reinterpret_cast<uint32_t*>(calloc(block_size, 1)); in output_file_init()
568 reinterpret_cast<struct output_file_gz*>(calloc(1, sizeof(struct output_file_gz))); in output_file_new_gz()
581 reinterpret_cast<struct output_file_normal*>(calloc(1, sizeof(struct output_file_normal))); in output_file_new_normal()
599 … reinterpret_cast<struct output_file_callback*>(calloc(1, sizeof(struct output_file_callback))); in output_file_open_callback()
/system/nfc/utils/
Dringbuffer.cc33 ringbuffer_t* p = static_cast<ringbuffer_t*>(calloc(1, sizeof(ringbuffer_t))); in ringbuffer_init()
37 p->base = static_cast<uint8_t*>(calloc(size, sizeof(uint8_t))); in ringbuffer_init()
/system/sepolicy/tools/sepolicy-analyze/
Dneverallow.c107 id = calloc(1, len + 1); in read_typeset()
241 id = calloc(1, p - start + 1); in read_classperms()
254 node = calloc(1, sizeof *node); in read_classperms()
319 id = calloc(1, p - start + 1); in read_classperms()
407 avrule = calloc(1, sizeof *avrule); in check_neverallows()
/system/extras/pagecache/
Ddumpcache.c54 info = calloc(1, sizeof(*info)); in get_file_info()
89 unsigned char* mincore_data = calloc(1, num_file_pages); in store_num_cached()
/system/extras/ioshark/
Ddump_ioshark_filenames.c60 filename_cache = calloc(filename_cache_size, in main()
/system/core/libpackagelistparser/
Dpackagelistparser.c116 pkg_info = calloc(1, sizeof(*pkg_info)); in packagelist_parse()
214 pkg_info->gids.gids = calloc(pkg_info->gids.cnt, sizeof(gid_t)); in packagelist_parse()
/system/core/liblog/
Dlogger_read.cpp101 transp = static_cast<android_log_transport_context*>(calloc(1, sizeof(*transp))); in init_transport_context()
209 logger_list = static_cast<android_log_logger_list*>(calloc(1, sizeof(*logger_list))); in android_logger_list_alloc()
226 logger_list = static_cast<android_log_logger_list*>(calloc(1, sizeof(*logger_list))); in android_logger_list_alloc_time()
259 logger = static_cast<android_log_logger*>(calloc(1, sizeof(*logger))); in android_logger_open()
/system/chre/build/arch/
Dhexagon.mk64 TARGET_SO_LDFLAGS += --wrap=calloc
/system/bt/osi/src/
Dallocator.cc67 void* ptr = calloc(1, real_size); in osi_calloc()
/system/netd/resolv/
Dres_state.cpp52 _res_thread* rt = (_res_thread*) calloc(1, sizeof(*rt)); in res_thread_alloc()
/system/media/audio_route/
Daudio_route.c291 path->setting[path_index].value.ptr = calloc(setting->num_values, value_sz); in path_add_setting()
335 path->setting[path_index].value.ptr = calloc(num_values, value_sz); in path_add_value()
593 ar->mixer_state = calloc(ar->num_mixer_ctls, sizeof(struct mixer_state)); in alloc_mixer_state()
612 ar->mixer_state[i].old_value.ptr = calloc(num_values, value_sz); in alloc_mixer_state()
613 ar->mixer_state[i].new_value.ptr = calloc(num_values, value_sz); in alloc_mixer_state()
614 ar->mixer_state[i].reset_value.ptr = calloc(num_values, value_sz); in alloc_mixer_state()
896 ar = calloc(1, sizeof(struct audio_route)); in audio_route_init()
/system/core/libusbhost/
Dusbhost.c165 struct usb_host_context *context = calloc(1, sizeof(struct usb_host_context)); in usb_host_init()
372 struct usb_device *device = calloc(1, sizeof(struct usb_device)); in usb_device_new()
445 char* result = (char *)calloc(1, strlen(USB_FS_ID_FORMAT)); in usb_device_get_name_from_unique_id()
690 struct usbdevfs_urb *urb = calloc(1, sizeof(struct usbdevfs_urb)); in usb_request_new()
705 struct usb_request *req = calloc(1, sizeof(struct usb_request)); in usb_request_new()
/system/nvram/client/
Dnvram_client.c159 uint32_t* space_index_list = calloc(list_size, sizeof(uint32_t)); in HandleGetSpaceList()
204 uint32_t* controls_list = calloc(list_size, sizeof(nvram_control_t)); in HandleGetSpaceControls()
313 uint8_t* buffer = calloc(sizeof(uint8_t), size); in HandleReadSpace()
/system/core/libcutils/
Dhashmap.cpp61 map->buckets = static_cast<Entry**>(calloc(map->bucketCount, sizeof(Entry*))); in hashmapCreate()
105 Entry** newBuckets = static_cast<Entry**>(calloc(newBucketCount, sizeof(Entry*))); in expandIfNecessary()
Drecord_stream.cpp52 ret = (RecordStream *)calloc(1, sizeof(RecordStream)); in record_stream_new()
/system/extras/boot_control_copy/
Dbootinfo.cpp89 path = static_cast<char *>(calloc(trimmed_len + name_len + 1, 1)); in boot_info_open_partition()
/system/bt/audio_bluetooth_hw/
Daudio_bluetooth_hw.cc95 (struct audio_hw_device*)calloc(1, sizeof(struct audio_hw_device)); in adev_open()
/system/sepolicy/tools/fc_sort/
Dfc_sort.c361 head = current = (file_context_node_t*)calloc(1, sizeof(file_context_node_t)); in main()
390 temp = (file_context_node_t *)calloc(1, sizeof(file_context_node_t)); in main()
/system/core/fs_mgr/libdm/
Ddm.cpp162 auto buffer = std::unique_ptr<void, void (*)(void*)>(calloc(1, data_size), free); in GetAvailableTargets()
225 auto buffer = std::unique_ptr<void, void (*)(void*)>(calloc(1, data_size), free); in GetAvailableDevices()
/system/extras/runconuid/
Drunconuid.cpp134 groups = (gid_t*)calloc(ngroups, sizeof(gid_t)); in lookup_groups()

123