Searched refs:data (Results 101 - 125 of 140) sorted by relevance

123456

/system/core/adb/
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.c248 x = (char*) p->data;
324 cp->msg.data_length = fill_connect_data((char *)cp->data,
325 sizeof(cp->data));
342 memcpy(p->data, t->token, ret);
355 ret = adb_auth_sign(t->key, token, token_size, p->data);
374 ret = adb_auth_get_userkey(p->data, sizeof(p->data));
525 parse_banner((char*) p->data, t);
540 send_auth_response(p->data, p->msg.data_length, t);
546 if (adb_auth_verify(t->token, p->data,
[all...]
H A Dadb_auth_host.c381 int adb_auth_get_userkey(unsigned char *data, size_t len) argument
405 memcpy(data, file, ret);
406 data[ret] = '\0';
H A Djdwp_service.c429 ** we do implement a custom asocket to receive the data
591 p->len = jdwp_process_list((char*)p->data, MAX_PAYLOAD);
647 memcpy(p->data, buffer, len);
680 p->len = jdwp_process_list_msg((char*)p->data, sizeof(p->data));
H A Dcommandline.c139 " ('-r' means reinstall the app, keeping its data)\n"
143 " ('-k' means keep the data and cache directories)\n"
148 " - write an archive of the device's data to <file>.\n"
149 " If no -f option is supplied then the data is written\n"
196 " - If <directory> is not specified, both /system and /data partitions will be updated.\n"
198 " - If it is \"system\" or \"data\", only the corresponding partition\n"
389 int adb_download_buffer(const char *service, const char *fn, const void* data, int sz, argument
408 ptr = data;
419 fprintf(stderr,"* failed to write data '%s' *\n", adb_error());
452 void *data; local
[all...]
H A Dfdevent.c132 ev.data.ptr = fde;
148 ev.data.ptr = fde;
167 ev.data.ptr = fde;
220 fde = ev->data.ptr;
559 // If there is data left, it will show up in the select().
561 // data when in this fd_func().
/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/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...]
H A Dhashmap.c157 char* data = (char*) key; local
160 h = h * 31 + *data;
161 data++;
/system/extras/tests/sdcard/
H A Dsdcard_perf_test.cpp56 // write: Open a file write some random data and close.
67 // Use --dump to also get the raw data.
74 // adb shell /system/bin/sdcard_perf_test --test=read --size=1000 --chunk-size=100 --procnb=1 --iterations=10 --dump > /tmp/data.txt
75 // adb shell /system/bin/sdcard_perf_test --test=write --size=1000 --chunk-size=100 --procnb=1 --iterations=100 --dump > /tmp/data.txt
132 " -s --size: Size in kbytes of the data.\n"
493 char *data = new char[chunk_size]; local
495 memset(data, 0xaa, chunk_size);
503 if (!writeData(data, i, testCase))
509 delete [] data;
/system/core/libdiskconfig/
H A Dconfig_mbr.c94 pentry = (struct pc_partition *) &item->data;
154 * lba counter since that is where the logical data partition will start */
158 ebr = (struct pc_boot_record *) &item->data;
/system/core/libpixelflinger/
H A Draster.cpp106 uint8_t* src = reinterpret_cast<uint8_t*>(cb->data)
108 uint8_t* dst = reinterpret_cast<uint8_t*>(cb->data)
/system/core/libzipfile/
H A Dcentraldir.c145 // the size of the extraField in the central dir is how much data there is,
152 entry->data = file->buf + dataOffset;
154 printf("file->buf=%p entry->data=%p dataOffset=%x localHeaderRelOffset=%d "
156 file->buf, entry->data, dataOffset, localHeaderRelOffset,
/system/core/toolbox/
H A Dmount.c146 do_mount(char *dev, char *dir, char *type, unsigned long rwflag, void *data, int loop, argument
183 if (mount(dev, dir, s, rwflag, data) == -1) {
/system/extras/tests/ext4/
H A Dandroid_emmc_perf_tests.sh80 adb shell umount /data >/dev/null 2>&1
111 # Megabytes of data, and subsequent reads are nearly instantaneous. Since
/system/core/libcorkscrew/arch-arm/
H A Dbacktrace-arm.c136 if (mi && mi->data) {
137 const map_info_data_t* data = (const map_info_data_t*)mi->data; local
138 exidx_start = data->exidx_start;
139 exidx_size = data->exidx_size;
185 handler = entry_handler_ptr; // in-place handler data
269 * The data for the built-in personality routines consists of a sequence
/system/extras/tests/iptables/qtaguid/
H A DsocketTag.cpp77 int writeModuleParam(const char *param, const char *data) { argument
88 res = write(param_fd, data, strlen(data));
/system/security/softkeymaster/
H A Dkeymaster_openssl.cpp105 /* int type + int size + private key data + int size + public key data */
324 ALOGE("Could not allocate memory for public key data");
334 ALOGV("Length of x509 data is %d", len);
344 const uint8_t* data, const size_t dataLength,
351 if (data == NULL) {
352 ALOGW("input data to sign == NULL");
391 if (RSA_private_encrypt(dataLength, data, tmp, rsa.get(), RSA_NO_PADDING) <= 0) {
408 ALOGW("data or signature buffers == NULL");
430 ALOGW("signed data lengt
341 openssl_sign_data(const keymaster_device_t* dev, const void* params, const uint8_t* keyBlob, const size_t keyBlobLength, const uint8_t* data, const size_t dataLength, uint8_t** signedData, size_t* signedDataLength) argument
[all...]
/system/media/audio_route/
H A Daudio_route.c362 static void start_tag(void *data, const XML_Char *tag_name, argument
368 struct config_parse_state *state = data;
468 static void end_tag(void *data, const XML_Char *tag_name) argument
470 struct config_parse_state *state = data;
/system/security/keystore/
H A Dtest-keystore57 run adb shell ls -al /data/misc/keystore
/system/core/cpio/
H A Dmkbootfs.c86 static void _eject(struct stat *s, char *out, int olen, char *data, unsigned datasize) argument
131 fwrite(data, datasize, 1, stdout);
/system/core/charger/
H A Dcharger.c534 static int uevent_callback(int fd, short revents, void *data) argument
536 struct charger *charger = data;
779 static int set_key_callback(int code, int value, void *data) argument
781 struct charger *charger = data;
918 static int input_callback(int fd, short revents, void *data) argument
920 struct charger *charger = data;
/system/core/debuggerd/
H A Dtombstone.c51 #define TOMBSTONE_DIR "/data/tombstones"
54 #define NCRASH_SOCKET_PATH "/data/system/ndebugsocket"
638 uint32_t data; local
639 if (!try_get_word_ptrace(tid, address, &data)) {
644 if ((*p++ = (data >> 0) & 0xff) == 0) {
647 if ((*p++ = (data >> 8) & 0xff) == 0) {
650 if ((*p++ = (data >> 16) & 0xff) == 0) {
653 if ((*p++ = (data >> 24) & 0xff) == 0) {
677 * in a zero byte that marks end-of-data.
/system/extras/ext4_utils/
H A Dsha1.c18 #define SHA1HANDSOFF /* Copies data before messing with it. */
215 * Run your data through this.
217 void SHA1Update(context, data, len)
219 const u_char *data;
225 assert(data != 0);
232 (void)memcpy(&context->buffer[j], data, (i = 64-j));
235 SHA1Transform(context->state, &data[i]);
240 (void)memcpy(&context->buffer[j], &data[i], len - i);

Completed in 546 milliseconds

123456