Searched defs:data (Results 51 - 75 of 92) sorted by relevance

1234

/system/core/libpixelflinger/
H A Dbuffer.cpp63 dst->data = src->data;
69 dst->data += bpr * (dst->height-1);
96 gen.data = int32_t(s.data);
118 uint8_t* const data = s->data + index * f->size; local
121 case 1: v = *data; break;
122 case 2: v = *(uint16_t*)data; break;
123 case 3: v = (data[
175 uint8_t* const data = s->data + index * f->size; local
[all...]
/system/core/libsparse/
H A Dbacked_block.c32 void *data; member in struct:backed_block::__anon460::__anon461
33 } data; member in union:backed_block::__anon460
78 return bb->data.data;
216 /* Don't support merging data for now */
287 /* Queues a fill block of memory to be written to the specified data blocks */
305 /* Queues a block of memory to be written to the specified data blocks */
306 int backed_block_add_data(struct backed_block_list *bbl, void *data, argument
317 bb->data.data
[all...]
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/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) {
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/extras/ext4_utils/
H A Dcontents.c55 static struct ext4_dir_entry_2 *add_dentry(u8 *data, u32 *offset, argument
74 dentry = (struct ext4_dir_entry_2 *)(data + *offset);
99 u8 *data; local
126 data = inode_allocate_data_extents(inode, len, len);
127 if (data == NULL) {
138 dentry = add_dentry(data, &offset, NULL, inode_num, ".", EXT4_FT_DIR);
144 dentry = add_dentry(data, &offset, dentry, dir_inode_num, "..", EXT4_FT_DIR);
151 dentry = add_dentry(data, &offset, dentry, 0,
163 dentry = (struct ext4_dir_entry_2 *)(data + offset);
228 u8 *data local
[all...]
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/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/bionic/libc/other/
H A Dtest_jpeg.c138 int decompress(char* data, long fsize)
165 /* Specify data source for decompression */
168 _source_init( &sourcemgr, data, fsize );
310 char* data; local
335 data = malloc( fsize );
336 if (data == NULL) {
342 fread( data, 1, fsize, f );
351 decompress( data, fsize );
353 free( data );
/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/extras/tests/framebuffer/
H A Dfb_test.c32 void *data; member in struct:simple_fb
99 fb->data = bits;
107 fb->data = (void *)((unsigned long)bits +
279 clear_screen(vi.xres, vi.yres, gr_fbs[0].data);
280 clear_screen(vi.xres, vi.yres, gr_fbs[1].data);
282 draw_grid(w, h, gr_fbs[id].data);
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/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/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/media/camera/tests/
H A Dcamera_metadata_tests.cpp241 EXPECT_EQ(exposure_time, *entry.data.i64);
250 EXPECT_EQ(sensitivity, *entry.data.i32);
259 EXPECT_EQ(focusDistance, *entry.data.f);
269 EXPECT_EQ(colorTransform[i], entry.data.f[i] );
336 EXPECT_EQ(exposure_time, *entry.data.i64);
340 entry.data.u8 = NULL;
347 EXPECT_EQ(NULL, entry.data.u8);
400 EXPECT_EQ(e1.data.u8[j], e2.data.u8[j]);
459 EXPECT_EQ(e1.data
765 uint8_t data[entry_data_count * 8]; local
[all...]
/system/netd/
H A DDnsProxyListener.cpp64 // Sends 4 bytes of big-endian length, followed by the data.
66 static bool sendLenAndData(SocketClient *c, const int len, const void* data) { argument
69 (len == 0 || c->sendData(data, len) == 0);
/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/core/adb/
H A Dusb_libusb.c86 D("Device offered more data\n");
100 usb_bulk_write(usb_handle *uh, const void *data, int len) argument
105 r = libusb_bulk_transfer(uh->devh, uh->end_point_address[1], (void *)data, len,
118 usb_bulk_read(usb_handle *uh, void *data, int len) argument
123 r = libusb_bulk_transfer(uh->devh, uh->end_point_address[0], data, len,
138 unsigned char *data = (unsigned char*) _data; local
153 n = usb_bulk_write(uh, data, xfer);
161 data += xfer;
179 unsigned char *data = (unsigned char*) _data; local
187 n = usb_bulk_read(uh, data, xfe
[all...]
H A Dfile_sync_client.c121 char data[SYNC_DATA_MAX]; member in struct:syncsendbuf
224 ret = adb_read(lfd, sbuf->data, SYNC_DATA_MAX);
259 memcpy(sbuf->data, &file_buffer[total], count);
277 len = readlink(path, sbuf->data, SYNC_DATA_MAX-1);
282 sbuf->data[len] = '\0';
391 msg.data.id = ID_DONE;
392 msg.data.size = htoll(mtime);
393 if(writex(fd, &msg.data, sizeof(msg.data)))
403 if(readx(fd, sbuf->data, le
[all...]
H A Dusb_linux.c311 static int usb_bulk_write(usb_handle *h, const void *data, int len) argument
322 urb->buffer = (void*) data;
364 static int usb_bulk_read(usb_handle *h, void *data, int len) argument
374 urb->buffer = data;
438 unsigned char *data = (unsigned char*) _data; local
455 n = usb_bulk_write(h, data, xfer);
463 data += xfer;
476 unsigned char *data = (unsigned char*) _data; local
484 n = usb_bulk_read(h, data, xfer);
490 data
[all...]
/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...]
H A Dproperty_service.c53 #define PERSISTENT_PROPERTY_DIR "/data/property"
115 void *data; member in struct:__anon374
122 void *data; local
135 data = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
136 if(data == MAP_FAILED)
147 w->data = data;
181 pa_info_array = (void*) (((char*) pa_workspace.data) + PA_INFO_START);
183 pa = pa_workspace.data;
490 static void load_properties(char *data) argument
519 char *data; local
[all...]
H A Dutil.c151 char *data; local
156 data = 0;
176 data = (char*) malloc(sz + 2);
177 if(data == 0) goto oops;
179 if(read(fd, data, sz) != sz) goto oops;
181 data[sz] = '\n';
182 data[sz+1] = 0;
184 return data;
188 if(data != 0) free(data);
395 char data[1024]; local
[all...]
/system/bluetooth/bluez-clean-headers/bluetooth/
H A Dl2cap.h124 uint8_t data[0]; member in struct:__anon253
132 uint8_t data[0]; member in struct:__anon254
184 uint8_t data[0]; member in struct:__anon259
/system/core/fastboot/
H A Dengine.c92 void *data; member in struct:Action
401 a->data = (void*)skip_if_not_supported;
405 void fb_queue_flash(const char *ptn, void *data, unsigned sz) argument
410 a->data = data;
423 a->data = s;
459 const char **value = a->data;
516 a->data = value;
520 if (a->data == 0) die("out of memory");
529 fprintf(stderr, "%s: %s\n", (char*) a->data, res
580 fb_queue_download(const char *name, void *data, unsigned size) argument
[all...]

Completed in 1458 milliseconds

1234