/external/apache-http/src/org/apache/http/impl/cookie/ |
BasicClientCookie.java | 324 StringBuilder buffer = new StringBuilder(); local 325 buffer.append("[version: "); 326 buffer.append(Integer.toString(this.cookieVersion)); 327 buffer.append("]"); 328 buffer.append("[name: "); 329 buffer.append(this.name); 330 buffer.append("]"); 331 buffer.append("[value: "); 332 buffer.append(this.value); 333 buffer.append("]") [all...] |
/external/apache-http/src/org/apache/http/impl/io/ |
AbstractSessionInputBuffer.java | 56 private byte[] buffer; field in class:AbstractSessionInputBuffer 73 throw new IllegalArgumentException("Buffer size may not be negative or zero"); 79 this.buffer = new byte[buffersize]; 91 // compact the buffer if necessary 95 System.arraycopy(this.buffer, this.bufferpos, this.buffer, 0, len); 102 int len = this.buffer.length - off; 103 l = this.instream.read(this.buffer, off, len); 125 return this.buffer[this.bufferpos++] & 0xff; 143 System.arraycopy(this.buffer, this.bufferpos, b, off, chunk) [all...] |
/external/icu4c/common/ |
ucnv_io.h | 65 * @param dst The destination buffer, which is <= the buffer of name. 66 * @param dst The destination buffer, which is <= the buffer of name. 68 * @return the destination buffer.
|
/external/jpeg/ |
jcprepct.c | 33 * For the simple (no-context-row) case, we just need to buffer one 39 * When providing context rows, we must buffer three row groups' worth of 51 /* Private buffer controller object */ 56 /* Downsampling input buffer. This buffer holds color-converted data 87 /* Mark the conversion buffer empty */ 141 /* Do color conversion to fill the conversion buffer. */ 152 /* If at bottom of image, pad to fill the conversion buffer. */ 161 /* If we've filled the conversion buffer, empty it. */ 170 * Note we assume the caller is providing a one-iMCU-height output buffer! [all...] |
/external/opencore/fileformats/mp4/composer/include/ |
interleavebuffer.h | 67 uint8* _interLeaveBuffer; // samples copied to buffer before written to file 68 uint32 _maxInterLeaveBufferSize; // max size if interleave buffer ( codec dependent) 69 uint32 _currInterLeaveBufferSize; // current occupancy in interleave buffer 70 uint32 _lastInterLeaveBufferTS; // Time stamp of last interleave buffer 71 // to calculate duration of interleave buffer
|
/external/qemu/ |
compatfd.c | 45 char buffer[128]; local 48 memcpy(buffer, &err, sizeof(err)); 49 while (offset < sizeof(buffer)) { 52 len = write(info->fd, buffer + offset, 53 sizeof(buffer) - offset);
|
/external/skia/src/ports/ |
SkOSFile_stdio.cpp | 62 size_t sk_fread(void* buffer, size_t byteCount, SkFILE* f) 65 if (buffer == NULL) 82 return ::fread(buffer, 1, byteCount, (FILE*)f); 85 size_t sk_fwrite(const void* buffer, size_t byteCount, SkFILE* f) 88 return ::fwrite(buffer, 1, byteCount, (FILE*)f);
|
/external/v8/src/ |
log-utils.h | 36 // A memory buffer that increments its size as you write in it. Size 39 // buffer an amount of memory specified in 'seal_size' is reserved. 40 // When writing position reaches max_size - seal_size, buffer auto-seals 52 // Reads contents of the buffer starting from 'from_pos'. Upon 57 // Writes 'data' to the buffer, making it larger if necessary. If 58 // data is too big to fit in the buffer, it doesn't get written at 59 // all. In that case, buffer auto-seals itself and stops to accept 100 // Opens memory buffer for logging. 117 // Size of buffer used for formatting log messages. 138 // Implementation of writing to a memory buffer [all...] |
/external/webkit/WebCore/platform/graphics/win/ |
IconWin.cpp | 69 TCHAR buffer[MAX_PATH]; 70 UINT length = ::GetSystemDirectory(buffer, ARRAYSIZE(buffer)); 74 if (_tcscat_s(buffer, TEXT("\\shell32.dll"))) 78 if (!::ExtractIconEx(buffer, shell32MultipleFileIconIndex, 0, &hIcon, 1))
|
FontPlatformDataCGWin.cpp | 59 BYTE* buffer = bufferVector.data(); local 60 if (GetFontData(dc, 'eman', 0, buffer, bufferSize) == GDI_ERROR) 66 USHORT numberOfRecords = readBigEndianWord(buffer + 2); 67 UINT stringsOffset = readBigEndianWord(buffer + 4); 71 BYTE* strings = buffer + stringsOffset; 79 USHORT platformID = readBigEndianWord(buffer + offset); 80 USHORT encodingID = readBigEndianWord(buffer + offset + 2); 81 USHORT languageID = readBigEndianWord(buffer + offset + 4); 82 USHORT nameID = readBigEndianWord(buffer + offset + 6); 83 USHORT length = readBigEndianWord(buffer + offset + 8) [all...] |
/external/webkit/WebCore/platform/text/mac/ |
TextCodecMac.cpp | 139 // Finish converting a partial character that's in our buffer. 141 // First, fill the partial character buffer with as many bytes as are available. 148 // Now, do a conversion on the buffer. 156 LOG_ERROR("TECConvertText gave a kTECPartialCharErr but read none of the %zu bytes in the buffer", sizeof(m_bufferedBytes)); 160 // Tell the caller we read all the source bytes and keep them in the buffer. 166 // We are done with the partial character buffer. 167 // Also, we have read some of the bytes from the main buffer. 176 // While there may be a partial character problem in the small buffer, 178 // character problem in the large buffer. 208 UniChar buffer[ConversionBufferSize] local 299 unsigned char* buffer = reinterpret_cast<unsigned char*>(result.data() + size); local [all...] |
/external/webkit/WebCore/platform/win/ |
LoggingWin.cpp | 40 OwnArrayPtr<char> buffer(new char[length]); 42 if (!GetEnvironmentVariableA(channel.defaultName, buffer.get(), length)) 45 String variableValue(buffer.get()); 49 LOG_ERROR("Unable to parse hex value for %s (%s), logging is off", channel.defaultName, buffer.get()); 60 LOG_ERROR("Unable to parse hex value for %s (%s), logging is off", channel.defaultName, buffer.get());
|
/packages/apps/Email/src/org/apache/james/mime4j/field/address/parser/ |
SimpleCharStream.java | 42 protected char[] buffer; field in class:SimpleCharStream 61 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); 62 System.arraycopy(buffer, 0, newbuffer, 64 buffer = newbuffer; 78 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); 79 buffer = newbuffer; 127 if ((i = inputStream.read(buffer, maxNextCharInd, 204 return buffer[bufpos]; 210 char c = buffer[bufpos]; 265 buffer = new char[buffersize] [all...] |
/packages/apps/Email/src/org/apache/james/mime4j/field/contenttype/parser/ |
SimpleCharStream.java | 42 protected char[] buffer; field in class:SimpleCharStream 61 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); 62 System.arraycopy(buffer, 0, newbuffer, 64 buffer = newbuffer; 78 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); 79 buffer = newbuffer; 127 if ((i = inputStream.read(buffer, maxNextCharInd, 204 return buffer[bufpos]; 210 char c = buffer[bufpos]; 265 buffer = new char[buffersize] [all...] |
/packages/apps/Email/src/org/apache/james/mime4j/field/datetime/parser/ |
SimpleCharStream.java | 42 protected char[] buffer; field in class:SimpleCharStream 61 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); 62 System.arraycopy(buffer, 0, newbuffer, 64 buffer = newbuffer; 78 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); 79 buffer = newbuffer; 127 if ((i = inputStream.read(buffer, maxNextCharInd, 204 return buffer[bufpos]; 210 char c = buffer[bufpos]; 265 buffer = new char[buffersize] [all...] |
/system/core/adb/ |
file_sync_service.c | 101 if it does happen, let's not buffer overrun */ 151 static int handle_send_file(int s, char *path, mode_t mode, char *buffer) 190 if(readx(s, buffer, len)) 195 if(writex(fd, buffer, len)) { 225 static int handle_send_link(int s, char *path, char *buffer) 244 if(readx(s, buffer, len)) 247 ret = symlink(buffer, path); 250 ret = symlink(buffer, path); 274 static int do_send(int s, char *path, char *buffer) 302 ret = handle_send_link(s, path, buffer); 363 char *buffer = malloc(SYNC_DATA_MAX); local [all...] |
/dalvik/libcore/luni/src/main/java/java/io/ |
FilterInputStream.java | 117 * {@code buffer}. Returns the number of bytes actually read or -1 if no 121 * @param buffer 129 public int read(byte[] buffer) throws IOException { 130 return read(buffer, 0, buffer.length); 135 * byte array {@code buffer} starting at {@code offset}. Returns the number 140 * @param buffer 143 * the initial position in {@code buffer} to store the bytes 146 * the maximum number of bytes to store in {@code buffer}. 153 public int read(byte[] buffer, int offset, int count) throws IOException [all...] |
/dalvik/libcore/luni/src/test/java/tests/api/java/io/ |
OutputStreamTest.java | 59 private byte[] buffer; field in class:OutputStreamTest.BasicOutputStream 63 buffer = new byte[BUFFER_SIZE]; 69 buffer[position] = (byte) (oneByte & 255); 72 throw new IOException("Internal buffer overflow."); 77 return buffer; 93 byte[] buffer; 102 buffer = bos.getBuffer(); 104 expected = (shortByteArray[i] == buffer[i]); 124 byte[] buffer; 133 buffer = bos.getBuffer() [all...] |
/external/apache-http/src/org/apache/http/message/ |
BasicHeaderElementIterator.java | 57 private CharArrayBuffer buffer = null; field in class:BasicHeaderElementIterator 84 this.buffer = null; 88 this.buffer = ((FormattedHeader) h).getBuffer(); 89 this.cursor = new ParserCursor(0, this.buffer.length()); 95 this.buffer = new CharArrayBuffer(value.length()); 96 this.buffer.append(value); 97 this.cursor = new ParserCursor(0, this.buffer.length()); 113 // loop while there is data in the buffer 115 HeaderElement e = this.parser.parseHeaderElement(this.buffer, this.cursor); 122 // if at the end of the buffer [all...] |
/external/dhcpcd/ |
bpf.c | 93 /* Get the required BPF buffer length from the kernel. */ 97 free(iface->buffer); 99 iface->buffer = xmalloc(buf_len); 131 free(iface->buffer); 132 iface->buffer = NULL; 159 /* BPF requires that we read the entire buffer. 160 * So we pass the buffer in the API so we can loop on >1 packet. */ 177 bytes = read(fd, iface->buffer, iface->buffer_size); 186 memcpy(&packet, iface->buffer + iface->buffer_pos, 192 goto next; /* Packet beyond buffer, drop. * [all...] |
/external/qemu/distrib/sdl-1.2.12/src/audio/mint/ |
SDL_mintaudio.c | 45 unsigned long SDL_MintAudio_audiosize; /* Length of audio buffer=spec->size */ 46 volatile unsigned short SDL_MintAudio_numbuf; /* Buffer to play */ 62 Uint8 *buffer; local 65 buffer = SDL_MintAudio_audiobuf[SDL_MintAudio_numbuf]; 66 SDL_memset(buffer, audio->spec.silence, audio->spec.size); 83 SDL_memcpy(buffer, audio->convert.buf, audio->convert.len_cvt); 85 audio->spec.callback(audio->spec.userdata, buffer, audio->spec.size); 178 /* DMA is reading buffer #0, setup buffer #1 if not already done */ 187 /* DMA is reading buffer #1, setup buffer #0 if not already done * [all...] |
/external/skia/include/core/ |
SkBuffer.h | 25 The RBuffer is given the buffer to read from, with either a specified size 59 /** Return true if the buffer has read to the end of the data pointer. 65 /** Read the specified number of bytes from the data pointer. If buffer is not 66 null, copy those bytes into buffer. 68 void read(void* buffer, size_t size) { if (size) this->readNoSizeCheck(buffer, size); } 82 void readNoSizeCheck(void* buffer, size_t size); 92 The WBuffer is given the buffer to write into, with either a specified size 122 void write(const void* buffer, size_t size) { if (size) this->writeNoSizeCheck(buffer, size); [all...] |
/external/webkit/JavaScriptCore/wtf/ |
Assertions.cpp | 64 char* buffer = (char*)malloc(length + 1); local 66 CFStringGetCString(str, buffer, length, kCFStringEncodingUTF8); 68 fputs(buffer, stderr); 70 free(buffer); 79 char* buffer = (char*)malloc(size); 81 if (buffer == NULL) 84 if (_vsnprintf(buffer, size, format, args) != -1) { 91 if (!(wideBuffer[i] = buffer[i])) 97 OutputDebugStringA(buffer); 99 free(buffer); [all...] |
/frameworks/base/core/jni/android/graphics/ |
CreateJavaOutputStreamAdaptor.cpp | 37 size_t doRead(void* buffer, size_t size) { 60 reinterpret_cast<jbyte*>(buffer)); 68 buffer = (void*)((char*)buffer + n); 106 virtual size_t read(void* buffer, size_t size) { 108 if (NULL == buffer) { 132 return this->doRead(buffer, size); 185 virtual bool write(const void* buffer, size_t size) { 196 reinterpret_cast<const jbyte*>(buffer)); 213 buffer = (void*)((char*)buffer + requested) [all...] |
/frameworks/base/core/jni/ |
android_opengl_GLES10Ext.cpp | 50 jclass bufferClassLocal = _env->FindClass("java/nio/Buffer"); 54 "getBasePointer", "(Ljava/nio/Buffer;)J"); 56 "getBaseArray", "(Ljava/nio/Buffer;)Ljava/lang/Object;"); 58 "getBaseArrayOffset", "(Ljava/nio/Buffer;)I"); 88 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining) 97 position = _env->GetIntField(buffer, positionID); 98 limit = _env->GetIntField(buffer, limitID); 99 elementSizeShift = _env->GetIntField(buffer, elementSizeShiftID); 102 getBasePointerID, buffer); 109 getBaseArrayID, buffer); [all...] |