HomeSort by relevance Sort by last modified time
    Searched refs:buf (Results 276 - 300 of 13174) sorted by null

<<11121314151617181920>>

  /external/annotation-tools/asmx/src/org/objectweb/asm/util/
ASMifierAbstractVisitor.java 79 buf.setLength(0);
80 buf.append("{\n")
85 buf.append(", ").append(visible).append(");\n");
86 text.add(buf.toString());
105 buf.setLength(0);
106 buf.append("{\n")
111 buf.append(", ").append(visible);
112 buf.append(", ").append(inCode).append(");\n");
113 text.add(buf.toString());
128 buf.setLength(0)
    [all...]
  /external/apache-harmony/support/src/test/java/tests/support/
Support_StringWriter.java 24 private StringBuffer buf; field in class:Support_StringWriter
33 buf = new StringBuffer(16);
34 lock = buf;
44 buf = new StringBuffer(initialSize);
45 lock = buf;
78 return buf;
92 return buf.toString();
98 * in <code>buf</code> to this StringWriter.
100 * @param buf the non-null array containing characters to write.
101 * @param offset offset in buf to retrieve character
    [all...]
  /external/compiler-rt/test/asan/TestCases/
coverage-pc-buffer.cc 15 void assertNotZeroPcs(uintptr_t *buf, uintptr_t size) {
16 assert(buf);
18 assert(buf[i]);
23 uintptr_t *buf = NULL; local
24 uintptr_t sz = __sanitizer_get_coverage_pc_buffer(&buf);
25 assertNotZeroPcs(buf, sz);
30 uintptr_t *buf = NULL; local
31 uintptr_t sz = __sanitizer_get_coverage_pc_buffer(&buf);
38 assert(buf1 == buf);
43 uintptr_t *buf = NULL local
55 uintptr_t *buf = NULL; local
    [all...]
  /external/compiler-rt/test/sanitizer_common/TestCases/Linux/
open_memstream.cc 29 char *buf; local
31 fprintf(stderr, " &buf %p, &buf_len %p\n", &buf, &buf_len);
32 FILE *fp = open_memstream(&buf, &buf_len);
36 check_mem_is_good(&buf, sizeof(buf));
38 check_mem_is_good(buf, buf_len);
50 fprintf(stderr, " %p addr %p, len %zu\n", &buf, buf, buf_len);
51 check_mem_is_good(&buf, sizeof(buf))
    [all...]
  /external/libedit/src/
fgetln.c 50 static char *buf = NULL; local
55 if (buf == NULL) {
57 if ((buf = malloc(bufsiz)) == NULL)
61 if (fgets(buf, bufsiz, fp) == NULL)
65 while ((ptr = strchr(&buf[*len], '\n')) == NULL) {
67 char *nbuf = realloc(buf, nbufsiz);
71 free(buf);
73 buf = NULL;
76 buf = nbuf;
78 if (fgets(&buf[bufsiz], BUFSIZ, fp) == NULL)
    [all...]
  /external/volley/src/main/java/com/android/volley/toolbox/
ByteArrayPool.java 93 byte[] buf = mBuffersBySize.get(i);
94 if (buf.length >= len) {
95 mCurrentSize -= buf.length;
97 mBuffersByLastUse.remove(buf);
98 return buf;
108 * @param buf the buffer to return to the pool.
110 public synchronized void returnBuf(byte[] buf) {
111 if (buf == null || buf.length > mSizeLimit) {
114 mBuffersByLastUse.add(buf);
    [all...]
  /libcore/support/src/test/java/tests/support/
Support_StringWriter.java 24 private StringBuffer buf; field in class:Support_StringWriter
33 buf = new StringBuffer(16);
34 lock = buf;
44 buf = new StringBuffer(initialSize);
45 lock = buf;
80 return buf;
94 return buf.toString();
100 * in <code>buf</code> to this StringWriter.
102 * @param buf
105 * offset in buf to retrieve character
    [all...]
  /system/core/lmkd/
liblmkd_utils.c 46 char buf[256]; local
50 snprintf(buf, sizeof(buf), "/dev/memcg/apps/uid_%u", uid);
51 if (mkdir(buf, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) < 0 &&
56 snprintf(buf, sizeof(buf), "/dev/memcg/apps/uid_%u/pid_%u", uid, pid);
57 if (mkdir(buf, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) < 0 &&
62 snprintf(buf, sizeof(buf), "/dev/memcg/apps/uid_%u/pid_%u/tasks", uid, pid);
63 tasks_file = open(buf, O_WRONLY)
    [all...]
  /tools/apksig/src/main/java/com/android/apksig/internal/util/
OutputStreamDataSink.java 52 public void consume(byte[] buf, int offset, int length) throws IOException {
53 mOut.write(buf, offset, length);
57 public void consume(ByteBuffer buf) throws IOException {
58 if (!buf.hasRemaining()) {
62 if (buf.hasArray()) {
64 buf.array(),
65 buf.arrayOffset() + buf.position(),
66 buf.remaining());
67 buf.position(buf.limit())
    [all...]
  /bionic/tests/
sys_xattr_test.cpp 26 char buf[10]; local
28 ASSERT_EQ(4, getxattr(tf.filename, "user.foo", buf, sizeof(buf)));
29 ASSERT_STREQ("bar", buf);
30 buf[0] = '\0';
31 ASSERT_EQ(4, lgetxattr(tf.filename, "user.foo", buf, sizeof(buf)));
32 ASSERT_STREQ("bar", buf);
37 char buf[10]; local
39 ASSERT_EQ(4, fgetxattr(tf.fd, "user.foo", buf, sizeof(buf)))
45 char buf[10]; local
52 char buf[10]; local
59 char buf[10]; local
75 char buf[10]; local
93 char buf[10]; local
106 char buf[65536]; \/\/ 64kB is max possible xattr list size. See "man 7 xattr". local
115 char buf[65536]; \/\/ 64kB is max possible xattr list size. See "man 7 xattr". local
    [all...]
  /external/swiftshader/third_party/subzero/crosstest/
mem_intrin.cpp 16 * Reset buf to the sequence of bytes: n, n+1, n+2 ... length - 1
19 reset_buf(uint8_t *buf, uint8_t init, SizeT length) {
23 buf[i] = v++;
31 fletcher_checksum(uint8_t *buf, SizeT length) {
37 sum = (sum + buf[i]) % kModulus;
43 int memcpy_test(uint8_t *buf, uint8_t *buf2, uint8_t init, SizeT length) {
44 reset_buf(buf, init, length);
45 memcpy((void *)buf2, (void *)buf, length);
49 int memmove_test(uint8_t *buf, uint8_t *buf2, uint8_t init, SizeT length) {
55 uint8_t *overlap_buf = buf + overlap_bytes
    [all...]
  /external/capstone/tests/
test_winkernel.cpp 125 char buf[10]; local
127 ok = (ok && cs_snprintf(buf, sizeof(buf), "%s", "") == 0 && strcmp(buf, "") == 0);
128 ok = (ok && cs_snprintf(buf, sizeof(buf), "%s", "0") == 1 && strcmp(buf, "0") == 0);
129 ok = (ok && cs_snprintf(buf, sizeof(buf), "%s", "012345678") == 9 && strcmp(buf, "012345678") == 0)
    [all...]
  /external/syslinux/lzo/src/
lzo_util.c 102 #define LZO_DO1(buf,i) s1 += buf[i]; s2 += s1
103 #define LZO_DO2(buf,i) LZO_DO1(buf,i); LZO_DO1(buf,i+1);
104 #define LZO_DO4(buf,i) LZO_DO2(buf,i); LZO_DO2(buf,i+2);
105 #define LZO_DO8(buf,i) LZO_DO4(buf,i); LZO_DO4(buf,i+4)
    [all...]
  /external/toybox/toys/posix/
cal.c 26 static char *calstrings(char *buf, struct tm *tm)
34 buf += sprintf(buf, "%*s%*s ", len, temp, 20-len, "");
35 buf++;
36 buf += sprintf(buf, "Su Mo Tu We Th Fr Sa ");
37 buf++;
59 buf += sprintf(buf, pat, mday);
61 buf++
73 char *buf = toybuf; local
    [all...]
  /external/vboot_reference/tests/
stateful_util_tests.c 24 char buf[128]; local
28 StatefulInit(&s, buf, 128);
31 TEST_PTR_EQ(buf, s.remaining_buf, "StatefulInit() buf");
38 char buf[128]; local
41 StatefulInit(&s, buf, 128);
44 TEST_PTR_EQ(buf + 5, s.remaining_buf, "StatefulSkip(5) buf");
48 StatefulInit(&s, buf, 128);
51 TEST_PTR_EQ(buf + 128, s.remaining_buf, "StatefulSkip(all) buf")
83 char buf[129]; local
148 char buf[129]; local
221 char buf[129]; local
    [all...]
  /external/wpa_supplicant_8/src/p2p/
p2p_build.c 18 void p2p_buf_add_action_hdr(struct wpabuf *buf, u8 subtype, u8 dialog_token)
20 wpabuf_put_u8(buf, WLAN_ACTION_VENDOR_SPECIFIC);
21 wpabuf_put_be32(buf, P2P_IE_VENDOR_TYPE);
23 wpabuf_put_u8(buf, subtype); /* OUI Subtype */
24 wpabuf_put_u8(buf, dialog_token);
29 void p2p_buf_add_public_action_hdr(struct wpabuf *buf, u8 subtype,
32 wpabuf_put_u8(buf, WLAN_ACTION_PUBLIC);
33 wpabuf_put_u8(buf, WLAN_PA_VENDOR_SPECIFIC);
34 wpabuf_put_be32(buf, P2P_IE_VENDOR_TYPE);
36 wpabuf_put_u8(buf, subtype); /* OUI Subtype *
    [all...]
  /external/mesa3d/src/gallium/auxiliary/pipebuffer/
pb_bufmgr_cache.c 70 pb_cache_buffer(struct pb_buffer *buf)
72 assert(buf);
73 return (struct pb_cache_buffer *)buf;
88 struct pb_cache_buffer *buf = pb_cache_buffer(pb_buf); local
91 buf->mgr = NULL;
100 struct pb_cache_buffer *buf = pb_cache_buffer(pb_buf); local
102 assert(!pipe_is_referenced(&buf->base.reference));
103 pb_reference(&buf->buffer, NULL);
104 FREE(buf);
111 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
128 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
136 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
146 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
155 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
165 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
184 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
208 struct pb_cache_buffer *buf; local
    [all...]
  /external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/
JavaScriptTarget.java 56 StringBuffer buf = new StringBuffer(22); // enough for the two "0x", "," and " " local
57 buf.append("0x");
58 writeHexWithPadding(buf, Integer.toHexString((int)(word & 0x00000000ffffffffL)));
59 buf.append(", 0x");
60 writeHexWithPadding(buf, Integer.toHexString((int)(word >> 32)));
62 return buf.toString();
65 private void writeHexWithPadding(StringBuffer buf, String digits) {
70 buf.append('0');
72 buf.append(digits);
  /external/ltp/lib/tests/
tst_safe_macros.c 18 char buf[10]; local
21 buf[9] = '\0';
30 SAFE_READ(cleanup, 0, fd, buf, 9);
31 printf("buf: %s\n", buf);
32 SAFE_READ(cleanup, 1, fd, buf, 9);
33 printf("buf: %s\n", buf);
34 SAFE_WRITE(cleanup, 0, -1, buf, 9);
35 SAFE_WRITE(NULL, 0, fd, buf, 9)
    [all...]
  /external/strace/tests/
printstr.c 41 char *const buf = tail_alloc(DEFAULT_STRLEN + 1); local
43 .iov_base = buf,
48 buf[0] = 0;
52 memset(buf + 1, 'X', DEFAULT_STRLEN);
53 buf[DEFAULT_STRLEN - 1] = 0;
57 " = %s\n", DEFAULT_STRLEN - 2, buf + 1, -1UL, sprintrc(rc));
59 buf[DEFAULT_STRLEN - 1] = 'X';
60 buf[DEFAULT_STRLEN] = 0;
64 " = %s\n", DEFAULT_STRLEN - 1, buf + 1, -1UL, sprintrc(rc));
  /external/strace/tests-m32/
printstr.c 41 char *const buf = tail_alloc(DEFAULT_STRLEN + 1); local
43 .iov_base = buf,
48 buf[0] = 0;
52 memset(buf + 1, 'X', DEFAULT_STRLEN);
53 buf[DEFAULT_STRLEN - 1] = 0;
57 " = %s\n", DEFAULT_STRLEN - 2, buf + 1, -1UL, sprintrc(rc));
59 buf[DEFAULT_STRLEN - 1] = 'X';
60 buf[DEFAULT_STRLEN] = 0;
64 " = %s\n", DEFAULT_STRLEN - 1, buf + 1, -1UL, sprintrc(rc));
  /external/strace/tests-mx32/
printstr.c 41 char *const buf = tail_alloc(DEFAULT_STRLEN + 1); local
43 .iov_base = buf,
48 buf[0] = 0;
52 memset(buf + 1, 'X', DEFAULT_STRLEN);
53 buf[DEFAULT_STRLEN - 1] = 0;
57 " = %s\n", DEFAULT_STRLEN - 2, buf + 1, -1UL, sprintrc(rc));
59 buf[DEFAULT_STRLEN - 1] = 'X';
60 buf[DEFAULT_STRLEN] = 0;
64 " = %s\n", DEFAULT_STRLEN - 1, buf + 1, -1UL, sprintrc(rc));
  /libcore/ojluni/src/main/java/java/net/
DatagramPacket.java 67 byte[] buf; field in class:DatagramPacket
79 * {@code buf.length}.
81 * @param buf buffer for holding the incoming datagram.
87 public DatagramPacket(byte buf[], int offset, int length) {
88 setData(buf, offset, length);
98 * {@code buf.length}.
100 * @param buf buffer for holding the incoming datagram.
103 public DatagramPacket(byte buf[], int length) {
104 this (buf, 0, length);
112 * {@code buf.length}
    [all...]
  /external/e2fsprogs/contrib/
make-sparse.c 27 int full_read(int fd, char *buf, size_t count)
33 got = read(fd, buf, count);
45 buf += got;
56 char buf[1024]; local
68 got = full_read(0, buf, sizeof(buf));
71 if (got == sizeof(buf)) {
72 for (i=0; i < sizeof(buf); i++)
73 if (buf[i])
75 if (i == sizeof(buf)) {
    [all...]
  /external/libvpx/libvpx/vpx_dsp/arm/
mem_neon.h 23 static INLINE int16x8x2_t load_tran_low_to_s16x2q(const tran_low_t *buf) {
25 const int32x4x2_t v0 = vld2q_s32(buf);
26 const int32x4x2_t v1 = vld2q_s32(buf + 8);
36 return vld2q_s16(buf);
40 static INLINE int16x8_t load_tran_low_to_s16q(const tran_low_t *buf) {
42 const int32x4_t v0 = vld1q_s32(buf);
43 const int32x4_t v1 = vld1q_s32(buf + 4);
48 return vld1q_s16(buf);
52 static INLINE int16x4_t load_tran_low_to_s16d(const tran_low_t *buf) {
54 const int32x4_t v0 = vld1q_s32(buf);
    [all...]

Completed in 863 milliseconds

<<11121314151617181920>>