Searched defs:buffer (Results 1 - 25 of 381) sorted by last modified time

1234567891011>>

/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 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/rs/driver/
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().
/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/ex/common/java/com/android/ex/editstyledtext/
H A DEditStyledText.java2356 onKeyDown(TextView widget, Spannable buffer, int keyCode, KeyEvent event) { argument
2363 return executeDown(widget, buffer, keyCode);
2365 return super.onKeyDown(widget, buffer, keyCode, event);
2379 protected boolean up(TextView widget, Spannable buffer) { argument
2401 protected boolean down(TextView widget, Spannable buffer) { argument
2423 protected boolean left(TextView widget, Spannable buffer) { argument
2434 protected boolean right(TextView widget, Spannable buffer) { argument
2445 private boolean executeDown(TextView widget, Spannable buffer, int keyCode) { argument
2453 handled |= up(widget, buffer);
2456 handled |= down(widget, buffer);
[all...]
/frameworks/ex/variablespeed/jni/
H A Dsola_time_scaler.cc148 // The input buffer has one writer and reader.
149 // The output buffer has one reader/updater, and one reader/consumer.
179 // Returns the number of frames that the input buffer can accept.
212 int SolaTimeScaler::InjectSamples(float* buffer, int num_frames) { argument
215 // Do not write more frames than the buffer can accept.
221 // Copy samples to the input buffer and then process whatever can be consumed.
222 input_buffer_->Write(buffer, num_frames);
228 int SolaTimeScaler::RetrieveSamples(float* buffer, int num_frames) { argument
237 output_buffer_->Copy(kOutputConsumer, buffer, num_frames);
330 // Copy the merged buffer bac
[all...]
H A Dvariablespeed.cc37 // These variables are used to determine the size of the buffer queue used by
39 // This is not the same as the large buffer used to hold the uncompressed data
42 // a good choice of size for a decoding buffer in the absence of other
49 // When calculating play buffer size before pushing to audio player.
65 // Pointer to the current buffer within local storage.
98 char buffer[PROP_VALUE_MAX]; local
99 __system_property_get(kLogTagVariableSpeed, buffer);
100 return strlen(buffer) > 0;
433 // If we've finished decoding, clear the buffer - so we will terminate.
439 // Get a free playing buffer
[all...]
/frameworks/native/cmds/dumpstate/
H A Dutils.c87 char buffer[255]; local
90 memset(buffer, 0, sizeof(buffer));
98 if (read(fd, buffer, sizeof(buffer)) < 0) {
103 printf("%-7d %-32s %s\n", pid, name, buffer);
112 /* Get size of kernel buffer */
146 char buffer[32768]; local
171 int ret = read(fd, buffer, sizeof(buffer));
[all...]
/frameworks/native/include/binder/
H A DParcel.h59 status_t setData(const uint8_t* buffer, size_t len);
289 void* buffer = writeInplace(size); local
290 return buffer == NULL ? NO_MEMORY :
291 val.flatten(buffer);
310 void const* buffer = readInplace(size); local
311 return buffer == NULL ? NO_MEMORY :
312 val.unflatten(buffer, size);
/frameworks/native/include/gui/
H A DSurfaceTextureClient.h65 ANativeWindowBuffer* buffer, int fenceFd);
67 ANativeWindowBuffer** buffer, int* fenceFd);
71 ANativeWindowBuffer* buffer, int fenceFd);
75 ANativeWindowBuffer* buffer);
77 ANativeWindowBuffer** buffer);
79 ANativeWindowBuffer* buffer);
81 ANativeWindowBuffer* buffer);
100 virtual int dequeueBuffer(ANativeWindowBuffer** buffer, int* fenceFd);
101 virtual int cancelBuffer(ANativeWindowBuffer* buffer, int fenceFd);
102 virtual int queueBuffer(ANativeWindowBuffer* buffer, in
131 sp<GraphicBuffer> buffer; member in struct:android::SurfaceTextureClient::BufferSlot
[all...]
/frameworks/native/include/utils/
H A DFlattenable.h29 * to a byte-buffer and an array of file descriptors.
41 // flattens the object into buffer.
46 virtual status_t flatten(void* buffer, size_t size,
49 // unflattens the object from buffer.
56 virtual status_t unflatten(void const* buffer, size_t size,
66 * to a byte-buffer.
82 // flattens the object into buffer.
83 inline status_t flatten(void* buffer) const;
85 // unflattens the object from buffer of given size.
86 inline status_t unflatten(void const* buffer, size_
102 unflatten(void const* buffer, size_t size) argument
124 unflatten(void const* buffer, size_t) argument
[all...]
H A DTextOutput.h105 inline const void* buffer() const;
180 inline const void* HexDump::buffer() const { return mBuffer; } function in class:android::HexDump
/frameworks/native/libs/binder/
H A DIPCThreadState.cpp149 << "data=" << btd->data.ptr.buffer << " (" << (void*)btd->data_size
245 out << ": buffer=" << (void*)buf;
712 reinterpret_cast<const uint8_t*>(tr.data.ptr.buffer),
718 err = *static_cast<const status_t*>(tr.data.ptr.buffer);
720 reinterpret_cast<const uint8_t*>(tr.data.ptr.buffer),
727 reinterpret_cast<const uint8_t*>(tr.data.ptr.buffer),
761 // Is the read buffer empty?
765 // from data left in the input buffer and the caller
791 alog << "Size of receive buffer: " << bwr.read_size
869 tr.data.ptr.buffer
983 Parcel buffer; local
[all...]
H A DMemoryDealer.cpp436 char buffer[SIZE]; local
437 snprintf(buffer, SIZE, " %s (%p, size=%u)\n",
440 result.append(buffer);
448 snprintf(buffer, SIZE, " %3u: %08x | 0x%08X | 0x%08X | %s %s\n",
454 result.append(buffer);
462 snprintf(buffer, SIZE,
464 result.append(buffer);

Completed in 8009 milliseconds

1234567891011>>