/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
ShortBufferTest.java | 36 protected ShortBuffer buf; field in class:ShortBufferTest 39 buf = ShortBuffer.allocate(BUFFER_LENGTH); 40 loadTestData1(buf); 41 baseBuf = buf; 45 buf = null; 50 short array[] = buf.array(); 51 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 53 loadTestData1(array, buf.arrayOffset(), buf.capacity()) [all...] |
DoubleBufferTest.java | 36 protected DoubleBuffer buf; field in class:DoubleBufferTest 39 buf = DoubleBuffer.allocate(BUFFER_LENGTH); 40 loadTestData1(buf); 41 baseBuf = buf; 45 buf = null; 75 double array[] = buf.array(); 76 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 78 loadTestData1(array, buf.arrayOffset(), buf.capacity()) [all...] |
/external/google-breakpad/src/third_party/libdisasm/ |
ia32_invariant.h | 6 size_t ia32_disasm_invariant( unsigned char *buf, size_t buf_len, 9 size_t ia32_disasm_size( unsigned char *buf, size_t buf_len );
|
/external/valgrind/memcheck/tests/x86-linux/ |
scalar_supp.supp | 1 # This suppression suppresses both of the buf errors. 5 write(buf)
|
/prebuilts/go/darwin-x86/src/debug/dwarf/testdata/ |
line1.h | 3 char buf[10]; local 6 buf[i] = 1;
|
/prebuilts/go/linux-x86/src/debug/dwarf/testdata/ |
line1.h | 3 char buf[10]; local 6 buf[i] = 1;
|
/external/libselinux/src/ |
fgetfilecon.c | 12 char *buf; local 17 buf = malloc(size); 18 if (!buf) 20 memset(buf, 0, size); 22 ret = fgetxattr(fd, XATTR_NAME_SELINUX, buf, size - 1); 31 newbuf = realloc(buf, size); 35 buf = newbuf; 36 memset(buf, 0, size); 37 ret = fgetxattr(fd, XATTR_NAME_SELINUX, buf, size - 1); 46 free(buf); [all...] |
getfilecon.c | 12 char *buf; local 17 buf = malloc(size); 18 if (!buf) 20 memset(buf, 0, size); 22 ret = getxattr(path, XATTR_NAME_SELINUX, buf, size - 1); 31 newbuf = realloc(buf, size); 35 buf = newbuf; 36 memset(buf, 0, size); 37 ret = getxattr(path, XATTR_NAME_SELINUX, buf, size - 1); 46 free(buf); [all...] |
getpeercon.c | 16 char *buf; local 21 buf = malloc(size); 22 if (!buf) 24 memset(buf, 0, size); 26 ret = getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buf, &size); 30 newbuf = realloc(buf, size); 34 buf = newbuf; 35 memset(buf, 0, size); 36 ret = getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buf, &size); 40 free(buf); [all...] |
lgetfilecon.c | 12 char *buf; local 17 buf = malloc(size); 18 if (!buf) 20 memset(buf, 0, size); 22 ret = lgetxattr(path, XATTR_NAME_SELINUX, buf, size - 1); 31 newbuf = realloc(buf, size); 35 buf = newbuf; 36 memset(buf, 0, size); 37 ret = lgetxattr(path, XATTR_NAME_SELINUX, buf, size - 1); 46 free(buf); [all...] |
/external/selinux/libselinux/src/ |
getpeercon.c | 16 char *buf; local 21 buf = malloc(size); 22 if (!buf) 24 memset(buf, 0, size); 26 ret = getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buf, &size); 30 newbuf = realloc(buf, size); 34 buf = newbuf; 35 memset(buf, 0, size); 36 ret = getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buf, &size); 40 free(buf); [all...] |
/external/mesa3d/src/gallium/auxiliary/pipebuffer/ |
pb_bufmgr_ondemand.c | 74 pb_ondemand_buffer(struct pb_buffer *buf) 76 assert(buf); 77 if (!buf) 79 assert(buf->vtbl == &pb_ondemand_buffer_vtbl); 80 return (struct pb_ondemand_buffer *)buf; 94 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); local 96 pb_reference(&buf->buffer, NULL); 98 align_free(buf->data); 100 FREE(buf); 108 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf) local 125 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); local 177 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); local 196 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); local 211 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); local 241 struct pb_ondemand_buffer *buf; local [all...] |
/external/minijail/ |
libminijail_unittest.c | 20 void *consumebytes(size_t length, char **buf, size_t *buflength); 21 char *consumestr(char **buf, size_t *buflength); 31 char buf[1024]; local 32 size_t len = sizeof(buf); 33 char *pos = &buf[0]; 35 EXPECT_EQ(&buf[0], pos); 36 EXPECT_EQ(sizeof(buf), len); 40 char buf[1024]; local 41 size_t len = sizeof(buf); 42 char *pos = &buf[0] 51 char buf[1024]; local 62 char buf[1024]; local 72 char buf[1024]; local 82 char buf[1024]; local 92 char buf[1024]; local 103 char buf[1024]; local 114 char buf[4096]; local 152 char buf[buf_len]; local [all...] |
/external/wpa_supplicant_8/src/common/ |
gas.c | 20 struct wpabuf *buf; local 22 buf = wpabuf_alloc(100 + size); 23 if (buf == NULL) 26 wpabuf_put_u8(buf, WLAN_ACTION_PUBLIC); 27 wpabuf_put_u8(buf, action); 28 wpabuf_put_u8(buf, dialog_token); 30 return buf; 51 struct wpabuf *buf; local 53 buf = wpabuf_alloc(100 + size); 54 if (buf == NULL 114 struct wpabuf *buf; local 131 struct wpabuf *buf; local 151 struct wpabuf *buf; local 172 struct wpabuf *buf; local 193 struct wpabuf *buf; local [all...] |
/bionic/tests/ |
fortify_test.cpp | 363 char buf[10]; local 365 ASSERT_FORTIFY(strcpy(buf, orig)); 375 char buf[0]; local 377 ASSERT_FORTIFY(strcpy(buf, orig)); 387 char buf[0]; local 389 ASSERT_FORTIFY(strcpy(buf, orig)); 399 char buf[1]; local 401 ASSERT_FORTIFY(strcpy(buf, orig)); 410 char buf[10]; local 411 memcpy(buf, "0123456789", sizeof(buf)) 420 char buf[10]; local 430 char buf[10]; local 464 char buf[10]; local 474 char* buf = (char *) malloc(10); local 483 char buf[5]; local 488 char buf[10]; local 507 char buf[10]; local 527 char buf[10]; local 534 char buf[10]; local 543 char buf[10]; local 549 char buf[20]; local 603 char buf[10]; local 616 char buf[10]; local 629 char buf[1]; local 635 char buf[1]; local 641 char buf[1]; local 649 char buf[1]; local 657 char buf[1] = {0}; local 665 char buf[1] = {0}; local 673 char buf[1]; local 681 char buf[1] = {0}; local 689 char buf[1]; local 697 char buf[1] = {0}; local 705 char buf[1]; local 711 char buf[1]; local 720 char buf[10]; local 739 char buf[10]; local 758 char buf[10]; local 776 char buf[10]; local 794 char buf[10]; local 813 char buf[10]; local 833 char buf[10]; local 852 char buf[10]; local 949 char buf[10]; local 970 char buf[10]; local 979 char buf[10]; local 988 char buf[10]; local 1010 char buf[BUFSIZ]; local 1023 pollfd buf[1] = {{0, POLLIN, 0}}; local 1030 pollfd buf[1] = {{0, POLLIN, 0}}; local [all...] |
libgen_test.cpp | 44 char* buf, size_t buf_size, int expected_errno) { 46 int rc = basename_r(in, buf, buf_size); 48 if (rc != -1 && buf != NULL) { 49 ASSERT_STREQ(expected_out, buf) << in; 55 char* buf, size_t buf_size, int expected_errno) { 57 int rc = dirname_r(in, buf, buf_size); 59 if (rc != -1 && buf != NULL) { 60 ASSERT_STREQ(expected_out, buf) << in; 68 char buf[256]; local 70 TestBasename("", ".", -1, buf, 0, ERANGE) 87 char buf[256]; local [all...] |
/external/mockito/cglib-and-asm/src/org/mockito/asm/util/ |
ASMifierMethodVisitor.java | 59 buf.setLength(0);
60 buf.append("{\n").append("av0 = mv.visitAnnotationDefault();\n");
61 text.add(buf.toString());
73 buf.setLength(0);
74 buf.append("{\n")
79 buf.append(", ").append(visible).append(");\n");
80 text.add(buf.toString());
98 buf.setLength(0);
105 buf.append("mv.visitFrame(Opcodes.F_NEW, ");
107 buf.append("mv.visitFrame(Opcodes.F_FULL, "); [all...] |
/external/libvpx/libvpx/ |
vpxstats.c | 25 stats->buf.sz = 0; 26 stats->buf.buf = NULL; 36 stats->buf.sz = stat_buf.st_size; 37 stats->buf.buf = mmap(NULL, stats->buf.sz, PROT_READ, MAP_PRIVATE, fd, 0); 38 res = (stats->buf.buf != NULL); 50 stats->buf.sz = stats->buf_alloc_sz = ftell(stats->file) [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/ |
vpxstats.c | 25 stats->buf.sz = 0; 26 stats->buf.buf = NULL; 36 stats->buf.sz = stat_buf.st_size; 37 stats->buf.buf = mmap(NULL, stats->buf.sz, PROT_READ, MAP_PRIVATE, fd, 0); 38 res = (stats->buf.buf != NULL); 47 stats->buf.sz = stats->buf_alloc_sz = ftell(stats->file) [all...] |
/build/kati/ |
buf.go | 67 buf []byte 72 b.buf = append(b.buf, data...) 77 b.buf = append(b.buf, c) 82 b.buf = append(b.buf, []byte(s)...) 86 func (b *buffer) Bytes() []byte { return b.buf } 87 func (b *buffer) Len() int { return len(b.buf) } 88 func (b *buffer) String() string { return string(b.buf) } [all...] |
/external/freetype/src/gzip/ |
adler32.c | 14 #define DO1(buf,i) {s1 += buf[i]; s2 += s1;} 15 #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1); 16 #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2); 17 #define DO8(buf,i) DO4(buf,i); DO4(buf,i+4) [all...] |
/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/gzip/ |
adler32.c | 14 #define DO1(buf,i) {s1 += buf[i]; s2 += s1;} 15 #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1); 16 #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2); 17 #define DO8(buf,i) DO4(buf,i); DO4(buf,i+4) [all...] |
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
glGetProgramInfoLog.cpp | 10 char* buf = (char*) malloc(infoLen); local 11 if (buf == NULL) { 15 glGetProgramInfoLog(shader, infoLen, NULL, buf); 16 jstring result = _env->NewStringUTF(buf); 17 free(buf);
|
glGetProgramPipelineInfoLog.cpp | 10 char* buf = (char*) malloc(infoLen); local 11 if (buf == NULL) { 15 glGetProgramPipelineInfoLog(shader, infoLen, NULL, buf); 16 jstring result = _env->NewStringUTF(buf); 17 free(buf);
|
glGetShaderInfoLog.cpp | 10 char* buf = (char*) malloc(infoLen); local 11 if (buf == NULL) { 15 glGetShaderInfoLog(shader, infoLen, NULL, buf); 16 jstring result = _env->NewStringUTF(buf); 17 free(buf);
|