Searched refs:buffer (Results 1 - 25 of 922) 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/base/tools/aapt2/util/
H A DBigBuffer_test.cpp24 BigBuffer buffer(4);
26 EXPECT_NE(nullptr, buffer.nextBlock<char>(2));
27 EXPECT_EQ(2u, buffer.size());
31 BigBuffer buffer(16);
33 char* b1 = buffer.nextBlock<char>(8);
36 char* b2 = buffer.nextBlock<char>(4);
43 BigBuffer buffer(16);
45 EXPECT_NE(nullptr, buffer.nextBlock<char>(32));
46 EXPECT_EQ(32u, buffer.size());
50 BigBuffer buffer(1
[all...]
/frameworks/compile/mclinker/unittests/
H A DLEB128Test.cpp42 leb128::ByteType buffer[2]; local
46 result = buffer;
48 ASSERT_EQ(buffer[0], 2);
49 ASSERT_EQ(result, buffer + 1);
52 result = buffer;
54 ASSERT_EQ(buffer[0], 127);
55 ASSERT_EQ(result, buffer + 1);
58 result = buffer;
60 ASSERT_EQ(buffer[0], 0 + 0x80);
61 ASSERT_EQ(buffer[
88 leb128::ByteType buffer[2]; local
134 leb128::ByteType buffer[2]; local
194 leb128::ByteType buffer[2]; local
229 leb128::ByteType buffer[2]; local
295 leb128::ByteType buffer[5]; local
412 leb128::ByteType buffer[5]; local
454 leb128::ByteType buffer[9]; local
494 leb128::ByteType buffer[5]; local
510 char buffer[5]; local
[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.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/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/base/libs/hwui/renderstate/
H A DPixelBufferState.cpp25 bool PixelBufferState::bind(GLuint buffer) { argument
26 if (mCurrentPixelBuffer != buffer) {
27 glBindBuffer(GL_PIXEL_UNPACK_BUFFER, buffer);
28 mCurrentPixelBuffer = buffer;
/frameworks/av/media/libstagefright/foundation/
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);
65 MediaBuffer *buffer = NULL; local
[all...]
/frameworks/av/media/libnbaio/
H A DSourceAudioBufferProvider.cpp48 status_t SourceAudioBufferProvider::getNextBuffer(Buffer *buffer) 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) {
67 mAllocated = calloc(buffer->frameCount, mFrameSize);
72 mSize = buffer
94 releaseBuffer(Buffer *buffer) argument
[all...]
/frameworks/base/libs/hwui/
H A DRenderBufferCache.cpp79 void RenderBufferCache::deleteBuffer(RenderBuffer* buffer) { argument
80 if (buffer) {
81 RENDER_BUFFER_LOGD("Deleted %s render buffer (%dx%d)",
82 RenderBuffer::formatName(buffer->getFormat()),
83 buffer->getWidth(), buffer->getHeight());
85 mSize -= buffer->getSize();
86 delete buffer;
98 RenderBuffer* buffer = nullptr; local
107 buffer
125 put(RenderBuffer* buffer) argument
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioRoute.cpp30 char buffer[SIZE]; local
33 snprintf(buffer, SIZE, "%*s- Type: %s\n", spaces, "", mType == AUDIO_ROUTE_MUX ? "Mux" : "Mix");
34 result.append(buffer);
36 snprintf(buffer, SIZE, "%*s- Sink: %s\n", spaces, "", mSink->getTagName().string());
37 result.append(buffer);
40 snprintf(buffer, SIZE, "%*s- Sources: \n", spaces, "");
41 result.append(buffer);
43 snprintf(buffer, SIZE, "%*s%s \n", spaces + 4, "", mSources[i]->getTagName().string());
44 result.append(buffer);
H A DAudioSourceDescriptor.cpp35 char buffer[SIZE]; local
38 snprintf(buffer, SIZE, "mStream: %d\n", audio_attributes_to_stream_type(&mAttributes));
39 result.append(buffer);
40 snprintf(buffer, SIZE, "mDevice:\n");
41 result.append(buffer);
51 char buffer[SIZE]; local
53 snprintf(buffer, SIZE, "\nAudio sources dump:\n");
54 write(fd, buffer, strlen(buffer));
56 snprintf(buffer, SIZ
[all...]
H A DVolumeCurve.cpp66 char buffer[SIZE]; local
68 snprintf(buffer, SIZE, " {");
69 result.append(buffer);
71 snprintf(buffer, SIZE, "(%3d, %5d)",
73 result.append(buffer);
82 char buffer[SIZE]; local
86 snprintf(buffer, SIZE, "%s %02d %02d ",
88 result.append(buffer);
90 snprintf(buffer, SIZE, "%04x : %02d, ", mIndexCur.keyAt(i), mIndexCur.valueAt(i));
91 result.append(buffer);
113 char buffer[SIZE]; local
[all...]
H A DAudioCollections.cpp46 char buffer[SIZE]; local
48 snprintf(buffer, SIZE, "\n%*sAudio Routes (%zu):\n", spaces, "", size());
49 write(fd, buffer, strlen(buffer));
51 snprintf(buffer, SIZE, "%*s- Route %zu:\n", spaces, "", i + 1);
52 write(fd, buffer, strlen(buffer));
/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/native/libs/gui/
H A DBufferItem.cpp99 static void writeAligned(void*& buffer, size_t& size, T value) { argument
100 size -= FlattenableUtils::align<alignof(T)>(buffer);
101 FlattenableUtils::write(buffer, size, value);
105 void*& buffer, size_t& size, int*& fds, size_t& count) const {
113 uint32_t& flags = *static_cast<uint32_t*>(buffer);
116 FlattenableUtils::advance(buffer, size, sizeof(uint32_t));
120 status_t err = mGraphicBuffer->flatten(buffer, size, fds, count);
122 size -= FlattenableUtils::align<4>(buffer);
126 status_t err = mFence->flatten(buffer, size, fds, count);
128 size -= FlattenableUtils::align<4>(buffer);
104 flatten( void*& buffer, size_t& size, int*& fds, size_t& count) const argument
159 readAligned(const void*& buffer, size_t& size, T& value) argument
164 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryablePrimitive.java64 public T unmarshal(ByteBuffer buffer) { argument
65 return mClass.cast(unmarshalObject(buffer));
74 public void marshal(T value, ByteBuffer buffer) { argument
78 marshalPrimitive(val, buffer);
82 marshalPrimitive(val, buffer);
86 marshalPrimitive(val, buffer);
89 marshalPrimitive((Rational) value, buffer);
93 marshalPrimitive(val, buffer);
97 marshalPrimitive(val, buffer);
104 private void marshalPrimitive(int value, ByteBuffer buffer) { argument
108 marshalPrimitive(float value, ByteBuffer buffer) argument
112 marshalPrimitive(double value, ByteBuffer buffer) argument
116 marshalPrimitive(long value, ByteBuffer buffer) argument
120 marshalPrimitive(Rational value, ByteBuffer buffer) argument
125 marshalPrimitive(byte value, ByteBuffer buffer) argument
129 unmarshalObject(ByteBuffer buffer) argument
[all...]
/frameworks/av/media/libstagefright/
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/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...]

Completed in 488 milliseconds

1234567891011>>