HomeSort by relevance Sort by last modified time
    Searched refs:buf (Results 201 - 225 of 9466) sorted by null

1 2 3 4 5 6 7 891011>>

  /frameworks/volley/src/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...]
  /external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/pipebuffer/
pb_bufmgr_cache.c 89 pb_cache_buffer(struct pb_buffer *buf)
91 assert(buf);
92 return (struct pb_cache_buffer *)buf;
108 _pb_cache_buffer_destroy(struct pb_cache_buffer *buf)
110 struct pb_cache_manager *mgr = buf->mgr;
112 LIST_DEL(&buf->head);
115 assert(!pipe_is_referenced(&buf->base.reference));
116 pb_reference(&buf->buffer, NULL);
117 FREE(buf);
128 struct pb_cache_buffer *buf; local
152 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
172 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
180 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
190 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
199 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
209 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
265 struct pb_cache_buffer *buf; local
361 struct pb_cache_buffer *buf; local
    [all...]
  /external/mesa3d/src/gallium/auxiliary/pipebuffer/
pb_bufmgr_cache.c 89 pb_cache_buffer(struct pb_buffer *buf)
91 assert(buf);
92 return (struct pb_cache_buffer *)buf;
108 _pb_cache_buffer_destroy(struct pb_cache_buffer *buf)
110 struct pb_cache_manager *mgr = buf->mgr;
112 LIST_DEL(&buf->head);
115 assert(!pipe_is_referenced(&buf->base.reference));
116 pb_reference(&buf->buffer, NULL);
117 FREE(buf);
128 struct pb_cache_buffer *buf; local
152 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
172 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
180 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
190 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
199 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
209 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
265 struct pb_cache_buffer *buf; local
361 struct pb_cache_buffer *buf; local
    [all...]
  /system/core/libsuspend/
autosuspend_wakeup_count.c 45 char buf[80]; local
56 strerror_r(errno, buf, sizeof(buf));
57 ALOGE("Error reading from %s: %s\n", SYS_POWER_WAKEUP_COUNT, buf);
69 strerror_r(errno, buf, sizeof(buf));
70 ALOGE("Error waiting on semaphore: %s\n", buf);
77 strerror_r(errno, buf, sizeof(buf));
78 ALOGE("Error writing to %s: %s\n", SYS_POWER_WAKEUP_COUNT, buf);
105 char buf[80]; local
124 char buf[80]; local
158 char buf[80]; local
    [all...]
  /external/mockito/cglib-and-asm/src/org/mockito/asm/util/
ASMifierClassVisitor.java 236 buf.setLength(0);
237 buf.append("cw.visit(");
240 buf.append("V1_1");
243 buf.append("V1_2");
246 buf.append("V1_3");
249 buf.append("V1_4");
252 buf.append("V1_5");
255 buf.append("V1_6");
258 buf.append(version);
261 buf.append(", ");
    [all...]
  /external/chromium_org/third_party/libwebp/dec/
buffer.c 44 const WebPYUVABuffer* const buf = &buffer->u.YUVA; local
45 const int y_stride = abs(buf->y_stride);
46 const int u_stride = abs(buf->u_stride);
47 const int v_stride = abs(buf->v_stride);
48 const int a_stride = abs(buf->a_stride);
53 ok &= (y_size <= buf->y_size);
54 ok &= (u_size <= buf->u_size);
55 ok &= (v_size <= buf->v_size);
59 ok &= (buf->y != NULL);
60 ok &= (buf->u != NULL)
68 const WebPRGBABuffer* const buf = &buffer->u.RGBA; local
114 WebPYUVABuffer* const buf = &buffer->u.YUVA; local
130 WebPRGBABuffer* const buf = &buffer->u.RGBA; local
144 WebPRGBABuffer* const buf = &buffer->u.RGBA; local
148 WebPYUVABuffer* const buf = &buffer->u.YUVA; local
    [all...]
  /external/webp/src/dec/
buffer.c 44 const WebPYUVABuffer* const buf = &buffer->u.YUVA; local
45 const int y_stride = abs(buf->y_stride);
46 const int u_stride = abs(buf->u_stride);
47 const int v_stride = abs(buf->v_stride);
48 const int a_stride = abs(buf->a_stride);
53 ok &= (y_size <= buf->y_size);
54 ok &= (u_size <= buf->u_size);
55 ok &= (v_size <= buf->v_size);
59 ok &= (buf->y != NULL);
60 ok &= (buf->u != NULL)
68 const WebPRGBABuffer* const buf = &buffer->u.RGBA; local
114 WebPYUVABuffer* const buf = &buffer->u.YUVA; local
130 WebPRGBABuffer* const buf = &buffer->u.RGBA; local
144 WebPRGBABuffer* const buf = &buffer->u.RGBA; local
148 WebPYUVABuffer* const buf = &buffer->u.YUVA; local
    [all...]
  /external/mockito/cglib-and-asm/src/org/mockito/asm/
