/system/core/libcutils/ |
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 | 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...] |
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
|
/system/core/libsparse/ |
H A D | sparse_crc32.h | 19 uint32_t sparse_crc32(uint32_t crc, const void *buf, size_t size);
|
/system/core/include/cutils/ |
H A D | partition_utils.h | 23 void erase_footer(const char *dev_path, long long size);
|
H A D | memory.h | 27 /* size is given in bytes and must be multiple of 2 */ 28 void android_memset16(uint16_t* dst, uint16_t value, size_t size); 30 /* size is given in bytes and must be multiple of 4 */ 31 void android_memset32(uint32_t* dst, uint32_t value, size_t size); 35 size_t strlcpy(char *dst, const char *src, size_t size);
|
/system/extras/tests/memtest/ |
H A D | memtest.cpp | 134 int validate_memcpy(char* s, char* d, size_t size); 135 int validate_memset(char* s, char c, size_t size); 162 struct result_t { int size; float res; }; member in struct:result_t 165 int size = 0; local 168 if (size<128) size += 8; 169 else if (size<1024) size += 128; 170 else if (size<16384) size 238 validate_memcpy(char* s, char* d, size_t size) argument 288 struct result_t { int size; float res; }; member in struct:result_t 291 int size = 0; local 345 validate_memset(char* d, char c, size_t size) argument 389 validate_memcmp(const char* s, const char* d, size_t size) argument 426 struct result_t { int size; float res; }; member in struct:result_t 429 int size = 0; local 538 struct result_t { int size; float res; }; member in struct:result_t 541 int size = 0; local 597 size_t size = 0x40000000; local 627 size_t size = i==0 ? 4096 : 48*1024*1024; // 48 MB local [all...] |
/system/extras/tests/sdcard/ |
H A D | sysutil.cpp | 74 // @param size The size of the buffer pointed by str. Must be >= 1. 77 int readStringFromFile(const char *filename, char *const start, size_t size, bool must_exist=true) argument 79 if (NULL == start || size == 0) 99 --size; // reserve space for trailing '\0' 101 while (size > 0 && !error && !eof && attempts < kMaxAttempts) 105 s = read(fd, end, size); 122 size -= s; 161 size_t size = len; local 165 while (size > 235 kernelVersion(char *str, size_t size) argument 285 schedFeatures(char *str, size_t size) argument 447 size_t size = sizeof(pid); local 525 size_t size; local [all...] |
H A D | stopwatch.cpp | 36 #define SNPRINTF_OR_RETURN(str, size, format, ...) { \ 37 int len = snprintf((str), (size), (format), ## __VA_ARGS__); \ 39 if (len > static_cast<int>(size)) { \ 43 (size) -= len; (str) += len; \ 106 void StopWatch::sprint(char **str, size_t *size) argument 118 if (kVerbose) SNPRINTF_OR_RETURN(*str, *size, "# Got %d samples for %s\n", mDataLen, mName); 121 SNPRINTF_OR_RETURN(*str, *size, "# StopWatch %s total/cumulative duration %f Samples: %d\n", 123 printThroughput(str, size); 124 printAverageMinMax(str, size); 130 SNPRINTF_OR_RETURN(*str, *size, "# Nam 217 printAverageMinMax(char **str, size_t *size) argument 228 printThroughput(char **str, size_t *size) argument [all...] |
H A D | stopwatch.h | 71 // size_t size = sizeof(buffer); 72 // watch.sprint(&str, &size); 89 // to size the internal storage, when the capacity 111 // @param size[inout] On entry points to the size of the buffer 112 // pointed by *str. On exit *size is the amount of free space left 115 void sprint(char **str, size_t *size); 127 void printAverageMinMax(char **str, size_t *size); 128 void printThroughput(char **str, size_t *size);
|
H A D | sysutil.h | 57 // Minimum size for the buffer to retrieve the kernel version. 62 // @param size of the buffer pointed by str. 65 int kernelVersion(char *str, size_t size); 81 // Minimum size for the buffer to retrieve the sched features. 86 // @param size of the buffer pointed by str. 89 int schedFeatures(char *str, size_t size);
|
/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);
|
/system/core/include/sysutils/ |
H A D | NetlinkEvent.h | 41 bool decode(char *buffer, int size, int format = NetlinkListener::NETLINK_FORMAT_ASCII); 50 bool parseBinaryNetlinkMessage(char *buffer, int size); 51 bool parseAsciiNetlinkMessage(char *buffer, int size);
|
/system/core/fs_mgr/include/ |
H A D | fs_mgr.h | 24 int fs_mgr_get_crypt_info(char *fstab_file, char *key_loc, char *real_blk_dev, int size);
|
/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 | xattr.h | 22 #define EXT4_XATTR_SIZE(size) \ 23 (((size) + EXT4_XATTR_ROUND) & ~EXT4_XATTR_ROUND)
|
/system/core/fastboot/ |
H A D | protocol.c | 50 static int check_response(usb_handle *usb, unsigned int size, char *response) argument 91 if(!memcmp(status, "DATA", 4) && size > 0){ 93 if(dsize > size) { 94 strcpy(ERROR, "data size too large"); 109 static int _command_start(usb_handle *usb, const char *cmd, unsigned size, argument 130 return check_response(usb, size, response); 133 static int _command_data(usb_handle *usb, const void *data, unsigned size) argument 137 r = usb_write(usb, data, size); 143 if(r != ((int) size)) { 163 const void *data, unsigned size, 162 _command_send(usb_handle *usb, const char *cmd, const void *data, unsigned size, char *response) argument 207 fb_download_data(usb_handle *usb, const void *data, unsigned size) argument 295 int size = sparse_file_len(s, true, false); local [all...] |
/system/core/libpixelflinger/tinyutils/ |
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
|
/system/core/libpixelflinger/codeflinger/ |
H A D | CodeCache.cpp | 103 Assembly::Assembly(size_t size) 106 mBase = (uint32_t*)mspace_malloc(getMspace(), size); 108 "Failed to create Assembly of size %zd in executable " 109 "store of size %zd", size, kMaxCodeCacheCapacity); 110 mSize = size; 130 ssize_t Assembly::size() const 146 "of size %zd", newSize, kMaxCodeCacheCapacity); 148 return size(); 153 CodeCache::CodeCache(size_t size) [all...] |
/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/libnetutils/ |
H A D | packet.h | 21 int send_packet(int s, int if_index, struct dhcp_msg *msg, int size,
|
/system/core/libctest/ |
H A D | ctest.c | 34 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/adb/ |
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;
|