/system/extras/tests/bionic/libc/bionic/ |
H A D | test_cond.c | 78 int count = (int)(sizeof t/sizeof t[0]); local 80 for (nn = 0; nn < count; nn++) { 88 for (nn = 0; nn < count; nn++) {
|
/system/core/fastbootd/ |
H A D | config.c | 119 size_t count = 0; local 142 while (count < (size_t)len) { 143 ret = read(fd, buffer + count, len - count); 153 count += ret;
|
/system/core/init/ |
H A D | logo.c | 33 void android_memset16(void *_ptr, unsigned short val, unsigned count) argument 36 count >>= 1; 37 while(count--) 103 /* 565RLE image format: [count(2 bytes), rle(2 bytes)] */ 110 unsigned count, max; local 135 count = s.st_size; 137 while (count > 3) { 145 count -= 4;
|
H A D | bootchart.c | 81 int count; member in struct:__anon137 89 buff->count = 0; 97 int avail = sizeof(buff->data) - buff->count; 101 memcpy( buff->data + buff->count, src, avail ); 105 buff->count += avail; 106 if (buff->count == FILE_BUFF_SIZE) { 107 unix_write( buff->fd, buff->data, buff->count ); 108 buff->count = 0; 116 if (buff->count > 0) { 117 unix_write( buff->fd, buff->data, buff->count ); 303 int timeout = 0, count = 0; local [all...] |
/system/core/include/utils/ |
H A D | BasicHashtable.h | 100 void* allocateBuckets(size_t count) const; 103 void releaseBuckets(void* __restrict__ buckets, size_t count) const; 107 void destroyBuckets(void* __restrict__ buckets, size_t count) const; 112 void* __restrict__ toBuckets, size_t count) const; 127 inline static size_t chainStart(hash_t hash, size_t count) { argument 128 return hash % count; 134 inline static size_t chainIncrement(hash_t hash, size_t count) { argument 135 return ((hash >> 7) | (hash << 25)) % (count - 1) + 1; 140 inline static size_t chainSeek(size_t index, size_t increment, size_t count) { argument 141 return (index + increment) % count; [all...] |
H A D | Flattenable.h | 96 inline status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const; 105 inline status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count); 118 void*& buffer, size_t& size, int*& fds, size_t& count) const { 119 return static_cast<T const*>(this)->T::flatten(buffer, size, fds, count); 123 void const*& buffer, size_t& size, int const*& fds, size_t& count) { 124 return static_cast<T*>(this)->T::unflatten(buffer, size, fds, count); 122 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument
|
/system/core/libsparse/ |
H A D | sparse.c | 194 int64_t *count = priv; local 195 *count += len; 203 int64_t count = 0; local 206 out = output_file_open_callback(out_counter_write, &count, 220 return count; 226 int64_t count = 0; local 242 out_counter = output_file_open_callback(out_counter_write, &count, 249 count = 0; 250 /* will call out_counter_write to update count */ 252 if (file_len + count > le [all...] |
/system/core/libutils/ |
H A D | CallStack.cpp | 98 ssize_t count; local 101 count = unwind_backtrace_thread(tid, mStack, ignoreDepth + 1, maxDepth); 103 count = unwind_backtrace(mStack, ignoreDepth + 1, maxDepth); 106 count = 0; 109 mCount = count > 0 ? count : 0;
|
/system/core/liblinenoise/ |
H A D | linenoise.c | 366 int count; local 374 count = strlen(buf); 375 if (count && buf[count-1] == '\n') { 376 count--; 377 buf[count] = '\0'; 381 count = linenoisePrompt(fd, buf, buflen, prompt); 384 return count; 389 int count; local 404 count [all...] |
/system/core/libmincrypt/ |
H A D | sha.c | 103 ctx->count = 0; 108 int i = (int) (ctx->count & 63); 111 ctx->count += len; 125 uint64_t cnt = ctx->count * 8; 129 while ((ctx->count & 63) != 56) {
|
H A D | sha256.c | 132 ctx->count = 0; 137 int i = (int) (ctx->count & 63); 140 ctx->count += len; 154 uint64_t cnt = ctx->count * 8; 158 while ((ctx->count & 63) != 56) {
|
/system/core/libnl_2/ |
H A D | attr.c | 231 int nla_memcpy(void *dest, struct nlattr *src, int count) argument 235 if (count > nla_len(src)) 236 count = nla_len(src); 237 memcpy(dest, nla_data(src), count); 238 return count;
|
/system/core/adb/ |
H A D | usb_linux_client.c | 346 size_t count = 0; local 350 ret = adb_write(bulk_in, buf + count, length - count); 355 count += ret; 357 } while (count < length); 360 return count; 380 size_t count = 0; local 384 ret = adb_read(bulk_out, buf + count, length - count); 387 D("[ bulk_read failed fd=%d length=%d count [all...] |
/system/media/camera/src/ |
H A D | camera_metadata.c | 51 size_t count; member in struct:camera_metadata_buffer_entry 345 ALOGE("%s: Entry count (%u) should be <= entry capacity (%u)", 405 entry.count); 431 } else if (entry.count == 0) { 459 entry->count) > 0 ) { 523 entry->count = data_count; 588 entry->count = buffer_entry->count; 589 if (buffer_entry->count * 646 entry->count); 886 int count = entry->count; local 893 print_data(int fd, const uint8_t *data_ptr, uint32_t tag, int type, int count, int indentation) argument [all...] |
/system/media/camera/tests/ |
H A D | camera_metadata_tests.cpp | 264 EXPECT_EQ((size_t)1, entry.count); 273 EXPECT_EQ((size_t)1, entry.count); 282 EXPECT_EQ((size_t)1, entry.count); 291 EXPECT_EQ((size_t)9, entry.count); 292 for (unsigned int i=0; i < entry.count; i++) { 359 EXPECT_EQ((size_t)1, entry.count); 365 entry.count = 7890; 372 EXPECT_EQ((size_t)7890, entry.count); 440 EXPECT_EQ(e1.count, e2.count); [all...] |
/system/core/include/mincrypt/ |
H A D | hash-internal.h | 25 uint64_t count; member in struct:HASH_CTX
|
/system/extras/ext4_utils/ |
H A D | ext4fixup.c | 39 /* The inode block count for a file/directory is in units of 512 byte blocks, 66 static int count = 0; variable 388 /* Update the free inodes count in each block group descriptor */ 398 critical_error("Failed sanity check on new inode count\n"); 404 /* Update the free inodes count in the superblock */ 453 unsigned int *count) 465 *count += i; 475 unsigned long long *block_list, unsigned int *count) 494 *count += i; 503 unsigned int count local 452 get_direct_blocks(struct ext4_inode *inode, unsigned long long *block_list, unsigned int *count) argument 474 get_indirect_blocks(int fd, struct ext4_inode *inode, unsigned long long *block_list, unsigned int *count) argument [all...] |
H A D | indirect.c | 351 u32 count = block_len; local 353 if (inode_attach_direct_blocks(inode, alloc, &count)) { 358 if (count > 0) { 359 if (inode_attach_indirect_blocks(inode, alloc, &count)) { 365 if (count > 0) { 366 if (inode_attach_dindirect_blocks(inode, alloc, &count)) { 372 if (count > 0) { 373 if (inode_attach_tindirect_blocks(inode, alloc, &count)) { 379 if (count) {
|
/system/core/libsync/ |
H A D | sync.c | 96 int sw_sync_timeline_inc(int fd, unsigned count) argument 98 __u32 arg = count;
|
/system/extras/showmap/ |
H A D | showmap.c | 26 int count; member in struct:mapinfo 80 info->count = 1; 141 current->count++; 253 unsigned count = 0; local 273 count += mi->count; 288 printf("%4d ", mi->count); 309 printf("%4d ", count);
|
/system/extras/fatblock/ |
H A D | import.c | 211 int count; local 241 count = 0; 281 count++; 294 d->size = sizeof(struct fat_dirent) * (count + (is_root ? 0 : 2)); 307 d->entries = malloc(sizeof(struct fat_dirent) * (count + (is_root ? 0 : 2))); 309 for (i = count - 1; i >= 0; i--) {
|
/system/extras/tests/bionic/libc/common/ |
H A D | test_cpu_set.c | 201 size_t count; local 202 for (count = 32; count <= 1024; count *= 2) { 203 cpu_set_t* set = CPU_ALLOC(count); 204 test_1_s(count/8, set);
|
/system/extras/tests/directiotest/ |
H A D | directiotest.c | 70 static ssize_t do_read(int fd, void *buf, off64_t start, size_t count) argument 78 ret = read(fd, (char *)buf + bytes_read, count - bytes_read); 87 } while (bytes_read < count); 92 static ssize_t do_write(int fd, const void *buf, off64_t start, size_t count) argument 100 ret = write(fd, (char *)buf + bytes_out, count - bytes_out); 109 } while (bytes_out < count);
|
/system/core/libcutils/ |
H A D | dir_hash.c | 270 int count = 0; local 281 count++; 285 list = malloc(count * sizeof(struct list *)); 296 count = 0; 298 list[count++] = r; 301 qsort(list, count, sizeof(struct list *), cmp); 315 for (i = 0; i < count; i++) {
|
/system/extras/sound/ |
H A D | playwav.c | 136 int fd, unsigned count) 138 next = malloc(count); 140 fprintf(stderr,"could not allocate %d bytes\n", count); 143 if (read(fd, next, count) != count) { 144 fprintf(stderr,"could not read %d bytes\n", count); 147 avail = count; 135 play_file(unsigned rate, unsigned channels, int fd, unsigned count) argument
|