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

1234567891011>>

/frameworks/av/media/libnbaio/
H A DLibsndfileSink.cpp37 ssize_t LibsndfileSink::write(const void *buffer, size_t count) argument
45 sf_count_t actual = sf_writef_short(mSndfile, (short *) buffer, (sf_count_t) count);
/frameworks/av/media/libnbaio/include/media/nbaio/
H A DPipe.h34 // buffer is an optional parameter specifying the virtual address of the pipe buffer,
36 Pipe(size_t maxFrames, const NBAIO_Format& format, void *buffer = NULL);
38 // If a buffer was specified in the constructor, it is not automatically freed by destructor.
57 virtual ssize_t write(const void *buffer, size_t count);
/frameworks/av/media/libstagefright/
H A DAACWriter.cpp235 * 11 bits of buffer fullness. 0x7FF for VBR.
297 MediaBufferBase *buffer; local
298 err = mSource->read(&buffer);
305 buffer->release();
306 buffer = NULL;
310 mEstimatedSizeBytes += kAdtsHeaderLength + buffer->range_length();
312 buffer->release();
313 buffer = NULL;
319 if (buffer->meta_data().findInt32(kKeyIsCodecConfig, &isCodecSpecific) && isCodecSpecific) {
320 ALOGV("Drop codec specific info buffer");
[all...]
H A DAMRWriter.cpp196 MediaBufferBase *buffer; local
197 err = mSource->read(&buffer);
204 buffer->release();
205 buffer = NULL;
209 mEstimatedSizeBytes += buffer->range_length();
211 buffer->release();
212 buffer = NULL;
218 CHECK(buffer->meta_data().findInt64(kKeyTime, &timestampUs));
234 buffer->release();
235 buffer
[all...]
H A DCallbackMediaSource.cpp39 status_t CallbackMediaSource::read(MediaBufferBase **buffer, const ReadOptions *options) { argument
40 return mSource->read(buffer, reinterpret_cast<const ReadOptions*>(options));
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3InputStream.cpp49 camera3_stream_buffer *buffer) {
74 ALOGE("%s: Stream %d: Can't acquire next output buffer: %s (%d)",
87 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd,
98 const camera3_stream_buffer &buffer,
113 // Find the buffer we are returning
121 if (anb != NULL && &(anb->handle) == buffer.buffer) {
130 ALOGE("%s: Stream %d: Can't return buffer that wasn't sent to HAL",
135 if (buffer.status == CAMERA3_BUFFER_STATUS_ERROR) {
136 if (buffer
48 getInputBufferLocked( camera3_stream_buffer *buffer) argument
97 returnBufferCheckedLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp, bool output, sp<Fence> *releaseFenceOut) argument
165 returnInputBufferLocked( const camera3_stream_buffer &buffer) argument
297 const sp<GraphicBuffer> buffer = gb.promote(); local
[all...]
H A DCamera3Stream.h67 * buffer allocation upfront, to minmize disruption due to lengthy allocation
73 * while the input stream has an outstanding buffer. All other streams should not
100 * When startPrepare is called before the stream has a buffer
106 * When the buffer queue of the stream is abandoned.
108 * Only for an input stream which has an outstanding buffer.
115 * depending on the handed out buffer count. The state must be STATE_CONFIGURED
218 * a valid filled buffer), which determines if a stream can still have
238 * buffer pre-allocation, and transitions to the PREPARING state.
241 * valid buffer has already been returned to this stream.
251 * Continue stream buffer preparatio
[all...]
/frameworks/base/core/java/android/text/method/
H A DTouch.java88 public static boolean onTouchEvent(TextView widget, Spannable buffer, argument
94 ds = buffer.getSpans(0, buffer.length(), DragState.class);
97 buffer.removeSpan(ds[i]);
100 buffer.setSpan(new DragState(event.getX(), event.getY(),
106 ds = buffer.getSpans(0, buffer.length(), DragState.class);
109 buffer.removeSpan(ds[i]);
119 ds = buffer.getSpans(0, buffer
184 getInitialScrollX(TextView widget, Spannable buffer) argument
193 getInitialScrollY(TextView widget, Spannable buffer) argument
[all...]
/frameworks/base/core/java/android/util/
H A DLongSparseLongArray.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/media/mca/filterfw/jni/
H A Djni_native_buffer.h27 char* GetJBufferData(JNIEnv* env, jobject buffer, int* size);
30 * Attach a given C data buffer and its size to a given allocated Java NativeBuffer instance. After
31 * this call, the java instance will have the given C buffer as its backing. Note, that the Java
32 * instance contains the flag on whether or not it owns the buffer or not, so make sure it is what
35 bool AttachDataToJBuffer(JNIEnv* env, jobject buffer, char* data, int size);
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/view/
H A DAppTransitionAnimationSpecCompat.java31 public AppTransitionAnimationSpecCompat(int taskId, Bitmap buffer, Rect rect) { argument
33 mBuffer = buffer;
/frameworks/base/tools/aapt2/format/binary/
H A DTableFlattener.h50 explicit TableFlattener(const TableFlattenerOptions& options, BigBuffer* buffer) argument
51 : options_(options), buffer_(buffer) {
/frameworks/base/tools/aapt2/util/
H A DBigBuffer.h46 std::unique_ptr<uint8_t[]> buffer; member in struct:aapt::BigBuffer::Block
101 * returns, buffer is empty.
103 void AppendBuffer(BigBuffer&& buffer);
126 * Returns a pointer to a buffer of the requested size.
127 * The buffer is zero-initialized.
162 inline void BigBuffer::AppendBuffer(BigBuffer&& buffer) { argument
163 std::move(buffer.blocks_.begin(), buffer.blocks_.end(),
165 size_ += buffer.size_;
166 buffer
[all...]
/frameworks/native/include/ui/
H A DFrameStats.h58 status_t flatten(void* buffer, size_t size) const;
59 status_t unflatten(void const* buffer, size_t size);
/frameworks/native/libs/gui/
H A DHdrMetadata.cpp32 status_t HdrMetadata::flatten(void* buffer, size_t size) const { argument
37 FlattenableUtils::write(buffer, size, validTypes);
39 FlattenableUtils::write(buffer, size, smpte2086);
42 FlattenableUtils::write(buffer, size, cta8613);
48 status_t HdrMetadata::unflatten(void const* buffer, size_t size) { argument
52 FlattenableUtils::read(buffer, size, validTypes);
57 FlattenableUtils::read(buffer, size, smpte2086);
63 FlattenableUtils::read(buffer, size, cta8613);
/frameworks/native/libs/ui/include/ui/
H A DFrameStats.h58 status_t flatten(void* buffer, size_t size) const;
59 status_t unflatten(void const* buffer, size_t size);
/frameworks/native/libs/ui/include_vndk/ui/
H A DFrameStats.h58 status_t flatten(void* buffer, size_t size) const;
59 status_t unflatten(void const* buffer, size_t size);
/frameworks/av/media/extractors/ogg/
H A DOggExtractor.cpp59 MediaBufferBase **buffer, const ReadOptions *options = NULL);
87 virtual status_t readNextPacket(MediaBufferBase **buffer) = 0;
149 virtual status_t verifyHeader(MediaBufferBase *buffer, uint8_t type) = 0;
155 // *buffer is NULL'ed out immediately upon entry, and if successful a new buffer is allocated;
156 // clients are responsible for releasing the original buffer.
157 status_t _readNextPacket(MediaBufferBase **buffer, bool calcVorbisTimestamp);
159 int32_t getPacketBlockSize(MediaBufferBase *buffer);
181 virtual status_t readNextPacket(MediaBufferBase **buffer) { argument
182 return _readNextPacket(buffer, /* calcVorbisTimestam
678 MediaBufferBase *buffer = NULL; local
915 getPacketBlockSize(MediaBufferBase *buffer) argument
955 verifyHeader(MediaBufferBase *buffer, uint8_t type) argument
968 verifyOpusHeader(MediaBufferBase *buffer) argument
994 verifyOpusComments(MediaBufferBase *buffer) argument
1085 verifyHeader( MediaBufferBase *buffer, uint8_t type) argument
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DARTPWriter.cpp176 static void StripStartcode(MediaBufferBase *buffer) { argument
177 if (buffer->range_length() < 4) {
182 (const uint8_t *)buffer->data() + buffer->range_offset();
185 buffer->set_range(
186 buffer->range_offset() + 4, buffer->range_length() - 4);
198 MediaBufferBase *buffer;
199 CHECK_EQ(mSource->read(&buffer), (status_t)OK);
201 StripStartcode(buffer);
299 sp<ABuffer> buffer = new ABuffer(65536); local
311 send(const sp<ABuffer> &buffer, bool isRTCP) argument
330 addSR(const sp<ABuffer> &buffer) argument
369 addSDES(const sp<ABuffer> &buffer) argument
526 makeH264SPropParamSets(MediaBufferBase *buffer) argument
555 sp<ABuffer> buffer = new ABuffer(8); local
582 sp<ABuffer> buffer = new ABuffer(kMaxPacketSize); local
686 sp<ABuffer> buffer = new ABuffer(kMaxPacketSize); local
773 sp<ABuffer> buffer = new ABuffer(kMaxPacketSize); local
[all...]
H A DUDPPusher.cpp82 sp<ABuffer> buffer = new ABuffer(length); local
83 if (fread(buffer->data(), 1, length, mFile) < length) {
89 mSocket, buffer->data(), buffer->size(), 0,
92 CHECK_EQ(n, (ssize_t)buffer->size());
118 sp<ABuffer> buffer = new ABuffer(8); local
119 uint8_t *data = buffer->data();
128 buffer->setRange(0, 8);
134 mSocket, buffer->data(), buffer
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
H A DANQPParserTest.java183 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE)
188 buffer.put((byte) wanInfo);
189 buffer.putInt((int) (downlinkSpeed & 0xFFFFFFFFL));
190 buffer.putInt((int) (uplinkSpeed & 0xFFFFFFFFL));
191 buffer.put((byte) (downlinkLoad & 0xFF));
192 buffer.put((byte) (uplinkLoad & 0xFF));
193 buffer.putShort((short) (lmd & 0xFFFF));
194 buffer.position(0);
196 buffer.get(data);
262 * Verify that an expected VenueNameElement will be returned when parsing a buffer tha
[all...]
/frameworks/av/media/extractors/mp3/
H A DVBRISeeker.cpp97 uint8_t *buffer = new (std::nothrow) uint8_t[totalEntrySize]; local
98 if (!buffer) {
104 n = source->readAt(pos + sizeof(vbriHeader), buffer, totalEntrySize);
106 delete[] buffer;
107 buffer = NULL;
125 case 1: numBytes = buffer[i]; break;
126 case 2: numBytes = U16_AT(buffer + 2 * i); break;
127 case 3: numBytes = U24_AT(buffer + 3 * i); break;
131 numBytes = U32_AT(buffer + 4 * i); break;
143 delete[] buffer;
[all...]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableArray.java61 public void marshal(T value, ByteBuffer buffer) { argument
64 marshalArrayElement(mComponentMarshaler, buffer, value, i);
69 public T unmarshal(ByteBuffer buffer) { argument
75 int remaining = buffer.remaining();
93 Object elem = mComponentMarshaler.unmarshal(buffer);
101 while (buffer.hasRemaining()) {
102 Object elem = mComponentMarshaler.unmarshal(buffer);
110 if (buffer.remaining() != 0) {
111 Log.e(TAG, "Trailing bytes (" + buffer.remaining() + ") left over after unpacking "
148 ByteBuffer buffer, Objec
147 marshalArrayElement(Marshaler<TElem> marshaler, ByteBuffer buffer, Object array, int index) argument
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DBitUtils.java114 public static int getUint8(ByteBuffer buffer, int position) { argument
115 return uint8(buffer.get(position));
118 public static int getUint16(ByteBuffer buffer, int position) { argument
119 return uint16(buffer.getShort(position));
122 public static long getUint32(ByteBuffer buffer, int position) { argument
123 return uint32(buffer.getInt(position));
126 public static void put(ByteBuffer buffer, int position, byte[] bytes) { argument
127 final int original = buffer.position();
128 buffer.position(position);
129 buffer
[all...]
/frameworks/rs/
H A DrsList.h71 if ((void*)p >= (void*)&buffer->next) {
72 buffer = buffer->next;
73 if (buffer != nullptr) {
74 p = &buffer->data.typed;
83 return p == other.p && buffer == other.buffer && list == other.list;
87 return p != other.p || buffer != other.buffer || list != other.list;
97 p(p_), buffer(buffer
101 LinkedBuffer* buffer; member in class:android::renderscript::List::iterator
[all...]

Completed in 636 milliseconds

1234567891011>>