Searched defs:size (Results 1 - 25 of 89) sorted by relevance

1234

/system/extras/ext4_utils/
H A Dsparse_crc32.c101 u32 sparse_crc32(u32 crc_in, const void *buf, int size) argument
107 while (size--)
H A Dcontents.h25 unsigned long size; member in struct:dentry
/system/core/libcutils/
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:__anon378
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 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 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 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...]
/system/extras/tests/bionic/libstdc++/
H A Dtest_cstring.cpp69 volatile std::size_t size; member in namespace:android
H A Dtest_cstdio.cpp155 volatile std::size_t size; local
/system/core/adb/
H A Dlog_service.c89 size_t size = sizeof(struct logger_entry) + buf->len; local
91 writex(fd, buf, size);
H A Dframebuffer_service.c39 unsigned int size; member in struct:fbinfo
88 fbinfo.size = w * h * 4;
102 fbinfo.size = w * h * 4;
116 fbinfo.size = w * h * 3;
130 fbinfo.size = w * h * 2;
144 fbinfo.size = w * h * 4;
164 for(i = 0; i < fbinfo.size; i += sizeof(buf)) {
168 if(readx(fd_screencap, buf, fbinfo.size % sizeof(buf))) goto done;
169 if(writex(fd, buf, fbinfo.size % sizeof(buf))) goto done;
H A Dremount_service.c38 int size; local
48 size = adb_read(fd, buf, sizeof(buf) - 1);
H A Dtransport_usb.c84 unsigned size = p->msg.data_length; local
93 if(usb_write(t->usb, &p->data, size)) {
/system/core/libpixelflinger/tinyutils/
H A DSharedBuffer.cpp20 SharedBuffer* SharedBuffer::alloc(size_t size) argument
22 SharedBuffer* sb = static_cast<SharedBuffer *>(malloc(sizeof(SharedBuffer) + size));
25 sb->mSize = size;
45 memcpy(sb->data(), data(), size());
H A DSharedBuffer.h28 /*! allocate a buffer of size 'size' and acquire() it.
31 static SharedBuffer* alloc(size_t size);
49 //! get size of the buffer
50 inline size_t size() const;
58 //! get the size of a SharedBuffer object from its data
65 SharedBuffer* editResize(size_t size) const;
71 SharedBuffer* reset(size_t size) const;
111 size_t SharedBuffer::size() const { function in class:android::SharedBuffer
H A DVectorImpl.h25 * reduces code size.
55 inline size_t size() const { return mCount; } function in class:android::VectorImpl
58 ssize_t setCapacity(size_t size);
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);
/system/core/libzipfile/
H A Dtest_zipfile.c12 size_t size, unsize; local
41 size = ftell(f);
44 buf = malloc(size);
45 fread(buf, 1, size, f);
47 zip = init_zipfile(buf, size);
74 size = unsize * 1.001;
75 scratch = malloc(size);
77 err = decompress_zipentry(entry, scratch, size);
/system/core/sh/
H A Dmystring.c75 * truncation is performed. "Size" is the size of "to".
79 scopyn(const char *from, char *to, int size) argument
82 while (--size > 0) {
/system/extras/fatblock/
H A Dfat.c37 cluster_t first_cluster, uint32_t size)
47 de->size = htole32(size);
35 fat_dirent_set(struct fat_dirent *de, char *name, uint8_t attr, cluster_t first_cluster, uint32_t size) argument
/system/core/fastboot/
H A Dprotocol.c43 static int check_response(usb_handle *usb, unsigned size, argument
87 if(dsize > size) {
88 strcpy(ERROR, "data size too large");
104 const void *data, unsigned size,
126 return check_response(usb, size, 0, response);
129 r = check_response(usb, size, 1, 0);
133 size = r;
135 if(size) {
136 r = usb_write(usb, data, size);
142 if(r != ((int) size)) {
103 _command_send(usb_handle *usb, const char *cmd, const void *data, unsigned size, char *response) argument
167 fb_download_data(usb_handle *usb, const void *data, unsigned size) argument
[all...]
/system/core/init/
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
/system/core/libpixelflinger/tests/codegen/
H A Dcodegen.cpp26 ScanlineAssembly(needs_t needs, size_t size) argument
27 : Assembly(size), mKey(needs) { }
/system/core/toolbox/
H A Dinsmod.c17 ssize_t size; local
28 size = sb.st_size;
31 buffer = malloc(size);
36 ret = read(fd, buffer, size);
37 if (ret != size)
41 *_size = size;
52 ssize_t size = 0; local
63 file = read_file(argv[1], &size);
85 ret = init_module(file, size, opts);

Completed in 193 milliseconds

1234