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

1234567891011>>

/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/com/android/volley/toolbox/
H A DBasicNetwork.java75 * @param pool a buffer pool that improves GC performance in copy operations
213 byte[] buffer = null;
219 buffer = mPool.getBuf(1024);
221 while ((count = in.read(buffer)) != -1) {
222 bytes.write(buffer, 0, count);
234 mPool.returnBuf(buffer);
H A DDiskBasedCache.java455 public int read(byte[] buffer, int offset, int count) throws IOException { argument
456 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/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/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/webview/chromium/tests/prebuilts/
H A Dandroid-janktesthelper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/android/ com/android/uiautomator/ com/android/uiautomator/janktesthelper/ ...
/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
67 // Called after audio recorder fills a buffer with data
74 // We should only be called when a recording buffer is done
78 char *buffer = rxBuffers[rxFront]; local
80 // Remove buffer from record queue
86 ssize_t actual = pipeWriter->write(buffer, (size_t) bufSizeInFrames);
91 // Enqueue this same buffer for the recorder to fill again.
92 result = (*recorderBufferQueue)->Enqueue(recorderBufferQueue, buffer, bufSizeInBytes);
101 rxBuffers[rxRear] = buffer;
105 // Enqueue the just-filled buffer fo
158 char *buffer = txBuffers[txFront]; local
403 char *buffer = freeBuffers[freeFront]; local
467 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
46 unsigned which; // which buffer to use next
97 // This callback is called each time a buffer finishes playing
103 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which; local
104 ssize_t count = pipeReader->read(buffer, framesPerBuffer, (int64_t) -1);
107 memset(buffer, 0, framesPerBuffer * sfframesize);
114 swab(buffer, buffer, nbytes);
117 squeeze((short *) buffer, (unsigned char *) buffer, nbyte
503 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which; local
[all...]
H A Dplaybq.cpp17 // Play an audio file using buffer queue
46 unsigned which; // which buffer to use next
97 // This callback is called each time a buffer finishes playing
103 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which; local
104 ssize_t count = pipeReader->read(buffer, framesPerBuffer, (int64_t) -1);
107 memset(buffer, 0, framesPerBuffer * sfframesize);
114 swab(buffer, buffer, nbytes);
117 squeeze((short *) buffer, (unsigned char *) buffer, nbyte
503 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/rs/cpu_ref/
H A DrsCpuCore.cpp208 read_file(const char* pathname, char* buffer, size_t buffsize) argument
217 len = read(fd, buffer, buffsize);
/frameworks/rs/driver/
H A DrsdCore.cpp258 void* buffer = calloc(size, sizeof(char)); local
259 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);
H A DrsdVertexArray.h35 uint32_t buffer; member in class:RsdVertexArray::Attrib
/frameworks/rs/
H A DrsContext.cpp227 char buffer[128]; local
228 sprintf(buffer, "Avg fps %u, Frame %i ms, Script %i ms", mAverageFPS, mTimeMSLastFrame, mTimeMSLastScript);
231 uint32_t bufferLen = strlen(buffer);
237 mStateFont.renderText(buffer, bufferLen, 5, getHeight() - 6);
240 mStateFont.renderText(buffer, bufferLen, 4, getHeight() - 7);
258 // Need to call dlerror() to clear buffer before using it for dlsym().
H A DrsFont.cpp463 uint8_t *bitmapBuffer = bitmap->buffer;

Completed in 9216 milliseconds

1234567891011>>