Searched refs:size (Results 26 - 50 of 134) sorted by path

123456

/system/core/include/zipfile/
H A Dzipfile.h30 zipfile_t init_zipfile(const void* data, size_t size);
40 // Return the size of the entry.
46 // The buffer must be 1.001 times the buffer size returned
/system/core/init/
H A Dbuiltins.c140 unsigned size; local
143 module = read_file(filename, &size);
147 ret = init_module(module, size, options);
284 int size = 0; local
288 size += strlen(args[i]) + 1;
291 return do_insmod_inner(nargs, args, size);
H A Ddevices.c421 unsigned int size; local
H A Dkeychords.c38 int i, size; local
42 size = sizeof(*keychord) + svc->nkeycodes * sizeof(keychord->keycodes[0]);
43 keychords = realloc(keychords, keychords_length + size);
61 keychords_length += size;
H A Dlogo.c44 unsigned size; member in struct:FB
H A Dproperty_service.c116 size_t size; member in struct:__anon374
120 static int init_workspace(workspace *w, size_t size) argument
132 if (ftruncate(fd, size) < 0)
135 data = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
148 w->size = size;
434 ERROR("sys_prop: mis-match msg size recieved: %d expected: %d errno: %d\n",
487 *sz = pa_workspace.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/libctest/
H A Dctest.c34 int size; member in struct:__anon387
60 assert(testSuite->size <= MAX_TESTS);
62 int index = testSuite->size;
66 testSuite->size++;
74 failures, suite->size);
117 for (suite->currentTest = 0; suite->currentTest < suite->size;
146 printf("SUCCESS! %d tests ran successfully.\n", suite->size);
/system/core/libcutils/arch-x86/
H A Dsse2-memset16-atom.S60 .size name, .-name
H A Dsse2-memset32-atom.S60 .size name, .-name
/system/core/libcutils/
H A Darray.c28 int size; member in struct:Array
94 int size = array->size; local
95 int result = ensureCapacity(array, size + 1);
99 array->contents[size] = pointer;
100 array->size++;
106 assert(index < array->size);
120 int newSize = array->size - 1;
128 array->size = newSize;
144 int oldSize = array->size;
[all...]
H A Dashmem-dev.c40 * `size' is the size of the region, in page-aligned bytes
42 int ashmem_create_region(const char *name, size_t size) argument
59 ret = ioctl(fd, ASHMEM_SET_SIZE, size);
H A Dashmem-host.c35 int ashmem_create_region(const char *ignored, size_t size) argument
69 if (ftruncate(fd, size) == -1)
H A Dbuffer.c47 Buffer* bufferWrap(char* data, size_t capacity, size_t size) { argument
55 buffer->size = size;
72 buffer->size = 0;
78 assert(buffer->size < buffer->expected);
81 buffer->data + buffer->size,
82 buffer->expected - buffer->size);
85 buffer->size += bytesRead;
86 return buffer->size;
93 buffer->remaining = buffer->size;
[all...]
H A Dbuffer.h31 * Byte buffer of known size. Keeps track of how much data has been read
47 size_t size; member in struct:__anon388
56 #define bufferReadComplete(buffer) (buffer->expected == buffer->size)
71 Buffer* bufferWrap(char* data, size_t capacity, size_t size);
87 * errno (see read()). Returns 0 for EOF. Updates buffer->size and returns
88 * the new size after a succesful read.
90 * Precondition: buffer->size < buffer->expected
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 Dmemory.c20 void android_memset16(uint16_t* dst, uint16_t value, size_t size) argument
22 size >>= 1;
23 while (size--) {
30 void android_memset32(uint32_t* dst, uint32_t value, size_t size) argument
32 size >>= 2;
33 while (size--) {
62 * Copy src to string dst of size siz. At most siz-1 characters
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 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 Dprivate.h249 void * irealloc P((void * pointer, int 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/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;
H A Dpacket.h21 int send_packet(int s, int if_index, struct dhcp_msg *msg, int size,
/system/core/libpixelflinger/
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) {

Completed in 152 milliseconds

123456