/system/core/adb/ |
utils.h | 19 /* bounded buffer functions */ 21 /* all these functions are used to append data to a bounded buffer. 23 * after each operation, the buffer is guaranteed to be zero-terminated, 24 * even in the case of an overflow. they all return the new buffer position 42 /* tries to add a character to the buffer, in case of overflow 47 /* tries to add a string to the buffer */ 50 /* tries to add a bytes to the buffer. the input can contain zero bytes, 55 /* tries to add a formatted string to a bounded buffer */ 58 /* convenience macro used to define a bounded buffer, as well as 61 * note: this doesn't place an initial terminating zero in the buffer, [all...] |
/external/apache-http/src/org/apache/http/impl/io/ |
AbstractSessionOutputBuffer.java | 59 private ByteArrayBuffer buffer; field in class:AbstractSessionOutputBuffer 71 throw new IllegalArgumentException("Buffer size may not be negative or zero"); 77 this.buffer = new ByteArrayBuffer(buffersize); 85 int len = this.buffer.length(); 87 this.outstream.write(this.buffer.buffer(), 0, len); 88 this.buffer.clear(); 102 // Do not want to buffer largish chunks 105 if (len > MAX_CHUNK || len > this.buffer.capacity()) { 106 // flush the buffer [all...] |
/external/apache-http/src/org/apache/http/message/ |
BufferedHeader.java | 57 * The buffer containing the entire header line. 59 private final CharArrayBuffer buffer; field in class:BufferedHeader 62 * The beginning of the header value in the buffer 68 * Creates a new header from a buffer. 72 * @param buffer the buffer containing the header to represent 76 public BufferedHeader(final CharArrayBuffer buffer) 80 if (buffer == null) { 82 ("Char array buffer may not be null"); 84 int colon = buffer.indexOf(':') [all...] |
LineParser.java | 67 * @param buffer a buffer holding the protocol version to parse 69 * the bounds within the buffer for the parsing operation 76 CharArrayBuffer buffer, 89 * @param buffer a buffer holding the line to inspect 100 CharArrayBuffer buffer, 107 * @param buffer a buffer holding the line to parse 109 * the bounds within the buffer for the parsing operatio [all...] |
/dalvik/libcore/luni/src/main/java/java/io/ |
PushbackReader.java | 26 * specified during construction. If the buffer of pushed back bytes is empty, 38 * the buffer is full. 44 * source. The size of the pushback buffer is set to the default value of 1 58 * The size of the pushback buffer is set to {@code size}. 63 * the size of the pushback buffer. 78 * and releases the pushback buffer. 124 * reader has been reached. If the pushback buffer does not contain any 155 * byte array {@code buffer} starting at {@code offset}. Characters are 156 * read from the pushback buffer first, then from the source reader if more 160 * @param buffer [all...] |
/external/skia/src/images/ |
SkImageRef.cpp | 161 SkImageRef::SkImageRef(SkFlattenableReadBuffer& buffer) 162 : INHERITED(buffer, &gImageRefMutex), fErrorInDecoding(false) { 163 fConfig = (SkBitmap::Config)buffer.readU8(); 164 fSampleSize = buffer.readU8(); 165 fDoDither = buffer.readBool(); 167 size_t length = buffer.readU32(); 169 buffer.read((void*)fStream->getMemoryBase(), length); 175 void SkImageRef::flatten(SkFlattenableWriteBuffer& buffer) const { 176 this->INHERITED::flatten(buffer); 178 buffer.write8(fConfig) [all...] |
/external/webkit/WebCore/platform/cf/ |
KURLCFNet.cpp | 44 Vector<char, 512> buffer(bytesLength + 6); // 5 for "file:", 1 for null character to end C string 45 char* bytes = &buffer[5]; 53 buffer[0] = 'f'; 54 buffer[1] = 'i'; 55 buffer[2] = 'l'; 56 buffer[3] = 'e'; 57 buffer[4] = ':'; 59 parse(buffer.data(), 0); 68 Vector<char, 512> buffer; local 69 copyToBuffer(buffer); [all...] |
/build/tools/fs_config/ |
fs_config.c | 44 char buffer[1024]; local 46 while (fgets(buffer, 1023, stdin) != NULL) { 49 for (i = 0; i < 1024 && buffer[i]; ++i) { 50 switch (buffer[i]) { 52 buffer[i-is_dir] = '\0'; 65 fs_config(buffer, is_dir, &uid, &gid, &mode); 66 printf("%s %d %d %o\n", buffer, uid, gid, mode);
|
/cts/tools/dex-tools/src/dex/reader/ |
DexAnnotationImpl.java | 29 private DexBuffer buffer; field in class:DexAnnotationImpl 38 public DexAnnotationImpl(DexBuffer buffer, int offset, int[] typeIds, 40 this.buffer = buffer; 49 buffer.setPosition(offset); 50 visibility = Visibility.get(buffer.readUByte()); 51 encodedAnnotation = new DexEncodedAnnotationImpl(buffer, this, typeIds,
|
DexEncodedAnnotationImpl.java | 32 private final DexBuffer buffer; field in class:DexEncodedAnnotationImpl 39 public DexEncodedAnnotationImpl(DexBuffer buffer, DexAnnotation annotation, 41 this.buffer = buffer; 50 typeIdx = buffer.readUleb128(); 51 int size = buffer.readUleb128(); 54 values.add(new DexAnnotationAttributeImpl(buffer, annotation,
|
/dalvik/libcore/support/src/test/java/tests/support/ |
Support_ASimpleOutputStream.java | 55 // public void write(byte buffer[]) throws IOException { 59 // for (int i = 0; i < buffer.length; i++) { 60 // write(buffer[i]); 65 // public void write(byte buffer[], int offset, int count) throws IOException { 69 // if (offset < 0 || count < 0 || (offset + count) > buffer.length) { 73 // write(buffer[i]); 86 throw new IOException("Internal buffer overflow.");
|
/external/dropbear/ |
dss.h | 29 #include "buffer.h" 47 void buf_put_dss_sign(buffer* buf, dss_key *key, const unsigned char* data, 50 int buf_dss_verify(buffer* buf, dss_key *key, const unsigned char* data, 53 int buf_get_dss_pub_key(buffer* buf, dss_key *key); 54 int buf_get_dss_priv_key(buffer* buf, dss_key *key); 55 void buf_put_dss_pub_key(buffer* buf, dss_key *key); 56 void buf_put_dss_priv_key(buffer* buf, dss_key *key);
|
rsa.h | 29 #include "buffer.h" 47 void buf_put_rsa_sign(buffer* buf, rsa_key *key, const unsigned char* data, 50 int buf_rsa_verify(buffer * buf, rsa_key *key, const unsigned char* data, 53 int buf_get_rsa_pub_key(buffer* buf, rsa_key *key); 54 int buf_get_rsa_priv_key(buffer* buf, rsa_key *key); 55 void buf_put_rsa_pub_key(buffer* buf, rsa_key *key); 56 void buf_put_rsa_priv_key(buffer* buf, rsa_key *key);
|
/external/icu4c/common/unicode/ |
bytestream.h | 70 * Returns a writable buffer for appending and writes the buffer's capacity to 72 * May return a pointer to the caller-owned scratch buffer which must have 74 * The returned buffer is only valid until the next operation 80 * returned an internal buffer. 84 * char* buffer = sink->GetAppendBuffer(..., &capacity); 85 * ... Write n bytes into buffer, with n <= capacity. 86 * sink->Append(buffer, n); 89 * If the ByteSink allocates or reallocates an internal buffer, it should use 94 * If a non-scratch buffer is returned, the caller may only pas [all...] |
/external/jpeg/ |
jdpostct.c | 24 /* Private buffer controller object */ 29 /* Color quantization source buffer: this holds output data from 31 * For two-pass color quantization, we need a full-image buffer; 32 * for one-pass operation, a strip buffer is sufficient. 35 JSAMPARRAY buffer; /* strip buffer, or current strip of virtual */ member in struct:__anon2736 36 JDIMENSION strip_height; /* buffer size in rows */ 84 * allocate a strip buffer. Use the virtual-array buffer as workspace. 86 if (post->buffer == NULL) [all...] |
/external/webkit/WebCore/platform/graphics/android/ |
SharedBufferStream.cpp | 35 static void CallDeref(void* buffer) { 36 ((SharedBuffer*)buffer)->deref(); 39 SharedBufferStream::SharedBufferStream(SharedBuffer* buffer) 40 : SkMemoryStream(buffer->data(), buffer->size(), false) { 41 fBuffer = buffer; 42 buffer->ref();
|
/external/webkit/WebCore/platform/graphics/gtk/ |
FontCustomPlatformData.cpp | 44 FontCustomPlatformData* createFontCustomPlatformData(SharedBuffer* buffer) 46 ASSERT_ARG(buffer, buffer); 60 error = FT_New_Memory_Face(library, reinterpret_cast<const FT_Byte*>(buffer->data()), buffer->size(), 0, &face); 64 buffer->ref(); 68 cairo_font_face_set_user_data(fontFace, &bufferKey, buffer, releaseData);
|
/frameworks/base/cmds/stagefright/ |
SineSource.cpp | 64 MediaBuffer *buffer; local 65 status_t err = mGroup->acquire_buffer(&buffer); 72 size_t numFramesPerBuffer = buffer->size() / frameSize; 74 int16_t *ptr = (int16_t *)buffer->data(); 90 buffer->meta_data()->setInt64( 95 buffer->set_range(0, numFramesPerBuffer * frameSize); 97 *out = buffer;
|
/system/core/toolbox/ |
insmod.c | 18 void *buffer = NULL; local 31 buffer = malloc(size); 32 if (!buffer) 35 /* slurp it into our buffer */ 36 ret = read(fd, buffer, size); 45 return buffer; 93 /* free the file buffer */
|
/external/bluetooth/bluez/audio/ |
gstsbcdec.c | 58 static GstFlowReturn sbc_dec_chain(GstPad *pad, GstBuffer *buffer) 67 if (dec->buffer) { 68 GstBuffer *temp = buffer; 69 buffer = gst_buffer_span(dec->buffer, 0, buffer, 70 GST_BUFFER_SIZE(dec->buffer) + GST_BUFFER_SIZE(buffer)); 72 gst_buffer_unref(dec->buffer); 73 dec->buffer = NULL [all...] |
/external/bluetooth/glib/gio/ |
gbufferedinputstream.c | 45 * By default, #GBufferedInputStream's buffer size is set at 4 kilobytes. 48 * or g_buffered_input_stream_new_sized() to specify the buffer's size at 51 * To get the size of a buffer within a buffered input stream, use 53 * buffered input stream's buffer, use 54 * g_buffered_input_stream_set_buffer_size(). Note that the buffer's size 55 * cannot be reduced below the size of the data within the buffer. 64 guint8 *buffer; member in struct:_GBufferedInputStreamPrivate 102 void *buffer, 107 void *buffer, 166 g_param_spec_uint ("buffer-size" 209 guint8 *buffer; local 1025 void *buffer; member in struct:__anon1158 [all...] |
gbufferedoutputstream.c | 41 * By default, #GBufferedOutputStream's buffer size is set at 4 kilobytes. 44 * or g_buffered_output_stream_new_sized() to specify the buffer's size 47 * To get the size of a buffer within a buffered input stream, use 49 * buffered output stream's buffer, use 50 * g_buffered_output_stream_set_buffer_size(). Note that the buffer's 51 * size cannot be reduced below the size of the data within the buffer. 57 guint8 *buffer; member in struct:_GBufferedOutputStreamPrivate 82 const void *buffer, 94 const void *buffer, 151 g_param_spec_uint ("buffer-size" 199 guint8 *buffer; local 596 const void *buffer; member in struct:__anon1162 [all...] |
/external/icu4c/samples/ustring/ |
ustring.cpp | 151 UChar buffer[32]; local 156 buffer[0]=0; /* empty, NUL-terminated string */ 157 u_strncat(buffer, text, 1); /* append just n=1 character ('A') */ 158 u_strcat(buffer, appendText); /* buffer=="Aabc" */ 159 length=u_strlen(buffer); /* length=4 */ 160 printUString("should be \"Aabc\": ", buffer, -1); 162 /* bitwise comparing buffer with text */ 163 compare=u_strcmp(buffer, text); 168 /* Build "A<sharp s>C" in the buffer... * 196 UChar buffer[32]; local 567 UChar buffer[200]; local [all...] |
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/x509/ |
ReasonCode.java | 91 public void dumpValue(StringBuffer buffer, String prefix) { 92 buffer.append(prefix).append("Reason Code: [ "); //$NON-NLS-1$ 95 buffer.append("unspecified"); //$NON-NLS-1$ 98 buffer.append("keyCompromise"); //$NON-NLS-1$ 101 buffer.append("cACompromise"); //$NON-NLS-1$ 104 buffer.append("affiliationChanged"); //$NON-NLS-1$ 107 buffer.append("superseded"); //$NON-NLS-1$ 110 buffer.append("cessationOfOperation"); //$NON-NLS-1$ 113 buffer.append("certificateHold"); //$NON-NLS-1$ 116 buffer.append("removeFromCRL"); //$NON-NLS-1 [all...] |
/external/embunit/src/ |
AssertImpl.c | 41 char buffer[32]; /*"exp -2147483647 was -2147483647"*/ local 44 stdimpl_strcpy(buffer, "exp "); 47 stdimpl_strncat(buffer, numbuf, 11); } 49 stdimpl_strcat(buffer, " was "); 52 stdimpl_strncat(buffer, numbuf, 11); } 54 addFailure(buffer, line, file); 59 char buffer[ASSERT_STRING_BUFFER_MAX]; local 93 stdimpl_strcpy(buffer, "exp \""); 94 stdimpl_strncat(buffer, expected, el); 95 stdimpl_strcat(buffer, "\" was \"") [all...] |