Searched refs:data (Results 1 - 25 of 135) sorted by relevance

123456

/system/core/libcutils/
H A Dload_file.c24 char *data; local
28 data = 0;
37 data = (char*) malloc(sz + 1);
38 if(data == 0) goto oops;
40 if(read(fd, data, sz) != sz) goto oops;
42 data[sz] = 0;
45 return data;
49 if(data != 0) free(data);
H A Dconfig_utils.c116 char *data; member in struct:__anon390
126 char *data; local
128 data = cs->data;
138 c = *data++;
149 switch(*data) {
151 cs->data = data;
154 cs->data = data
292 config_load(cnode *root, char *data) argument
314 char *data; local
[all...]
H A Dbuffer.c34 buffer->data = malloc(capacity);
35 if (buffer->data == NULL) {
43 free(buffer->data);
47 Buffer* bufferWrap(char* data, size_t capacity, size_t size) { argument
53 buffer->data = data;
63 char* expanded = realloc(buffer->data, expected);
69 buffer->data = expanded;
81 buffer->data + buffer->size,
101 buffer->data
[all...]
/system/core/libpixelflinger/tinyutils/
H A DSharedBuffer.h40 //! get the SharedBuffer from the data pointer
41 static inline const SharedBuffer* sharedBuffer(const void* data);
43 //! access the data for read
44 inline const void* data() const;
46 //! access the data for read/write
47 inline void* data();
52 //! get back a SharedBuffer object from its data
53 static inline SharedBuffer* bufferFromData(void* data);
55 //! get back a SharedBuffer object from its data
56 static inline const SharedBuffer* bufferFromData(const void* data);
99 sharedBuffer(const void* data) argument
103 const void* SharedBuffer::data() const { function in class:android::SharedBuffer
107 void* SharedBuffer::data() { function in class:android::SharedBuffer
115 bufferFromData(void* data) argument
120 bufferFromData(const void* data) argument
125 sizeFromData(const void* data) argument
[all...]
/system/core/libcorkscrew/arch-mips/
H A Dptrace-mips.c24 void load_ptrace_map_info_data_arch(pid_t pid, map_info_t* mi, map_info_data_t* data) { argument
27 void free_ptrace_map_info_data_arch(map_info_t* mi, map_info_data_t* data) { argument
/system/core/toolbox/grep/
H A Dqueue.c51 struct str data; member in struct:qentry
65 item->data.dat = grep_malloc(sizeof(char) * x->len);
66 item->data.len = x->len;
67 item->data.line_no = x->line_no;
68 item->data.off = x->off;
69 memcpy(item->data.dat, x->dat, x->len);
70 item->data.file = x->file;
76 free(item->data.dat);
101 printline(&item->data, '-', NULL, 0);
102 free(item->data
[all...]
/system/core/libsync/
H A Dsync.c39 struct sync_merge_data data; local
42 data.fd2 = fd2;
43 strlcpy(data.name, name, sizeof(data.name));
45 err = ioctl(fd1, SYNC_IOC_MERGE, &data);
49 return data.fence;
105 struct sw_sync_create_fence_data data; local
108 data.value = value;
109 strlcpy(data.name, name, sizeof(data
[all...]
/system/core/fastboot/
H A Dutil_windows.c42 char *data; local
77 char *data; local
92 data = NULL;
95 data = (char*) malloc( sz );
96 if (data == NULL) {
102 if ( !ReadFile( file, data, sz, &out_bytes, NULL ) ||
106 free(data);
107 data = NULL;
115 return data;
H A Dfastboot.c157 char *data; local
162 data = 0;
171 data = (char*) malloc(sz);
172 if(data == 0) goto oops;
174 if(read(fd, data, sz) != sz) goto oops;
178 return data;
183 if(data != 0) free(data);
362 void *data; local
375 data
462 setup_requirements(char *data, unsigned sz) argument
583 void *data; local
607 void *data; local
619 void *data; local
678 void *data; local
697 void *data; local
807 void *data; local
[all...]
H A Dfastboot.h39 int fb_download_data(usb_handle *usb, const void *data, unsigned size);
49 void fb_queue_flash(const char *ptn, void *data, unsigned sz);
59 void fb_queue_download(const char *name, void *data, unsigned size);
/system/core/libion/
H A Dion.c61 struct ion_allocation_data data = { local
68 ret = ion_ioctl(fd, ION_IOC_ALLOC, &data);
71 *handle = data.handle;
77 struct ion_handle_data data = { local
80 return ion_ioctl(fd, ION_IOC_FREE, &data);
86 struct ion_fd_data data = { local
90 int ret = ion_ioctl(fd, ION_IOC_MAP, &data);
93 *map_fd = data.fd;
109 struct ion_fd_data data = { local
113 int ret = ion_ioctl(fd, ION_IOC_SHARE, &data);
139 struct ion_fd_data data = { local
152 struct ion_fd_data data = { local
[all...]
/system/core/libcorkscrew/arch-x86/
H A Dptrace-x86.c26 map_info_data_t* data __attribute__((unused))) {
30 map_info_data_t* data __attribute__((unused))) {
/system/core/libcorkscrew/
H A Dmap_info.c61 mi->data = NULL;
135 static void dec_ref(map_info_t* milist, my_map_info_data_t* data) { argument
136 if (!--data->refs) {
138 free(data);
148 my_map_info_data_t* data = (my_map_info_data_t*)g_my_map_info_list->data; local
149 int64_t age = time - data->timestamp;
152 dec_ref(g_my_map_info_list, data);
160 my_map_info_data_t* data = (my_map_info_data_t*)malloc(sizeof(my_map_info_data_t)); local
164 g_my_map_info_list->data
174 my_map_info_data_t* data = (my_map_info_data_t*)g_my_map_info_list->data; local
186 my_map_info_data_t* data = (my_map_info_data_t*)milist->data; local
[all...]
H A Dptrace.c87 map_info_data_t* data = (map_info_data_t*)calloc(1, sizeof(map_info_data_t)); local
88 if (data) {
89 mi->data = data;
91 data->symbol_table = load_symbol_table(mi->name);
94 load_ptrace_map_info_data_arch(pid, mi, data);
114 map_info_data_t* data = (map_info_data_t*)mi->data; local
115 if (data) {
116 if (data
139 const map_info_data_t* data = (const map_info_data_t*)mi->data; local
[all...]
H A Dptrace-arch.h30 /* Custom extra data we stuff into map_info_t structures as part
40 void load_ptrace_map_info_data_arch(pid_t pid, map_info_t* mi, map_info_data_t* data);
41 void free_ptrace_map_info_data_arch(map_info_t* mi, map_info_data_t* data);
/system/core/toolbox/
H A Dschedtop.c29 struct thread_info *data; member in struct:thread_table
58 new_table = realloc(table->data, size * sizeof(*table->data));
63 table->data = new_table;
71 return table->data + table->active;
176 int epid = last_threads.data[i].pid;
177 int tid = last_threads.data[i].tid;
181 if (tid == threads.data[j].tid)
185 else if (!(flags & FLAG_HIDE_IDLE) || threads.data[j].run_count - last_threads.data[
[all...]
/system/core/adb/
H A Dadb_auth.h34 int adb_auth_get_userkey(unsigned char *data, size_t len);
38 static inline void adb_auth_confirm_key(unsigned char *data, size_t len, atransport *t) { } argument
45 static inline int adb_auth_get_userkey(unsigned char *data, size_t len) { return 0; } argument
49 void adb_auth_confirm_key(unsigned char *data, size_t len, atransport *t);
H A Dfile_sync_service.c136 msg.data.id = ID_FAIL;
137 msg.data.size = htoll(len);
138 if(writex(s, &msg.data, sizeof(msg.data)) ||
174 if(readx(s, &msg.data, sizeof(msg.data)))
177 if(msg.data.id != ID_DATA) {
178 if(msg.data.id == ID_DONE) {
179 timestamp = ltohl(msg.data.size);
182 fail_message(s, "invalid data messag
[all...]
/system/core/include/cutils/
H A Dnative_handle.h27 int numFds; /* number of file-descriptors at &data[0] */
28 int numInts; /* number of ints at &data[numFds] */
29 int data[0]; /* numFds + numInts ints */ member in struct:native_handle
/system/core/init/
H A Dueventd_parser.c63 char *data; local
64 data = read_file(fn, 0);
65 if (!data) return -1;
67 parse_config(fn, data);
/system/core/include/mincrypt/
H A Dsha.h51 void SHA_update(SHA_CTX* ctx, const void* data, int len);
55 const uint8_t* SHA(const void* data, int len, uint8_t* digest);
/system/media/camera/src/
H A Dcamera_metadata.c28 * array is no larger than 4 bytes in size, it is stored in the data.value[]
29 * array; otherwise, it can found in the parent's data array at index
30 * data.offset.
38 } data; member in struct:camera_metadata_buffer_entry
45 * its values stored at an offset in data.
65 * | start of camera_metadata.data |
74 * In short, the entries and data are contiguous in memory after the metadata
86 uint8_t *data; member in struct:camera_metadata
157 metadata->data =
160 metadata->data
309 add_camera_metadata_entry_raw(camera_metadata_t *dst, uint32_t tag, uint8_t type, const void *data, size_t data_count) argument
340 add_camera_metadata_entry(camera_metadata_t *dst, uint32_t tag, const void *data, size_t data_count) argument
477 update_camera_metadata_entry(camera_metadata_t *dst, size_t index, const void *data, size_t data_count, camera_metadata_entry_t *updated_entry) argument
[all...]
/system/extras/tests/sdcard/
H A Dplot_sdcard.py25 -p profile data generated by profile_sdcard.sh
27 ./plot_sdcard.py -t /tmp/data.txt
28 ./plot_sdcard.py -i /tmp/data.txt
33 >>> (metadata, data) = p.Parse('/tmp/data.txt')
34 >>> p.PlotIterations(metadata, data)
35 >>> p.PlotTimes(metadata, data)
48 """Dataset holds the summary and data (time,value pairs)."""
54 self.data = []
61 return str(zip(self.time, self.data))
[all...]
/system/core/libsysutils/src/
H A DFrameworkClient.cpp32 int FrameworkClient::sendMsg(const char *msg, const char *data) { argument
33 size_t bufflen = strlen(msg) + strlen(data) + 1;
39 snprintf(buffer, bufflen, "%s%s", msg, data);
/system/bluetooth/brfpatch/
H A Dbrfpatch.c55 unsigned char *data) {
60 fwrite(&len, 1, 1, fpo); // data length
61 fwrite(data, len, 1, fpo); // data
88 unsigned char data[1024]; local
89 unsigned char *dp = data;
96 FAILIF(dp > data + sizeof(data),
97 "Too much data: %s\n", buffer);
111 // find length of this piece of data
54 dump_record(FILE *fpo, unsigned short opcode, unsigned char len, unsigned char *data) argument
[all...]

Completed in 226 milliseconds

123456