/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/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...] |
/system/core/libacc/tests/data/ |
b2071670.c | 7 int* buffer = (int*) floatPointer; local 8 return *buffer;
|
/external/qemu/android/utils/ |
bufprint.h | 18 /** FORMATTED BUFFER PRINTING 21 ** content to a given bounded character buffer, in a way that is easier 24 ** 'buffer' is the start position in the buffer, 25 ** 'buffend' is the end of the buffer, the function assumes (buffer <= buffend) 29 ** the function returns the next position in the buffer if everything fits 35 ** char buffer[1024]; 36 ** char* p = buffer; 37 ** char* end = p + sizeof(buffer); [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/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...] |
/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...] |
/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...] |
/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...] |
/system/core/nexus/ |
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...] |
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...] |
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...] |
DhcpEvent.h | 28 static char *toString(int val, char *buffer, int max); 30 static int parseString(const char *buffer);
|
/external/e2fsprogs/ext2ed/ |
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...] |
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/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...] |
/external/webkit/WebKit/chromium/src/ |
ProfilerAgentImpl.cpp | 45 static char buffer[65536]; local 46 const int readSize = v8::V8::GetLogLines(position, buffer, sizeof(buffer) - 1); 47 buffer[readSize] = '\0'; 49 m_delegate->didGetLogLines(position, buffer);
|
/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...] |
/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/webkit/JavaScriptCore/wtf/ |
ByteArray.cpp | 33 unsigned char* buffer = new unsigned char[size + sizeof(ByteArray) - sizeof(size_t)]; local 34 ASSERT((reinterpret_cast<size_t>(buffer) & 3) == 0); 35 return adoptRef(new (buffer) ByteArray(size));
|
/external/elfutils/libasm/ |
asm_error.c | 45 /* If we have not yet initialized the buffer do it now. */ 50 /* We have a key. Use it to get the thread-specific buffer. */ 51 int *buffer = getspecific (key); local 52 if (buffer == NULL) 54 /* No buffer allocated so far. */ 55 buffer = (int *) malloc (sizeof (int)); 56 if (buffer == NULL) 57 /* No more memory available. We use the static buffer. */ 58 buffer = &global_error; 60 setspecific (key, buffer); 86 int *buffer = getspecific (key); local 130 int *buffer = (int *) getspecific (key); local [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...] |
/libcore/luni/src/main/java/org/apache/harmony/luni/net/ |
SocketOutputStream.java | 47 public void write(byte[] buffer) throws IOException { 48 socket.write(buffer, 0, buffer.length); 52 public void write(byte[] buffer, int offset, int count) throws IOException { 53 if (buffer == null) { 54 throw new NullPointerException("buffer == null"); 56 if (0 <= offset && offset <= buffer.length && 0 <= count && count <= buffer.length - offset) { 57 socket.write(buffer, offset, count); 65 byte[] buffer = new byte[1] [all...] |
/external/chromium/base/ |
profiler.cc | 41 char buffer[512]; local 42 base::snprintf(buffer, sizeof(buffer)-1, "%s", name); 43 QuantifySetThreadName(buffer);
|