Searched defs:buffer (Results 201 - 225 of 765) sorted by relevance

1234567891011>>

/frameworks/minikin/tests/perftests/
H A DFontCollection.cpp88 uint16_t buffer[64]; local
90 ParseUnicode(buffer, 64, ITEMIZE_TEST_CASES[testIndex].itemizeText.c_str(), &utf16_length,
98 collection->itemize(buffer, utf16_length, paint, &result);
/frameworks/ml/nn/runtime/test/
H A DTestValidation.cpp189 char buffer[20]; local
190 EXPECT_EQ(ANeuralNetworksModel_setOperandValue(nullptr, 0, buffer, sizeof(buffer)),
192 EXPECT_EQ(ANeuralNetworksModel_setOperandValue(mModel, 0, nullptr, sizeof(buffer)),
195 // This should fail, since buffer is not the size of a float32.
196 EXPECT_EQ(ANeuralNetworksModel_setOperandValue(mModel, 0, buffer, sizeof(buffer)),
200 EXPECT_EQ(ANeuralNetworksModel_setOperandValue(mModel, 0, buffer, sizeof(float)),
204 EXPECT_EQ(ANeuralNetworksModel_setOperandValue(mModel, 1, buffer, sizeof(float)),
209 EXPECT_EQ(ANeuralNetworksModel_setOperandValue(mModel, 0, buffer, sizeo
277 char buffer[20]; local
435 char buffer[20]; local
458 char buffer[20]; local
[all...]
/frameworks/native/libs/gui/
H A DCpuConsumer.cpp58 static uintptr_t getLockedBufferId(const CpuConsumer::LockedBuffer& buffer) { argument
59 return reinterpret_cast<uintptr_t>(buffer.data);
102 CC_LOGV("locking buffer of format %#x as flex YUV", format);
105 CC_LOGE("Unable to lock YCbCr buffer for CPU reading: %s (%d)", strerror(-err), err);
124 CC_LOGE("Unable to lock buffer for CPU reading: %s (%d)", strerror(-err), err);
170 CC_LOGE("Error acquiring buffer: %s (%d)", strerror(err), err);
205 CC_LOGE("%s: Can't find buffer to free", __FUNCTION__);
214 CC_LOGE("%s: Unable to unlock graphic buffer %zd", __FUNCTION__,
/frameworks/native/libs/gui/tests/
H A DStreamSplitter_test.cpp74 // Never allow the output BufferQueue to allocate a buffer
83 sp<GraphicBuffer> buffer; local
87 ASSERT_EQ(OK, inputProducer->requestBuffer(slot, &buffer));
90 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN,
93 ASSERT_EQ(OK, buffer->unlock());
100 // Now that we have dequeued/allocated one buffer, prevent any further
117 // received the buffer back from the output BufferQueue
145 // Never allow the output BufferQueues to allocate a buffer
155 sp<GraphicBuffer> buffer; local
159 ASSERT_EQ(OK, inputProducer->requestBuffer(slot, &buffer));
219 sp<GraphicBuffer> buffer; local
[all...]
/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/libbufferhub/include/private/dvr/
H A Ddetached_buffer.h31 const sp<GraphicBuffer>& buffer() const { return buffer_.buffer(); } function in class:android::dvr::DetachedBuffer
35 // Returns true if the buffer holds an open PDX channels towards bufferhubd.
38 // Returns true if the buffer holds an valid gralloc buffer handle that's
42 // Returns the event mask for all the events that are pending on this buffer
60 // Takes the underlying graphic buffer out of this DetachedBuffer. This call
73 // Global id for the buffer that is consistent across processes.
/frameworks/native/libs/vr/libdvr/
H A Ddvr_buffer.cpp45 "dvrWriteBufferDestroy: Destroying a buffer associated with a valid "
46 "buffer queue slot. This may indicate possible leaks, buffer_id=%d.",
69 write_buffer->write_buffer->buffer()->buffer().get(), hardware_buffer);
76 "dvrReadBufferDestroy: Destroying a buffer associated with a valid "
77 "buffer queue slot. This may indicate possible leaks, buffer_id=%d.",
100 read_buffer->read_buffer->buffer()->buffer().get(), hardware_buffer);
103 void dvrBufferDestroy(DvrBuffer* buffer) { delete buffer; } argument
105 dvrBufferGetAHardwareBuffer(DvrBuffer* buffer, AHardwareBuffer** hardware_buffer) argument
[all...]
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
H A Darray_wrapper.h32 ArrayWrapper(pointer buffer, size_type capacity, size_type size) argument
33 : buffer_(&buffer[0]),
37 ArrayWrapper(pointer buffer, size_type size) argument
38 : ArrayWrapper(buffer, size, size) {}
103 ArrayWrapper<T> WrapArray(T* buffer, SizeType size) { argument
104 return ArrayWrapper<T>(buffer, size);
H A Dserializable.h101 void*& buffer) {
103 SerializableMembers::MemberCount, buffer); local
104 SerializeMembers<SerializableMembers>(value, writer, buffer);
100 SerializeObject(const T& value, MessageWriter* writer, void*& buffer) argument
/frameworks/native/libs/vr/libvrsensor/include/dvr/
H A Dpose_client.h25 // Returned by the async pose ring buffer access API.
27 // Read-only pointer to the pose ring buffer. The current pose is in this
28 // buffer at element buffer[current_frame & (buffer_size - 1)]. The next
36 volatile const DvrPoseAsync* buffer; member in struct:DvrPoseRingBufferInfo
42 // Number of elements in buffer. At least 8 and greater than min_future_count.
43 // Guaranteed to be a power of two. The total size of the buffer in bytes is:
142 // Get access to the shared memory pose ring buffer.
147 // |out_buffer| will be set to a pointer to the buffer.
148 // |out_fd| will be set to the gralloc buffer fil
[all...]
/frameworks/native/opengl/libagl/
H A DTextureObjectManager.h51 status_t setImage(ANativeWindowBuffer* buffer);
83 ANativeWindowBuffer* buffer; member in class:android::EGLTextureObject
/frameworks/native/services/sensorservice/
H A DRecentEventLogger.cpp51 String8 buffer; local
53 buffer.appendFormat("last %zu events\n", mRecentEvents.size());
58 buffer.appendFormat("\t%2d (ts=%.9f, wall=%02d:%02d:%02d.%03d) ",
65 buffer.appendFormat("%" PRIu64 ", ", ev.mEvent.u64.step_counter);
68 buffer.appendFormat("%.2f, ", ev.mEvent.data[k]);
72 buffer.append("[value masked]");
74 buffer.append("\n");
76 return std::string(buffer.string());
/frameworks/native/services/vr/bufferhubd/
H A Ddetached_buffer_channel.cpp16 IonBuffer buffer,
20 buffer_(std::move(buffer)),
33 // The size the of metadata buffer is used as the "width" parameter during
45 "buffer: %s",
106 ALOGD_IF(TRACE, "DetachedBufferChannel::OnGetBuffer: buffer=%d.",
150 "DetachedBufferChannel::OnPromote: Failed to set new producer buffer "
14 DetachedBufferChannel(BufferHubService* service, int buffer_id, int channel_id, IonBuffer buffer, IonBuffer metadata_buffer, size_t user_metadata_size) argument
/frameworks/support/compat/src/main/java/androidx/core/graphics/
H A DTypefaceCompatApi24Impl.java109 private static boolean addFontWeightStyle(Object family, ByteBuffer buffer, int ttcIndex, argument
113 family, buffer, ttcIndex, null /* variation axis */, weight, style);
139 ByteBuffer buffer = bufferCache.get(uri);
140 if (buffer == null) {
141 buffer = TypefaceCompatUtil.mmap(context, cancellationSignal, uri);
142 bufferCache.put(uri, buffer);
144 if (!addFontWeightStyle(family, buffer, font.getTtcIndex(), font.getWeight(),
158 final ByteBuffer buffer =
160 if (buffer == null) {
163 if (!addFontWeightStyle(family, buffer,
[all...]
/frameworks/support/media/src/androidTest/java/androidx/media/
H A DTestMedia2DataSource.java62 public synchronized int readAt(long position, byte[] buffer, int offset, int size) argument
78 System.arraycopy(mData, (int) position, buffer, offset, size);
/frameworks/av/camera/ndk/impl/
H A DACameraMetadata.cpp30 ACameraMetadata::ACameraMetadata(camera_metadata_t* buffer, ACAMERA_METADATA_TYPE type) : argument
31 mData(buffer), mType(type) {
/frameworks/av/drm/mediadrm/plugins/clearkey/default/
H A DJsonWebKey.cpp121 android::sp<ABuffer> buffer = local
123 if (buffer == NULL) {
128 decodedText->appendArray(buffer->base(), buffer->size());
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
H A DJsonWebKey.cpp123 sp<Buffer> buffer = decodeBase64(paddedText); local
124 if (buffer == nullptr) {
129 decodedText->insert(decodedText->end(), buffer->base(), buffer->base() + buffer->size());
/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...]
H A DXINGSeeker.cpp82 uint8_t buffer[4]; local
84 if (source->readAt(offset, &buffer, 4) < 4) { // get header
89 int header = U32_AT(buffer);;
98 uint8_t version = (buffer[1] >> 3) & 3;
111 if (source->readAt(offset, &buffer, 4) < 4) { // XING header ID
116 if ((buffer[0] != 'X') || (buffer[1] != 'i')
117 || (buffer[2] != 'n') || (buffer[3] != 'g')) {
118 if ((buffer[
[all...]
/frameworks/av/media/libaaudio/examples/utils/
H A DSineGenerator.h44 void render(int16_t *buffer, int32_t channelStride, int32_t numFrames) { argument
47 buffer[sampleIndex] = (int16_t) (INT16_MAX * sin(mPhase) * mAmplitude);
52 void render(float *buffer, int32_t channelStride, int32_t numFrames) { argument
55 buffer[sampleIndex] = sin(mPhase) * mAmplitude;
/frameworks/av/media/libaaudio/src/client/
H A DAudioStreamInternalCapture.cpp59 aaudio_result_t AudioStreamInternalCapture::read(void *buffer, int32_t numFrames, argument
62 return processData(buffer, numFrames, timeoutNanoseconds);
66 aaudio_result_t AudioStreamInternalCapture::processDataNow(void *buffer, int32_t numFrames, argument
79 // current buffer position.
113 // Read some data from the buffer.
115 int32_t framesProcessed = readNowWithConversion(buffer, numFrames);
155 aaudio_result_t AudioStreamInternalCapture::readNowWithConversion(void *buffer, argument
158 // buffer, numFrames);
160 uint8_t *destination = (uint8_t *) buffer;
/frameworks/av/media/libaaudio/src/fifo/
H A DFifoBuffer.cpp44 // allocate buffer
124 fifo_frames_t FifoBuffer::read(void *buffer, fifo_frames_t numFrames) { argument
126 uint8_t *destination = (uint8_t *) buffer;
155 fifo_frames_t FifoBuffer::write(const void *buffer, fifo_frames_t numFrames) { argument
157 uint8_t *source = (uint8_t *) buffer;
186 fifo_frames_t FifoBuffer::readNow(void *buffer, fifo_frames_t numFrames) { argument
189 fifo_frames_t framesRead = read(buffer, numFrames);
197 memset(buffer, 0, bytesToZero);
/frameworks/av/media/libaaudio/src/legacy/
H A DAudioStreamLegacy.cpp53 aaudio_data_callback_result_t AudioStreamLegacy::callDataCallbackFrames(uint8_t *buffer, argument
55 void *finalAudioData = buffer;
59 finalAudioData = (void *) maybeConvertDeviceData(buffer, numFrames);
74 int32_t AudioStreamLegacy::onProcessFixedBlock(uint8_t *buffer, int32_t numBytes) { argument
76 return (int32_t) callDataCallbackFrames(buffer, numFrames);
/frameworks/av/media/libaudioprocessing/
H A DRecordBufferConverter.cpp89 AudioBufferProvider::Buffer buffer; local
91 buffer.frameCount = i;
92 status_t status = provider->getNextBuffer(&buffer);
93 if (status != OK || buffer.frameCount == 0) {
97 // format convert to destination buffer
98 convertNoResampler(dst, buffer.raw, buffer.frameCount);
100 dst = (int8_t*)dst + buffer.frameCount * mDstFrameSize;
101 i -= buffer.frameCount;
102 provider->releaseBuffer(&buffer);
[all...]

Completed in 230 milliseconds

1234567891011>>