Searched refs:data (Results 76 - 100 of 135) sorted by relevance

123456

/system/core/adb/
H A Dadb_auth_client.c41 "/data/misc/adb/adb_keys",
64 /* Allocate 4 extra bytes to decode the base64 data in-place */
77 D("%s: Invalid base64 data ret=%d\n", file, ret);
155 static void adb_auth_event(int fd, unsigned events, void *data) argument
157 atransport *t = data;
207 static void adb_auth_listener(int fd, unsigned events, void *data) argument
H A Dtransport_usb.c68 if(usb_read(t->usb, p->data, p->msg.data_length)){
69 D("remote usb: terminated (data)\n");
93 if(usb_write(t->usb, &p->data, size)) {
H A Dfile_sync_service.h71 } data; member in union:__anon274
H A Dadb.h55 unsigned data_check; /* checksum of data payload */
67 unsigned char data[MAX_PAYLOAD]; member in struct:apacket
112 /* enqueue is called by our peer when it has data
114 ** data or 1 if not. If we return 1, we must call
116 ** receive data.
121 ** us to send data via enqueue again
448 int usb_write(usb_handle *h, const void *data, int len);
449 int usb_read(usb_handle *h, void *data, int len);
H A Dsockets.c134 p->ptr = p->data;
136 /* if there is already data queue'd, we will receive
165 return 0; /* ready for more data */
185 /* far side is ready for data, pay attention to
211 /* dispose of any unwritten data */
322 unsigned char *x = p->data;
374 /* Don't allow a forced eof if data is still there */
384 ** bytes of readable data.
457 /* a Remote socket is used to send/receive data to/from a given transport object
555 strcpy((char*) p->data, destinatio
[all...]
H A Dadb.c246 x = (char*) p->data;
322 cp->msg.data_length = fill_connect_data((char *)cp->data,
323 sizeof(cp->data));
340 memcpy(p->data, t->token, ret);
353 ret = adb_auth_sign(t->key, token, token_size, p->data);
372 ret = adb_auth_get_userkey(p->data, sizeof(p->data));
521 parse_banner((char*) p->data, t);
535 send_auth_response(p->data, p->msg.data_length, t);
541 if (adb_auth_verify(t->token, p->data,
[all...]
/system/core/debuggerd/arm/
H A Dmachine.c75 * 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/debuggerd/mips/
H A Dmachine.c68 * 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/libnl_2/
H A Dmsg.c91 /* 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 */
H A Dattr.c151 int nla_put(struct nl_msg *msg, int attrtype, int datalen, const void *data) argument
158 memcpy(nla_data(nla), data, datalen); local
/system/extras/ext4_utils/
H A Dindirect.c28 /* Creates data buffers for the first backing_len bytes of a block allocation
36 u8 *data = calloc(backing_len, 1); local
37 if (!data)
40 u8 *ptr = data;
54 return data;
487 /* Allocates enough blocks to hold len bytes, with backing_len bytes in a data
488 buffer, and connects them to an inode. Returns a pointer to the data
495 u8 *data = NULL; local
504 data = create_backing(alloc, backing_len);
505 if (!data)
[all...]
/system/core/libdiskconfig/
H A Dwrite_lst.c79 if (write(fd, lst->data, lst->len) != (int)lst->len) {
/system/core/libsparse/
H A Dbacked_block.h32 int backed_block_add_data(struct backed_block_list *bbl, void *data,
H A Dsparse.c55 void *data, unsigned int len, unsigned int block)
57 return backed_block_add_data(s->backed_block_list, data, len, block);
172 int (*write)(void *priv, const void *data, int len), void *priv)
192 static int out_counter_write(void *priv, const void *data, int len) argument
54 sparse_file_add_data(struct sparse_file *s, void *data, unsigned int len, unsigned int block) argument
171 sparse_file_callback(struct sparse_file *s, bool sparse, bool crc, int (*write)(void *priv, const void *data, int len), void *priv) argument
/system/extras/tests/binder/benchmarks/
H A DbinderAddInts.cpp84 const Parcel& data, Parcel* reply,
312 status_t AddIntsService::onTransact(uint32_t code, const Parcel &data, argument
332 val1 = data.readInt32();
333 val2 = data.readInt32();
/system/extras/tests/directiotest/
H A Ddirectiotest.c118 * area should never contain the same data as a nearby test area, and that the
119 * data for a given test area be easily reproducable given the start block and
124 uint32_t *data = buf; local
129 data[i] = (start_blk & 0xFFFF) << 16 | (i & 0xFFFF);
134 const uint8_t *data = buf; local
141 int val = data[i];
254 printf("Written data:\n");
256 printf("\nRead data:\n");
/system/core/libpixelflinger/tinyutils/
H A DVectorImpl.cpp93 _do_copy(sb->data(), mStorage, mCount);
95 mStorage = sb->data();
252 void* array = sb->data();
292 mStorage = sb->data();
296 void* array = sb->data();
344 mStorage = sb->data();
348 void* array = sb->data();
/system/core/init/
H A Dbootchart.c39 #define LOG_ROOT "/data/bootchart"
46 #define LOG_STARTFILE "/data/bootchart-start"
47 #define LOG_STOPFILE "/data/bootchart-stop"
83 char data[FILE_BUFF_SIZE]; member in struct:__anon367
97 int avail = sizeof(buff->data) - buff->count;
101 memcpy( buff->data + buff->count, src, avail );
107 unix_write( buff->fd, buff->data, buff->count );
117 unix_write( buff->fd, buff->data, buff->count );
313 * timeout. this is useful when using -wipe-data since the /data
[all...]
/system/core/libmincrypt/
H A Dsha.c147 void SHA_update(SHA_CTX* ctx, const void* data, int len) { argument
149 const uint8_t* p = (const uint8_t*)data;
245 void SHA_update(SHA_CTX *ctx, const void *data, int len) { argument
247 const uint8_t* p = (const uint8_t*)data;
296 const uint8_t* SHA(const void *data, int len, uint8_t *digest) { argument
301 SHA_update(&ctx, data, len);
/system/core/libsync/
H A Dsync_test.c34 void *sync_thread(void *data) argument
36 struct sync_thread_data *sync_data = data;
/system/core/libsysutils/src/
H A DFrameworkListener.cpp73 void FrameworkListener::dispatchCommand(SocketClient *cli, char *data) { argument
78 char *p = data;
/system/core/include/diskconfig/
H A Ddiskconfig.h103 uint8_t data[0]; member in struct:write_list
/system/extras/tests/bionic/libc/
H A Drun-test.sh166 DEVICE_TEST_DIR=/data/local/bionic-test
/system/extras/tests/framebuffer/
H A Dmdp_test.c73 static int get_pmem(int *fd, void **data, int sz) argument
82 *data = mmap(NULL, sz, PROT_READ | PROT_WRITE, MAP_SHARED, *fd, 0);
83 if (*data == MAP_FAILED) {
249 perror("Could not read data from file");
/system/core/libcutils/
H A Dmq.c167 /** Keeps track of data coming in from the remote peer. */
280 peerProxy->outgoingHeader.data
513 * Writes some outgoing data.
518 PeerProxy* peerProxy = (PeerProxy*) fd->data;
564 PeerProxy* peerProxy = (PeerProxy*) fd->data;
586 ALOGW("Couldn't allocate memory for incoming data. Size: %u",
708 fd->data = peerProxy;
739 // We sent 1 byte of data so we can detect EOF.
967 PeerProxy* peerProxy = (PeerProxy*) fd->data;
975 Header* header = (Header*) in->data;
[all...]

Completed in 4329 milliseconds

123456