/system/core/include/cutils/ |
H A D | native_handle.h | 27 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
|
H A D | selector.h | 20 * write data and handle errors. 40 * when the descriptor contains out-of-band data. Simply set a callback to 55 /** Pointer to user-specific data. Can be NULL. */ 56 void* data; member in struct:SelectableFd 71 * Invoked by the selector when the descriptor has data available. Set to 77 * Invoked by the selector when the descriptor can accept data. Set to 83 * Invoked by the selector when out-of-band (OOB) data is available. Set to 84 * NULL to indicate that you're not interested in OOB data.
|
/system/core/libcorkscrew/arch-mips/ |
H A D | ptrace-mips.c | 24 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/libcutils/ |
H A D | load_file.c | 24 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 D | buffer.h | 31 * Byte buffer of known size. Keeps track of how much data has been read 35 /** Buffered data. */ 36 char* data; member in struct:__anon388 54 * Returns true if all data has been read into the buffer. 71 Buffer* bufferWrap(char* data, size_t capacity, size_t size); 74 * Frees and its data. 86 * Reads some data into a buffer. Returns -1 in case of an error and sets 100 * Writes data from buffer to the given fd. Returns -1 and sets errno in case
|
H A D | qsort_r_compat.c | 42 static int compar_wrapper(const void* a, const void* b, void* data) { argument 43 struct compar_data* compar_data = (struct compar_data*)data; 58 * Emulate qsort_r using thread local storage to access the thunk data.
|
H A D | buffer.c | 34 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/include/corkscrew/ |
H A D | map_info.h | 36 void* data; // arbitrary data associated with the map by the user, initially NULL member in struct:map_info
|
/system/core/init/ |
H A D | ueventd_parser.c | 63 char *data; local 64 data = read_file(fn, 0); 65 if (!data) return -1; 67 parse_config(fn, data);
|
H A D | logo.c | 109 unsigned short *data, *bits, *ptr; local 126 data = mmap(0, s.st_size, PROT_READ, MAP_SHARED, fd, 0); 127 if (data == MAP_FAILED) 134 ptr = data; 148 munmap(data, s.st_size); 156 munmap(data, s.st_size);
|
/system/core/libsysutils/src/ |
H A D | FrameworkClient.cpp | 32 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/core/toolbox/grep/ |
H A D | queue.c | 51 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/adb/ |
H A D | utils.c | 48 buff_addb (char* buff, char* buffEnd, const void* data, int len) argument 58 memcpy(buff, data, len);
|
H A D | adb_auth.h | 34 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);
|
/system/core/fastboot/ |
H A D | util_windows.c | 42 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;
|
/system/core/libpixelflinger/tinyutils/ |
H A D | SharedBuffer.h | 40 //! 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/bluetooth/brfpatch/ |
H A D | brfpatch.c | 55 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...] |
/system/core/debuggerd/arm/ |
H A D | machine.c | 75 * If we see (data == -1 && errno != 0), we know that the ptrace 82 long data = ptrace(PTRACE_PEEKTEXT, tid, (void*)p, NULL); local 83 sprintf(code_buffer + strlen(code_buffer), "%08lx ", data); 94 char val = (data >> (j*8)) & 0xff;
|
/system/core/libcorkscrew/arch-arm/ |
H A D | ptrace-arm.c | 68 void load_ptrace_map_info_data_arch(pid_t pid, map_info_t* mi, map_info_data_t* data) { argument 69 load_exidx_header(pid, mi, &data->exidx_start, &data->exidx_size); 72 void free_ptrace_map_info_data_arch(map_info_t* mi, map_info_data_t* data) { argument
|
/system/core/libsync/ |
H A D | sync_test.c | 34 void *sync_thread(void *data) argument 36 struct sync_thread_data *sync_data = data;
|
H A D | sync.c | 39 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/debuggerd/mips/ |
H A D | machine.c | 68 * If we see (data == -1 && errno != 0), we know that the ptrace 75 long data = ptrace(PTRACE_PEEKTEXT, tid, (void*)p, NULL); local 76 sprintf(code_buffer + strlen(code_buffer), "%08lx ", data); 85 char val = (data >> (j*8)) & 0xff;
|
/system/core/libcorkscrew/ |
H A D | ptrace.c | 87 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...] |
/system/core/libion/ |
H A D | ion.c | 61 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/libnl_2/ |
H A D | msg.c | 91 /* Return head of attributes data / payload section */ 94 unsigned char *data = nlmsg_data(nlh); local 95 return (struct nlattr *)(data + NLMSG_ALIGN(hdrlen)); 126 /* Length of attributes data */
|