/external/chromium_org/content/browser/speech/ |
chunked_byte_buffer_unittest.cc | 16 ChunkedByteBuffer buffer; local 24 EXPECT_EQ(0U, buffer.GetTotalLength()); 25 EXPECT_FALSE(buffer.HasChunks()); 28 buffer.Append(kChunks, 2); 29 EXPECT_EQ(2U, buffer.GetTotalLength()); 30 EXPECT_FALSE(buffer.HasChunks()); 33 buffer.Append(kChunks + 2, 6); 34 EXPECT_EQ(8U, buffer.GetTotalLength()); 35 EXPECT_TRUE(buffer.HasChunks()); 38 buffer.Append(kChunks + 8, 6) [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/ |
UnboundedFifoByteBuffer.java | 26 * UnboundedFifoByteBuffer is a very efficient buffer implementation. 41 * Buffer fifo = BufferUtils.synchronizedBuffer(new UnboundedFifoByteBuffer()); 44 * This buffer prevents null objects from being added. 57 protected byte[] buffer; field in class:UnboundedFifoByteBuffer 77 * @param initialSize the initial size of the buffer 84 buffer = new byte[initialSize + 1]; 90 * Returns the number of elements stored in the buffer. 92 * @return this buffer's size 98 size = buffer.length - head + tail; 107 * Returns true if this buffer is empty; false otherwise [all...] |
/external/conscrypt/src/main/java/org/conscrypt/ |
OpenSSLBIOSink.java | 23 private final ByteArrayOutputStream buffer; field in class:OpenSSLBIOSink 27 ByteArrayOutputStream buffer = new ByteArrayOutputStream(); local 28 return new OpenSSLBIOSink(buffer); 31 private OpenSSLBIOSink(ByteArrayOutputStream buffer) { 32 ctx = NativeCrypto.create_BIO_OutputStream(buffer); 33 this.buffer = buffer; 37 return buffer.size() - position; 41 buffer.reset(); 48 if (position == buffer.size()) [all...] |
/frameworks/base/core/java/android/text/method/ |
ArrowKeyMovementMethod.java | 34 private static boolean isSelecting(Spannable buffer) { 35 return ((MetaKeyKeyListener.getMetaState(buffer, MetaKeyKeyListener.META_SHIFT_ON) == 1) || 36 (MetaKeyKeyListener.getMetaState(buffer, MetaKeyKeyListener.META_SELECTING) != 0)); 39 private static int getCurrentLineTop(Spannable buffer, Layout layout) { 40 return layout.getLineTop(layout.getLineForOffset(Selection.getSelectionEnd(buffer))); 52 protected boolean handleMovementKey(TextView widget, Spannable buffer, int keyCode, 59 && MetaKeyKeyListener.getMetaState(buffer, 66 return super.handleMovementKey(widget, buffer, keyCode, movementMetaState, event); 70 protected boolean left(TextView widget, Spannable buffer) { 72 if (isSelecting(buffer)) { [all...] |
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
Sector.java | 35 * The buffer holding the contents of this {@code Sector}. 37 protected final ByteBuffer buffer; field in class:Sector 44 this.buffer = ByteBuffer.allocate(size); 45 this.buffer.order(ByteOrder.LITTLE_ENDIAN); 51 * internal buffer and resets the "dirty" state. 57 buffer.rewind(); 58 buffer.limit(buffer.capacity()); 59 device.read(offset, buffer); 83 buffer.position(0) [all...] |
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/ |
syscalls_test.cc | 47 char buffer[PATH_MAX]; local 70 EXPECT_STREQ("/", realpath("/", buffer)); 71 EXPECT_STREQ("/", realpath("/tmp/..", buffer)); 72 EXPECT_STREQ("/tmp", realpath("/tmp", buffer)); 73 EXPECT_STREQ("/tmp", realpath("/tmp/", buffer)); 74 EXPECT_STREQ("/tmp", realpath("/tmp/bar/..", buffer)); 75 EXPECT_STREQ("/tmp", realpath("/tmp/bar/../bar/../../tmp", buffer)); 76 EXPECT_STREQ("/tmp", realpath("/tmp/././", buffer)); 77 EXPECT_STREQ("/tmp", realpath("///tmp", buffer)); 78 EXPECT_STREQ("/tmp/bar", realpath("/tmp/bar", buffer)); [all...] |
/external/fio/ |
log.c | 11 char buffer[1024]; local 14 len = vsnprintf(buffer, sizeof(buffer), str, args); 15 len = min(len, sizeof(buffer) - 1); 18 len = fio_server_text_output(FIO_LOG_INFO, buffer, len); 20 syslog(LOG_INFO, "%s", buffer); 22 len = fwrite(buffer, len, 1, f_out); 39 char buffer[1024]; local 44 len = vsnprintf(buffer, sizeof(buffer), format, args) 67 char buffer[1024]; local [all...] |
/external/e2fsprogs/ext2ed/ |
group_com.c | 25 char *ptr,buffer [80]; local 27 ptr=parse_word (command_line,buffer); 29 ptr=parse_word (ptr,buffer); 30 entry_offset=atol (buffer); 33 sprintf (buffer,"entry %ld",group_info.group_num+entry_offset); 34 dispatch (buffer); 41 char *ptr,buffer [80]; local 43 ptr=parse_word (command_line,buffer); 45 ptr=parse_word (ptr,buffer); 46 entry_offset=atol (buffer); 57 char *ptr,buffer [80]; local 83 char *ptr,buffer [80]; local 138 char buffer [80]; local 149 char buffer [80]; local 163 char buffer [80]; local [all...] |
/external/chromium_org/media/base/ |
data_buffer_unittest.cc | 14 scoped_refptr<DataBuffer> buffer = new DataBuffer(0); local 15 EXPECT_TRUE(buffer->data()); 16 EXPECT_TRUE(buffer->writable_data()); 17 EXPECT_EQ(0, buffer->data_size()); 18 EXPECT_FALSE(buffer->end_of_stream()); 22 // Buffer size should be set. 23 scoped_refptr<DataBuffer> buffer = new DataBuffer(10); local 24 EXPECT_TRUE(buffer->data()); 25 EXPECT_TRUE(buffer->writable_data()); 26 EXPECT_EQ(0, buffer->data_size()) 36 scoped_refptr<DataBuffer> buffer = new DataBuffer(data.Pass(), kSize); local 48 scoped_refptr<DataBuffer> buffer = local 60 scoped_refptr<DataBuffer> buffer = DataBuffer::CreateEOSBuffer(); local 69 scoped_refptr<DataBuffer> buffer = new DataBuffer(0); local 84 scoped_refptr<DataBuffer> buffer = new DataBuffer(0); local [all...] |
/external/okhttp/okio/src/main/java/okio/ |
RealBufferedSource.java | 25 public final OkBuffer buffer; field in class:RealBufferedSource 29 public RealBufferedSource(Source source, OkBuffer buffer) { 31 this.buffer = buffer; 39 @Override public OkBuffer buffer() { method in class:RealBufferedSource 40 return buffer; 47 if (buffer.size == 0) { 48 long read = source.read(buffer, Segment.SIZE); 52 long toRead = Math.min(byteCount, buffer.size); 53 return buffer.read(sink, toRead) [all...] |
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/ |
byte_array_utils.h | 36 static AK_FORCE_INLINE void writeUintAndAdvancePosition(uint8_t *const buffer, 42 ByteArrayUtils::writeUint8AndAdvancePosition(buffer, data, pos); 45 ByteArrayUtils::writeUint16AndAdvancePosition(buffer, data, pos); 48 ByteArrayUtils::writeUint24AndAdvancePosition(buffer, data, pos); 51 ByteArrayUtils::writeUint32AndAdvancePosition(buffer, data, pos); 63 static AK_FORCE_INLINE uint32_t readUint32(const uint8_t *const buffer, const int pos) { 64 return (buffer[pos] << 24) ^ (buffer[pos + 1] << 16) 65 ^ (buffer[pos + 2] << 8) ^ buffer[pos + 3] [all...] |
/external/chromium_org/third_party/protobuf/src/google/protobuf/io/ |
printer_unittest.cc | 50 // where particular writes cross a buffer boundary and cases where they do 54 char buffer[8192]; local 56 ArrayOutputStream output(buffer, GOOGLE_ARRAYSIZE(buffer), block_size); 62 char buffer[8192]; local 65 ArrayOutputStream output(buffer, sizeof(buffer), block_size); 77 buffer[output.ByteCount()] = '\0'; 82 buffer); 87 char buffer[8192] local 115 char buffer[8192]; local 151 char buffer[8192]; local 172 char buffer[8192]; local 225 char buffer[8192]; local 237 char buffer[17]; local 261 char buffer[16]; local [all...] |
/external/chromium_org/third_party/WebKit/Source/wtf/dtoa/ |
strtod.h | 37 // The buffer must only contain digits in the range [0-9]. It must not 39 double Strtod(Vector<const char> buffer, int exponent);
|
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/egl/common/ |
native_wayland_drm_bufmgr_helper.h | 33 struct wl_drm_buffer *buffer); 37 struct wl_drm_buffer *buffer); 41 struct wl_buffer *buffer); 45 struct wl_buffer *buffer,
|
/external/chromium_org/v8/src/ |
strtod.h | 11 // The buffer must only contain digits in the range [0-9]. It must not 13 double Strtod(Vector<const char> buffer, int exponent);
|
/external/clang/test/CodeGenCXX/ |
2007-01-02-UnboundedArray.cpp | 8 char buffer[]; member in struct:Object
|
/external/llvm/utils/ |
DSAextract.py | 59 buffer = input.readline() variable 60 while buffer != '': 62 if not arrowexp.search(buffer): 67 if regexp.search(buffer): 68 node_set |= set([re.split('\s+',buffer,2)[1]]) 70 buffer = input.readline() variable 86 buffer = input.readline() variable 87 while buffer != '': 95 if arrowexp.search(buffer): 98 nodes = arrowexp.split(buffer) 110 buffer = input.readline() variable [all...] |
/external/mesa3d/src/gallium/state_trackers/egl/common/ |
native_wayland_drm_bufmgr_helper.h | 33 struct wl_drm_buffer *buffer); 37 struct wl_drm_buffer *buffer); 41 struct wl_buffer *buffer); 45 struct wl_buffer *buffer,
|
/external/nanopb-c/examples/using_double_on_avr/ |
encode_double.c | 17 uint8_t buffer[32]; local 18 pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer)); 21 fwrite(buffer, 1, stream.bytes_written, stdout);
|
/external/qemu/distrib/sdl-1.2.15/src/video/dc/ |
SDL_dcvideo.h | 39 void *buffer; member in struct:SDL_PrivateVideoData
|
/external/qemu/distrib/sdl-1.2.15/src/video/dummy/ |
SDL_nullvideo.h | 37 void *buffer; member in struct:SDL_PrivateVideoData
|
/external/qemu/distrib/sdl-1.2.15/src/video/ipod/ |
SDL_ipodvideo.h | 33 char *buffer; member in struct:SDL_PrivateVideoData
|
/frameworks/base/core/java/android/hardware/ |
SerialPort.java | 80 * Reads data into the provided buffer. 81 * Note that the value returned by {@link java.nio.Buffer#position()} on this buffer is 84 * @param buffer to read into 87 public int read(ByteBuffer buffer) throws IOException { 88 if (buffer.isDirect()) { 89 return native_read_direct(buffer, buffer.remaining()); 90 } else if (buffer.hasArray()) { 91 return native_read_array(buffer.array(), buffer.remaining()) [all...] |
/external/chromium_org/third_party/libsrtp/srtp/crypto/rng/ |
prng.c | 82 v128_t buffer; local 107 /* copy state into buffer */ 108 v128_copy(&buffer, &x917_prng.state); 110 /* apply aes to buffer */ 111 aes_encrypt(&buffer, &x917_prng.key); 114 *dest++ = buffer.v8[0]; 115 *dest++ = buffer.v8[1]; 116 *dest++ = buffer.v8[2]; 117 *dest++ = buffer.v8[3]; 118 *dest++ = buffer.v8[4] [all...] |
/external/srtp/crypto/rng/ |
prng.c | 82 v128_t buffer; local 107 /* copy state into buffer */ 108 v128_copy(&buffer, &x917_prng.state); 110 /* apply aes to buffer */ 111 aes_encrypt(&buffer, x917_prng.key); 114 *dest++ = buffer.v8[0]; 115 *dest++ = buffer.v8[1]; 116 *dest++ = buffer.v8[2]; 117 *dest++ = buffer.v8[3]; 118 *dest++ = buffer.v8[4] [all...] |