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

1234567891011>>

/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3IOStreamBase.cpp59 " buffer signal time is %" PRId64,
144 void Camera3IOStreamBase::handoutBufferLocked(camera3_stream_buffer &buffer, argument
156 buffer.stream = this;
157 buffer.buffer = handle;
158 buffer.acquire_fence = acquireFence;
159 buffer.release_fence = releaseFence;
160 buffer.status = status;
214 const camera3_stream_buffer &buffer,
232 res = returnBufferCheckedLocked(buffer, timestam
213 returnAnyBufferLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp, bool output) argument
[all...]
H A DCamera3Stream.h66 * buffer allocation upfront, to minmize disruption due to lengthy allocation
93 * When startPrepare is called before the stream has a buffer
101 * depending on the handed out buffer count. The state must be STATE_CONFIGURED
184 * a valid filled buffer), which determines if a stream can still have
204 * buffer pre-allocation, and transitions to the PREPARING state.
207 * valid buffer has already been returned to this stream.
217 * Continue stream buffer preparation by allocating the next
218 * buffer for this stream. May only be called in the PREPARED state.
223 * This call allocates one buffer, which may take several milliseconds for
230 * buffer pr
[all...]
H A DCamera3InputStream.cpp46 camera3_stream_buffer *buffer) {
71 ALOGE("%s: Stream %d: Can't acquire next output buffer: %s (%d)",
84 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd,
92 const camera3_stream_buffer &buffer,
107 // Find the buffer we are returning
115 if (anb != NULL && &(anb->handle) == buffer.buffer) {
123 ALOGE("%s: Stream %d: Can't return buffer that wasn't sent to HAL",
128 if (buffer.status == CAMERA3_BUFFER_STATUS_ERROR) {
129 if (buffer
45 getInputBufferLocked( camera3_stream_buffer *buffer) argument
91 returnBufferCheckedLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp, bool output, sp<Fence> *releaseFenceOut) argument
158 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
132 status_t Camera3ZslStream::getInputBufferLocked(camera3_stream_buffer *buffer) { argument
164 ALOGE("%s: Stream %d: No input buffer was queued",
180 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd,
189 const camera3_stream_buffer &buffer,
197 return Camera3OutputStream::returnBufferCheckedLocked(buffer,
209 // Find the buffer we are returning
218 if (anb != NULL && &(anb->handle) == buffer.buffer) {
188 returnBufferCheckedLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp, bool output, sp<Fence> *releaseFenceOut) argument
260 returnInputBufferLocked( const camera3_stream_buffer &buffer) argument
[all...]
/frameworks/av/media/libmedia/
H A DAudioTrackShared.cpp84 status_t ClientProxy::obtainBuffer(Buffer* buffer, const struct timespec *requested, argument
87 LOG_ALWAYS_FATAL_IF(buffer == NULL || buffer->mFrameCount == 0);
184 if (part1 > buffer->mFrameCount) {
185 part1 = buffer->mFrameCount;
187 buffer->mFrameCount = part1;
188 buffer->mRaw = part1 > 0 ?
190 buffer->mNonContig = avail - part1;
277 buffer->mFrameCount = 0;
278 buffer
296 releaseBuffer(Buffer* buffer) argument
600 obtainBuffer(Buffer* buffer, bool ackFlush) argument
709 releaseBuffer(Buffer* buffer) argument
935 obtainBuffer(Buffer* buffer, bool ackFlush) 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.cpp142 char* buffer = reinterpret_cast<char*>(pRegion.begin()); local
143 buffer[0] = FormatVersion;
152 total_size += (*subsec_it)->emit(buffer + total_size);
304 char* buffer = pBuf; local
312 subsection_length_hole = buffer;
313 buffer += 4;
317 ::memcpy(buffer, vendor_name.c_str(), vendor_name.length());
318 buffer += vendor_name.length();
321 *buffer++ = '\0';
324 *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/services/audiopolicy/common/managerdefinitions/src/
H A DIOProfile.cpp124 char buffer[SIZE]; local
129 snprintf(buffer, SIZE, " - flags: 0x%04x\n", mFlags);
130 result.append(buffer);
131 snprintf(buffer, SIZE, " - devices:\n");
132 result.append(buffer);
142 char buffer[SIZE]; local
/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/av/media/libstagefright/
H A DMidiExtractor.cpp48 MediaBuffer **buffer, const ReadOptions *options = NULL);
120 MediaBuffer *buffer; local
130 buffer = mEngine->readBuffer();
131 *outBuffer = buffer;
133 return buffer != NULL ? (status_t) OK : (status_t) ERROR_END_OF_STREAM;
208 ALOGV("using %d byte buffer", bufsize);
231 MediaBuffer *buffer; local
232 status_t err = mGroup->acquire_buffer(&buffer);
234 ALOGE("readBuffer: no buffer");
240 buffer
[all...]
/frameworks/av/media/libstagefright/include/
H A DOMXNodeInstance.h74 OMX::buffer_id *buffer, OMX_U32 allottedSize);
78 OMX::buffer_id *buffer);
82 OMX::buffer_id buffer);
99 OMX_U32 portIndex, size_t size, OMX::buffer_id *buffer,
104 OMX::buffer_id *buffer, OMX_U32 allottedSize);
106 status_t freeBuffer(OMX_U32 portIndex, OMX::buffer_id buffer);
108 status_t fillBuffer(OMX::buffer_id buffer, int fenceFd);
111 OMX::buffer_id buffer,
116 OMX_BUFFERHEADERTYPE *header, const sp<GraphicBuffer> &buffer,
163 // for buffer pt
[all...]
/frameworks/base/media/java/android/media/
H A DMediaCodec.java51 alt="MediaCodec buffer flow diagram"></object></center>
55 (or receive) an empty input buffer, fill it up with data and send it to the codec for
57 Finally, you request (or receive) a filled output buffer, consume its contents and release it
79 this requirement is slightly relaxed in that a buffer may contain multiple encoded access units
143 state you can process data through the buffer queue manipulation described above.
147 as the first input buffer is dequeued, the codec moves to the Running sub-state, where it spends
148 most of its life. When you queue an input buffer with the {@linkplain #BUFFER_FLAG_END_OF_STREAM
230 data and submit it as a single codec-config buffer.
241 <th>CSD buffer #0</th>
242 <th>CSD buffer #
2577 setByteBuffer(@ullable ByteBuffer buffer) argument
2682 freeByteBuffer(@ullable ByteBuffer buffer) argument
3282 readInt(@onNull ByteBuffer buffer, boolean asLong) argument
3290 MediaImage( @onNull ByteBuffer buffer, @NonNull ByteBuffer info, boolean readOnly, long timestamp, int xOffset, int yOffset, @Nullable Rect cropRect) argument
3358 MediaPlane(@onNull ByteBuffer buffer, int rowInc, int colInc) argument
[all...]
/frameworks/native/include/gui/
H A DSurface.h81 /* Attaches a sideband buffer stream to the Surface's IGraphicBufferProducer.
122 ANativeWindowBuffer* buffer, int fenceFd);
124 ANativeWindowBuffer** buffer, int* fenceFd);
128 ANativeWindowBuffer* buffer, int fenceFd);
132 ANativeWindowBuffer* buffer);
134 ANativeWindowBuffer** buffer);
136 ANativeWindowBuffer* buffer);
138 ANativeWindowBuffer* buffer);
161 virtual int dequeueBuffer(ANativeWindowBuffer** buffer, int* fenceFd);
162 virtual int cancelBuffer(ANativeWindowBuffer* buffer, in
203 sp<GraphicBuffer> buffer; member in struct:android::Surface::BufferSlot
[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();
H A DSparseIntArray.java252 StringBuilder buffer = new StringBuilder(mSize * 28);
253 buffer.append('{');
256 buffer.append(", ");
259 buffer.append(key);
260 buffer.append('=');
262 buffer.append(value);
264 buffer.append('}');
265 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);

Completed in 510 milliseconds

1234567891011>>