Searched refs:buffer (Results 1 - 25 of 1231) 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.cpp136 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/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.java26 * A movement method that interprets movement keys by scrolling the text buffer.
30 protected boolean left(TextView widget, Spannable buffer) { argument
31 return scrollLeft(widget, buffer, 1);
35 protected boolean right(TextView widget, Spannable buffer) { argument
36 return scrollRight(widget, buffer, 1);
40 protected boolean up(TextView widget, Spannable buffer) { argument
41 return scrollUp(widget, buffer, 1);
45 protected boolean down(TextView widget, Spannable buffer) { argument
46 return scrollDown(widget, buffer, 1);
50 protected boolean pageUp(TextView widget, Spannable buffer) { argument
55 pageDown(TextView widget, Spannable buffer) argument
60 top(TextView widget, Spannable buffer) argument
65 bottom(TextView widget, Spannable buffer) argument
70 lineStart(TextView widget, Spannable buffer) argument
75 lineEnd(TextView widget, Spannable buffer) argument
80 home(TextView widget, Spannable buffer) argument
85 end(TextView widget, Spannable buffer) argument
90 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
H A DHSWanMetricsElementTest.java49 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE)
54 buffer.put((byte) wanInfo);
55 buffer.putInt((int) (TEST_DOWNLINK_SPEED & 0xFFFFFFFFL));
56 buffer.putInt((int) (TEST_UPLINK_SPEED & 0xFFFFFFFFL));
57 buffer.put((byte) (TEST_DOWNLINK_LOAD & 0xFF));
58 buffer.put((byte) (TEST_UPLINK_LOAD & 0xFF));
59 buffer.putShort((short) (TEST_LMD & 0xFFFF));
60 buffer.position(0);
61 return buffer;
65 * Verify that ProtocolException will be thrown when parsing an empty buffer
[all...]
H A DProtocolPortTupleTest.java39 * Helper function for generating a buffer with test data.
47 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE)
49 buffer.put((byte) protocol);
50 buffer.putShort((short) port);
51 buffer.put((byte) status);
52 buffer.position(0);
53 return buffer;
57 * Verify that BufferUnderflowException will be thrown when parsing an empty buffer.
67 * Verify that BufferUnderflowException will be thrown when parsing a buffer without
74 ByteBuffer buffer
[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.cpp67 char buffer[SIZE]; local
69 snprintf(buffer, SIZE, " {");
70 result.append(buffer);
72 snprintf(buffer, SIZE, "(%3d, %5d)",
74 result.append(buffer);
83 char buffer[SIZE]; local
87 snprintf(buffer, SIZE, "%s %02d %02d ",
89 result.append(buffer);
91 snprintf(buffer, SIZE, "%04x : %02d, ", mIndexCur.keyAt(i), mIndexCur.valueAt(i));
92 result.append(buffer);
114 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/wilhelm/tools/hashgen/
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/av/media/libstagefright/foundation/
H A DMediaBufferGroup.cpp64 MediaBuffer *buffer = new MediaBuffer(mem); local
65 buffer->getSharedControl()->clear();
66 add_buffer(buffer);
73 MediaBuffer *buffer = new MediaBuffer(buffer_size); local
74 if (buffer->data() == nullptr) {
75 delete buffer; // don't call release, it's not properly formed
79 add_buffer(buffer);
84 for (MediaBuffer *buffer : mBuffers) {
85 if (buffer->refcount() != 0) {
86 const int localRefcount = buffer
108 add_buffer(MediaBuffer *buffer) argument
146 MediaBuffer *buffer = nullptr; local
[all...]
/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/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/native/libs/nativewindow/include/private/android/
H A DAHardwareBufferHelpers.h51 const GraphicBuffer* AHardwareBuffer_to_GraphicBuffer(const AHardwareBuffer* buffer);
52 GraphicBuffer* AHardwareBuffer_to_GraphicBuffer(AHardwareBuffer* buffer);
54 const ANativeWindowBuffer* AHardwareBuffer_to_ANativeWindowBuffer(const AHardwareBuffer* buffer);
55 ANativeWindowBuffer* AHardwareBuffer_to_ANativeWindowBuffer(AHardwareBuffer* buffer);
57 AHardwareBuffer* AHardwareBuffer_from_GraphicBuffer(GraphicBuffer* buffer);
/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...]

Completed in 454 milliseconds

1234567891011>>