Type.java 157 private final char[] buf; field in class:Type
160 * The offset of the internal name of this Java type in {@link #buf buf}.
188 * @param buf a buffer containing the descriptor of the previous type.
192 private Type(final int sort, final char[] buf, final int off, final int len)
195 this.buf = buf;
217 char[] buf = internalName.toCharArray(); local
218 return new Type(buf[0] == '[' ? ARRAY : OBJECT, buf, 0, buf.length);
262 char[] buf = methodDescriptor.toCharArray(); local
314 char[] buf = methodDescriptor.toCharArray(); local
480 StringBuffer buf = new StringBuffer(); local
498 StringBuffer buf = new StringBuffer(); local
578 StringBuffer buf = new StringBuffer(); local
591 StringBuffer buf = new StringBuffer(); local
607 StringBuffer buf = new StringBuffer(); 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/chromium_org/net/base/
upload_bytes_element_reader_unittest.cc 34 std::vector<char> buf(kHalfSize);
35 scoped_refptr<IOBuffer> wrapped_buffer = new WrappedIOBuffer(&buf[0]);
37 static_cast<int>(buf.size()),
38 reader_->Read(wrapped_buffer.get(), buf.size(), CompletionCallback()));
39 EXPECT_EQ(bytes_.size() - buf.size(), reader_->BytesRemaining());
41 EXPECT_EQ(bytes_, buf);
45 std::vector<char> buf(bytes_.size());
46 scoped_refptr<IOBuffer> wrapped_buffer = new WrappedIOBuffer(&buf[0]);
48 static_cast<int>(buf.size()),
49 reader_->Read(wrapped_buffer.get(), buf.size(), CompletionCallback()))
    [all...]
  /external/smack/src/org/jivesoftware/smack/proxy/
