Searched refs:buffer (Results 176 - 200 of 783) sorted by relevance

1234567891011>>

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/libcore/io/
H A DBridgeBufferIterator.java31 public BridgeBufferIterator(long size, ByteBuffer buffer) { argument
33 mByteBuffer = buffer;
/frameworks/compile/libbcc/bcinfo/Wrap/
H A Dfile_wrapper_input.cpp35 size_t FileWrapperInput::Read(uint8_t* buffer, size_t wanted) { argument
36 size_t found = fread((char*) buffer, 1, wanted, _file);
/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/av/drm/libdrmframework/include/
H A DReadWriteUtils.h50 * Reads the data into the given buffer from the file path provided
53 * @param[out] buffer Data read from the file
56 static int readBytes(const String8& filePath, char** buffer);
/frameworks/av/include/media/nbaio/
H A DLibsndfileSource.h46 virtual ssize_t read(void *buffer, size_t count);
H A DMonoPipeReader.h50 virtual ssize_t read(void *buffer, size_t count, int64_t readPTS);
/frameworks/av/include/media/stagefright/
H A DAudioSource.h51 MediaBuffer **buffer, const ReadOptions *options = NULL);
53 status_t dataCallback(const AudioRecord::Buffer& buffer);
54 virtual void signalBufferReturned(MediaBuffer *buffer);
99 void queueInputBuffer_l(MediaBuffer *buffer, int64_t timeUs);
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3OutputStream.cpp86 status_t Camera3OutputStream::getBufferLocked(camera3_stream_buffer *buffer) { argument
114 ALOGE("%s: Stream %d: Can't dequeue next output buffer: %s (%d)",
123 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd,
130 const camera3_stream_buffer &buffer,
134 status_t res = returnAnyBufferLocked(buffer, timestamp, /*output*/true);
146 const camera3_stream_buffer &buffer,
161 if (buffer.status == CAMERA3_BUFFER_STATUS_ERROR) {
162 if (buffer.release_fence != -1) {
164 "there is an error", __FUNCTION__, mId, buffer.release_fence);
165 close(buffer
129 returnBufferLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp) argument
145 returnBufferCheckedLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp, bool output, sp<Fence> *releaseFenceOut) argument
[all...]
H A DCamera3DummyStream.cpp39 status_t Camera3DummyStream::getBufferLocked(camera3_stream_buffer *buffer) { argument
46 const camera3_stream_buffer &buffer,
54 const camera3_stream_buffer &buffer,
45 returnBufferLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp) argument
53 returnBufferCheckedLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp, bool output, sp<Fence> *releaseFenceOut) argument
H A DCamera3IOStreamBase.h57 // Last received output buffer's timestamp
64 const camera3_stream_buffer &buffer,
69 const camera3_stream_buffer &buffer,
96 // Hand out the buffer to a native location,
97 // incrementing the internal refcount and dequeued buffer count
98 void handoutBufferLocked(camera3_stream_buffer &buffer,
H A DCamera3OutputStream.h45 * Set up a stream for formats that have a variable buffer size for the same
73 const camera3_stream_buffer &buffer,
92 virtual status_t getBufferLocked(camera3_stream_buffer *buffer);
94 const camera3_stream_buffer &buffer,
H A DCamera3ZslStream.h33 * most output buffers, and when directed, pushes a buffer back to the HAL for
51 * Locate a buffer matching this timestamp in the RingBufferConsumer,
63 * being cleared, 0 if there is no buffer being clear.
90 virtual status_t getInputBufferLocked(camera3_stream_buffer *buffer);
92 const camera3_stream_buffer &buffer);
96 const camera3_stream_buffer &buffer,
/frameworks/base/libs/hwui/
H A DImage.h37 * Creates a new image from the specified graphic buffer. If the image
41 Image(sp<GraphicBuffer> buffer);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
H A DAudioTrackDecoder.java78 ByteBuffer buffer = buffers[bufferIndex];
80 buffer.position(info.offset);
81 buffer.get(data, 0, info.size);
95 buffer.clear();
103 * decoded since the last call of this method. The decoder's buffer is cleared as a result.
118 * Clears the decoder's buffer.
/frameworks/compile/libbcc/include/bcinfo/Wrap/
H A Dfile_wrapper_input.h32 // Tries to read the requested number of bytes into the buffer. Returns the
34 virtual size_t Read(uint8_t* buffer, size_t wanted);
/frameworks/multidex/library/src/android/support/multidex/
H A DZipUtil.java112 byte[] buffer = new byte[BUFFER_SIZE];
113 length = raf.read(buffer, 0, length);
115 crc.update(buffer, 0, length);
121 length = raf.read(buffer, 0, length);
/frameworks/native/include/gui/
H A DSensor.h82 status_t flatten(void* buffer, size_t size) const;
83 status_t unflatten(void const* buffer, size_t size);
102 static void flattenString8(void*& buffer, size_t& size, const String8& string8);
103 static bool unflattenString8(void const*& buffer, size_t& size, String8& outputString8);
/frameworks/native/libs/gui/
H A DIGraphicBufferAlloc.cpp82 sp<GraphicBuffer> buffer; member in class:android::BufferReference
84 BufferReference(const sp<GraphicBuffer>& buffer) : buffer(buffer) { } argument
102 // buffer stays alive until the GraphicBuffer object on
104 // This is needed so that the buffer handle can be
105 // registered before the buffer is destroyed on implementations
/frameworks/native/opengl/libagl/
H A DBufferObjectManager.cpp44 // destroy all the buffer objects and their storage
53 buffer_t const* EGLBufferObjectManager::bind(GLuint buffer) argument
56 int32_t i = mBuffers.indexOfKey(buffer);
64 bo->name = buffer;
65 mBuffers.add(buffer, bo);
/frameworks/native/opengl/tests/gralloc/
H A Dgralloc.cpp49 sp<GraphicBuffer> buffer = new GraphicBuffer(128, 256, HAL_PIXEL_FORMAT_RGBA_8888, local
53 status_t err = buffer->initCheck();
60 buffer->lock(
107 buffer->unlock();
/frameworks/native/opengl/tools/glgen/stubs/egl/
H A DeglCreatePbufferFromClientBuffer.cpp1 /* EGLSurface eglCreatePbufferFromClientBuffer ( EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list ) */
4 (JNIEnv *_env, jobject _this, jobject dpy, jint buftype, jlong buffer, jobject config, jintArray attrib_list_ref, jint offset) {
49 reinterpret_cast<EGLClientBuffer>(buffer),
67 (JNIEnv *_env, jobject _this, jobject dpy, jint buftype, jint buffer, jobject config, jintArray attrib_list_ref, jint offset) {
72 return android_eglCreatePbufferFromClientBuffer(_env, _this, dpy, buftype, buffer, config, attrib_list_ref, offset);
3 android_eglCreatePbufferFromClientBuffer(JNIEnv *_env, jobject _this, jobject dpy, jint buftype, jlong buffer, jobject config, jintArray attrib_list_ref, jint offset) argument
66 android_eglCreatePbufferFromClientBufferInt(JNIEnv *_env, jobject _this, jobject dpy, jint buftype, jint buffer, jobject config, jintArray attrib_list_ref, jint offset) argument
/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());
/frameworks/base/core/java/android/util/
H A DPatterns.java225 StringBuilder buffer = new StringBuilder();
232 buffer.append(character);
235 return buffer.toString();
/frameworks/base/core/jni/
H A Dandroid_hardware_UsbDeviceConnection.cpp89 char buffer[16384]; local
93 int length = read(fd, buffer, sizeof(buffer));
100 memcpy(bytes, buffer, length);
170 jbyteArray buffer, jint start, jint length, jint timeout)
179 if (buffer) {
180 bufferBytes = (jbyte*)env->GetPrimitiveArrayCritical(buffer, NULL);
187 env->ReleasePrimitiveArrayCritical(buffer, bufferBytes, 0);
195 jint endpoint, jbyteArray buffer, jint start, jint length, jint timeout)
204 if (buffer) {
168 android_hardware_UsbDeviceConnection_control_request(JNIEnv *env, jobject thiz, jint requestType, jint request, jint value, jint index, jbyteArray buffer, jint start, jint length, jint timeout) argument
194 android_hardware_UsbDeviceConnection_bulk_request(JNIEnv *env, jobject thiz, jint endpoint, jbyteArray buffer, jint start, jint length, jint timeout) argument
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
H A DGraphReader.java45 char[] buffer = new char[1024];
48 while ((bytesRead = reader.read(buffer, 0, 1024)) > 0) {
49 writer.write(buffer, 0, bytesRead);

Completed in 6386 milliseconds

1234567891011>>