/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-x86/ |
H A D | ptrace-x86.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:__anon378 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/fastboot/ |
H A D | util_windows.c | 54 char *data; local 69 data = NULL; 72 data = (char*) malloc( file_size ); 73 if (data == NULL) { 79 if ( !ReadFile( file, data, file_size, &out_bytes, NULL ) || 83 free(data); 84 data = NULL; 92 return data;
|
H A D | protocol.c | 88 strcpy(ERROR, "data size too large"); 104 const void *data, unsigned size, 125 if(data == 0) { 136 r = usb_write(usb, data, size); 138 sprintf(ERROR, "data transfer failure (%s)", strerror(errno)); 143 sprintf(ERROR, "data transfer failure (short transfer)"); 167 int fb_download_data(usb_handle *usb, const void *data, unsigned size) argument 173 r = _command_send(usb, cmd, data, size, 0); 103 _command_send(usb_handle *usb, const char *cmd, const void *data, unsigned size, char *response) argument
|
/system/core/include/corkscrew/ |
H A D | map_info.h | 35 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/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 | usb_linux_client.c | 82 int usb_write(usb_handle *h, const void *data, int len) argument 87 n = adb_write(h->fd, data, len); 97 int usb_read(usb_handle *h, void *data, int len) argument 102 n = adb_read(h->fd, data, len);
|
/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/libcorkscrew/arch-arm/ |
H A D | ptrace-arm.c | 65 void load_ptrace_map_info_data_arch(pid_t pid, map_info_t* mi, map_info_data_t* data) { argument 66 load_exidx_header(pid, mi, &data->exidx_start, &data->exidx_size); 69 void free_ptrace_map_info_data_arch(map_info_t* mi, map_info_data_t* data) { argument
|
/system/core/debuggerd/arm/ |
H A D | machine.c | 74 * If we see (data == -1 && errno != 0), we know that the ptrace 81 long data = ptrace(PTRACE_PEEKTEXT, tid, (void*)p, NULL); local 82 sprintf(code_buffer + strlen(code_buffer), "%08lx ", data); 91 char val = (data >> (j*8)) & 0xff;
|
/system/core/libcorkscrew/ |
H A D | ptrace.c | 86 map_info_data_t* data = (map_info_data_t*)calloc(1, sizeof(map_info_data_t)); local 87 if (data) { 88 mi->data = data; 90 data->symbol_table = load_symbol_table(mi->name); 93 load_ptrace_map_info_data_arch(pid, mi, data); 113 map_info_data_t* data = (map_info_data_t*)mi->data; local 114 if (data) { 115 if (data 138 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 67 ret = ion_ioctl(fd, ION_IOC_ALLOC, &data); 70 *handle = data.handle; 76 struct ion_handle_data data = { local 79 return ion_ioctl(fd, ION_IOC_FREE, &data); 85 struct ion_fd_data data = { local 89 int ret = ion_ioctl(fd, ION_IOC_MAP, &data); 92 *map_fd = data.fd; 108 struct ion_fd_data data = { local 112 int ret = ion_ioctl(fd, ION_IOC_SHARE, &data); 125 struct ion_fd_data data = { local [all...] |
/system/core/libnl_2/ |
H A D | msg.c | 90 /* Return head of attributes data / payload section */ 93 unsigned char *data = nlmsg_data(nlh); local 94 return (struct nlattr *)(data + NLMSG_ALIGN(hdrlen)); 125 /* Length of attributes data */
|
/system/core/libsync/ |
H A D | sync.c | 38 struct sync_merge_data data; local 41 data.fd2 = fd2; 42 strlcpy(data.name, name, sizeof(data.name)); 44 err = ioctl(fd1, SYNC_IOC_MERGE, &data); 48 return data.fence; 104 struct sw_sync_create_fence_data data; local 107 data.value = value; 108 strlcpy(data.name, name, sizeof(data [all...] |
H A D | sync_test.c | 34 void *sync_thread(void *data) argument 36 struct sync_thread_data *sync_data = data;
|
/system/core/libzipfile/ |
H A D | private.h | 16 const unsigned char* data;
member in struct:Zipentry
|