Searched refs:buffer (Results 1 - 25 of 636) sorted by relevance

1234567891011>>

/frameworks/base/media/libdrm/mobile1/src/xml/
H A Dxml_tinyparser.c27 static uint8_t *xml_ignore_blank(uint8_t *buffer) argument
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) argument
43 if (NULL == buffer)
47 if (*buffer == '<') {
48 buffer++;
49 while (buffer !
72 xml_match_tag(uint8_t *buffer) argument
108 XML_DOM_getAttr(uint8_t *buffer, uint8_t **pName, int32_t *nameLen, uint8_t **pValue, int32_t *valueLen) argument
176 XML_DOM_getValue(uint8_t *buffer, uint8_t **pValue, int32_t *valueLen) argument
264 XML_DOM_getTag(uint8_t *buffer, int32_t *tagLen, int32_t *tagType) argument
336 XML_DOM_getNode(uint8_t *buffer, const uint8_t *const node) argument
404 XML_DOM_getNodeValue(uint8_t *buffer, uint8_t *node, uint8_t **value, int32_t *valueLen) argument
449 XML_DOM_getNextNode(uint8_t *buffer, uint8_t **pNodeName, int32_t *nodenameLen) argument
476 WBXML_DOM_getNode(uint8_t *buffer, int32_t bufferLen, uint8_t *node) argument
529 WBXML_DOM_getNodeValue(uint8_t *buffer, int32_t bufferLen, uint8_t *node, uint8_t **value, int32_t *valueLen) argument
584 WBXML_GetUintVar(const uint8_t *const buffer, int32_t *len) argument
604 WBXML_DOM_Init(WBXML * pWbxml, uint8_t *buffer, int32_t bufferLen) argument
704 xml_free(void *buffer) argument
717 uint8_t *buffer = *buf; local
763 uint8_t *buffer = *buf; local
[all...]
/frameworks/compile/libbcc/tests/data/src/
H A Db2071670.c7 int* buffer = (int*) floatPointer; local
8 return *buffer;
/frameworks/compile/mclinker/unittests/
H A DLEB128Test.cpp46 leb128::ByteType buffer[2]; local
50 result = buffer;
52 ASSERT_EQ(buffer[0], 2);
53 ASSERT_EQ(result, buffer + 1);
56 result = buffer;
58 ASSERT_EQ(buffer[0], 127);
59 ASSERT_EQ(result, buffer + 1);
62 result = buffer;
64 ASSERT_EQ(buffer[0], 0 + 0x80);
65 ASSERT_EQ(buffer[
92 leb128::ByteType buffer[2]; local
138 leb128::ByteType buffer[2]; local
198 leb128::ByteType buffer[2]; local
234 leb128::ByteType buffer[2]; local
300 leb128::ByteType buffer[5]; local
417 leb128::ByteType buffer[5]; local
459 leb128::ByteType buffer[9]; local
498 leb128::ByteType buffer[5]; local
514 char buffer[5]; local
[all...]
/frameworks/av/media/libstagefright/
H A DMediaBufferGroup.cpp33 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) { argument
47 buffer->setObserver(this);
50 mLastBuffer->setNextBuffer(buffer);
[all...]
H A DXINGSeeker.cpp85 uint8_t buffer[4]; local
87 if (source->readAt(offset, &buffer, 4) < 4) { // get header
92 int header = U32_AT(buffer);;
103 uint8_t version = (buffer[1] >> 3) & 3;
116 if (source->readAt(offset, &buffer, 4) < 4) { // XING header ID
121 if ((buffer[0] != 'X') || (buffer[1] != 'i')
122 || (buffer[2] != 'n') || (buffer[3] != 'g')) {
123 if ((buffer[
[all...]
/frameworks/wilhelm/src/
H A Dinterfaces.c131 void MPH_to_MPH_string(unsigned MPH, char buffer[40]) argument
136 strcpy(buffer, "MPH");
137 strcpy(&buffer[3], infix);
138 strcat(buffer, "_");
139 strcat(buffer, interface_names[MPH]);
/frameworks/wilhelm/tools/hashgen/
H A Dinterfaces.c131 void MPH_to_MPH_string(unsigned MPH, char buffer[40]) argument
136 strcpy(buffer, "MPH");
137 strcpy(&buffer[3], infix);
138 strcat(buffer, "_");
139 strcat(buffer, interface_names[MPH]);
H A Dfrag3.c4 extern void MPH_to_MPH_string(unsigned MPH, char buffer[40]);
18 char buffer[40]; local
19 buffer[39] = 'x';
20 MPH_to_MPH_string(MPH, buffer);
21 assert('x' == buffer[39]);
22 printf(" %s", buffer);
/frameworks/compile/libbcc/bcinfo/Wrap/
H A Dwrapper_output.cpp19 bool WrapperOutput::Write(const uint8_t* buffer, size_t buffer_size) { argument
22 if (!Write(buffer[i])) return false;
H A Din_memory_wrapper_input.cpp22 InMemoryWrapperInput::InMemoryWrapperInput(const char* buffer, size_t size) : argument
23 _buffer(buffer), _pos(0), _size(size) {
29 size_t InMemoryWrapperInput::Read(uint8_t* buffer, size_t wanted) { argument
32 if (!buffer) {
40 buffer[found++] = _buffer[_pos++];
H A Dfile_wrapper_output.cpp38 bool FileWrapperOutput::Write(const uint8_t* buffer, size_t buffer_size) { argument
39 if (!buffer) {
44 return buffer_size == fwrite(buffer, 1, buffer_size, _file);
/frameworks/base/core/java/android/hardware/
H A DSerialPort.java85 * Reads data into the provided buffer
87 * @param buffer to read into
90 public int read(ByteBuffer buffer) throws IOException { argument
91 if (buffer.isDirect()) {
92 return native_read_direct(buffer, buffer.remaining());
93 } else if (buffer.hasArray()) {
94 return native_read_array(buffer.array(), buffer.remaining());
96 throw new IllegalArgumentException("buffer i
106 write(ByteBuffer buffer, int length) argument
125 native_read_array(byte[] buffer, int length) argument
126 native_read_direct(ByteBuffer buffer, int length) argument
127 native_write_array(byte[] buffer, int length) argument
128 native_write_direct(ByteBuffer buffer, int length) argument
[all...]
/frameworks/base/core/java/android/text/method/
H A DArrowKeyMovementMethod.java33 private static boolean isSelecting(Spannable buffer) { argument
34 return ((MetaKeyKeyListener.getMetaState(buffer, MetaKeyKeyListener.META_SHIFT_ON) == 1) ||
35 (MetaKeyKeyListener.getMetaState(buffer, MetaKeyKeyListener.META_SELECTING) != 0));
38 private static int getCurrentLineTop(Spannable buffer, Layout layout) { argument
39 return layout.getLineTop(layout.getLineForOffset(Selection.getSelectionEnd(buffer)));
51 protected boolean handleMovementKey(TextView widget, Spannable buffer, int keyCode, argument
58 && MetaKeyKeyListener.getMetaState(buffer,
65 return super.handleMovementKey(widget, buffer, keyCode, movementMetaState, event);
69 protected boolean left(TextView widget, Spannable buffer) { argument
71 if (isSelecting(buffer)) {
79 right(TextView widget, Spannable buffer) argument
89 up(TextView widget, Spannable buffer) argument
99 down(TextView widget, Spannable buffer) argument
109 pageUp(TextView widget, Spannable buffer) argument
133 pageDown(TextView widget, Spannable buffer) argument
157 top(TextView widget, Spannable buffer) argument
167 bottom(TextView widget, Spannable buffer) argument
177 lineStart(TextView widget, Spannable buffer) argument
187 lineEnd(TextView widget, Spannable buffer) argument
198 leftWord(TextView widget, Spannable buffer) argument
207 rightWord(TextView widget, Spannable buffer) argument
215 home(TextView widget, Spannable buffer) argument
220 end(TextView widget, Spannable buffer) argument
225 onTouchEvent(TextView widget, Spannable buffer, MotionEvent event) argument
[all...]
H A DScrollingMovementMethod.java25 * A movement method that interprets movement keys by scrolling the text buffer.
29 protected boolean left(TextView widget, Spannable buffer) { argument
30 return scrollLeft(widget, buffer, 1);
34 protected boolean right(TextView widget, Spannable buffer) { argument
35 return scrollRight(widget, buffer, 1);
39 protected boolean up(TextView widget, Spannable buffer) { argument
40 return scrollUp(widget, buffer, 1);
44 protected boolean down(TextView widget, Spannable buffer) { argument
45 return scrollDown(widget, buffer, 1);
49 protected boolean pageUp(TextView widget, Spannable buffer) { argument
54 pageDown(TextView widget, Spannable buffer) argument
59 top(TextView widget, Spannable buffer) argument
64 bottom(TextView widget, Spannable buffer) argument
69 lineStart(TextView widget, Spannable buffer) argument
74 lineEnd(TextView widget, Spannable buffer) argument
79 home(TextView widget, Spannable buffer) argument
84 end(TextView widget, Spannable buffer) argument
89 onTouchEvent(TextView widget, Spannable buffer, MotionEvent event) argument
[all...]
/frameworks/base/tests/CoreTests/android/core/
H A DHttpHeaderTest.java54 CharArrayBuffer buffer = new CharArrayBuffer(64);
56 buffer.append(CACHE_CONTROL_MAX_AGE);
57 h.parseHeader(buffer);
59 buffer.clear();
60 buffer.append(LAST_MODIFIED);
61 h.parseHeader(buffer);
64 buffer.clear();
65 buffer.append(CACHE_CONTROL_PRIVATE);
66 h.parseHeader(buffer);
86 CharArrayBuffer buffer
[all...]
/frameworks/av/media/libnbaio/
H A DSourceAudioBufferProvider.cpp48 status_t SourceAudioBufferProvider::getNextBuffer(Buffer *buffer, int64_t pts) argument
50 ALOG_ASSERT(buffer != NULL && buffer->frameCount > 0 && mGetCount == 0);
54 if (mRemaining < buffer->frameCount) {
55 buffer->frameCount = mRemaining;
57 buffer->raw = (char *) mAllocated + (mOffset << mFrameBitShift);
58 mGetCount = buffer->frameCount;
62 if (buffer->frameCount > mSize) {
64 mAllocated = malloc(buffer->frameCount << mFrameBitShift);
65 mSize = buffer
84 releaseBuffer(Buffer *buffer) argument
[all...]
/frameworks/base/core/java/android/net/
H A DSntpClient.java79 byte[] buffer = new byte[NTP_PACKET_SIZE];
80 DatagramPacket request = new DatagramPacket(buffer, buffer.length, address, NTP_PORT);
85 buffer[0] = NTP_MODE_CLIENT | (NTP_VERSION << 3);
90 writeTimeStamp(buffer, TRANSMIT_TIME_OFFSET, requestTime);
95 DatagramPacket response = new DatagramPacket(buffer, buffer.length);
101 long originateTime = readTimeStamp(buffer, ORIGINATE_TIME_OFFSET);
102 long receiveTime = readTimeStamp(buffer, RECEIVE_TIME_OFFSET);
103 long transmitTime = readTimeStamp(buffer, TRANSMIT_TIME_OFFSE
165 read32(byte[] buffer, int offset) argument
184 readTimeStamp(byte[] buffer, int offset) argument
194 writeTimeStamp(byte[] buffer, int offset, long time) argument
[all...]
/frameworks/base/tools/aidl/
H A Daidl_language_y.y46 IMPORT { g_callbacks->import(&($1.buffer)); }
47 | IMPORT imports { g_callbacks->import(&($1.buffer)); }
71 $2.buffer.lineno, $2.buffer.data);
86 b->keyword_token = $1.buffer;
87 b->name = $2.buffer;
89 b->semicolon_token = $3.buffer;
95 g_currentFilename, $1.buffer.lineno);
100 g_currentFilename, $2.buffer.lineno, $2.buffer
[all...]
/frameworks/native/libs/gui/
H A DSensor.cpp111 size_t write(void* buffer, size_t offset, const String8& value) { argument
112 memcpy(static_cast<char*>(buffer) + offset, value.string(), value.length());
117 size_t write(void* buffer, size_t offset, float value) { argument
118 *reinterpret_cast<float*>(static_cast<char*>(buffer) + offset) = value;
123 size_t write(void* buffer, size_t offset, int32_t value) { argument
124 *reinterpret_cast<int32_t*>(static_cast<char*>(buffer) + offset) = value;
128 status_t Sensor::flatten(void* buffer) const
131 offset += write(buffer, offset, int32_t(mName.length()));
132 offset += write(buffer, offset, mName);
133 offset += write(buffer, offse
147 read(void const* buffer, size_t offset, String8* value, int32_t len) argument
153 read(void const* buffer, size_t offset, float* value) argument
159 read(void const* buffer, size_t offset, int32_t* value) argument
164 unflatten(void const* buffer, size_t size) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_UsbRequest.cpp81 jbyteArray buffer, jint length, jboolean out)
89 if (buffer && length) {
90 request->buffer = malloc(length);
91 if (!request->buffer)
93 memset(request->buffer, 0, length);
95 // copy data from Java buffer to native buffer
96 env->GetByteArrayRegion(buffer, 0, length, (jbyte *)request->buffer);
99 request->buffer
80 android_hardware_UsbRequest_queue_array(JNIEnv *env, jobject thiz, jbyteArray buffer, jint length, jboolean out) argument
118 android_hardware_UsbRequest_dequeue_array(JNIEnv *env, jobject thiz, jbyteArray buffer, jint length, jboolean out) argument
137 android_hardware_UsbRequest_queue_direct(JNIEnv *env, jobject thiz, jobject buffer, jint length, jboolean out) argument
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DMemInfoReader.java30 private boolean matchText(byte[] buffer, int index, String text) { argument
32 if ((index+N) >= buffer.length) {
36 if (buffer[index+i] != text.charAt(i)) {
43 private long extractMemValue(byte[] buffer, int index) { argument
44 while (index < buffer.length && buffer[index] != '\n') {
45 if (buffer[index] >= '0' && buffer[index] <= '9') {
48 while (index < buffer.length && buffer[inde
[all...]
/frameworks/native/include/utils/
H A DFlattenable.h29 * to a byte-buffer and an array of file descriptors.
41 // flattens the object into buffer.
46 virtual status_t flatten(void* buffer, size_t size,
49 // unflattens the object from buffer.
56 virtual status_t unflatten(void const* buffer, size_t size,
66 * to a byte-buffer.
82 // flattens the object into buffer.
83 inline status_t flatten(void* buffer) const;
85 // unflattens the object from buffer of given size.
86 inline status_t unflatten(void const* buffer, size_
102 unflatten(void const* buffer, size_t size) argument
124 unflatten(void const* buffer, size_t) argument
[all...]
/frameworks/base/cmds/bugreport/
H A Dbugreport.c25 char buffer[65536]; local
48 int length = read(s, buffer, sizeof(buffer));
51 fwrite(buffer, 1, length, stdout);
/frameworks/base/core/tests/coretests/src/android/content/
H A DAssetTest.java37 byte[] buffer = new byte[10];
41 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) {
45 + " but found " + ((char) buffer[i]),
46 buffer[i], expectedString.charAt(curIndex));
51 readCount = is.read(buffer, 0, buffer.length);
52 assertEquals("Reading end of buffer: expected readCount=-1 but got " + readCount,
55 readCount = is.read(buffer, buffer
[all...]
/frameworks/base/media/java/android/media/
H A DDataSource.java31 * @param buffer the buffer to read the data into
35 public int readAt(long offset, byte[] buffer, int size); argument

Completed in 658 milliseconds

1234567891011>>