Searched refs:buffer (Results 1 - 25 of 636) 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.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/tests/examples/
H A DslesTestFeedback.cpp43 // Storage area for the buffer queues
61 // Called after audio recorder fills a buffer with data
68 // We should only be called when a recording buffer is done
72 char *buffer = rxBuffers[rxFront]; local
74 // Remove buffer from record queue
79 // Enqueue the just-filled buffer for the player
80 result = (*playerBufferQueue)->Enqueue(playerBufferQueue, buffer, bufSizeInBytes);
91 txBuffers[txRear] = buffer;
96 // Here if record has a filled buffer to play, but play queue is full.
100 // We could either try again later, or discard. For now we discard and re-use buffer
131 char *buffer = txBuffers[txFront]; local
379 char *buffer = freeBuffers[freeFront]; 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
41 unsigned which; // which buffer to use next
74 // This callback is called each time a buffer finishes playing
80 short *buffer = &buffers[framesPerBuffer * sfinfo.channels * which]; local
82 count = sf_readf_short(sndfile, buffer, (sf_count_t) framesPerBuffer);
88 swab(buffer, buffer, nbytes);
91 squeeze(buffer, (unsigned char *) buffer, nbytes);
94 SLresult result = (*bufq)->Enqueue(bufq, buffer, nbyte
377 short *buffer = &buffers[framesPerBuffer * sfinfo.channels * 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.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/support/volley/src/com/android/volley/toolbox/
H A DBasicNetwork.java75 * @param pool a buffer pool that improves GC performance in copy operations
204 byte[] buffer = null;
210 buffer = mPool.getBuf(1024);
212 while ((count = in.read(buffer)) != -1) {
213 bytes.write(buffer, 0, count);
225 mPool.returnBuf(buffer);
H A DDiskBasedCache.java434 public int read(byte[] buffer, int offset, int count) throws IOException { argument
435 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/support/volley/tests/src/com/android/volley/toolbox/
H A DImageRequestTest.java91 byte[] buffer = new byte[1024];
93 while ((count = in.read(buffer)) != -1) {
94 bytes.write(buffer, 0, count);
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DLineVerifierElem.java96 StringBuffer buffer = new StringBuffer();
98 buffer.append(expectedLine);
99 buffer.append("\n");
102 TestCase.fail("Expected line(s) not found:" + buffer.toString());
H A DPropertyNodesVerifierElem.java287 StringBuffer buffer = new StringBuffer();
293 buffer.append(';');
295 buffer.append(propValueElem);
298 return buffer.toString();
/frameworks/rs/driver/
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);
H A DrsdVertexArray.h35 uint32_t buffer; member in class:RsdVertexArray::Attrib
/frameworks/rs/
H A DrsContext.cpp189 char buffer[128]; local
190 sprintf(buffer, "Avg fps %u, Frame %i ms, Script %i ms", mAverageFPS, mTimeMSLastFrame, mTimeMSLastScript);
193 uint32_t bufferLen = strlen(buffer);
199 mStateFont.renderText(buffer, bufferLen, 5, getHeight() - 6);
202 mStateFont.renderText(buffer, bufferLen, 4, getHeight() - 7);
256 // Need to call dlerror() to clear buffer before using it for dlsym().
H A DrsFont.cpp457 uint8_t *bitmapBuffer = bitmap->buffer;
/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardUtils.java68 ByteArrayOutputStream buffer = new ByteArrayOutputStream();
78 buffer.write((char) ((u << 4) + l));
83 buffer.write(b);
86 return buffer.toByteArray();
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DRIL.java441 * <code>buffer</code> and the length of the final message (less header)
445 * @param buffer Buffer to fill in. Must be as large as maximum
450 private static int readRilMessage(InputStream is, byte[] buffer) argument
461 countRead = is.read(buffer, offset, remaining);
472 messageLength = ((buffer[0] & 0xff) << 24)
473 | ((buffer[1] & 0xff) << 16)
474 | ((buffer[2] & 0xff) << 8)
475 | (buffer[3] & 0xff);
477 // Then, re-use the buffer and read in the message itself
481 countRead = is.read(buffer, offse
497 byte[] buffer; field in class:RIL.RILReceiver
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
H A DModelInterpreter.java48 byte buffer[] = new byte[BUFFER_SIZE]; field in class:LineReader
104 buffer[i++] = (byte)result;
109 System.err.println("ATChannel: buffer overflow");
113 return new String(buffer, 0, i, "US-ASCII");
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
H A DImageUtils.java154 final byte[] buffer = new byte[4096];
155 int n = is.read(buffer);
157 out.write(buffer, 0, n);
158 n = is.read(buffer);

Completed in 1889 milliseconds

1234567891011>>