Searched defs:data (Results 76 - 92 of 92) sorted by path

1234

/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 Dextent.c28 /* Creates data buffers for the first backing_len bytes of a block allocation
33 u8 *data = calloc(backing_len, 1); local
34 if (!data)
37 u8 *ptr = data;
51 return data;
54 /* Queues each chunk of a file to be written to contiguous data block
124 u8 *data = calloc(info.block_size, 1); local
125 if (!data)
128 sparse_file_add_data(info.sparse_file, data, info.block_size,
138 hdr = (struct ext4_extent_header *)data;
185 u8 *data = NULL; 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/include/system/
H A Dcamera_metadata.h76 * The data union pointers point to the real data in the buffer, and can be
78 * number of entries in data of the entry's type, not a count of bytes.
92 } data; member in struct:camera_metadata_entry
111 } data; member in struct:camera_metadata_ro_entry
134 * data, which contains a 'count' number of entries of type 'type'. The packet
135 * has a fixed capacity for entries and for extra data. A new entry uses up one
136 * entry slot, and possibly some amount of data capacity; the function
137 * calculate_camera_metadata_entry_data_size() provides the amount of data
159 * and extra data
[all...]
/system/media/camera/src/
H A Dcamera_metadata.c28 * array is no larger than 4 bytes in size, it is stored in the data.value[]
29 * array; otherwise, it can found in the parent's data array at index
30 * data.offset.
38 } data; member in struct:camera_metadata_buffer_entry
45 * its values stored at an offset in data.
65 * | start of camera_metadata.data |
74 * In short, the entries and data are contiguous in memory after the metadata
86 uint8_t *data; member in struct:camera_metadata
157 metadata->data =
160 metadata->data
309 add_camera_metadata_entry_raw(camera_metadata_t *dst, uint32_t tag, uint8_t type, const void *data, size_t data_count) argument
340 add_camera_metadata_entry(camera_metadata_t *dst, uint32_t tag, const void *data, size_t data_count) argument
477 update_camera_metadata_entry(camera_metadata_t *dst, size_t index, const void *data, size_t data_count, camera_metadata_entry_t *updated_entry) argument
[all...]
/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/keystore/
H A Dkeystore.cpp201 static size_t readFully(int fd, uint8_t* data, size_t size) { argument
204 ssize_t n = TEMP_FAILURE_RETRY(read(fd, data, size));
208 data += n;
214 static size_t writeFully(int fd, uint8_t* data, size_t size) { argument
217 ssize_t n = TEMP_FAILURE_RETRY(write(fd, data, size));
221 data += n;
246 bool generate_random_data(uint8_t* data, size_t size) const { argument
247 return (readFully(mRandom, data, size) == size);
265 * metadata || Enc(MD5(data) || data)
651 uint8_t* data; local
1064 uint8_t* data; local
1133 uint8_t* data = NULL; local
1180 sign(KeyStore* keyStore, int sock, uid_t uid, Value* keyName, Value* data, Value*) argument
1221 verify(KeyStore* keyStore, int, uid_t uid, Value* keyName, Value* data, Value* signature) argument
1296 uint8_t *data; local
[all...]
H A Dkeystore_client.cpp74 uint8_t* data = reply->get(); local
80 int n = TEMP_FAILURE_RETRY(recv(sock, &data[offset], length - offset, 0));
82 ALOGW("truncated read from keystore for data");
130 uint8_t* data = mData; local
132 return 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...]

Completed in 71 milliseconds

1234