Searched refs:buffer (Results 251 - 275 of 1380) sorted by relevance

<<11121314151617181920>>

/frameworks/av/media/libstagefright/
H A DAudioSource.cpp83 // buffer size
86 // make sure that the AudioRecord total buffer size is large enough
260 MediaBuffer *buffer = *mBuffersReceived.begin(); local
263 buffer->setObserver(this);
264 buffer->add_ref();
268 CHECK(buffer->meta_data().findInt64(kKeyTime, &timeUs));
271 memset((uint8_t *) buffer->data(), 0, buffer->range_length());
281 (uint8_t *) buffer->data(), buffer
314 signalBufferReturned(MediaBufferBase *buffer) argument
419 MediaBuffer *buffer = new MediaBuffer(bufferSize); local
427 queueInputBuffer_l(MediaBuffer *buffer, int64_t timeUs) argument
[all...]
/frameworks/base/media/tests/NativeMidiDemo/jni/
H A Dnativemidi-jni.cpp101 for (uint8_t *b = msg->buffer, *e = b + msg->len; b < e; ++b) {
184 "Success, sample rate %d, buffer samples %d", sampleRate, playSamples);
239 char buffer[1024]; local
244 // snprintf(buffer, sizeof(buffer), "Obtained device token for uid %d: token %d", deviceId, midiDevice);
246 // snprintf(buffer, sizeof(buffer), "Could not obtain device token for uid %d: %d", deviceId, result);
248 nativemididemo::writeMessage(buffer);
254 snprintf(buffer, sizeof(buffer), "Devic
279 char buffer[1024]; local
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_ImageReader.cpp99 void returnBufferItem(BufferItem* buffer);
144 BufferItem* buffer = new BufferItem; local
145 mBuffers.push_back(buffer);
180 BufferItem* buffer = *it; local
182 return buffer;
185 void JNIImageReaderContext::returnBufferItem(BufferItem* buffer) { argument
186 buffer->mGraphicBuffer = nullptr;
187 mBuffers.push_back(buffer);
203 // Delete buffer items.
281 const BufferItem* buffer)
280 Image_setBufferItem(JNIEnv* env, jobject thiz, const BufferItem* buffer) argument
461 BufferItem* buffer = Image_getBufferItem(env, image); local
502 BufferItem* buffer = Image_getBufferItem(env, image); local
525 BufferItem* buffer = ctx->getBufferItem(); local
632 BufferItem* buffer = Image_getBufferItem(env, image); local
686 BufferItem* buffer = Image_getBufferItem(env, thiz); local
715 Image_getLockedImageInfo(JNIEnv* env, LockedImage* buffer, int idx, int32_t writerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) argument
788 BufferItem* buffer = Image_getBufferItem(env, thiz); local
794 BufferItem* buffer = Image_getBufferItem(env, thiz); local
804 BufferItem* buffer = Image_getBufferItem(env, thiz); local
824 BufferItem* buffer = Image_getBufferItem(env, thiz); local
[all...]
H A Dandroid_media_ImageWriter.cpp68 // has returned a buffer and it is ready for ImageWriter to dequeue.
148 ALOGV("%s: buffer released", __FUNCTION__);
152 // Detach the buffer every time when a buffer consumption is done,
157 sp<GraphicBuffer> buffer; local
158 ALOGV("%s: One buffer is detached", __FUNCTION__);
159 mProducer->detachNextBuffer(&buffer, &fence);
179 sp<GraphicBuffer> buffer, int fenceFd);
181 GraphicBuffer** buffer, int* fenceFd);
312 ALOGE("%s: Query producer undequeued buffer coun
417 GraphicBuffer *buffer = NULL; local
447 GraphicBuffer *buffer = NULL; local
532 BufferItem* buffer = reinterpret_cast<BufferItem*>(nativeBuffer); local
613 Image_getNativeContext(JNIEnv* env, jobject thiz, GraphicBuffer** buffer, int* fenceFd) argument
628 Image_setNativeContext(JNIEnv* env, jobject thiz, sp<GraphicBuffer> buffer, int fenceFd) argument
647 GraphicBuffer* buffer; local
674 GraphicBuffer* buffer; local
687 GraphicBuffer* buffer; local
700 GraphicBuffer* buffer; local
715 GraphicBuffer* buffer; local
735 GraphicBuffer* buffer; local
762 Image_getLockedImageInfo(JNIEnv* env, LockedImage* buffer, int idx, int32_t writerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) argument
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioOutputDescriptor.cpp190 char buffer[SIZE]; local
193 snprintf(buffer, SIZE, " ID: %d\n", mId);
194 result.append(buffer);
195 snprintf(buffer, SIZE, " Sampling rate: %d\n", mSamplingRate);
196 result.append(buffer);
197 snprintf(buffer, SIZE, " Format: %08x\n", mFormat);
198 result.append(buffer);
199 snprintf(buffer, SIZE, " Channels: %08x\n", mChannelMask);
200 result.append(buffer);
201 snprintf(buffer, SIZ
238 char buffer[SIZE]; local
547 char buffer[SIZE]; local
721 char buffer[SIZE]; local
766 char buffer[SIZE]; local
[all...]
H A DAudioInputDescriptor.cpp282 char buffer[SIZE]; local
285 snprintf(buffer, SIZE, " ID: %d\n", getId());
286 result.append(buffer);
287 snprintf(buffer, SIZE, " Sampling rate: %d\n", mSamplingRate);
288 result.append(buffer);
289 snprintf(buffer, SIZE, " Format: %d\n", mFormat);
290 result.append(buffer);
291 snprintf(buffer, SIZE, " Channels: %08x\n", mChannelMask);
292 result.append(buffer);
293 snprintf(buffer, SIZ
365 char buffer[SIZE]; local
[all...]
/frameworks/av/media/libaaudio/tests/
H A Dtest_session_id.cpp32 float *buffer = new float[kNumFrames * kChannelCount]; local
54 ASSERT_EQ(kNumFrames, AAudioStream_write(aaudioStream1, buffer, kNumFrames, kNanosPerSecond));
59 delete[] buffer;
75 float *buffer = new float[kNumFrames * kChannelCount]; local
109 buffer, kNumFrames, kNanosPerSecond));
112 buffer, kNumFrames, kNanosPerSecond));
138 buffer, kNumFrames, kNanosPerSecond));
141 buffer, kNumFrames, kNanosPerSecond));
150 delete[] buffer;
/frameworks/av/media/libmediaextractor/
H A DMediaBuffer.cpp73 ALOGV("Allocated shared mem buffer of size %zu @ %p", size, mData);
78 MediaBuffer::MediaBuffer(const sp<ABuffer> &buffer) argument
81 mData(buffer->data()),
82 mSize(buffer->size()),
85 mBuffer(buffer),
182 MediaBuffer *buffer = new MediaBuffer(mData, mSize); local
183 buffer->set_range(mRangeOffset, mRangeLength);
184 buffer->mMetaData = new MetaDataBase(*mMetaData);
187 buffer->mOriginal = this;
189 return buffer;
[all...]
/frameworks/av/media/mtp/
H A DMtpPacket.cpp69 char buffer[500]; local
70 char* bufptr = buffer;
73 bufptr += snprintf(bufptr, sizeof(buffer) - (bufptr - buffer), "%02X ",
76 ALOGV("%s", buffer);
77 bufptr = buffer;
80 if (bufptr != buffer) {
82 ALOGV("%s", buffer);
158 request->buffer,
H A DMtpProperty.cpp226 MtpStringBuffer buffer(string);
227 mDefaultValue.str = strdup(buffer);
236 MtpStringBuffer buffer(string);
237 mCurrentValue.str = strdup(buffer);
343 std::string buffer; local
351 buffer = " default value: ";
352 print(mDefaultValue, buffer);
353 ALOGI("%s", buffer.c_str());
355 buffer = " current value: ";
356 print(mCurrentValue, buffer);
390 print(MtpPropertyValue& value, std::string& buffer) argument
[all...]
/frameworks/av/media/ndk/
H A DNdkImageReader.cpp144 ALOGW("A buffer being freed has gone away!");
145 return; // buffer is already destroyed
211 ALOGE("%s: Cannot find the buffer to free!", __FUNCTION__);
291 ALOGE("Failed to set BufferItemConsumer buffer size");
296 ALOGE("Failed to set BufferItemConsumer buffer format");
301 ALOGE("Failed to set BufferItemConsumer buffer dataSpace");
313 BufferItem* buffer = new BufferItem; local
314 mBuffers.push_back(buffer);
371 BufferItem* buffer = getBufferItemLocked(); local
372 if (buffer
473 BufferItem* buffer = *it; local
479 returnBufferItemLocked(BufferItem* buffer) argument
485 BufferItem* buffer = image->mBuffer; local
526 getBufferWidth(BufferItem* buffer) argument
537 getBufferHeight(BufferItem* buffer) argument
[all...]
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3IOStreamBase.cpp62 " buffer signal time is %" PRId64,
150 void Camera3IOStreamBase::handoutBufferLocked(camera3_stream_buffer &buffer, argument
162 buffer.stream = this;
163 buffer.buffer = handle;
164 buffer.acquire_fence = acquireFence;
165 buffer.release_fence = releaseFence;
166 buffer.status = status;
220 const camera3_stream_buffer &buffer,
238 res = returnBufferCheckedLocked(buffer, timestam
219 returnAnyBufferLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp, bool output) argument
[all...]
H A DCamera3Stream.cpp327 // Reset prepared state, since buffer config has changed, and existing
390 ALOGE("%s: Stream %d: Can't prepare stream if max buffer count (%d) is < 0",
456 ALOGE("%s: Stream %d: Can't prepare buffer if stream is not in PREPARING "
461 // Get next buffer - this may allocate, and take a while for large buffers
464 ALOGE("%s: Stream %d: Unable to allocate buffer %zu during preparation",
536 // Free buffers by disconnecting and then reconnecting to the buffer queue
571 status_t Camera3Stream::getBuffer(camera3_stream_buffer *buffer, argument
584 // Wait for new buffer returned back if we are running into the limit.
594 ALOGE("%s: wait for output buffer return timed out after %lldms (max_buffers %d)",
602 res = getBufferLocked(buffer, surface_id
629 removeOutstandingBuffer(const camera3_stream_buffer &buffer) argument
644 returnBuffer(const camera3_stream_buffer &buffer, nsecs_t timestamp) argument
677 getInputBuffer(camera3_stream_buffer *buffer, bool respectHalLimit) argument
715 returnInputBuffer(const camera3_stream_buffer &buffer) argument
743 fireBufferListenersLocked( const camera3_stream_buffer& buffer, bool acquired, bool output) argument
[all...]
/frameworks/base/core/java/android/os/
H A DMemoryFile.java176 * @param buffer byte array to read bytes into.
178 * @param destOffset offset into the byte array buffer to read into.
183 public int readBytes(byte[] buffer, int srcOffset, int destOffset, int count) argument
188 mMapping.get(buffer, destOffset, count);
199 * @param buffer byte array to write bytes from.
200 * @param srcOffset offset into the byte array buffer to write from.
205 public void writeBytes(byte[] buffer, int srcOffset, int destOffset, int count) argument
210 mMapping.put(buffer, srcOffset, count);
283 public int read(byte buffer[], int offset, int count) throws IOException { argument
284 if (offset < 0 || count < 0 || offset + count > buffer
316 write(byte buffer[], int offset, int count) argument
[all...]
/frameworks/base/core/java/android/util/apk/
H A DZipUtils.java61 // end of the buffer for the EOCD record signature. Whenever we find a signature, we check
63 // exactly the remaining bytes in the buffer. The search is bounded because the maximum
104 // end of the buffer for the EOCD record signature. Whenever we find a signature, we check
106 // exactly the remaining bytes in the buffer. The search is bounded because the maximum
128 // No EoCD record found in the buffer
140 * buffer or {@code -1} if the record is not present.
152 // end of the buffer for the EOCD record signature. Whenever we find a signature, we check
154 // exactly the remaining bytes in the buffer. The search is bounded because the maximum
242 private static void assertByteOrderLittleEndian(ByteBuffer buffer) { argument
243 if (buffer
248 getUnsignedInt16(ByteBuffer buffer, int offset) argument
252 getUnsignedInt32(ByteBuffer buffer, int offset) argument
256 setUnsignedInt32(ByteBuffer buffer, int offset, long value) argument
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_GraphicsStatsService.cpp46 ScopedByteArrayRO buffer{env};
48 buffer.reset(jdata);
49 LOG_ALWAYS_FATAL_IF(buffer.size() != sizeof(ProfileData),
50 "Buffer size %zu doesn't match expected %zu!", buffer.size(), sizeof(ProfileData));
51 data = reinterpret_cast<const ProfileData*>(buffer.get());
82 ScopedByteArrayRO buffer(env, jdata);
83 LOG_ALWAYS_FATAL_IF(buffer.size() != sizeof(ProfileData),
84 "Buffer size %zu doesn't match expected %zu!", buffer.size(), sizeof(ProfileData));
92 const ProfileData* data = reinterpret_cast<const ProfileData*>(buffer.get());
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
H A DTimedStatement.java75 byte[] buffer = new byte[bytes];
77 rnd.nextBytes(buffer);
80 acc += buffer[i];
82 buffer[0] = acc;
83 stream.write(buffer);
90 buffer = readBuffer;
91 HashCode code1 = hashFunction.hashBytes(buffer);
92 Arrays.sort(buffer);
93 HashCode code2 = hashFunction.hashBytes(buffer);
/frameworks/base/core/tests/coretests/src/android/os/
H A DMemoryFileTest.java76 byte[] buffer = new byte[testString.length];
80 file.readBytes(buffer, 2000, 0, testString.length);
81 compareBuffers(testString, buffer, testString.length);
84 buffer = new byte[testString.length];
91 is.read(buffer);
92 compareBuffers(testString, buffer, testString.length);
95 buffer = new byte[testString.length];
97 is.read(buffer);
98 compareBuffers(testString, buffer, testString.length);
130 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/androidx/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/native/libs/gui/bufferqueue/1.0/
H A DH2BGraphicBufferProducer.cpp191 * \brief Return the size of the non-fd buffer required to flatten a fence.
194 * \return The required size of the flat buffer.
198 * part of the flat buffer.
220 * \param[in,out] buffer The pointer to the flat non-fd buffer.
221 * \param[in,out] size The size of the flat non-fd buffer.
222 * \param[in,out] fds The pointer to the flat fd buffer.
223 * \param[in,out] numFds The size of the flat fd buffer.
231 void const*& buffer, size_t& size, int const*& fds, size_t& numFds) {
237 FlattenableUtils::read(buffer, siz
230 unflattenFence(hidl_handle* fence, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
273 flattenFence(hidl_handle const& fence, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
318 void* buffer = static_cast<void*>(baseBuffer.get()); local
380 void* buffer = static_cast<void*>(baseBuffer.get()); local
411 unflatten(HRegion* t, void const*& buffer, size_t& size) argument
480 unflatten( HGraphicBufferProducer::QueueBufferInput* t, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
549 void* buffer = static_cast<void*>(baseBuffer.get()); local
620 flatten(HGraphicBufferProducer::FenceTimeSnapshot const& t, native_handle_t** nh, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
719 flatten(HGraphicBufferProducer::FrameEventsDelta const& t, std::vector<native_handle_t*>* nh, void*& buffer, size_t& size, int*& fds, size_t numFds) argument
823 flatten( HGraphicBufferProducer::FrameEventHistoryDelta const& t, std::vector<std::vector<native_handle_t*> >* nh, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
885 void* buffer = static_cast<void*>(baseBuffer.get()); local
1057 attachBuffer( int* outSlot, const sp<GraphicBuffer>& buffer) argument
[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/tests/coretests/src/android/util/
H A DLocalLogTest.java90 StringWriter buffer = new StringWriter();
91 PrintWriter writer = new PrintWriter(buffer);
93 return buffer.toString();
97 StringWriter buffer = new StringWriter();
98 PrintWriter writer = new PrintWriter(buffer);
100 return buffer.toString();
/frameworks/native/libs/vr/libbufferhub/
H A Ddetached_buffer.cpp28 "DetachedBuffer::DetachedBuffer: Failed to create detached buffer: %s",
35 ALOGE("DetachedBuffer::DetachedBuffer: Failed to import buffer: %s",
45 ALOGE("DetachedBuffer::DetachedBuffer: Failed to import buffer: %s",
67 // Stash the buffer id to replace the value in id_.
70 // Import the buffer.
79 // If all imports succeed, replace the previous buffer and id.
98 // Invalidate the buffer.
101 ALOGE("DetachedBuffer::Promote: Failed to promote buffer (id=%d): %s.", id_,
108 if (!client_.IsValid() || !buffer_.buffer()) {
109 ALOGE("DetachedBuffer::TakeGraphicBuffer: Invalid buffer
118 sp<GraphicBuffer> buffer = std::move(buffer_.buffer()); local
[all...]
/frameworks/native/libs/vr/libdisplay/include/private/dvr/
H A Dshared_buffer_helpers.h13 // The buffer usage type for mapped shared buffers.
16 // Holds the memory for the mapped shared buffer. Unlocks and releases the
20 // This constructor will create a display client and get the buffer from it.
24 CPUMappedBuffer(std::unique_ptr<IonBuffer> buffer, CPUUsageMode mode);
27 CPUMappedBuffer(IonBuffer* buffer, CPUUsageMode mode);
36 // Attempt mapping this buffer to the CPU addressable space.
37 // This will create a display client and see if the buffer exists.
38 // If the buffer has not been setup yet, you will need to try again later.
46 // If we are polling the display client, the buffer key here.
62 // Represents a broadcast ring inside a mapped shared memory buffer
72 CPUMappedBroadcastRing(std::unique_ptr<IonBuffer> buffer, CPUUsageMode mode) argument
75 CPUMappedBroadcastRing(IonBuffer* buffer, CPUUsageMode mode) argument
[all...]

Completed in 233 milliseconds

<<11121314151617181920>>