/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
GBCharsetDecoderTest.java | 53 ByteBuffer buffer = ByteBuffer.allocate(20); local 54 buffer.put(new byte[] { (byte) 0xd8 }); 55 buffer.put(getByteBuffer()); 56 buffer.flip(); 57 return buffer;
|
/external/chromium_org/media/base/ |
audio_buffer_unittest.cc | 39 scoped_refptr<AudioBuffer> buffer = MakeAudioBuffer<float>(sample_format, local 47 EXPECT_EQ(frames, buffer->frame_count()); 48 EXPECT_EQ(timestamp, buffer->timestamp()); 49 EXPECT_EQ(duration, buffer->duration()); 54 buffer->ReadFrames(frames, 0, 0, bus.get()); 57 // Trim 10ms of frames from the middle of the buffer. 61 buffer->TrimRange(trim_start, trim_start + trim_length); 62 EXPECT_EQ(frames - trim_length, buffer->frame_count()); 63 EXPECT_EQ(timestamp, buffer->timestamp()); 64 EXPECT_EQ(duration - trim_duration, buffer->duration()) 184 scoped_refptr<AudioBuffer> buffer = AudioBuffer::CreateEOSBuffer(); local 195 scoped_refptr<AudioBuffer> buffer = local 220 scoped_refptr<AudioBuffer> buffer = MakeAudioBuffer<uint8>(kSampleFormatU8, local 244 scoped_refptr<AudioBuffer> buffer = MakeAudioBuffer<int16>(kSampleFormatS16, local 268 scoped_refptr<AudioBuffer> buffer = MakeAudioBuffer<int32>(kSampleFormatS32, local 291 scoped_refptr<AudioBuffer> buffer = MakeAudioBuffer<float>(kSampleFormatF32, local 314 scoped_refptr<AudioBuffer> buffer = local 348 scoped_refptr<AudioBuffer> buffer = local 376 scoped_refptr<AudioBuffer> buffer = AudioBuffer::CreateEmptyBuffer( local 395 scoped_refptr<AudioBuffer> buffer = local [all...] |
/external/harfbuzz_ng/src/ |
hb-ot-shape.cc | 211 hb_buffer_t *buffer; member in struct:hb_ot_shape_context_t 227 hb_set_unicode_props (hb_buffer_t *buffer) 229 unsigned int count = buffer->len; 230 hb_glyph_info_t *info = buffer->info; 232 _hb_glyph_info_set_unicode_props (&info[i], buffer->unicode); 236 hb_insert_dotted_circle (hb_buffer_t *buffer, hb_font_t *font) 238 if (!(buffer->flags & HB_BUFFER_FLAG_BOT) || 239 _hb_glyph_info_get_general_category (&buffer->info[0]) != 248 _hb_glyph_info_set_unicode_props (&dottedcircle, buffer->unicode); 250 buffer->clear_output () 354 hb_buffer_t *buffer = c->buffer; local 364 hb_buffer_t *buffer = c->buffer; local 421 hb_buffer_t *buffer = c->buffer; local 448 hb_buffer_t *buffer = c->buffer; local [all...] |
/external/chromium_org/v8/test/cctest/ |
test-fast-dtoa.cc | 58 Vector<char> buffer(buffer_container, kBufferSize); 65 buffer, &length, &point); 67 CHECK_EQ("5", buffer.start()); 72 buffer, &length, &point); 74 CHECK_EQ("17976931348623157", buffer.start()); 78 buffer, &length, &point); 80 CHECK_EQ("4294967272", buffer.start()); 84 buffer, &length, &point); 86 CHECK_EQ("4185580496821357", buffer.start()); 90 buffer, &length, &point) [all...] |
/external/apache-http/src/org/apache/http/entity/ |
BufferedHttpEntity.java | 47 * buffer once and provided from there as often as required. 62 private final byte[] buffer; field in class:BufferedHttpEntity 67 this.buffer = EntityUtils.toByteArray(entity); 69 this.buffer = null; 74 if (this.buffer != null) { 75 return this.buffer.length; 82 if (this.buffer != null) { 83 return new ByteArrayInputStream(this.buffer); 95 return (buffer == null) && wrappedEntity.isChunked(); 112 if (this.buffer != null) [all...] |
/external/chromium_org/third_party/sfntly/cpp/src/sfntly/port/ |
memory_output_stream.cc | 27 void MemoryOutputStream::Write(ByteVector* buffer) { 28 store_.insert(store_.end(), buffer->begin(), buffer->end()); 31 void MemoryOutputStream::Write(ByteVector* buffer, 34 assert(buffer); 37 buffer->begin() + offset, 38 buffer->begin() + offset + length); 46 void MemoryOutputStream::Write(byte_t* buffer, int32_t offset, int32_t length) { 47 assert(buffer); 49 store_.insert(store_.end(), buffer + offset, buffer + offset + length) [all...] |
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/builder/ |
ByteBufferHelper.java | 29 for (ByteBuffer buffer : samples) { 31 if (lastIndex >= 0 && buffer.hasArray() && nuSamples.get(lastIndex).hasArray() && buffer.array() == nuSamples.get(lastIndex).array() && 32 nuSamples.get(lastIndex).arrayOffset() + nuSamples.get(lastIndex).limit() == buffer.arrayOffset()) { 34 ByteBuffer nu = ByteBuffer.wrap(buffer.array(), oldBuffer.arrayOffset(), oldBuffer.limit() + buffer.limit()).slice(); 38 buffer instanceof MappedByteBuffer && nuSamples.get(lastIndex) instanceof MappedByteBuffer && 39 nuSamples.get(lastIndex).limit() == nuSamples.get(lastIndex).capacity() - buffer.capacity()) { 42 oldBuffer.limit(buffer.limit() + oldBuffer.limit()); 44 buffer.rewind() [all...] |
/external/sfntly/cpp/src/sfntly/port/ |
memory_output_stream.cc | 27 void MemoryOutputStream::Write(ByteVector* buffer) { 28 store_.insert(store_.end(), buffer->begin(), buffer->end()); 31 void MemoryOutputStream::Write(ByteVector* buffer, 34 assert(buffer); 37 buffer->begin() + offset, 38 buffer->begin() + offset + length); 46 void MemoryOutputStream::Write(byte_t* buffer, int32_t offset, int32_t length) { 47 assert(buffer); 49 store_.insert(store_.end(), buffer + offset, buffer + offset + length) [all...] |
/libcore/luni/src/main/java/libcore/io/ |
HeapBufferIterator.java | 28 private final byte[] buffer; field in class:HeapBufferIterator 35 HeapBufferIterator(byte[] buffer, int offset, int byteCount, ByteOrder order) { 36 this.buffer = buffer; 51 System.arraycopy(buffer, offset + position, dst, dstOffset, byteCount); 56 byte result = buffer[offset + position]; 62 int result = Memory.peekInt(buffer, offset + position, order); 69 Memory.unsafeBulkGet(dst, dstOffset, byteCount, buffer, offset + position, SizeOf.INT, order.needsSwap); 74 short result = Memory.peekShort(buffer, offset + position, order); 80 * Returns a new iterator over {@code buffer}, starting at {@code offset} and continuing fo [all...] |
/libcore/support/src/test/java/tests/support/ |
Support_OutputStream.java | 17 private byte[] buffer; field in class:Support_OutputStream 35 buffer = new byte[bufferSize]; 58 public void write(byte buffer[]) throws IOException { 62 for (int i = 0; i < buffer.length; i++) { 63 write(buffer[i]); 68 public void write(byte buffer[], int offset, int count) throws IOException { 72 if (offset < 0 || count < 0 || (offset + count) > buffer.length) { 76 write(buffer[i]); 86 buffer[position] = (byte)(oneByte & 255); 89 throw new IOException("Internal buffer overflow.") [all...] |
/external/apache-http/src/org/apache/http/auth/ |
AuthState.java | 143 StringBuilder buffer = new StringBuilder(); local 144 buffer.append("auth scope ["); 145 buffer.append(this.authScope); 146 buffer.append("]; credentials set ["); 147 buffer.append(this.credentials != null ? "true" : "false"); 148 buffer.append("]"); 149 return buffer.toString();
|
/external/chromium_org/net/spdy/ |
spdy_buffer_unittest.cc | 28 // Make a string from the data remaining in |buffer|. 29 std::string BufferToString(const SpdyBuffer& buffer) { 30 return std::string(buffer.GetRemainingData(), buffer.GetRemainingSize()); 36 SpdyBuffer buffer( 41 EXPECT_EQ(kData, buffer.GetRemainingData()); 42 EXPECT_EQ(kDataSize, buffer.GetRemainingSize()); 49 SpdyBuffer buffer(data.data(), data.size()); 50 // This mutation shouldn't affect |buffer|'s data. 53 EXPECT_NE(kData, buffer.GetRemainingData()) [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/ |
LinkHash.cpp | 41 static bool resolveRelative(const KURL& base, const String& relative, url::RawCanonOutput<2048>* buffer) 48 return url::ResolveRelative(baseUTF8.data(), baseUTF8.length(), base.parsed(), relativeUTF8.data(), relativeUTF8.length(), 0, buffer, &parsed); 50 return url::ResolveRelative(baseUTF8.data(), baseUTF8.length(), base.parsed(), relative.characters16(), relative.length(), 0, buffer, &parsed); 57 url::RawCanonOutput<2048> buffer; 58 if (!resolveRelative(base, relative.string(), &buffer)) 60 return blink::Platform::current()->visitedLinkHash(buffer.data(), buffer.length());
|
/external/llvm/examples/OCaml-Kaleidoscope/Chapter2/ |
lexer.ml | 11 let buffer = Buffer.create 1 in var 12 Buffer.add_char buffer c; 13 lex_ident buffer stream 17 let buffer = Buffer.create 1 in var 18 Buffer.add_char buffer c; 19 lex_number buffer strea [all...] |
/external/llvm/examples/OCaml-Kaleidoscope/Chapter3/ |
lexer.ml | 11 let buffer = Buffer.create 1 in var 12 Buffer.add_char buffer c; 13 lex_ident buffer stream 17 let buffer = Buffer.create 1 in var 18 Buffer.add_char buffer c; 19 lex_number buffer strea [all...] |
/external/llvm/examples/OCaml-Kaleidoscope/Chapter4/ |
lexer.ml | 11 let buffer = Buffer.create 1 in var 12 Buffer.add_char buffer c; 13 lex_ident buffer stream 17 let buffer = Buffer.create 1 in var 18 Buffer.add_char buffer c; 19 lex_number buffer strea [all...] |
/external/llvm/examples/OCaml-Kaleidoscope/Chapter5/ |
lexer.ml | 11 let buffer = Buffer.create 1 in var 12 Buffer.add_char buffer c; 13 lex_ident buffer stream 17 let buffer = Buffer.create 1 in var 18 Buffer.add_char buffer c; 19 lex_number buffer strea [all...] |
/external/llvm/examples/OCaml-Kaleidoscope/Chapter6/ |
lexer.ml | 11 let buffer = Buffer.create 1 in var 12 Buffer.add_char buffer c; 13 lex_ident buffer stream 17 let buffer = Buffer.create 1 in var 18 Buffer.add_char buffer c; 19 lex_number buffer strea [all...] |
/external/llvm/examples/OCaml-Kaleidoscope/Chapter7/ |
lexer.ml | 11 let buffer = Buffer.create 1 in var 12 Buffer.add_char buffer c; 13 lex_ident buffer stream 17 let buffer = Buffer.create 1 in var 18 Buffer.add_char buffer c; 19 lex_number buffer strea [all...] |
/external/llvm/lib/Support/ |
Errno.cpp | 39 char buffer[MaxErrStrLen]; local 40 buffer[0] = '\0'; 49 // which may not use the buffer supplied. 50 str = strerror_r(errnum, buffer, MaxErrStrLen - 1); 52 strerror_r(errnum, buffer, MaxErrStrLen - 1); 53 str = buffer; 56 strerror_s(buffer, MaxErrStrLen - 1, errnum); 57 str = buffer; 60 // the buffer as fast as possible to minimize impact
|
/external/lzma/CPP/Common/ |
DynamicBuffer.h | 6 #include "Buffer.h"
27 CDynamicBuffer(const CDynamicBuffer &buffer): CBuffer<T>(buffer) {};
29 CDynamicBuffer& operator=(const CDynamicBuffer &buffer)
32 if (buffer._capacity > 0)
34 SetCapacity(buffer._capacity);
35 memmove(this->_items, buffer._items, buffer._capacity * sizeof(T));
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
RecordRoute.java | 77 protected StringBuffer encodeBody(StringBuffer buffer) { 79 buffer.append(LESS_THAN); 81 address.encode(buffer); 83 buffer.append(GREATER_THAN); 87 buffer.append(SEMICOLON); 88 this.parameters.encode(buffer); 90 return buffer;
|
/external/okhttp/okio/src/main/java/okio/ |
RealBufferedSink.java | 22 public final OkBuffer buffer; field in class:RealBufferedSink 26 public RealBufferedSink(Sink sink, OkBuffer buffer) { 28 this.buffer = buffer; 36 @Override public OkBuffer buffer() { method in class:RealBufferedSink 37 return buffer; 43 buffer.write(source, byteCount); 49 buffer.write(byteString); 55 buffer.writeUtf8(string); 61 buffer.write(source) [all...] |
/frameworks/av/media/libstagefright/ |
XINGSeeker.cpp | 85 uint8_t buffer[4]; local 87 if (source->readAt(offset, &buffer, 4) < 4) { // get header 92 int header = U32_AT(buffer);; 103 uint8_t version = (buffer[1] >> 3) & 3; 116 if (source->readAt(offset, &buffer, 4) < 4) { // XING header ID 121 if ((buffer[0] != 'X') || (buffer[1] != 'i') 122 || (buffer[2] != 'n') || (buffer[3] != 'g')) { 123 if ((buffer[0] != 'I') || (buffer[1] != 'n' [all...] |
/libcore/luni/src/main/java/java/io/ |
PipedReader.java | 39 * The circular buffer through which data is passed. Data is read from the 41 * Data in the buffer is either sequential: <pre> 46 * ...or wrapped around the buffer's end: <pre> 51 * When the buffer is empty, {@code in == -1}. Reading when the buffer is 52 * empty will block until data is available. When the buffer is full, 53 * {@code in == out}. Writing when the buffer is full will block until free 56 private char[] buffer; field in class:PipedReader 59 * The index in {@code buffer} where the next character will be written. 64 * The index in {@code buffer} where the next character will be read [all...] |