/system/core/libcutils/ |
buffer.c | 17 #define LOG_TAG "buffer" 24 #include "buffer.h" 27 Buffer* bufferCreate(size_t capacity) { 28 Buffer* buffer = malloc(sizeof(Buffer)); local 29 if (buffer == NULL) { 32 buffer->capacity = capacity; 33 buffer->expected = 0; 34 buffer->data = malloc(capacity) 48 Buffer* buffer = malloc(sizeof(Buffer)); local [all...] |
buffer.h | 18 * Byte buffer utilities. 31 * Byte buffer of known size. Keeps track of how much data has been read 32 * into or written out of the buffer. 46 /** Actual # of bytes in the buffer. */ 49 /** Amount of memory allocated for this buffer. */ 51 } Buffer; 54 * Returns true if all data has been read into the buffer. 56 #define bufferReadComplete(buffer) (buffer->expected == buffer->size [all...] |
/external/oprofile/libop/ |
op_xml_events.c | 23 char buffer[MAX_BUFFER]; local 25 buffer[0] = '\0'; 27 open_xml_element(HELP_EVENTS, 0, buffer); 28 open_xml_element(HELP_HEADER, 1, buffer); 29 init_xml_str_attr(HELP_TITLE, title, buffer); 30 init_xml_str_attr(SCHEMA_VERSION, schema_version, buffer); 31 init_xml_str_attr(HELP_DOC, doc, buffer); 32 close_xml_element(NONE, 0, buffer); 33 printf("%s", buffer); 38 char buffer[MAX_BUFFER] local 63 char buffer[MAX_BUFFER]; local [all...] |
/dalvik/tests/070-nio-buffer/ |
expected.txt | 1 Got expected buffer overflow exception 3 Got expected buffer overflow exception
|
/frameworks/base/media/libdrm/mobile1/src/xml/ |
xml_tinyparser.c | 27 static uint8_t *xml_ignore_blank(uint8_t *buffer) 29 if (NULL == buffer) 32 while (XML_IS_WHITESPACE(*buffer)) 33 buffer++; 35 return buffer; 38 static uint8_t *xml_goto_tagend(uint8_t *buffer) 43 if (NULL == buffer) 47 if (*buffer == '<') { 48 buffer++; 49 while (buffer != NULL && XML_IS_NAMECHAR(*buffer) 717 uint8_t *buffer = *buf; local 763 uint8_t *buffer = *buf; local [all...] |
/external/oprofile/libutil/ |
op_growable_buffer.h | 3 * a growable buffer interface 23 * init_buffer - initialize an empty buffer 24 * @param buffer the buffer to initialize 29 void init_buffer(struct growable_buffer * buffer); 32 * free_buffer - free the memory allocated for this buffer 33 * @param buffer the buffer to free 35 void free_buffer(struct growable_buffer * buffer); 38 * add_data - add data to this buffer [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...] |
ext2_com.c | 35 char buffer [80]; local 38 sprintf (buffer,"setoffset %ld",file_system_info.super_block_offset);dispatch (buffer); 39 sprintf (buffer,"settype ext2_super_block");dispatch (buffer); 53 char temp [80],buffer [80],*ptr; local 55 ptr=parse_word (command_line,buffer); 59 ptr=parse_word (ptr,buffer); 61 if (buffer [0] != '/') { 68 if (buffer [1] != 0) 85 char *ptr,buffer [80]; local [all...] |
/frameworks/base/media/libstagefright/ |
MediaBufferGroup.cpp | 33 for (MediaBuffer *buffer = mFirstBuffer; buffer != NULL; 34 buffer = next) { 35 next = buffer->nextBuffer(); 37 CHECK_EQ(buffer->refcount(), 0); 39 buffer->setObserver(NULL); 40 buffer->release(); 44 void MediaBufferGroup::add_buffer(MediaBuffer *buffer) { 47 buffer->setObserver(this); 50 mLastBuffer->setNextBuffer(buffer); [all...] |
/frameworks/base/opengl/tools/glgen/stubs/jsr239/ |
GL11ImplHeader.java-impl | 9 import java.nio.Buffer; 22 Buffer _colorPointer = null; 23 Buffer _normalPointer = null; 24 Buffer _texCoordPointer = null; 25 Buffer _vertexPointer = null;
|
/system/core/nexus/ |
DhcpState.cpp | 24 char *DhcpState::toString(int val, char *buffer, int max) { 26 strncpy(buffer, "INIT", max); 28 strncpy(buffer, "DISCOVERING", max); 30 strncpy(buffer, "REQUESTING", max); 32 strncpy(buffer, "BOUND", max); 34 strncpy(buffer, "RENEWING", max); 36 strncpy(buffer, "REBINDING", max); 38 strncpy(buffer, "REBOOT", max); 40 strncpy(buffer, "RENEW_REQUESTED", max); 42 strncpy(buffer, "INIT_IPV4LL", max) [all...] |
DhcpEvent.cpp | 24 char *DhcpEvent::toString(int val, char *buffer, int max) { 26 strncpy(buffer, "UNKNOWN", max); 28 strncpy(buffer, "STOP", max); 30 strncpy(buffer, "RENEW", max); 32 strncpy(buffer, "RELEASE", max); 34 strncpy(buffer, "TIMEOUT", max); 36 strncpy(buffer, "(internal error)", max); 38 return buffer; 41 int DhcpEvent::parseString(const char *buffer) { 42 if (!strcasecmp(buffer, "UNKNOWN") [all...] |
SupplicantState.cpp | 24 char *SupplicantState::toString(int val, char *buffer, int max) { 26 strncpy(buffer, "UNKNOWN", max); 28 strncpy(buffer, "DISCONNECTED", max); 30 strncpy(buffer, "INACTIVE", max); 32 strncpy(buffer, "SCANNING", max); 34 strncpy(buffer, "ASSOCIATING", max); 36 strncpy(buffer, "ASSOCIATED", max); 38 strncpy(buffer, "FOURWAY_HANDSHAKE", max); 40 strncpy(buffer, "GROUP_HANDSHAKE", max); 42 strncpy(buffer, "COMPLETED", max) [all...] |
/external/dropbear/ |
buffer.h | 40 typedef struct buf buffer; typedef in typeref:struct:buf 42 buffer * buf_new(unsigned int size); 43 void buf_resize(buffer *buf, unsigned int newsize); 44 void buf_free(buffer* buf); 45 void buf_burn(buffer* buf); 46 buffer* buf_newcopy(buffer* buf); 47 void buf_setlen(buffer* buf, unsigned int len); 48 void buf_incrlen(buffer* buf, unsigned int incr); 49 void buf_setpos(buffer* buf, unsigned int pos) [all...] |
/external/webkit/WebCore/platform/text/ |
TextStream.cpp | 43 char buffer[printBufferSize]; local 44 snprintf(buffer, sizeof(buffer) - 1, "%d", i); 45 return *this << buffer; 50 char buffer[printBufferSize]; local 51 snprintf(buffer, sizeof(buffer) - 1, "%u", i); 52 return *this << buffer; 57 char buffer[printBufferSize]; local 58 snprintf(buffer, sizeof(buffer) - 1, "%ld", i) 64 char buffer[printBufferSize]; local 71 char buffer[printBufferSize]; local 78 char buffer[printBufferSize]; local 95 char buffer[printBufferSize]; local 114 char buffer[printBufferSize]; local 120 char buffer[printBufferSize]; local [all...] |
/external/srec/shared/include/ |
CircularBuffer.h | 37 * Generic Circular Buffer implementation. 43 * A circular buffer. 50 * Total buffer capacity. 55 * Amount of data in buffer. 73 * Creates a circular buffer of the specified capacity. 75 * @param capacity the capacity in number of bytes of the data buffer. 77 * @param buffer The circular buffer to initialize. 79 ESR_SHARED_API ESR_ReturnCode CircularBufferCreate(size_t capacity, const LCHAR* mtag, CircularBuffer** buffer); 82 * Returns the capacity of the buffer [all...] |
/external/skia/src/core/ |
SkBuffer.cpp | 22 void SkRBuffer::readNoSizeCheck(void* buffer, size_t size) 25 if (buffer) 26 memcpy(buffer, fPos, size); 52 void SkWBuffer::writeNoSizeCheck(const void* buffer, size_t size) 55 if (fData && buffer) 56 memcpy(fPos, buffer, size); 79 static void AssertBuffer32(const void* buffer) 81 SkASSERT(buffer); 82 SkASSERT(((size_t)buffer & 3) == 0); 85 #define AssertBuffer32(buffer) [all...] |
/external/easymock/src/org/easymock/internal/ |
ArgumentToString.java | 27 public static void appendArgument(Object value, StringBuffer buffer) {
29 buffer.append("null");
31 buffer.append("\"");
32 buffer.append(value);
33 buffer.append("\"");
35 buffer.append("'");
36 buffer.append(value);
37 buffer.append("'");
39 buffer.append("[");
42 buffer.append(", "); 44 appendArgument(Array.get(value, i), buffer); local [all...] |
/external/srec/shared/src/ |
CircularBuffer.c | 34 ESR_ReturnCode CircularBufferCreate(size_t capacity, const LCHAR* mtag, CircularBuffer** buffer) 37 if (buffer == NULL || capacity <= 0) 45 *buffer = Interface; 50 int CircularBufferRead(CircularBuffer* buffer, void* data, size_t bufSize) 55 if (buffer == NULL || (data == NULL && bufSize > 0)) 58 if (buffer->size < bufSize) 59 bufSize = buffer->size; 64 bufferData = ((unsigned char *) buffer) + sizeof(CircularBuffer); 66 if (buffer->readIdx >= buffer->writeIdx [all...] |
/system/core/libacc/tests/data/ |
b2071670.c | 7 int* buffer = (int*) floatPointer; local 8 return *buffer;
|
/external/icu4c/common/ |
ustrfmt.c | 17 * @param buffer UChar buffer to receive result 18 * @param capacity capacity of buffer 28 uprv_itou (UChar * buffer, int32_t capacity, 38 buffer[length++]=(UChar)(digit<=9?(0x0030+digit):(0x0030+digit+7)); 43 buffer[length++] = (UChar) 0x0030;/*zero padding */ 45 /* null terminate the buffer */ 47 buffer[length] = (UChar) 0x0000; 52 temp = buffer[(length-1) - j]; 53 buffer[(length-1) - j] = buffer[j] [all...] |
/external/stlport/test/eh/ |
test_algobase.cpp | 43 void operator()( TestClass* buffer ) const 45 EH_STD::uninitialized_copy((TestClass*)stuff, (TestClass*)end_of_stuff, buffer ); 46 EH_ASSERT( EH_STD::equal( (TestClass*)stuff, (TestClass*)end_of_stuff, buffer ) ); 47 stl_destroy( buffer, buffer+kBufferSize ); 61 void operator()( TestClass* buffer ) const 63 TestClass* buf_end = buffer + kBufferSize; 64 EH_STD::uninitialized_fill( buffer, buf_end, testValue ); 66 EH_ASSERT( buffer[i] == testValue ); 67 stl_destroy( buffer, buf_end ) [all...] |
/dalvik/libcore/nio/src/main/java/java/nio/ |
BufferFactory.java | 21 * Provide factory service of buffer classes. 23 * Since all buffer impl classes are package private (except DirectByteBuffer), 24 * this factory is the only entrance to access buffer functions from outside of 31 * Returns a new byte buffer based on the specified byte array. 35 * @return A new byte buffer based on the specified byte array. 42 * Returns a new array based byte buffer with the specified capacity. 45 * The capacity of the new buffer 46 * @return A new array based byte buffer with the specified capacity. 53 * Returns a new char buffer based on the specified char array. 57 * @return A new char buffer based on the specified char array [all...] |
/packages/apps/Email/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/skia/src/effects/ |
SkLayerRasterizer.cpp | 156 static void paint_read(SkPaint* paint, SkFlattenableReadBuffer& buffer) 158 paint->setAntiAlias(buffer.readBool()); 159 paint->setStyle((SkPaint::Style)buffer.readU8()); 160 paint->setAlpha(buffer.readU8()); 164 paint->setStrokeWidth(buffer.readScalar()); 165 paint->setStrokeMiter(buffer.readScalar()); 166 paint->setStrokeCap((SkPaint::Cap)buffer.readU8()); 167 paint->setStrokeJoin((SkPaint::Join)buffer.readU8()); 170 paint->setMaskFilter((SkMaskFilter*)buffer.readFlattenable())->safeUnref(); 171 paint->setPathEffect((SkPathEffect*)buffer.readFlattenable())->safeUnref() [all...] |