| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_error/ |
| 1-1.c | 40 #define BUF_SIZE 111 41 char buf[BUF_SIZE]; 59 memset(buf, 0xaa, BUF_SIZE); 63 aiocb.aio_nbytes = BUF_SIZE;
|
| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_read/ |
| 10-1.c | 40 #define BUF_SIZE 111 41 char buf[BUF_SIZE]; 48 memset(buf, 0xaa, BUF_SIZE); 52 aiocb.aio_nbytes = BUF_SIZE;
|
| 7-1.c | 40 #define BUF_SIZE 111 41 unsigned char check[BUF_SIZE]; 60 memset(check, 0xaa, BUF_SIZE); 64 aiocb.aio_nbytes = BUF_SIZE;
|
| 11-1.c | 42 #define BUF_SIZE 111 43 char buf[BUF_SIZE]; 61 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { 70 aiocb.aio_nbytes = BUF_SIZE;
|
| 9-1.c | 44 #define BUF_SIZE 512 45 char buf[BUF_SIZE]; 68 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { 78 aiocbs[i].aio_nbytes = BUF_SIZE;
|
| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_write/ |
| 5-1.c | 41 #define BUF_SIZE 512 42 char buf[BUF_SIZE]; 65 aiocb.aio_nbytes = BUF_SIZE; 86 if (ret != BUF_SIZE) {
|
| 8-1.c | 40 #define BUF_SIZE 512 41 char buf[BUF_SIZE]; 48 memset(buf, 0xaa, BUF_SIZE); 52 aiocb.aio_nbytes = BUF_SIZE;
|
| 8-2.c | 41 #define BUF_SIZE 512 42 char buf[BUF_SIZE]; 61 memset(buf, 0xaa, BUF_SIZE); 65 aiocb.aio_nbytes = BUF_SIZE;
|
| /external/compiler-rt/test/msan/Linux/ |
| xattr.cc | 59 int buf_size = 1024; variable 61 *buf = (char *)malloc(buf_size); 62 assert(__msan_test_shadow(*buf, buf_size) != -1); 63 ssize_t res = fun(*buf, buf_size); 65 assert(__msan_test_shadow(*buf, buf_size) == res); 74 buf_size *= 2; 83 int buf_size = 1024; variable 85 buf = (char *)malloc(buf_size); 86 assert(__msan_test_shadow(buf, buf_size) != -1); 87 ssize_t res = fun(attr_name, buf, buf_size); [all...] |
| /external/ltp/testcases/kernel/syscalls/fallocate/ |
| fallocate04.c | 43 static size_t buf_size; variable 71 buf_size = NUM_OF_BLOCKS * block_size; 121 tst_resm(TINFO, "allocate '%zu' bytes", buf_size); 123 if (fallocate(fd, 0, 0, buf_size) == -1) { 129 char buf[buf_size]; 133 SAFE_WRITE(cleanup, 1, fd, buf, buf_size); 186 char exp_buf[buf_size]; 191 check_file_data(exp_buf, buf_size); 228 char exp_buf[buf_size]; 233 check_file_data(exp_buf, buf_size); [all...] |
| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/ |
| 9-1.c | 49 static int do_test(int num_aiocbs, size_t buf_size) 76 int file_size = num_aiocbs * buf_size; 103 aiocbs[i]->aio_offset = i * buf_size; 104 aiocbs[i]->aio_buf = &bufs[i * buf_size]; 105 aiocbs[i]->aio_nbytes = buf_size; 173 if ((err != 0) && ((size_t)ret != buf_size)) { 197 int buf_size = 1024 * 64; local 205 ret = do_test(aio_cbs, buf_size); 206 buf_size += buf_size / 4 [all...] |
| /frameworks/av/services/camera/libcameraservice/api1/client2/ |
| Camera2Heap.h | 29 explicit Camera2Heap(size_t buf_size, uint_t num_buffers = 1, 31 mBufSize(buf_size), 33 mHeap = new MemoryHeapBase(buf_size * num_buffers, 0, name);
|
| /frameworks/minikin/tests/unittest/ |
| UnicodeUtilsTest.cpp | 24 const size_t BUF_SIZE = 256; 25 uint16_t buf[BUF_SIZE]; 28 ParseUnicode(buf, BUF_SIZE, "U+000D U+1F431 | 'a'", &size, &offset);
|
| /external/libavc/test/encoder/ |
| output.c | 67 WORD32 buf_size; local 71 buf_size = ps_app_ctxt->s_get_buf_info_op.s_ive_op.au4_min_out_buf_size[0]; 77 pu1_buf = (UWORD8 *)ih264a_aligned_malloc(16, buf_size); 82 buf_size); 86 ps_app_ctxt->as_output_buf[i].u4_buf_size = buf_size;
|
| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_return/ |
| 2-1.c | 35 #define BUF_SIZE 111 40 char buf[BUF_SIZE]; 59 memset(buf, 0xaa, BUF_SIZE); 63 aiocb.aio_nbytes = BUF_SIZE; 81 if (retval != BUF_SIZE) {
|
| 3-2.c | 38 #define BUF_SIZE 4096 43 char buf[BUF_SIZE]; 62 memset(buf, 0xaa, BUF_SIZE); 66 aiocb.aio_nbytes = BUF_SIZE; 88 if (retval != BUF_SIZE) {
|
| 3-1.c | 40 #define BUF_SIZE 4096 45 char buf[BUF_SIZE]; 64 memset(buf, 0xaa, BUF_SIZE); 68 aiocb.aio_nbytes = BUF_SIZE; 94 aiocb.aio_nbytes = BUF_SIZE / 2; 117 if (retval != (BUF_SIZE / 2)) {
|
| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/ |
| 12-1.c | 37 #define BUF_SIZE 1024 67 bufs = malloc(NUM_AIOCBS * BUF_SIZE); 83 aiocbs[i]->aio_buf = &bufs[i * BUF_SIZE]; 84 aiocbs[i]->aio_nbytes = BUF_SIZE; 106 if ((err != 0) && (ret != BUF_SIZE)) {
|
| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/ |
| 1-1.c | 35 #define BUF_SIZE 8 41 char str[BUF_SIZE] = "qwerty"; 50 if (ftruncate(fd, BUF_SIZE) != 0) { 56 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); 72 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0);
|
| 14-2.c | 35 #define BUF_SIZE 8 41 char str[BUF_SIZE] = "qwerty"; 50 if (ftruncate(fd, BUF_SIZE) != 0) { 55 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); 69 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0);
|
| 5-1.c | 42 #define BUF_SIZE 8 45 char str[BUF_SIZE] = "qwerty"; 59 if (ftruncate(fd, BUF_SIZE) != 0) { 65 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); 98 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0);
|
| 28-1.c | 35 #define BUF_SIZE 8 41 char str[BUF_SIZE] = "qwerty"; 50 if (ftruncate(fd, BUF_SIZE) != 0) { 56 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); 65 if (munmap(buf, BUF_SIZE) != 0) { 89 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0);
|
| /external/speex/libspeex/ |
| bits.c | 54 bits->buf_size = MAX_CHARS_PER_FRAME; 61 EXPORT void speex_bits_init_buffer(SpeexBits *bits, void *buff, int buf_size) 64 bits->buf_size = buf_size; 71 EXPORT void speex_bits_set_bit_buffer(SpeexBits *bits, void *buff, int buf_size) 74 bits->buf_size = buf_size; 78 bits->nbBits=buf_size<<LOG2_BITS_PER_CHAR; 113 if (nchars > bits->buf_size) 121 bits->buf_size=nchars [all...] |
| /external/libunwind/src/ |
| os-linux.h | 36 size_t buf_size; member in struct:map_iterator 81 mi->buf_size = getpagesize (); 82 cp = mmap (NULL, mi->buf_size, PROT_READ | PROT_WRITE, 93 mi->buf = mi->buf_end = cp + mi->buf_size; 185 scan_string (char *cp, char *valp, size_t buf_size) 194 if ((valp != NULL) && (i < buf_size - 1)) 198 if (i == 0 || i >= buf_size) 235 memmove (mi->buf_end - mi->buf_size, mi->buf, bytes_left); 237 mi->buf = mi->buf_end - mi->buf_size; 239 mi->buf_size - bytes_left) [all...] |
| /packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
| neapi.c | 70 NJ_EXTERN NJ_INT16 njx_get_candidate(NJ_CLASS *iwnn, NJ_RESULT *result, NJ_CHAR *buf, NJ_UINT16 buf_size) { 82 if ((buf == NULL) || (buf_size == 0)) { 88 ret = njd_get_candidate(iwnn, result, buf, buf_size); 100 NJ_EXTERN NJ_INT16 njx_get_stroke(NJ_CLASS *iwnn, NJ_RESULT *result, NJ_CHAR *buf, NJ_UINT16 buf_size) { 112 if ((buf == NULL) || (buf_size == 0)) { 118 ret = njd_get_stroke(iwnn, result, buf, buf_size);
|