Searched refs:buffer (Results 151 - 175 of 783) sorted by relevance

1234567891011>>

/frameworks/av/media/libmedia/
H A DAudioTrackShared.cpp70 status_t ClientProxy::obtainBuffer(Buffer* buffer, const struct timespec *requested, argument
73 LOG_ALWAYS_FATAL_IF(buffer == NULL || buffer->mFrameCount == 0);
170 if (part1 > buffer->mFrameCount) {
171 part1 = buffer->mFrameCount;
173 buffer->mFrameCount = part1;
174 buffer->mRaw = part1 > 0 ?
176 buffer->mNonContig = avail - part1;
263 buffer->mFrameCount = 0;
264 buffer
282 releaseBuffer(Buffer* buffer) argument
539 obtainBuffer(Buffer* buffer, bool ackFlush) argument
637 releaseBuffer(Buffer* buffer) argument
816 obtainBuffer(Buffer* buffer, bool ackFlush __unused) argument
[all...]
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3InputStream.cpp45 camera3_stream_buffer *buffer) {
70 ALOGE("%s: Stream %d: Can't acquire next output buffer: %s (%d)",
83 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd,
91 const camera3_stream_buffer &buffer,
106 // Find the buffer we are returning
114 if (anb != NULL && &(anb->handle) == buffer.buffer) {
122 ALOGE("%s: Stream %d: Can't return buffer that wasn't sent to HAL",
127 if (buffer.status == CAMERA3_BUFFER_STATUS_ERROR) {
128 if (buffer
44 getInputBufferLocked( camera3_stream_buffer *buffer) argument
90 returnBufferCheckedLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp, bool output, sp<Fence> *releaseFenceOut) argument
157 returnInputBufferLocked( const camera3_stream_buffer &buffer) argument
[all...]
H A DCamera3ZslStream.cpp54 * Try to find the best candidate for a ZSL buffer.
104 * and we get an 'empty' result only if the ring buffer
130 status_t Camera3ZslStream::getInputBufferLocked(camera3_stream_buffer *buffer) { argument
162 ALOGE("%s: Stream %d: No input buffer was queued",
178 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd,
187 const camera3_stream_buffer &buffer,
195 return Camera3OutputStream::returnBufferCheckedLocked(buffer,
207 // Find the buffer we are returning
216 if (anb != NULL && &(anb->handle) == buffer.buffer) {
186 returnBufferCheckedLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp, bool output, sp<Fence> *releaseFenceOut) argument
258 returnInputBufferLocked( const camera3_stream_buffer &buffer) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/os/
H A DMemoryFileTest.java75 byte[] buffer = new byte[testString.length];
79 file.readBytes(buffer, 2000, 0, testString.length);
80 compareBuffers(testString, buffer, testString.length);
83 buffer = new byte[testString.length];
90 is.read(buffer);
91 compareBuffers(testString, buffer, testString.length);
94 buffer = new byte[testString.length];
96 is.read(buffer);
97 compareBuffers(testString, buffer, testString.length);
129 byte[] buffer
[all...]
/frameworks/compile/mclinker/lib/Target/
H A DELFAttribute.cpp144 char* buffer = reinterpret_cast<char*>(pRegion.begin()); local
145 buffer[0] = FormatVersion;
152 total_size += (*subsec_it)->emit(buffer + total_size);
310 char *buffer = pBuf; local
318 subsection_length_hole = buffer;
319 buffer += 4;
323 ::memcpy(buffer, vendor_name.c_str(), vendor_name.length());
324 buffer += vendor_name.length();
327 *buffer++ = '\0';
330 *buffer
[all...]
/frameworks/multidex/library/test/src/android/support/multidex/
H A DZipUtilTest.java83 ByteBuffer buffer = ByteBuffer.wrap(dirData);
85 while (buffer.hasRemaining()) {
86 buffer = buffer.slice();
87 buffer.order(ByteOrder.LITTLE_ENDIAN);
88 ZipEntry entry = ZipEntryReader.readEntry(buffer);
115 byte[] buffer = new byte[0x2000];
122 int read = in.read(buffer);
124 out.write(buffer, 0, read);
125 read = in.read(buffer);
[all...]
/frameworks/av/media/libstagefright/
H A DAACWriter.cpp253 * 11 bits of buffer fullness. 0x7FF for VBR.
315 MediaBuffer *buffer; local
316 err = mSource->read(&buffer);
323 buffer->release();
324 buffer = NULL;
328 mEstimatedSizeBytes += kAdtsHeaderLength + buffer->range_length();
330 buffer->release();
331 buffer = NULL;
337 if (buffer->meta_data()->findInt32(kKeyIsCodecConfig, &isCodecSpecific) && isCodecSpecific) {
338 ALOGV("Drop codec specific info buffer");
[all...]
H A DOMXClient.cpp93 buffer_id *buffer);
97 const sp<GraphicBuffer> &graphicBuffer, buffer_id *buffer);
101 const sp<GraphicBuffer> &graphicBuffer, buffer_id buffer);
111 buffer_id *buffer, void **buffer_data);
115 buffer_id *buffer);
118 node_id node, OMX_U32 port_index, buffer_id buffer);
120 virtual status_t fillBuffer(node_id node, buffer_id buffer);
124 buffer_id buffer,
317 buffer_id *buffer) {
318 return getOMX(node)->useBuffer(node, port_index, params, buffer);
315 useBuffer( node_id node, OMX_U32 port_index, const sp<IMemory> &params, buffer_id *buffer) argument
321 useGraphicBuffer( node_id node, OMX_U32 port_index, const sp<GraphicBuffer> &graphicBuffer, buffer_id *buffer) argument
328 updateGraphicBufferInMeta( node_id node, OMX_U32 port_index, const sp<GraphicBuffer> &graphicBuffer, buffer_id buffer) argument
347 allocateBuffer( node_id node, OMX_U32 port_index, size_t size, buffer_id *buffer, void **buffer_data) argument
354 allocateBufferWithBackup( node_id node, OMX_U32 port_index, const sp<IMemory> &params, buffer_id *buffer) argument
361 freeBuffer( node_id node, OMX_U32 port_index, buffer_id buffer) argument
366 fillBuffer(node_id node, buffer_id buffer) argument
370 emptyBuffer( node_id node, buffer_id buffer, OMX_U32 range_offset, OMX_U32 range_length, OMX_U32 flags, OMX_TICKS timestamp) argument
[all...]
H A DUtils.cpp202 sp<ABuffer> buffer = new ABuffer(1024); local
203 buffer->setRange(0, 0);
214 memcpy(buffer->data() + buffer->size(), "\x00\x00\x00\x01", 4);
215 memcpy(buffer->data() + buffer->size() + 4, ptr, length);
216 buffer->setRange(0, buffer->size() + 4 + length);
222 buffer->meta()->setInt32("csd", true);
223 buffer
271 sp<ABuffer> buffer = new ABuffer(1024); local
314 sp<ABuffer> buffer = new ABuffer(codec_specific_data_size); local
323 sp<ABuffer> buffer = new ABuffer(size); local
341 sp<ABuffer> buffer = new ABuffer(size); local
[all...]
/frameworks/base/core/java/android/nfc/
H A DNdefMessage.java96 ByteBuffer buffer = ByteBuffer.wrap(data);
98 mRecords = NdefRecord.parse(buffer, false);
100 if (buffer.remaining() > 0) {
194 ByteBuffer buffer = ByteBuffer.allocate(length);
199 mRecords[i].writeToByteBuffer(buffer, mb, me);
202 return buffer.array();
/frameworks/base/core/java/android/speech/tts/
H A DSynthesisPlaybackQueueItem.java93 byte[] buffer = null;
97 // (a) there is a buffer available to tread. In which case
101 while ((buffer = take()) != null) {
102 mAudioTrack.write(buffer);
176 void put(byte[] buffer) throws InterruptedException { argument
186 // Don't bother queueing the buffer if we've stopped. The playback thread
194 mDataBufferList.add(new ListEntry(buffer));
195 mUnconsumedBytes += buffer.length;
/frameworks/native/services/surfaceflinger/EventLog/
H A DEventLog.cpp36 EventLog::TagBuffer buffer(LOGTAG_SF_FRAME_DUR);
37 buffer.startList(1 + numDurations);
38 buffer.writeString8(window);
40 buffer.writeInt32(durations[i]);
42 buffer.endList();
43 buffer.log();
64 // purge the buffer
/frameworks/av/media/libstagefright/rtsp/
H A DAMPEG4ElementaryAssembler.cpp229 sp<ABuffer> buffer = *queue->begin(); local
233 mNextExpectedSeqNo = (uint32_t)buffer->int32Data();
234 } else if ((uint32_t)buffer->int32Data() != mNextExpectedSeqNo) {
241 CHECK(buffer->meta()->findInt32("rtp-time", (int32_t *)&rtpTime));
249 mPackets.push_back(buffer);
251 // hexdump(buffer->data(), buffer->size());
252 if (buffer->size() < 2) {
256 unsigned AU_headers_length = U16_AT(buffer->data()); // in bits
258 if (buffer
[all...]
H A DAAVCAssembler.h51 void addSingleNALUnit(const sp<ABuffer> &buffer);
53 bool addSingleTimeAggregationPacket(const sp<ABuffer> &buffer);
/frameworks/base/core/jni/
H A Dandroid_view_TextureView.cpp77 static inline SkImageInfo convertPixelFormat(const ANativeWindow_Buffer& buffer) { argument
79 info.fWidth = buffer.width;
80 info.fHeight = buffer.height;
81 switch (buffer.format) {
143 ANativeWindow_Buffer buffer; local
156 int32_t status = native_window_lock(window.get(), &buffer, &rect);
159 ssize_t bytesCount = buffer.stride * bytesPerPixel(buffer.format);
162 bitmap.setInfo(convertPixelFormat(buffer), bytesCount);
164 if (buffer
[all...]
H A Dandroid_net_TrafficStats.cpp83 char buffer[384]; local
88 while (fgets(buffer, sizeof(buffer), fp) != NULL) {
89 int matched = sscanf(buffer, "%31s %" SCNu64 " %" SCNu64 " %" SCNu64
127 char buffer[384]; local
132 while (fgets(buffer, sizeof(buffer), fp) != NULL) {
133 if (sscanf(buffer,
/frameworks/base/media/java/android/media/
H A DMediaCodec.java50 * // if API level <= 20, get input and output buffer arrays here
56 * // if API level >= 21, get input buffer here
65 * // if API level >= 21, get output buffer here
102 * Once the client has an input buffer available it can fill it with data
108 * The codec in turn will return an output buffer to the client in response
109 * to {@link #dequeueOutputBuffer}. After the output buffer has been processed
112 * {@link #releaseOutputBuffer} optionally allows rendering of the buffer
118 * data this is slightly relaxed in that a buffer may contain multiple
181 * Instantaneous Decoder Refresh (IDR) frame in a single buffer, which then
182 * can be enqueued as a regular input buffer
1213 setByteBuffer(ByteBuffer buffer) argument
1316 freeByteBuffer(ByteBuffer buffer) argument
1765 readInt(ByteBuffer buffer, boolean asLong) argument
1773 MediaImage( ByteBuffer buffer, ByteBuffer info, boolean readOnly, long timestamp, int xOffset, int yOffset, Rect cropRect) argument
1841 MediaPlane(ByteBuffer buffer, int rowInc, int colInc) argument
[all...]
/frameworks/native/libs/gui/
H A DIGraphicBufferProducer.cpp159 virtual status_t attachBuffer(int* slot, const sp<GraphicBuffer>& buffer) { argument
162 data.write(*buffer.get());
284 sp<GraphicBuffer> buffer; local
285 int result = requestBuffer(bufferIdx, &buffer);
286 reply->writeInt32(buffer != 0);
287 if (buffer != 0) {
288 reply->write(*buffer);
327 sp<GraphicBuffer> buffer; local
329 int32_t result = detachNextBuffer(&buffer, &fence);
332 reply->writeInt32(buffer !
345 sp<GraphicBuffer> buffer = new GraphicBuffer(); local
447 flatten( void*& buffer, size_t& size, int*& fds, size_t& count) const argument
463 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument
[all...]
/frameworks/av/include/media/stagefright/
H A DSkipCutBuffer.h37 // some of the data in the buffer, or it may add data to it.
38 // After this, the caller should continue processing the buffer as usual.
39 void submit(MediaBuffer *buffer);
40 void submit(const sp<ABuffer>& buffer); // same as above, but with an ABuffer
42 size_t size(); // how many bytes are currently stored in the buffer
/frameworks/base/core/java/android/hardware/camera2/marshal/
H A DMarshaler.java69 * Marshal the specified object instance (value) into a byte buffer.
74 * @param value the value of type T that we wish to write into the byte buffer
75 * @param buffer the byte buffer into which the marshaled object will be written
77 public abstract void marshal(T value, ByteBuffer buffer); argument
81 * into a byte buffer using the given {@code nativeType}.
83 * <p>If the size of this {@code T} instance when serialized into a buffer is always constant,
89 * @param value the value of type T that we wish to write into the byte buffer
90 * @return the size that would need to be written to the byte buffer
103 * Unmarshal a new object instance from the byte buffer int
111 unmarshal(ByteBuffer buffer) argument
[all...]
/frameworks/base/core/java/android/speech/
H A DIRecognitionListener.aidl50 * @param buffer the byte buffer containing a sequence of 16-bit shorts.
52 void onBufferReceived(in byte[] buffer);
/frameworks/base/core/java/android/util/
H A DLogWriter.java48 * Same as above, but buffer is one of the LOG_ID_ constants from android.util.Log.
50 public LogWriter(int priority, String tag, int buffer) { argument
53 mBuffer = buffer;
H A DSparseBooleanArray.java246 StringBuilder buffer = new StringBuilder(mSize * 28);
247 buffer.append('{');
250 buffer.append(", ");
253 buffer.append(key);
254 buffer.append('=');
256 buffer.append(value);
258 buffer.append('}');
259 return buffer.toString();
/frameworks/base/core/java/com/android/internal/util/
H A DSizedInputStream.java49 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
56 final int n = mWrapped.read(buffer, byteOffset, byteCount);
/frameworks/base/libs/hwui/
H A DImage.cpp27 Image::Image(sp<GraphicBuffer> buffer) { argument
30 EGLClientBuffer clientBuffer = (EGLClientBuffer) buffer->getNativeBuffer();

Completed in 607 milliseconds

1234567891011>>