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

1234567891011>>

/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglBindVertexBuffer.java1 // C function void glBindVertexBuffer ( GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride )
5 int buffer,
3 glBindVertexBuffer( int bindingindex, int buffer, long offset, int stride ) argument
/frameworks/compile/mclinker/unittests/
H A DLEB128Test.cpp47 leb128::ByteType buffer[2]; local
51 result = buffer;
53 ASSERT_EQ(buffer[0], 2);
54 ASSERT_EQ(result, buffer + 1);
57 result = buffer;
59 ASSERT_EQ(buffer[0], 127);
60 ASSERT_EQ(result, buffer + 1);
63 result = buffer;
65 ASSERT_EQ(buffer[0], 0 + 0x80);
66 ASSERT_EQ(buffer[
93 leb128::ByteType buffer[2]; local
139 leb128::ByteType buffer[2]; local
199 leb128::ByteType buffer[2]; local
235 leb128::ByteType buffer[2]; local
301 leb128::ByteType buffer[5]; local
418 leb128::ByteType buffer[5]; local
460 leb128::ByteType buffer[9]; local
500 leb128::ByteType buffer[5]; local
516 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...]
H A DMediaAdapter.cpp68 void MediaAdapter::signalBufferReturned(MediaBuffer *buffer) { argument
70 CHECK(buffer != NULL);
71 buffer->setObserver(0);
72 buffer->release();
73 ALOGV("buffer returned %p", buffer);
78 MediaBuffer **buffer, const ReadOptions * /* options */) {
98 *buffer = mCurrentMediaBuffer;
100 (*buffer)->setObserver(this);
105 status_t MediaAdapter::pushBuffer(MediaBuffer *buffer) { argument
77 read( MediaBuffer **buffer, const ReadOptions * ) argument
[all...]
/frameworks/wilhelm/src/
H A Dinterfaces.c136 void MPH_to_MPH_string(unsigned MPH, char buffer[40]) argument
141 strcpy(buffer, "MPH");
142 strcpy(&buffer[3], infix);
143 strcat(buffer, "_");
144 strcat(buffer, interface_names[MPH]);
/frameworks/wilhelm/tools/hashgen/
H A Dinterfaces.c136 void MPH_to_MPH_string(unsigned MPH, char buffer[40]) argument
141 strcpy(buffer, "MPH");
142 strcpy(&buffer[3], infix);
143 strcat(buffer, "_");
144 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++];
/frameworks/base/core/java/android/text/method/
H A DArrowKeyMovementMethod.java34 private static boolean isSelecting(Spannable buffer) { argument
35 return ((MetaKeyKeyListener.getMetaState(buffer, MetaKeyKeyListener.META_SHIFT_ON) == 1) ||
36 (MetaKeyKeyListener.getMetaState(buffer, MetaKeyKeyListener.META_SELECTING) != 0));
39 private static int getCurrentLineTop(Spannable buffer, Layout layout) { argument
40 return layout.getLineTop(layout.getLineForOffset(Selection.getSelectionEnd(buffer)));
52 protected boolean handleMovementKey(TextView widget, Spannable buffer, int keyCode, argument
59 && MetaKeyKeyListener.getMetaState(buffer,
66 return super.handleMovementKey(widget, buffer, keyCode, movementMetaState, event);
70 protected boolean left(TextView widget, Spannable buffer) { argument
72 if (isSelecting(buffer)) {
80 right(TextView widget, Spannable buffer) argument
90 up(TextView widget, Spannable buffer) argument
100 down(TextView widget, Spannable buffer) argument
110 pageUp(TextView widget, Spannable buffer) argument
134 pageDown(TextView widget, Spannable buffer) argument
158 top(TextView widget, Spannable buffer) argument
168 bottom(TextView widget, Spannable buffer) argument
178 lineStart(TextView widget, Spannable buffer) argument
188 lineEnd(TextView widget, Spannable buffer) argument
199 leftWord(TextView widget, Spannable buffer) argument
208 rightWord(TextView widget, Spannable buffer) argument
216 home(TextView widget, Spannable buffer) argument
221 end(TextView widget, Spannable buffer) argument
225 isTouchSelecting(boolean isMouse, Spannable buffer) argument
230 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/core/java/android/hardware/
H A DSerialPort.java80 * Reads data into the provided buffer.
81 * Note that the value returned by {@link java.nio.Buffer#position()} on this buffer is
84 * @param buffer to read into
87 public int read(ByteBuffer buffer) throws IOException { argument
88 if (buffer.isDirect()) {
89 return native_read_direct(buffer, buffer.remaining());
90 } else if (buffer.hasArray()) {
91 return native_read_array(buffer.array(), buffer
105 write(ByteBuffer buffer, int length) argument
124 native_read_array(byte[] buffer, int length) argument
125 native_read_direct(ByteBuffer buffer, int length) argument
126 native_write_array(byte[] buffer, int length) argument
127 native_write_direct(ByteBuffer buffer, int length) argument
[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 * mFrameSize);
58 mGetCount = buffer->frameCount;
62 if (buffer->frameCount > mSize) {
64 mAllocated = malloc(buffer->frameCount * mFrameSize);
65 mSize = buffer
84 releaseBuffer(Buffer *buffer) argument
[all...]
/frameworks/base/tests/CoreTests/android/core/
H A DHttpHeaderTest.java50 CharArrayBuffer buffer = new CharArrayBuffer(64);
52 buffer.append(CACHE_CONTROL_MAX_AGE);
53 h.parseHeader(buffer);
55 buffer.clear();
56 buffer.append(LAST_MODIFIED);
57 h.parseHeader(buffer);
60 buffer.clear();
61 buffer.append(CACHE_CONTROL_PRIVATE);
62 h.parseHeader(buffer);
/frameworks/native/opengl/tools/glgen/stubs/egl/
H A DeglCreatePbufferFromClientBuffer.java1 // C function EGLSurface eglCreatePbufferFromClientBuffer ( EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list )
6 int buffer,
18 long buffer,
3 eglCreatePbufferFromClientBuffer( EGLDisplay dpy, int buftype, int buffer, EGLConfig config, int[] attrib_list, int offset ) argument
15 eglCreatePbufferFromClientBuffer( EGLDisplay dpy, int buftype, long buffer, EGLConfig config, int[] attrib_list, int offset ) argument
/frameworks/base/libs/hwui/
H A DRenderBufferCache.cpp46 INIT_LOGD(" Setting render buffer cache size to %sMB", property);
49 INIT_LOGD(" Using default render buffer cache size of %.2fMB",
91 void RenderBufferCache::deleteBuffer(RenderBuffer* buffer) { argument
92 if (buffer) {
93 RENDER_BUFFER_LOGD("Deleted %s render buffer (%dx%d)",
94 RenderBuffer::formatName(buffer->getFormat()),
95 buffer->getWidth(), buffer->getHeight());
97 mSize -= buffer->getSize();
98 delete buffer;
111 RenderBuffer* buffer = NULL; local
138 put(RenderBuffer* buffer) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryablePrimitive.java66 public T unmarshal(ByteBuffer buffer) { argument
67 return mClass.cast(unmarshalObject(buffer));
76 public void marshal(T value, ByteBuffer buffer) { argument
80 marshalPrimitive(val, buffer);
84 marshalPrimitive(val, buffer);
88 marshalPrimitive(val, buffer);
91 marshalPrimitive((Rational) value, buffer);
95 marshalPrimitive(val, buffer);
99 marshalPrimitive(val, buffer);
106 private void marshalPrimitive(int value, ByteBuffer buffer) { argument
110 marshalPrimitive(float value, ByteBuffer buffer) argument
114 marshalPrimitive(double value, ByteBuffer buffer) argument
118 marshalPrimitive(long value, ByteBuffer buffer) argument
122 marshalPrimitive(Rational value, ByteBuffer buffer) argument
127 marshalPrimitive(byte value, ByteBuffer buffer) argument
131 unmarshalObject(ByteBuffer buffer) argument
[all...]
H A DMarshalQueryableHighSpeedVideoConfiguration.java47 public void marshal(HighSpeedVideoConfiguration value, ByteBuffer buffer) { argument
48 buffer.putInt(value.getWidth());
49 buffer.putInt(value.getHeight());
50 buffer.putInt(value.getFpsMin());
51 buffer.putInt(value.getFpsMax());
55 public HighSpeedVideoConfiguration unmarshal(ByteBuffer buffer) { argument
56 int width = buffer.getInt();
57 int height = buffer.getInt();
58 int fpsMin = buffer.getInt();
59 int fpsMax = buffer
[all...]
H A DMarshalQueryableRect.java41 public void marshal(Rect value, ByteBuffer buffer) { argument
42 buffer.putInt(value.left);
43 buffer.putInt(value.top);
44 buffer.putInt(value.width());
45 buffer.putInt(value.height());
49 public Rect unmarshal(ByteBuffer buffer) { argument
50 int left = buffer.getInt();
51 int top = buffer.getInt();
52 int width = buffer.getInt();
53 int height = buffer
[all...]
H A DMarshalQueryableStreamConfiguration.java45 public void marshal(StreamConfiguration value, ByteBuffer buffer) { argument
46 buffer.putInt(value.getFormat());
47 buffer.putInt(value.getWidth());
48 buffer.putInt(value.getHeight());
49 buffer.putInt(value.isInput() ? 1 : 0);
53 public StreamConfiguration unmarshal(ByteBuffer buffer) { argument
54 int format = buffer.getInt();
55 int width = buffer.getInt();
56 int height = buffer.getInt();
57 boolean input = buffer
[all...]
H A DMarshalQueryableStreamConfigurationDuration.java54 public void marshal(StreamConfigurationDuration value, ByteBuffer buffer) { argument
55 buffer.putLong(value.getFormat() & MASK_UNSIGNED_INT); // unsigned int -> long
56 buffer.putLong(value.getWidth());
57 buffer.putLong(value.getHeight());
58 buffer.putLong(value.getDuration());
62 public StreamConfigurationDuration unmarshal(ByteBuffer buffer) { argument
63 int format = (int)buffer.getLong();
64 int width = (int)buffer.getLong();
65 int height = (int)buffer.getLong();
66 long durationNs = buffer
[all...]
/frameworks/webview/chromium/plat_support/
H A Dgraphic_buffer_impl.cpp38 GraphicBufferImpl* buffer = new GraphicBufferImpl( local
40 if (buffer->InitCheck() != NO_ERROR) {
41 delete buffer;
44 return reinterpret_cast<intptr_t>(buffer);
49 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); local
50 delete buffer;
55 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); local
56 return buffer->Map(mode, vaddr);
61 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); local
62 return buffer
67 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); local
73 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); local
[all...]
/frameworks/base/core/java/android/net/
H A DSntpClient.java78 byte[] buffer = new byte[NTP_PACKET_SIZE];
79 DatagramPacket request = new DatagramPacket(buffer, buffer.length, address, NTP_PORT);
84 buffer[0] = NTP_MODE_CLIENT | (NTP_VERSION << 3);
89 writeTimeStamp(buffer, TRANSMIT_TIME_OFFSET, requestTime);
94 DatagramPacket response = new DatagramPacket(buffer, buffer.length);
100 long originateTime = readTimeStamp(buffer, ORIGINATE_TIME_OFFSET);
101 long receiveTime = readTimeStamp(buffer, RECEIVE_TIME_OFFSET);
102 long transmitTime = readTimeStamp(buffer, TRANSMIT_TIME_OFFSE
164 read32(byte[] buffer, int offset) argument
183 readTimeStamp(byte[] buffer, int offset) argument
193 writeTimeStamp(byte[] buffer, int offset, long time) argument
[all...]
/frameworks/base/tools/aidl/
H A Daidl_language_y.y47 IMPORT { g_callbacks->import(&($1.buffer)); }
48 | IMPORT imports { g_callbacks->import(&($1.buffer)); }
72 $2.buffer.lineno, $2.buffer.data);
87 b->keyword_token = $1.buffer;
88 b->name = $2.buffer;
90 b->semicolon_token = $3.buffer;
96 g_currentFilename, $1.buffer.lineno);
101 g_currentFilename, $2.buffer.lineno, $2.buffer
[all...]

Completed in 435 milliseconds

1234567891011>>