Searched refs:size (Results 51 - 75 of 134) sorted by relevance

123456

/system/extras/libublock/
H A Dublock.c33 uint64_t size; member in struct:ublock_ctx
89 out_h->size = ub_ctx->size;
344 size_t size; local
358 size = ublock_init_buf_size();
359 in_buf = malloc(size);
360 out_buf = malloc(size);
367 ub_ctx->size = dev_size;
377 result = ublock_do_request(ub_ctx, in_buf, size, out_buf, size);
[all...]
/system/core/libcutils/
H A Dmq.c56 typedef void BytesListener(Credentials credentials, char* bytes, size_t size);
92 /** Packet size. Used for BYTES. */
93 size_t size; member in union:__anon395::__anon396
282 peerProxy->outgoingHeader.size = sizeof(Header);
451 ssize_t size = bufferWrite(outgoing, peerProxy->fd->fd); local
452 if (size < 0) {
582 ALOGD("Expecting %d bytes.", header->size);
585 if (bufferPrepareForRead(peerProxy->inputBuffer, header->size) == -1) {
587 (unsigned int) header->size);
722 ssize_t size; local
944 ssize_t size = bufferRead(in, peerProxy->fd->fd); local
1133 peerSendBytes(pid_t pid, const char* bytes, size_t size) argument
1200 peerSendSharedBytes(pid_t pid, char* bytes, size_t size, void (*free)(void* context), void* context) argument
[all...]
H A Dashmem-host.c35 int ashmem_create_region(const char *ignored, size_t size) argument
69 if (ftruncate(fd, size) == -1)
H A Dhashmap.c40 size_t size; member in struct:Hashmap
67 map->size = 0;
94 return map->size;
103 if (map->size > (map->bucketCount * 3 / 4)) {
204 map->size++;
269 map->size++;
296 map->size--;
H A Dopen_memstream.c71 size_t allocSize; /* size of buffer */
80 * Ensure that we have enough storage to write "size" bytes at the
88 DBUG(("+++ ensureCap off=%d size=%d\n", stream->offset, writeSize));
105 DBUG(("+++ realloc %p->%p to size=%d\n",
123 static int write_memstream(void* cookie, const char* buf, int size) argument
127 if (ensureCapacity(stream, size) < 0)
139 memcpy(*stream->bufp + stream->offset, buf, size);
140 stream->offset += size;
156 return size;
H A Dselector.c154 int size = arraySize(selectableFds); local
155 while (i < size) {
160 size--;
216 int size = arraySize(selectableFds); local
218 for (i = 0; i < size; i++) {
/system/core/toolbox/grep/
H A Dfastgrep.c283 size_t size; local
288 if ((size = mbstowcs(NULL, (const char *)data, 0)) ==
292 wdata = grep_malloc(size * sizeof(wint_t));
294 if (mbstowcs(wdata, (const char *)data, size) ==
298 if ((size = mbstowcs(NULL, (const char *)pat, 0)) ==
302 wpat = grep_malloc(size * sizeof(wint_t));
304 if (mbstowcs(wpat, (const char *)pat, size) == ((size_t) - 1))
H A Dgrep.h147 void *grep_malloc(size_t size);
148 void *grep_calloc(size_t nmemb, size_t size);
149 void *grep_realloc(void *ptr, size_t size);
/system/core/fastboot/
H A Dengine.c93 unsigned size; member in struct:Action
107 long long image_size; // real size of image file
132 * size of the buffer returned as image->image_size.
134 * image->partition_size specifies what is the size of the
207 die("Command length (%d) exceeds maximum size (%d)", cmdsize, sizeof(a->cmd));
232 static void *load_buffer(int fd, off_t size) argument
241 buffer = malloc(size);
248 while(count < size) {
249 ssize_t actually_read = read(fd, (char*)buffer+count, size-count);
266 buffer = mmap(NULL, size, PROT_REA
580 fb_queue_download(const char *name, void *data, unsigned size) argument
[all...]
/system/extras/tests/bionic/libstdc++/
H A Dtest_cstring.cpp69 volatile std::size_t size; member in namespace:android
/system/extras/tests/include/
H A DtestUtil.h58 void testXDump(const void *buf, size_t size);
/system/vold/
H A Dcryptfs.h62 unsigned int size; member in struct:volume_info
H A DFat.cpp170 const char *size = tmp; local
172 args[8] = size;
/system/core/libpixelflinger/tinyutils/
H A DSortedVector.h61 inline size_t size() const { return VectorImpl::size(); } function in class:android::SortedVector
66 //! setst the capacity. capacity can never be reduced less than size()
67 inline ssize_t setCapacity(size_t size) { return VectorImpl::setCapacity(size); } argument
185 assert( index<size() );
196 assert( (index>0 ? index : -index)<size() );
197 return *(array() + ((index<0) ? (size()-index) : index));
202 return *(array() + size() - 1);
H A DKeyedVector.h44 inline size_t size() const { return mVector.size(); } function in class:android::KeyedVector
49 //! setst the capacity. capacity can never be reduced less than size()
50 inline ssize_t setCapacity(size_t size) { return mVector.setCapacity(size); } argument
158 if (index<size()) {
/system/core/sdcard/
H A Dfuse.h88 __u64 size; member in struct:fuse_attr
334 __u64 size; member in struct:fuse_setattr_in
384 __u32 size; member in struct:fuse_read_in
396 __u32 size; member in struct:fuse_write_in
404 __u32 size; member in struct:fuse_write_out
421 __u32 size; member in struct:fuse_setxattr_in
426 __u32 size; member in struct:fuse_getxattr_in
431 __u32 size; member in struct:fuse_getxattr_out
/system/extras/fatblock/
H A Dfat.h100 uint32_t size; member in struct:fat_dirent
122 cluster_t first_cluster, uint32_t size);
/system/core/libpixelflinger/
H A Dclear.cpp53 const uint32_t size = c->formats[s.format].size; local
54 const int32_t stride = s.stride * size;
55 uint8_t* dst = (uint8_t*)s.data + (l + t*s.stride)*size;
56 w *= size;
64 switch (size) {
H A Dbuffer.cpp68 const int32_t bpr = -dst->stride * pixelFormat.size;
118 uint8_t* const data = s->data + index * f->size;
120 switch (f->size) {
129 pixel->c[i] = extract(v, f->c[i].h, f->c[i].l, f->size*8);
175 uint8_t* const data = s->data + index * f->size;
203 switch (f->size) {
216 switch (f->size) {
268 switch (f->size) {
/system/core/libnetutils/
H A Ddhcpclient.c342 static int send_message(int sock, int if_index, dhcp_msg *msg, int size) argument
345 dump_dhcp_msg(msg, size);
347 return send_packet(sock, if_index, msg, size, INADDR_ANY, INADDR_BROADCAST,
354 if (verbose) ALOGD("netcfg: Wrong size %d != %d\n", sz, DHCP_MSG_FIXED_SIZE);
394 int s, r, size; local
442 size = 0;
447 size = init_dhcp_discover_msg(msg, hwaddr, xid);
451 size = init_dhcp_request_msg(msg, hwaddr, xid, info.ipaddr, info.serveraddr);
456 if (size != 0) {
457 r = send_message(s, if_index, msg, size);
[all...]
H A Dpacket.c89 int send_packet(int s, int if_index, struct dhcp_msg *msg, int size, argument
103 ip.tot_len = htons(sizeof(ip) + sizeof(udp) + size);
115 udp.len = htons(sizeof(udp) + size);
130 udpsum = checksum(msg, size, udpsum);
138 iov[2].iov_len = size;
/system/core/libcorkscrew/arch-arm/
H A Dbacktrace-arm.c91 /* Get the EXIDX section start and size for the module that contains a
281 size_t size; local
284 size = 3;
292 size = (uint32_t)size_byte * sizeof(uint32_t) + 2;
300 while (size--) {
313 if (!(size--) || !try_next_byte(memory, stream, &op2)) {
355 if (!(size--) || !try_next_byte(memory, stream, &op2)) {
373 if (!(size--) || !try_next_byte(memory, stream, &op2)) {
383 if (!(size--) || !try_next_byte(memory, stream, &op2)) {
396 if (!(size
[all...]
/system/core/sh/
H A Doutput.c309 int size;
420 size = len;
421 if (size < prec)
422 size = prec;
423 size += sign;
424 pad = width - size;
/system/core/toolbox/
H A Dschedtop.c51 size_t size = table->allocated; local
53 if (size < 128)
54 size = 128;
56 size *= 2;
58 new_table = realloc(table->data, size * sizeof(*table->data));
64 table->allocated = size;
/system/core/adb/
H A Dtransport_usb.c84 unsigned size = p->msg.data_length; local
93 if(usb_write(t->usb, &p->data, size)) {

Completed in 125 milliseconds

123456