/system/core/libsparse/ |
H A D | sparse_crc32.c | 101 uint32_t sparse_crc32(uint32_t crc_in, const void *buf, int size) argument 107 while (size--)
|
/system/core/libcutils/ |
H A D | buffer.h | 31 * 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 D | ashmem-dev.c | 40 * `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 D | memory.c | 20 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 D | ashmem-host.c | 35 int ashmem_create_region(const char *ignored, size_t size) argument 69 if (ftruncate(fd, size) == -1)
|
H A D | buffer.c | 47 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 D | array.c | 28 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...] |
/system/extras/tests/bionic/libstdc++/ |
H A D | test_cstring.cpp | 69 volatile std::size_t size; member in namespace:android
|
H A D | test_cstdio.cpp | 155 volatile std::size_t size; local
|
/system/core/adb/ |
H A D | log_service.c | 89 size_t size = sizeof(struct logger_entry) + buf->len; local 91 writex(fd, buf, size);
|
H A D | framebuffer_service.c | 42 unsigned int size; member in struct:fbinfo 91 fbinfo.size = w * h * 4; 105 fbinfo.size = w * h * 4; 119 fbinfo.size = w * h * 3; 133 fbinfo.size = w * h * 2; 147 fbinfo.size = w * h * 4; 167 for(i = 0; i < fbinfo.size; i += sizeof(buf)) { 171 if(readx(fd_screencap, buf, fbinfo.size % sizeof(buf))) goto done; 172 if(writex(fd, buf, fbinfo.size % sizeof(buf))) goto done;
|
H A D | remount_service.c | 38 int size; local 48 size = adb_read(fd, buf, sizeof(buf) - 1);
|
H A D | transport_usb.c | 84 unsigned size = p->msg.data_length; local 93 if(usb_write(t->usb, &p->data, size)) {
|
/system/core/libpixelflinger/tinyutils/ |
H A D | SharedBuffer.cpp | 20 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 D | SharedBuffer.h | 28 /*! 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 D | VectorImpl.h | 25 * 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 D | SortedVector.h | 61 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 D | test_zipfile.c | 12 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);
76 size = unsize * 1.001;
77 scratch = malloc(size);
79 err = decompress_zipentry(entry, scratch, size);
|
/system/core/sh/ |
H A D | mystring.c | 75 * 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/ext4_utils/ |
H A D | contents.h | 25 unsigned long size; member in struct:dentry
|
/system/extras/fatblock/ |
H A D | fat.c | 37 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/init/ |
H A D | keychords.c | 38 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 D | logo.c | 44 unsigned size; member in struct:FB
|
/system/core/libpixelflinger/tests/codegen/ |
H A D | codegen.cpp | 31 ScanlineAssembly(needs_t needs, size_t size) argument 32 : Assembly(size), mKey(needs) { }
|
/system/core/toolbox/ |
H A D | insmod.c | 17 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);
|