Searched defs:buffer (Results 76 - 100 of 475) sorted by relevance

1234567891011>>

/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
H A DUsbAccessoryBulkTransport.java55 protected int ioRead(byte[] buffer, int offset, int count) throws IOException { argument
59 return mConnection.bulkTransfer(mBulkInEndpoint, buffer, offset, count, -1);
63 protected void ioWrite(byte[] buffer, int offset, int count) throws IOException { argument
68 buffer, offset, count, TIMEOUT_MILLIS);
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
H A DUnsafeByteSequence.java44 * but without resizing or reallocating the buffer.
50 public void write(byte[] buffer, int offset, int length) { argument
56 System.arraycopy(buffer, offset, bytes, count, length);
/frameworks/compile/mclinker/lib/Target/Mips/
H A DMipsGOTPLT.cpp40 uint32_t* buffer = reinterpret_cast<uint32_t*>(pRegion.begin()); local
43 for (iterator it = begin(), ie = end(); it != ie; ++it, ++buffer) {
45 *buffer = static_cast<uint32_t>(got->getValue());
/frameworks/compile/mclinker/unittests/
H A DLEB128Test.cpp47 leb128::ByteType buffer[2]; local
51 result = buffer;
53 ASSERT_EQ(buffer[0], 2);
54 ASSERT_EQ(result, buffer + 1);
57 result = buffer;
59 ASSERT_EQ(buffer[0], 127);
60 ASSERT_EQ(result, buffer + 1);
63 result = buffer;
65 ASSERT_EQ(buffer[0], 0 + 0x80);
66 ASSERT_EQ(buffer[
93 leb128::ByteType buffer[2]; local
139 leb128::ByteType buffer[2]; local
199 leb128::ByteType buffer[2]; local
235 leb128::ByteType buffer[2]; local
301 leb128::ByteType buffer[5]; local
418 leb128::ByteType buffer[5]; local
460 leb128::ByteType buffer[9]; local
500 leb128::ByteType buffer[5]; local
516 char buffer[5]; local
[all...]
/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/libs/gui/tests/
H A DMultiTextureConsumer_test.cpp69 ANativeWindow_Buffer buffer; local
108 mSurface->lock(&buffer, NULL);
109 memset(buffer.bits, (i&7) * 0x20, buffer.stride * buffer.height * 4);
/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/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/native/services/sensorservice/tests/
H A Dsensorservicetest.cpp32 ASensorEvent buffer[8]; local
36 while ((n = q->read(buffer, 8)) > 0) {
40 t = float(buffer[i].timestamp - oldTimeStamp) / s2ns(1);
42 t = float(buffer[i].timestamp - sStartTime) / s2ns(1);
44 oldTimeStamp = buffer[i].timestamp;
46 if (buffer[i].type == Sensor::TYPE_ACCELEROMETER) {
48 buffer[i].timestamp,
49 buffer[i].data[0], buffer[i].data[1], buffer[
[all...]
/frameworks/rs/driver/
H A DrsdCore.cpp258 void* buffer = calloc(size, sizeof(char)); local
259 return buffer;
H A DrsdVertexArray.h35 uint32_t buffer; member in class:RsdVertexArray::Attrib
/frameworks/volley/src/com/android/volley/toolbox/
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/av/cmds/stagefright/
H A Daudioloop.cpp133 MediaBuffer* buffer; local
134 while (decoder->read(&buffer) == OK) {
135 // do something with buffer (save it eventually?)
139 buffer->release();
140 buffer = NULL;
/frameworks/av/media/libnbaio/
H A DAudioBufferProviderSource.cpp49 ssize_t AudioBufferProviderSource::read(void *buffer, argument
71 memcpy(buffer, (char *) mBuffer.raw + (mConsumed * mFrameSize), count * mFrameSize);
79 // return a short count rather than continuing with next buffer.
141 // don't get next buffer until we really need it
H A DAudioStreamInSource.cpp67 ssize_t AudioStreamInSource::read(void *buffer, size_t count, int64_t readPTS __unused) argument
72 ssize_t bytesRead = mStream->read(mStream, buffer, count * mFrameSize);
H A DAudioStreamOutSink.cpp53 ssize_t AudioStreamOutSink::write(const void *buffer, size_t count) argument
59 ssize_t ret = mStream->write(mStream, buffer, count * mFrameSize);
/frameworks/av/media/libstagefright/
H A DMediaBuffer.cpp73 MediaBuffer::MediaBuffer(const sp<ABuffer> &buffer) argument
77 mData(buffer->data()),
78 mSize(buffer->size()),
81 mBuffer(buffer),
177 void MediaBuffer::setNextBuffer(MediaBuffer *buffer) { argument
178 mNextBuffer = buffer;
192 MediaBuffer *buffer = new MediaBuffer(mData, mSize); local
193 buffer->set_range(mRangeOffset, mRangeLength);
194 buffer->mMetaData = new MetaData(*mMetaData.get());
197 buffer
[all...]
H A DMediaMuxer.cpp164 status_t MediaMuxer::writeSampleData(const sp<ABuffer> &buffer, size_t trackIndex, argument
168 if (buffer.get() == NULL) {
169 ALOGE("WriteSampleData() get an NULL buffer.");
183 MediaBuffer* mediaBuffer = new MediaBuffer(buffer);
186 mediaBuffer->set_range(buffer->offset(), buffer->size());
H A DSkipCutBuffer.cpp41 void SkipCutBuffer::submit(MediaBuffer *buffer) { argument
42 int32_t offset = buffer->range_offset();
43 int32_t buflen = buffer->range_length();
45 // drop the initial data from the buffer if needed
51 buffer->set_range(offset, buflen);
57 char *src = ((char*) buffer->data()) + offset;
63 char *dst = (char*) buffer->data();
64 size_t copied = read(dst, buffer->size());
65 buffer->set_range(0, copied);
68 void SkipCutBuffer::submit(const sp<ABuffer>& buffer) { argument
[all...]
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
H A Dbitstream_io.cpp29 /* Purpose : Populate bitstream structure with bitstream buffer and size */
45 AVCEnc_Status BitstreamEncInit(AVCEncBitstream *stream, uint8 *buffer, int buf_size, argument
48 if (stream == NULL || buffer == NULL || buf_size <= 0)
53 stream->bitstreamBuffer = buffer;
75 /* Purpose : Save the current_word into the buffer, byte-swap, and */
78 /* Return : AVCENC_SUCCESS if successed, AVCENC_WRITE_FAIL if buffer is */
141 /* Return : AVCENC_SUCCESS if successed, AVCENC_WRITE_FAIL if buffer is */
193 /* Return : AVCENC_SUCCESS if successed, AVCENC_WRITE_FAIL if buffer is */
223 /* Return : AVCENC_SUCCESS if successed, AVCENC_WRITE_FAIL if buffer is */
264 /* determine whether overrun buffer ca
[all...]
/frameworks/av/media/libstagefright/foundation/
H A Dbase64.cpp45 sp<ABuffer> buffer = new ABuffer(outLen); local
47 uint8_t *out = buffer->data();
85 return buffer;
/frameworks/av/media/libstagefright/httplive/
H A DLiveDataSource.cpp69 sp<ABuffer> buffer = *it; local
71 totalAvailable += buffer->size();
112 sp<ABuffer> buffer = *mBufferQueue.begin(); local
116 if (copy > buffer->size()) {
117 copy = buffer->size();
120 memcpy((uint8_t *)data + sizeDone, buffer->data(), copy);
124 buffer->setRange(buffer->offset() + copy, buffer->size() - copy);
126 if (buffer
136 queueBuffer(const sp<ABuffer> &buffer) argument
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DAH263Assembler.cpp75 sp<ABuffer> buffer = *queue->begin(); local
79 mNextExpectedSeqNo = (uint32_t)buffer->int32Data();
80 } else if ((uint32_t)buffer->int32Data() != mNextExpectedSeqNo) {
89 CHECK(buffer->meta()->findInt32("rtp-time", (int32_t *)&rtpTime));
96 // hexdump(buffer->data(), buffer->size());
98 if (buffer->size() < 2) {
105 unsigned payloadHeader = U16_AT(buffer->data());
137 buffer->setRange(buffer
[all...]
H A DARawAudioAssembler.cpp76 sp<ABuffer> buffer = *queue->begin(); local
80 mNextExpectedSeqNo = (uint32_t)buffer->int32Data();
81 } else if ((uint32_t)buffer->int32Data() != mNextExpectedSeqNo) {
87 // hexdump(buffer->data(), buffer->size());
89 if (buffer->size() < 1) {
99 msg->setBuffer("access-unit", buffer);
H A DSDPLoader.cpp119 sp<ABuffer> buffer = new ABuffer(sdpSize); local
122 ssize_t readSize = mHTTPDataSource->readAt(0, buffer->data(), sdpSize);
130 if (desc == NULL || !desc->setTo(buffer->data(), (size_t)readSize)) {

Completed in 1795 milliseconds

1234567891011>>