Searched refs:buffer (Results 1 - 25 of 922) sorted by last modified time

1234567891011>>

/frameworks/wilhelm/src/android/include/
H A DAacAdtsExtractor.h52 MediaBuffer **buffer, const ReadOptions *options = NULL);
/frameworks/wilhelm/src/android/util/
H A DAacAdtsExtractor.cpp266 SL_LOGE("Can't seek in AAC ADTS buffer queue");
277 MediaBuffer *buffer; local
278 status_t err = mGroup->acquire_buffer(&buffer);
284 ssize_t readSize = mDataSource->readAt(mOffset + ADTS_HEADER_LENGTH, buffer->data(),
289 buffer->release();
290 buffer = NULL;
294 buffer->set_range(0, frameSizeWithoutHeader);
295 buffer->meta_data()->setInt64(kKeyTime, mCurrentTimeUs);
296 buffer->meta_data()->setInt32(kKeyIsSyncFrame, 1);
301 *out = buffer;
[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/tests/examples/
H A DslesTestFeedback.cpp46 // Storage area for the buffer queues
71 // Called after audio recorder fills a buffer with data
78 // We should only be called when a recording buffer is done
82 char *buffer = rxBuffers[rxFront]; local
84 // Remove buffer from record queue
90 ssize_t actual = audio_utils_fifo_write(&fifo, buffer, (size_t) bufSizeInFrames);
99 actual = audio_utils_fifo_write(&fifo2, buffer, (size_t) bufSizeInFrames);
105 // Enqueue this same buffer for the recorder to fill again.
106 result = (*recorderBufferQueue)->Enqueue(recorderBufferQueue, buffer, bufSizeInBytes);
115 rxBuffers[rxRear] = buffer;
172 char *buffer = txBuffers[txFront]; local
455 char *buffer = freeBuffers[freeFront]; local
519 char *buffer = freeBuffers[freeFront]; local
552 short buffer[bufSizeInFrames * channels]; local
[all...]
/frameworks/wilhelm/tests/sandbox/
H A Dconfigbq.c17 // Test various buffer queue configurations
145 // generate a sine wave buffer, ascending in half-steps for each format
147 static unsigned char buffer[N]; local
156 buffer[i++] = (sampleLeft + 32768) >> 8;
157 buffer[i++] = (sampleRight + 32768) >> 8;
160 buffer[i++] = sampleLeft & 0xFF;
161 buffer[i++] = sampleLeft >> 8;
162 buffer[i++] = sampleRight & 0xFF;
163 buffer[i++] = sampleRight >> 8;
170 buffer[
[all...]
H A Dintbufq.c17 /* interactive buffer queue test program */
175 frame_t *buffer; local
189 buffer = sine;
193 buffer = square;
197 buffer = half;
213 buffer = sawtooth;
217 result = (*playerBufferqueue)->Enqueue(playerBufferqueue, buffer, size);
H A Dmultiplay.c65 static char buffer[32]; local
68 sprintf(buffer, "%d", (int) result);
69 return buffer;
H A Dplaybq.c17 // Play an audio file using buffer queue
42 unsigned which; // which buffer to use next
70 static SLuint32 squeeze(void *buffer, SLuint32 nbytes) argument
74 swab(buffer, buffer, nbytes);
77 memcpy_to_u8_from_i16((uint8_t *) buffer, (const int16_t *) buffer,
81 memcpy_to_p24_from_i32((uint8_t *) buffer, (const int32_t *) buffer,
88 // This callback is called each time a buffer finishe
94 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which; local
497 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which; local
[all...]
H A Dplaybq.cpp17 // Play an audio file using buffer queue
42 unsigned which; // which buffer to use next
70 static SLuint32 squeeze(void *buffer, SLuint32 nbytes) argument
74 swab(buffer, buffer, nbytes);
77 memcpy_to_u8_from_i16((uint8_t *) buffer, (const int16_t *) buffer,
81 memcpy_to_p24_from_i32((uint8_t *) buffer, (const int32_t *) buffer,
88 // This callback is called each time a buffer finishe
94 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which; local
497 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which; local
[all...]
/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);
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/support/v17/leanback/src/android/support/v17/leanback/widget/picker/
H A DPicker.java355 TypedValue buffer = new TypedValue();
356 getContext().getResources().getValue(resourceId, buffer, true);
357 return buffer.getFloat();
/frameworks/support/v4/java/android/support/v4/util/
H A DLongSparseArray.java372 StringBuilder buffer = new StringBuilder(mSize * 28);
373 buffer.append('{');
376 buffer.append(", ");
379 buffer.append(key);
380 buffer.append('=');
383 buffer.append(value);
385 buffer.append("(this Map)");
388 buffer.append('}');
389 return buffer.toString();
H A DSimpleArrayMap.java617 StringBuilder buffer = new StringBuilder(mSize * 28);
618 buffer.append('{');
621 buffer.append(", ");
625 buffer.append(key);
627 buffer.append("(this Map)");
629 buffer.append('=');
632 buffer.append(value);
634 buffer.append("(this Map)");
637 buffer.append('}');
638 return buffer
[all...]
H A DSparseArrayCompat.java367 StringBuilder buffer = new StringBuilder(mSize * 28);
368 buffer.append('{');
371 buffer.append(", ");
374 buffer.append(key);
375 buffer.append('=');
378 buffer.append(value);
380 buffer.append("(this Map)");
383 buffer.append('}');
384 return buffer.toString();
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DPositionMap.java377 StringBuilder buffer = new StringBuilder(mSize * 28);
378 buffer.append('{');
381 buffer.append(", ");
384 buffer.append(key);
385 buffer.append('=');
388 buffer.append(value);
390 buffer.append("(this Map)");
393 buffer.append('}');
394 return buffer.toString();
/frameworks/volley/src/main/java/com/android/volley/toolbox/
H A DBasicNetwork.java78 * @param pool a buffer pool that improves GC performance in copy operations
230 byte[] buffer = null;
236 buffer = mPool.getBuf(1024);
238 while ((count = in.read(buffer)) != -1) {
239 bytes.write(buffer, 0, count);
251 mPool.returnBuf(buffer);
H A DDiskBasedCache.java465 public int read(byte[] buffer, int offset, int count) throws IOException { argument
466 int result = super.read(buffer, offset, count);
H A DPoolingByteArrayOutputStream.java69 * Ensures there is enough space in the buffer for the given number of additional bytes.
72 /* Can the buffer handle @i more bytes, if not expand it */
83 public synchronized void write(byte[] buffer, int offset, int len) { argument
85 super.write(buffer, offset, len);
/frameworks/volley/src/test/java/com/android/volley/toolbox/
H A DImageRequestTest.java155 byte[] buffer = new byte[1024];
157 while ((count = in.read(buffer)) != -1) {
158 bytes.write(buffer, 0, count);
/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/rs/api/
H A Drs_graphics.spec86 value: RS_DEPTH_FUNC_LESS = 1, "Drawn if the incoming depth value is less than that in the depth buffer"
87 value: RS_DEPTH_FUNC_LEQUAL = 2, "Drawn if the incoming depth value is less or equal to that in the depth buffer"
88 value: RS_DEPTH_FUNC_GREATER = 3, "Drawn if the incoming depth value is greater than that in the depth buffer"
89 value: RS_DEPTH_FUNC_GEQUAL = 4, "Drawn if the incoming depth value is greater or equal to that in the depth buffer"
90 value: RS_DEPTH_FUNC_EQUAL = 5, "Drawn if the incoming depth value is equal to that in the depth buffer"
91 value: RS_DEPTH_FUNC_NOTEQUAL = 6, "Drawn if the incoming depth value is not equal to that in the depth buffer"
97 depth to that found in the depth buffer.
256 arg: uint slot, "index of the constant buffer on the program"
/frameworks/rs/driver/
H A DrsdCore.cpp364 void* buffer = calloc(size, sizeof(char)); local
365 return buffer;
H A DrsdMeshObj.cpp143 // update attributes with either buffer information or data ptr based on their current state
150 mAttribs[ct].buffer = drvAlloc->bufferID;
153 mAttribs[ct].buffer = 0;
H A DrsdVertexArray.cpp44 buffer = 0;
73 mAttribs[idx].buffer,
109 glBindBuffer(GL_ARRAY_BUFFER, mAttribs[ct].buffer);

Completed in 639 milliseconds

1234567891011>>