Socks5ProxySocketFactory.java 94 byte[] buf=new byte[1024];
118 buf[index++]=5;
120 buf[index++]=2;
121 buf[index++]=0; // NO AUTHENTICATION REQUIRED
122 buf[index++]=2; // USERNAME/PASSWORD
124 out.write(buf, 0, index);
136 //in.read(buf, 0, 2);
137 fill(in, buf, 2);
140 switch((buf[1])&0xff)
171 buf[index++]=1
173 System.arraycopy(user.getBytes(), 0, buf, index, local
177 System.arraycopy(passwd.getBytes(), 0, buf, index, local
    [all...]
  /external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/clover/api/
device.cpp 67 size_t size, void *buf, size_t *size_ret) {
73 return scalar_property<cl_device_type>(buf, size, size_ret, dev->type());
76 return scalar_property<cl_uint>(buf, size, size_ret, dev->vendor_id());
79 return scalar_property<cl_uint>(buf, size, size_ret, 1);
82 return scalar_property<cl_uint>(buf, size, size_ret,
86 return vector_property<size_t>(buf, size, size_ret,
90 return scalar_property<size_t>(buf, size, size_ret,
94 return scalar_property<cl_uint>(buf, size, size_ret, 16);
97 return scalar_property<cl_uint>(buf, size, size_ret, 8);
100 return scalar_property<cl_uint>(buf, size, size_ret, 4)
    [all...]
  /external/e2fsprogs/contrib/
make-sparse.c 23 int full_read(int fd, char *buf, size_t count)
29 got = read(fd, buf, count);
41 buf += got;
52 char buf[1024]; local
64 got = full_read(0, buf, sizeof(buf));
67 if (got == sizeof(buf)) {
68 for (i=0; i < sizeof(buf); i++)
69 if (buf[i])
71 if (i == sizeof(buf)) {
    [all...]
  /external/mesa3d/src/gallium/state_trackers/clover/api/
device.cpp 67 size_t size, void *buf, size_t *size_ret) {
73 return scalar_property<cl_device_type>(buf, size, size_ret, dev->type());
76 return scalar_property<cl_uint>(buf, size, size_ret, dev->vendor_id());
79 return scalar_property<cl_uint>(buf, size, size_ret, 1);
82 return scalar_property<cl_uint>(buf, size, size_ret,
86 return vector_property<size_t>(buf, size, size_ret,
90 return scalar_property<size_t>(buf, size, size_ret,
94 return scalar_property<cl_uint>(buf, size, size_ret, 16);
97 return scalar_property<cl_uint>(buf, size, size_ret, 8);
100 return scalar_property<cl_uint>(buf, size, size_ret, 4)
    [all...]
  /libcore/luni/src/main/java/java/io/
ByteArrayOutputStream.java 34 protected byte[] buf; field in class:ByteArrayOutputStream
47 buf = new byte[32];
63 buf = new byte[size];
87 if (count + i <= buf.length) {
92 System.arraycopy(buf, 0, newbuf, 0, count);
93 buf = newbuf;
123 System.arraycopy(buf, 0, newArray, 0, count);
137 return new String(buf, 0, count);
158 newBuf[i] = (char) (((hibyte & 0xff) << 8) | (buf[i] & 0xff));
175 return new String(buf, 0, count, charsetName)
    [all...]
  /external/bison/lib/
strerror.c 39 static char buf[STACKBUF_LEN]; local
58 verify (sizeof buf >= sizeof (fmt) + INT_STRLEN_BOUND (n));
59 sprintf (buf, fmt, n);
61 return buf;
66 if (sizeof buf <= len)
69 return memcpy (buf, msg, len + 1);
  /external/chromium_org/third_party/openssl/openssl/crypto/ec/
ec_print.c 66 unsigned char *buf; local
73 if ((buf = OPENSSL_malloc(buf_len)) == NULL)
76 if (!EC_POINT_point2oct(group, point, form, buf, buf_len, ctx))
78 OPENSSL_free(buf);
82 ret = BN_bin2bn(buf, buf_len, ret);
84 OPENSSL_free(buf);
95 unsigned char *buf; local
99 buf = OPENSSL_malloc(buf_len);
100 if (buf == NULL)
103 if (!BN_bn2bin(bn, buf))
142 unsigned char *buf, *pbuf; local
    [all...]
  /external/chromium_org/third_party/openssl/openssl/crypto/lhash/
lh_test.c 67 char buf[256]; local
75 buf[0]='\0';
76 fgets(buf,256,stdin);
77 if (buf[0] == '\0') break;
78 i=strlen(buf);
80 memcpy(p,buf,i+1);
  /external/compiler-rt/test/msan/
backtrace.cc 11 void *buf[10]; local
12 int sz = backtrace(buf, sizeof(buf) / sizeof(*buf));
15 if (!buf[i])
17 char **s = backtrace_symbols(buf, sz);
  /external/libcxx/test/re/re.alg/re.alg.replace/
test1.pass.cpp 34 char buf[100] = {0}; local
35 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)),
38 assert(r.base() == buf+40);
39 assert(buf == std::string("123-555-1234, 123-555-2345, 123-555-3456"));
46 char buf[100] = {0}; local
47 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)),
51 assert(r.base() == buf+43);
52 assert(buf == std::string("123-$555-1234, 123-$555-2345, 123-$555-3456"));
59 char buf[100] = {0}; local
60 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book))
72 char buf[100] = {0}; local
85 char buf[100] = {0}; local
98 char buf[100] = {0}; local
    [all...]
test2.pass.cpp 34 char buf[100] = {0}; local
35 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)),
38 assert(r.base() == buf+40);
39 assert(buf == std::string("123-555-1234, 123-555-2345, 123-555-3456"));
46 char buf[100] = {0}; local
47 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)),
51 assert(r.base() == buf+43);
52 assert(buf == std::string("123-$555-1234, 123-$555-2345, 123-$555-3456"));
59 char buf[100] = {0}; local
60 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book))
72 char buf[100] = {0}; local
85 char buf[100] = {0}; local
98 char buf[100] = {0}; local
    [all...]
  /external/libselinux/src/
deny_unknown.c 16 char buf[20]; local
28 memset(buf, 0, sizeof(buf));
29 ret = read(fd, buf, sizeof(buf) - 1);
34 if (sscanf(buf, "%d", &deny_unknown) != 1)
getenforce.c 16 char buf[20]; local
28 memset(buf, 0, sizeof buf);
29 ret = read(fd, buf, sizeof buf - 1);
34 if (sscanf(buf, "%d", &enforce) != 1)
  /external/openssl/crypto/ec/
ec_print.c 66 unsigned char *buf; local
73 if ((buf = OPENSSL_malloc(buf_len)) == NULL)
76 if (!EC_POINT_point2oct(group, point, form, buf, buf_len, ctx))
78 OPENSSL_free(buf);
82 ret = BN_bin2bn(buf, buf_len, ret);
84 OPENSSL_free(buf);
95 unsigned char *buf; local
99 buf = OPENSSL_malloc(buf_len);
100 if (buf == NULL)
103 if (!BN_bn2bin(bn, buf))
142 unsigned char *buf, *pbuf; local
    [all...]

Completed in 602 milliseconds

1 2 3 4 5 6 7 891011>>