Searched refs:buffer (Results 251 - 275 of 8919) sorted by relevance

<<11121314151617181920>>

/external/apache-http/src/org/apache/http/message/
H A DBasicHeaderValueFormatter.java107 public CharArrayBuffer formatElements(CharArrayBuffer buffer, argument
116 if (buffer == null) {
117 buffer = new CharArrayBuffer(len);
119 buffer.ensureCapacity(len);
124 buffer.append(", ");
126 formatHeaderElement(buffer, elems[i], quote);
129 return buffer;
176 public CharArrayBuffer formatHeaderElement(CharArrayBuffer buffer, argument
185 if (buffer == null) {
186 buffer
264 formatParameters(CharArrayBuffer buffer, NameValuePair[] nvps, boolean quote) argument
332 formatNameValuePair(CharArrayBuffer buffer, final NameValuePair nvp, final boolean quote) argument
389 doFormatValue(final CharArrayBuffer buffer, final String value, boolean quote) argument
[all...]
H A DHeaderValueFormatter.java47 * All formatting methods accept an optional buffer argument.
48 * If a buffer is passed in, the formatted element will be appended
49 * and the modified buffer is returned. If no buffer is passed in,
50 * a new buffer will be created and filled with the formatted element.
51 * In both cases, the caller is allowed to modify the returned buffer.
65 * @param buffer the buffer to append to, or
66 * <code>null</code> to create a new buffer
71 * @return a buffer wit
75 formatElements(CharArrayBuffer buffer, HeaderElement[] elems, boolean quote) argument
94 formatHeaderElement(CharArrayBuffer buffer, HeaderElement elem, boolean quote) argument
116 formatParameters(CharArrayBuffer buffer, NameValuePair[] nvps, boolean quote) argument
135 formatNameValuePair(CharArrayBuffer buffer, NameValuePair nvp, boolean quote) argument
[all...]
H A DHeaderValueParser.java83 * @param buffer buffer holding the header value to parse
85 * the bounds within the buffer for the parsing operation
92 CharArrayBuffer buffer,
100 * @param buffer buffer holding the element to parse
102 * the bounds within the buffer for the parsing operation
109 CharArrayBuffer buffer,
186 * @param buffer buffer holdin
91 parseElements( CharArrayBuffer buffer, ParserCursor cursor) argument
108 parseHeaderElement( CharArrayBuffer buffer, ParserCursor cursor) argument
194 parseParameters( CharArrayBuffer buffer, ParserCursor cursor) argument
209 parseNameValuePair( CharArrayBuffer buffer, ParserCursor cursor) argument
[all...]
/external/apache-http/src/org/apache/http/impl/auth/
H A DAuthSchemeBase.java84 CharArrayBuffer buffer;
87 buffer = ((FormattedHeader) header).getBuffer();
94 buffer = new CharArrayBuffer(s.length());
95 buffer.append(s);
98 while (pos < buffer.length() && HTTP.isWhitespace(buffer.charAt(pos))) {
102 while (pos < buffer.length() && !HTTP.isWhitespace(buffer.charAt(pos))) {
106 String s = buffer.substring(beginIndex, endIndex);
111 parseChallenge(buffer, po
114 parseChallenge( CharArrayBuffer buffer, int pos, int len) argument
[all...]
/external/chromium_org/testing/gtest/xcode/Samples/FrameworkSample/
H A Dwidget.cc58 void Widget::GetCharPtrValue(char* buffer, size_t max_size) const { argument
59 // Copy the char* representation of name_ into buffer, up to max_size.
60 strncpy(buffer, name_.c_str(), max_size-1);
61 buffer[max_size-1] = '\0';
H A Dwidget_test.cc58 char buffer[max_size]; local
59 widget.GetCharPtrValue(buffer, max_size);
60 EXPECT_STREQ("name", buffer);
/external/chromium_org/third_party/WebKit/Source/platform/fonts/opentype/
H A DOpenTypeTypes.h68 template <typename T> static const T* validateTable(const RefPtr<SharedBuffer>& buffer, size_t count = 1) argument
70 if (!buffer || buffer->size() < sizeof(T) * count)
72 return reinterpret_cast<const T*>(buffer->data());
77 static bool isValidEnd(const SharedBuffer& buffer, const void* position) argument
79 if (position < buffer.data())
81 size_t offset = reinterpret_cast<const char*>(position) - buffer.data();
82 return offset <= buffer.size(); // "<=" because end is included as valid
85 template <typename T> static const T* validatePtr(const SharedBuffer& buffer, const void* position) argument
88 if (!isValidEnd(buffer,
93 validateOffset(const SharedBuffer& buffer, uint16_t offset) const argument
[all...]
/external/chromium_org/third_party/WebKit/Source/wtf/dtoa/
H A Dfixed-dtoa.cc125 Vector<char> buffer, int* length) {
127 buffer[(*length) + i] = '0' + number % 10;
134 static void FillDigits32(uint32_t number, Vector<char> buffer, int* length) { argument
140 buffer[(*length) + number_length] = '0' + digit;
147 char tmp = buffer[i];
148 buffer[i] = buffer[j];
149 buffer[j] = tmp;
158 Vector<char> buffer, int* length) {
166 FillDigits32FixedLength(part0, 3, buffer, lengt
124 FillDigits32FixedLength(uint32_t number, int requested_length, Vector<char> buffer, int* length) argument
157 FillDigits64FixedLength(uint64_t number, int, Vector<char> buffer, int* length) argument
172 FillDigits64(uint64_t number, Vector<char> buffer, int* length) argument
193 RoundUp(Vector<char> buffer, int* length, int* decimal_point) argument
234 FillFractionals(uint64_t fractionals, int exponent, int fractional_count, Vector<char> buffer, int* length, int* decimal_point) argument
293 TrimZeros(Vector<char> buffer, int* length, int* decimal_point) argument
311 FastFixedDtoa(double v, int fractional_count, Vector<char> buffer, int* length, int* decimal_point) argument
379 FillDigits32(static_cast<uint32_t>(integrals), buffer, length); local
[all...]
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/encoder/
H A Dvp9_writer.c20 br->buffer = source;
32 if ((br->buffer[br->pos - 1] & 0xe0) == 0xc0)
33 br->buffer[br->pos++] = 0;
/external/chromium_org/third_party/sfntly/cpp/src/sfntly/port/
H A Doutput_stream.h32 virtual void Write(ByteVector* buffer) = 0;
38 virtual void Write(ByteVector* buffer, int32_t offset, int32_t length) = 0;
40 // Note: Caller is responsible for the boundary of buffer.
41 virtual void Write(byte_t* buffer, int32_t offset, int32_t length) = 0;
/external/chromium_org/third_party/skia/src/ports/
H A DSkDebug_win.cpp20 char buffer[kBufferSize + 1]; local
31 vsnprintf(buffer, kBufferSize, format, args);
34 OutputDebugStringA(buffer);
/external/chromium_org/third_party/skia/tests/
H A DDashPathEffectTest.cpp18 SkWriteBuffer buffer; local
19 buffer.writeFlattenable(dash);
20 REPORTER_ASSERT(r, buffer.bytesWritten() > 12); // We'd write 12 if broken, >=40 if not.
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/ilbc/
H A Dcomp_corr.c29 int16_t *buffer, /* (i) signal buffer */
31 int16_t bLen, /* (i) length of buffer */
37 w16ptr=&buffer[bLen-sRange-lag];
40 (*corr)=WebRtcSpl_DotProductWithScale(&buffer[bLen-sRange], w16ptr, sRange, scale);
26 WebRtcIlbcfix_CompCorr( int32_t *corr, int32_t *ener, int16_t *buffer, int16_t lag, int16_t bLen, int16_t sRange, int16_t scale ) argument
/external/chromium_org/v8/src/
H A Dfixed-dtoa.cc103 Vector<char> buffer, int* length) {
105 buffer[(*length) + i] = '0' + number % 10;
112 static void FillDigits32(uint32_t number, Vector<char> buffer, int* length) { argument
118 buffer[(*length) + number_length] = '0' + digit;
125 char tmp = buffer[i];
126 buffer[i] = buffer[j];
127 buffer[j] = tmp;
136 Vector<char> buffer, int* length) {
144 FillDigits32FixedLength(part0, 3, buffer, lengt
102 FillDigits32FixedLength(uint32_t number, int requested_length, Vector<char> buffer, int* length) argument
135 FillDigits64FixedLength(uint64_t number, int requested_length, Vector<char> buffer, int* length) argument
150 FillDigits64(uint64_t number, Vector<char> buffer, int* length) argument
171 RoundUp(Vector<char> buffer, int* length, int* decimal_point) argument
212 FillFractionals(uint64_t fractionals, int exponent, int fractional_count, Vector<char> buffer, int* length, int* decimal_point) argument
271 TrimZeros(Vector<char> buffer, int* length, int* decimal_point) argument
289 FastFixedDtoa(double v, int fractional_count, Vector<char> buffer, int* length, int* decimal_point) argument
357 FillDigits32(static_cast<uint32_t>(integrals), buffer, length); local
[all...]
/external/compiler-rt/test/BlocksRuntime/
H A Dfail.c22 bool readfile(char *buffer, const char *from) { argument
25 int count = read(fd, buffer, 512);
27 buffer[count] = 0; // zap newline
49 char buffer[512]; local
52 sprintf(buffer, "/tmp/errorfile_%d", getpid());
54 int fd = creat(buffer, 0777);
56 fprintf(stderr, "didn't open custom error file %s as 1, got %d\n", buffer, fd);
79 sprintf(buffer, "/tmp/errorfile_%d", child);
85 bool gotOutput = readfile(got, buffer);
94 printf("didn't find contents of %s in %s\n", errorfile, buffer);
[all...]
/external/libvpx/libvpx/vp9/encoder/
H A Dvp9_writer.c20 br->buffer = source;
32 if ((br->buffer[br->pos - 1] & 0xe0) == 0xc0)
33 br->buffer[br->pos++] = 0;
/external/protobuf/gtest/xcode/Samples/FrameworkSample/
H A Dwidget.cc58 void Widget::GetCharPtrValue(char* buffer, size_t max_size) const { argument
59 // Copy the char* representation of name_ into buffer, up to max_size.
60 strncpy(buffer, name_.c_str(), max_size-1);
61 buffer[max_size-1] = '\0';
H A Dwidget_test.cc58 char buffer[max_size]; local
59 widget.GetCharPtrValue(buffer, max_size);
60 EXPECT_STREQ("name", buffer);
/external/sfntly/cpp/src/sfntly/port/
H A Doutput_stream.h32 virtual void Write(ByteVector* buffer) = 0;
38 virtual void Write(ByteVector* buffer, int32_t offset, int32_t length) = 0;
40 // Note: Caller is responsible for the boundary of buffer.
41 virtual void Write(byte_t* buffer, int32_t offset, int32_t length) = 0;
/external/skia/src/ports/
H A DSkDebug_win.cpp20 char buffer[kBufferSize + 1]; local
31 vsnprintf(buffer, kBufferSize, format, args);
34 OutputDebugStringA(buffer);
/external/skia/tests/
H A DDashPathEffectTest.cpp18 SkWriteBuffer buffer; local
19 buffer.writeFlattenable(dash);
20 REPORTER_ASSERT(r, buffer.bytesWritten() > 12); // We'd write 12 if broken, >=40 if not.
/external/chromium_org/net/base/
H A Daddress_tracker_linux_unittest.cc199 Buffer buffer; local
201 &buffer);
202 EXPECT_TRUE(HandleAddressMessage(buffer));
208 buffer.clear();
210 &buffer);
211 EXPECT_TRUE(HandleAddressMessage(buffer));
218 buffer.clear();
219 MakeAddrMessage(RTM_NEWADDR, 0, AF_INET6, kEmpty, kAddr3, &buffer);
220 EXPECT_TRUE(HandleAddressMessage(buffer));
230 Buffer buffer; local
263 Buffer buffer; local
284 Buffer buffer; local
317 Buffer buffer; local
358 Buffer buffer; local
384 Buffer buffer; local
424 Buffer buffer; local
454 Buffer buffer; local
[all...]
/external/harfbuzz_ng/src/
H A Dhb-buffer.cc30 #include "hb-buffer-private.hh"
61 /* Here is how the buffer works internally:
73 * to an alternate buffer (which we reuse the pos buffer for!), and its
524 /* If we hit the start of buffer, continue in out-buffer. */
556 /* If we hit the end of out-buffer, continue in buffer. */
571 /* If script is set to INVALID, guess from buffer contents */
598 dump_var_allocation (const hb_buffer_t *buffer) argument
[all...]
/external/apache-http/src/org/apache/http/cookie/
H A DCookieOrigin.java95 StringBuilder buffer = new StringBuilder();
96 buffer.append('[');
98 buffer.append("(secure)");
100 buffer.append(this.host);
101 buffer.append(':');
102 buffer.append(Integer.toString(this.port));
103 buffer.append(this.path);
104 buffer.append(']');
105 return buffer.toString();
/external/apache-http/src/org/apache/http/impl/conn/
H A DWire.java55 StringBuilder buffer = new StringBuilder();
59 buffer.append("[\\r]");
61 buffer.append("[\\n]\"");
62 buffer.insert(0, "\"");
63 buffer.insert(0, header);
64 log.debug(buffer.toString());
65 buffer.setLength(0);
67 buffer.append("[0x");
68 buffer.append(Integer.toHexString(ch));
69 buffer
[all...]

Completed in 760 milliseconds

<<11121314151617181920>>