Home
last modified time | relevance | path

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

12345

/system/core/libcutils/
Dbuffer.c28 Buffer* buffer = malloc(sizeof(Buffer)); in bufferCreate()
34 buffer->data = malloc(capacity); in bufferCreate()
48 Buffer* buffer = malloc(sizeof(Buffer)); in bufferWrap()
Ddir_hash.c149 char *name = malloc(strlen(de->d_name) + 1); in recurse()
150 struct list *node = malloc(sizeof(struct list)); in recurse()
181 name = malloc(strlen(f->name) + strlen(directory_path) + 2); in recurse()
207 keep = malloc(len + strlen(name) + 3); in recurse()
208 res = malloc(sizeof(struct list)); in recurse()
285 list = malloc(count * sizeof(struct list *)); in get_recursive_hash_manifest()
303 buf = malloc(len + 1); in get_recursive_hash_manifest()
Dload_file.c37 data = (char*) malloc(sz + 1); in load_file()
Dnative_handle.c30 native_handle_t* h = malloc( in native_handle_create()
Dprocess_name.c44 char* copy = (char*) malloc(len + 1); in set_process_name()
Dstrdup16to8.c161 ret = malloc(len + 1); in strndup16to8()
/system/core/libcorkscrew/
Dtest.c8 backtrace_frame_t* frames = (backtrace_frame_t*) malloc(sizeof(backtrace_frame_t) * MAX_DEPTH); in do_backtrace()
12 …backtrace_symbol_t* backtrace_symbols = (backtrace_symbol_t*) malloc(sizeof(backtrace_symbol_t) * … in do_backtrace()
/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/core/libzipfile/
Dtest_zipfile.c44 buf = malloc(size); in main()
77 scratch = malloc(size); in main()
Dzipfile.c14 Zipfile *file = malloc(sizeof(Zipfile)); in init_zipfile()
67 char* s = malloc(l+1); in get_zipentry_name()
/system/extras/cpustats/
Dcpustats.c108 old_cpus = malloc(sizeof(struct cpu_info) * cpu_count); in main()
110 new_cpus = malloc(sizeof(struct cpu_info) * cpu_count); in main()
115 new_cpus[i].freqs = malloc(sizeof(struct freq_info) * new_cpus[i].freq_count); in main()
117 old_cpus[i].freqs = malloc(sizeof(struct freq_info) * old_cpus[i].freq_count); in main()
127 new_total_cpu.freqs = malloc(sizeof(struct freq_info) * new_total_cpu.freq_count); in main()
129 old_total_cpu.freqs = malloc(sizeof(struct freq_info) * old_total_cpu.freq_count); in main()
/system/extras/libublock/
Dublock.c352 ub_ctx = malloc(sizeof(struct ublock_ctx)); in ublock_init()
359 in_buf = malloc(size); in ublock_init()
360 out_buf = malloc(size); in ublock_init()
392 ub_ctx->in_buf = malloc(ub_ctx->max_buf); in ublock_init()
393 ub_ctx->out_buf = malloc(ub_ctx->max_buf); in ublock_init()
/system/extras/fatblock/
Dimport.c108 f = malloc(sizeof(struct file)); in import_file()
168 item = malloc(sizeof(struct item)); in alloc_item()
222 d = malloc(sizeof(struct dir)); in import_dir()
307 d->entries = malloc(sizeof(struct fat_dirent) * (count + (is_root ? 0 : 2))); in import_dir()
/system/extras/libpagemap/
Dpm_process.c108 range = malloc(numpages * sizeof(uint64_t)); in pm_process_pagemap_range()
144 maps = malloc(proc->num_maps * sizeof(pm_map_t*)); in pm_process_maps()
267 map->name = malloc(strlen(name) + 1); in read_maps()
/system/netd/
DClatdController.cpp50 char **args = (char **)malloc(sizeof(char *) * 4); in startClatd()
/system/extras/tests/bionic/libstdc++/
Dtest_cstdlib.cpp91 using ::malloc;
/system/core/adb/
Dlog_service.c77 char *log_device = malloc(strlen(LOG_FILE_DIR) + strlen(log_name) + 1); in get_log_file_path()
Dfile_sync_client.c335 file_buffer = (char *)malloc(size); in sync_send()
580 copyinfo *ci = malloc(sizeof(copyinfo) + ssize + dsize); in mkcopyinfo()
684 char *tmp = malloc(tmplen); in copy_local_dir_remote()
691 char *tmp = malloc(tmplen); in copy_local_dir_remote()
783 char *tmp = malloc(strlen(name) + strlen(rpath) + 2); in do_sync_push()
883 char *tmp = malloc(tmplen); in copy_remote_dir_local()
890 char *tmp = malloc(tmplen); in copy_remote_dir_local()
977 char *tmp = malloc(tmplen); in do_sync_pull()
/system/extras/tests/memtest/
Dmemtest.cpp149 char* src = (char*)malloc(MAX_SIZE+4+8+32); in memcpy_test()
150 char* dst = (char*)malloc(MAX_SIZE+4+8+32); in memcpy_test()
278 char* dst = (char*)malloc(MAX_SIZE+4+8); in memset_test()
415 char* src = (char*)malloc(MAX_SIZE+4+8+32); in memcmp_test()
416 char* dst = (char*)malloc(MAX_SIZE+4+8+32); in memcmp_test()
590 #pragma mark malloc
599 void* addr = malloc(size); in malloc_test()
/system/core/libnl_2/
Dhandlers.c28 cb = (struct nl_cb *) malloc(sizeof(struct nl_cb)); in nl_cb_alloc()
/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/core/fastboot/
Dutil_windows.c95 data = (char*) malloc( sz ); in load_file()
/system/extras/tests/storage/
Dopentest.c64 fds = malloc(nfiles * sizeof(int)); in main()
/system/core/cpio/
Dmkbootfs.c170 char** names = malloc(size * sizeof(char*)); in _archive_dir()
243 tmp = (char*) malloc(s.st_size); in _archive()
285 (struct fs_config_entry*)malloc(allocated * sizeof(struct fs_config_entry)); in read_canned_config()

12345