/external/apache-http/src/org/apache/http/impl/auth/ |
AuthSchemeBase.java | 89 CharArrayBuffer buffer; local 92 buffer = ((FormattedHeader) header).getBuffer(); 99 buffer = new CharArrayBuffer(s.length()); 100 buffer.append(s); 103 while (pos < buffer.length() && HTTP.isWhitespace(buffer.charAt(pos))) { 107 while (pos < buffer.length() && !HTTP.isWhitespace(buffer.charAt(pos))) { 111 String s = buffer.substring(beginIndex, endIndex); 116 parseChallenge(buffer, pos, buffer.length()) [all...] |
/external/chromium_org/testing/gtest/xcode/Samples/FrameworkSample/ |
widget.cc | 58 void Widget::GetCharPtrValue(char* buffer, size_t max_size) const { 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';
|
widget_test.cc | 58 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/ |
OpenTypeTypes.h | 68 template <typename T> static const T* validateTable(const RefPtr<SharedBuffer>& buffer, size_t count = 1) 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) 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) 88 if (!isValidEnd(buffer, &casted[1]) [all...] |
/external/chromium_org/third_party/WebKit/Source/wtf/dtoa/ |
fixed-dtoa.cc | 125 Vector<char> buffer, int* length) { 127 buffer[(*length) + i] = '0' + number % 10; 134 static void FillDigits32(uint32_t number, Vector<char> buffer, int* length) { 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, length) 379 FillDigits32(static_cast<uint32_t>(integrals), buffer, length); local [all...] |
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/encoder/ |
vp9_writer.c | 19 br->buffer = source; 31 if ((br->buffer[br->pos - 1] & 0xe0) == 0xc0) 32 br->buffer[br->pos++] = 0;
|
/external/chromium_org/third_party/sfntly/cpp/src/sfntly/port/ |
memory_output_stream.h | 37 virtual void Write(ByteVector* buffer); 38 virtual void Write(ByteVector* buffer, int32_t offset, int32_t length); 39 virtual void Write(byte_t* buffer, int32_t offset, int32_t length);
|
/external/chromium_org/third_party/skia/src/core/ |
SkPathEffect.cpp | 47 void SkPairPathEffect::flatten(SkWriteBuffer& buffer) const { 48 buffer.writeFlattenable(fPE0); 49 buffer.writeFlattenable(fPE1); 53 SkPairPathEffect::SkPairPathEffect(SkReadBuffer& buffer) { 54 fPE0 = buffer.readPathEffect(); 55 fPE1 = buffer.readPathEffect(); 62 SkFlattenable* SkComposePathEffect::CreateProc(SkReadBuffer& buffer) { 63 SkAutoTUnref<SkPathEffect> pe0(buffer.readPathEffect()); 64 SkAutoTUnref<SkPathEffect> pe1(buffer.readPathEffect()); 86 SkFlattenable* SkSumPathEffect::CreateProc(SkReadBuffer& buffer) { [all...] |
/external/chromium_org/third_party/skia/src/ports/ |
SkDebug_win.cpp | 20 char buffer[kBufferSize + 1]; local 31 vsnprintf(buffer, kBufferSize, format, args); 34 OutputDebugStringA(buffer);
|
/external/chromium_org/third_party/skia/src/utils/ |
SkMD5.h | 25 * Note that this treats the buffer as a series of uint8_t values. 27 virtual bool write(const void* buffer, size_t size) SK_OVERRIDE { 28 this->update(reinterpret_cast<const uint8_t*>(buffer), size); 51 // input buffer 52 uint8_t buffer[64]; member in class:SkMD5
|
SkSHA1.h | 25 * Note that this treats the buffer as a series of uint8_t values. 27 virtual bool write(const void* buffer, size_t size) SK_OVERRIDE { 28 update(reinterpret_cast<const uint8_t*>(buffer), size); 51 // input buffer 52 uint8_t buffer[64]; member in class:SkSHA1
|
/external/chromium_org/third_party/skia/tests/ |
DashPathEffectTest.cpp | 18 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/ |
comp_corr.c | 29 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);
|
/external/chromium_org/v8/src/ |
fixed-dtoa.cc | 103 Vector<char> buffer, int* length) { 105 buffer[(*length) + i] = '0' + number % 10; 112 static void FillDigits32(uint32_t number, Vector<char> buffer, int* length) { 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, length) 357 FillDigits32(static_cast<uint32_t>(integrals), buffer, length); local [all...] |
/external/compiler-rt/test/BlocksRuntime/ |
fail.c | 22 bool readfile(char *buffer, const char *from) { 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/ |
vp9_writer.c | 20 br->buffer = source; 32 if ((br->buffer[br->pos - 1] & 0xe0) == 0xc0) 33 br->buffer[br->pos++] = 0;
|
/external/chromium_org/third_party/harfbuzz-ng/src/ |
hb-buffer.cc | 30 #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) [all...] |
/external/harfbuzz_ng/src/ |
hb-buffer.cc | 30 #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) [all...] |
/cts/tests/tests/content/src/android/content/res/cts/ |
RawResourceTest.java | 44 final byte[] buffer = new byte[10]; 48 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) { 52 + " but found " + ((char) buffer[i]), 53 buffer[i], expectedString.charAt(curIndex)); 58 readCount = is.read(buffer, 0, buffer.length); 59 assertEquals("Reading end of buffer: expected readCount=-1 but got " + readCount, 62 readCount = is.read(buffer, buffer.length, 0) [all...] |
/external/apache-http/src/org/apache/http/cookie/ |
CookieOrigin.java | 100 StringBuilder buffer = new StringBuilder(); local 101 buffer.append('['); 103 buffer.append("(secure)"); 105 buffer.append(this.host); 106 buffer.append(':'); 107 buffer.append(Integer.toString(this.port)); 108 buffer.append(this.path); 109 buffer.append(']'); 110 return buffer.toString();
|
/external/apache-http/src/org/apache/http/impl/conn/ |
Wire.java | 60 StringBuilder buffer = new StringBuilder(); local 64 buffer.append("[\\r]"); 66 buffer.append("[\\n]\""); 67 buffer.insert(0, "\""); 68 buffer.insert(0, header); 69 log.debug(buffer.toString()); 70 buffer.setLength(0); 72 buffer.append("[0x"); 73 buffer.append(Integer.toHexString(ch)); 74 buffer.append("]") [all...] |
/external/apache-http/src/org/apache/http/message/ |
HeaderValueFormatter.java | 47 * 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. 70 * @param buffer the buffer to append to, or 71 * <code>null</code> to create a new buffer 76 * @return a buffer with the formatted header elements [all...] |
HeaderValueParser.java | 88 * @param buffer buffer holding the header value to parse 90 * the bounds within the buffer for the parsing operation 97 CharArrayBuffer buffer, 105 * @param buffer buffer holding the element to parse 107 * the bounds within the buffer for the parsing operation 114 CharArrayBuffer buffer, 191 * @param buffer buffer holding the name-value list to pars [all...] |
LineFormatter.java | 54 * a buffer can be passed as argument to all formatting methods. 55 * The implementation may or may not actually use that buffer for formatting. 56 * If it is used, the buffer will first be cleared by the 58 * The argument buffer can always be re-used after the call. The buffer 59 * returned as the result, if it is different from the argument buffer, 84 * <code>buffer</code> arguments. 85 * It does <i>not</i> clear the argument buffer, but appends instead. 86 * The returned buffer can always be modified by the caller. 90 * @param buffer a buffer to which to append, or <code>null</code [all...] |
/external/chromium_org/chrome/common/ |
partial_circular_buffer.h | 11 // A wrapper around a memory buffer that allows circular read and write with a 12 // selectable wrapping position. Buffer layout (after wrap; H is header): 20 // - Length written to the buffer (not including header). 22 // - End position of buffer. (If the last byte is at x, this will be x + 1.) 23 // Users of wrappers around the same underlying buffer must ensure that writing 29 PartialCircularBuffer(void* buffer, uint32 buffer_size); 34 PartialCircularBuffer(void* buffer, 39 uint32 Read(void* buffer, uint32 buffer_size); 40 void Write(const void* buffer, uint32 buffer_size);
|