Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 872) sorted by relevance

12345678910>>...35

/hardware/interfaces/confirmationui/support/test/
Dandroid_cbor_test.cpp81 uint8_t buffer[0x1000]; in TEST() local
82 WriteState state(buffer); in TEST()
84 ASSERT_EQ(sizeof(testVector), size_t(state.data_ - buffer)); in TEST()
86 ASSERT_EQ(0, memcmp(buffer, testVector, sizeof(testVector))); in TEST()
92 uint8_t buffer[0x1000]; in TEST() local
94 memset(buffer, 0x22, 0x1000); // 0x22 is not in the testVector in TEST()
95 WriteState state(buffer, s); in TEST()
98 ASSERT_EQ(0x22, buffer[t]); // check if a canary has been killed in TEST()
105 uint8_t buffer[20]; in TEST() local
106 WriteState state(buffer); in TEST()
[all …]
/hardware/google/camera/devices/EmulatedCamera/hwl/
DBase.h97 inline void operator()(android::SensorBuffer* buffer) const {
98 if (buffer != nullptr) {
99 if (buffer->stream_buffer.buffer != nullptr) {
100 buffer->importer.unlock(buffer->stream_buffer.buffer);
101 buffer->importer.freeBuffer(buffer->stream_buffer.buffer);
104 if (buffer->acquire_fence_fd >= 0) {
105 buffer->importer.closeFence(buffer->acquire_fence_fd);
108 if ((buffer->stream_buffer.status != BufferStatus::kOk) &&
109 (buffer->callback.notify != nullptr) && (!buffer->is_failed_request)) {
112 .message.error = {.frame_number = buffer->frame_number,
[all …]
/hardware/qcom/sm8150/display/gralloc/
DQtiMapperExtensions.cpp50 Return<void> QtiMapperExtensions::getMapSecureBufferFlag(void *buffer, in getMapSecureBufferFlag() argument
53 auto hnd = static_cast<private_handle_t *>(buffer); in getMapSecureBufferFlag()
55 if (buffer != nullptr && private_handle_t::validate(hnd) == 0) { in getMapSecureBufferFlag()
66 Return<void> QtiMapperExtensions::getInterlacedFlag(void *buffer, getInterlacedFlag_cb hidl_cb) { in getInterlacedFlag() argument
68 auto hnd = static_cast<private_handle_t *>(buffer); in getInterlacedFlag()
70 if (buffer != nullptr && private_handle_t::validate(hnd) == 0) { in getInterlacedFlag()
81 Return<void> QtiMapperExtensions::getCustomDimensions(void *buffer, in getCustomDimensions() argument
84 auto hnd = static_cast<private_handle_t *>(buffer); in getCustomDimensions()
87 if (buffer != nullptr && private_handle_t::validate(hnd) == 0) { in getCustomDimensions()
97 Return<void> QtiMapperExtensions::getRgbDataAddress(void *buffer, getRgbDataAddress_cb hidl_cb) { in getRgbDataAddress() argument
[all …]
DQtiMapperExtensions.h67 Return<void> getMapSecureBufferFlag(void *buffer, getMapSecureBufferFlag_cb _hidl_cb) override;
68 Return<void> getInterlacedFlag(void *buffer, getInterlacedFlag_cb _hidl_cb) override;
69 Return<void> getCustomDimensions(void *buffer, getCustomDimensions_cb _hidl_cb) override;
70 Return<void> getRgbDataAddress(void *buffer, getRgbDataAddress_cb _hidl_cb) override;
76 Return<void> getColorSpace(void *buffer, getColorSpace_cb _hidl_cb) override;
77 Return<void> getYuvPlaneInfo(void *buffer, getYuvPlaneInfo_cb _hidl_cb) override;
78 Return<Error> setSingleBufferMode(void *buffer, bool enable) override;
79 Return<void> getFd(void *buffer, getFd_cb _hidl_cb) override;
80 Return<void> getWidth(void *buffer, getWidth_cb _hidl_cb) override;
81 Return<void> getHeight(void *buffer, getHeight_cb _hidl_cb) override;
[all …]
/hardware/libhardware_legacy/audio/
DAudioHardwareGeneric.cpp169 char buffer[SIZE]; in dumpInternals() local
172 snprintf(buffer, SIZE, "\tmFd: %d mMicMute: %s\n", mFd, mMicMute? "true": "false"); in dumpInternals()
173 result.append(buffer); in dumpInternals()
233 ssize_t AudioStreamOutGeneric::write(const void* buffer, size_t bytes) in write() argument
236 return ssize_t(::write(mFd, buffer, bytes)); in write()
248 char buffer[SIZE]; in dump() local
250 snprintf(buffer, SIZE, "AudioStreamOutGeneric::dump\n"); in dump()
251 result.append(buffer); in dump()
252 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate()); in dump()
253 result.append(buffer); in dump()
[all …]
DAudioHardwareStub.cpp102 char buffer[SIZE]; in dumpInternals() local
105 snprintf(buffer, SIZE, "\tmMicMute: %s\n", mMicMute? "true": "false"); in dumpInternals()
106 result.append(buffer); in dumpInternals()
128 ssize_t AudioStreamOutStub::write(const void* buffer, size_t bytes) in write() argument
144 char buffer[SIZE]; in dump() local
146 snprintf(buffer, SIZE, "AudioStreamOutStub::dump\n"); in dump()
147 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate()); in dump()
148 snprintf(buffer, SIZE, "\tbuffer size: %d\n", bufferSize()); in dump()
149 snprintf(buffer, SIZE, "\tchannels: %d\n", channels()); in dump()
150 snprintf(buffer, SIZE, "\tformat: %d\n", format()); in dump()
[all …]
/hardware/interfaces/media/bufferpool/1.0/
DREADME.md3 A buffer pool enables processes to transfer buffers asynchronously.
4 Without a buffer pool, a process calls a synchronous method of the other
5 process and waits until the call finishes transferring a buffer. This adds
6 unwanted latency due to context switching. With help from a buffer pool, a
11 rogue clients, FMQ is used to communicate between a buffer pool and a client
12 process. FMQ is used to send buffer ownership change status from a client
13 process to a buffer pool. Except FMQ, a buffer pool does not use any shared
18 FMQ is used to send buffer ownership status changes to a buffer pool from a
19 buffer pool client. A buffer pool synchronizes FMQ messages when there is a
21 to communicate with the buffer pool. So sending an FMQ message on behalf of
[all …]
/hardware/interfaces/media/bufferpool/2.0/
DREADME.md3 A buffer pool enables processes to transfer buffers asynchronously.
4 Without a buffer pool, a process calls a synchronous method of the other
5 process and waits until the call finishes transferring a buffer. This adds
6 unwanted latency due to context switching. With help from a buffer pool, a
11 rogue clients, FMQ is used to communicate between a buffer pool and a client
12 process. FMQ is used to send buffer ownership change status from a client
13 process to a buffer pool. Except FMQ, a buffer pool does not use any shared
18 FMQ is used to send buffer ownership status changes to a buffer pool from a
19 buffer pool client. A buffer pool synchronizes FMQ messages when there is a
21 to communicate with the buffer pool. So sending an FMQ message on behalf of
[all …]
/hardware/google/camera/common/hal/utils/
Dzsl_buffer_manager.cc95 for (auto& buffer : buffers) { in AllocateBuffersLocked() local
96 if (buffer != kInvalidBufferHandle) { in AllocateBuffersLocked()
97 buffers_.push_back(buffer); in AllocateBuffersLocked()
98 empty_zsl_buffers_.push_back(buffer); in AllocateBuffersLocked()
127 buffer_handle_t buffer = GetEmptyBufferLocked(); in GetEmptyBuffer() local
128 if (buffer == kInvalidBufferHandle) { in GetEmptyBuffer()
137 buffer = GetEmptyBufferLocked(); in GetEmptyBuffer()
140 return buffer; in GetEmptyBuffer()
145 buffer_handle_t buffer = kInvalidBufferHandle; in GetEmptyBufferLocked() local
153 buffer = empty_zsl_buffers_[0]; in GetEmptyBufferLocked()
[all …]
/hardware/st/nfc/1.0/adaptation/
Di2clayer.c107 uint8_t buffer[300]; in I2cWorkerThread() local
111 int bytesRead = i2cRead(fidI2c, buffer, 3); in I2cWorkerThread()
114 if ((buffer[0] != 0x7E) && (buffer[1] != 0x7E)) { in I2cWorkerThread()
117 if (buffer[1] != 0x7E) { in I2cWorkerThread()
119 buffer[1]); in I2cWorkerThread()
120 buffer[0] = buffer[1]; in I2cWorkerThread()
121 buffer[1] = buffer[2]; in I2cWorkerThread()
122 bytesRead = i2cRead(fidI2c, buffer + 2, 1); in I2cWorkerThread()
126 } else if (buffer[2] != 0x7E) { in I2cWorkerThread()
128 buffer[2]); in I2cWorkerThread()
[all …]
/hardware/qcom/sdm845/display/gralloc/
DQtiMapper.cpp123 Return<Error> QtiMapper::freeBuffer(void *buffer) { in freeBuffer() argument
124 if (!buffer) { in freeBuffer()
127 return buf_mgr_->ReleaseBuffer(PRIV_HANDLE_CONST(buffer)); in freeBuffer()
156 Error QtiMapper::LockBuffer(void *buffer, uint64_t usage, const hidl_handle &acquire_fence) { in LockBuffer() argument
157 if (!buffer) { in LockBuffer()
170 auto hnd = PRIV_HANDLE_CONST(buffer); in LockBuffer()
175 Return<void> QtiMapper::lock(void *buffer, uint64_t cpu_usage, in lock() argument
178 auto err = LockBuffer(buffer, cpu_usage, acquire_fence); in lock()
184 auto hnd = PRIV_HANDLE_CONST(buffer); in lock()
190 Return<void> QtiMapper::lockYCbCr(void *buffer, uint64_t cpu_usage, in lockYCbCr() argument
[all …]
/hardware/st/nfc/st21nfc/adaptation/
Di2clayer.cc106 uint8_t buffer[300]; in I2cWorkerThread() local
110 int bytesRead = i2cRead(fidI2c, buffer, 3); in I2cWorkerThread()
113 if ((buffer[0] != 0x7E) && (buffer[1] != 0x7E)) { in I2cWorkerThread()
116 if (buffer[1] != 0x7E) { in I2cWorkerThread()
119 buffer[1]); in I2cWorkerThread()
120 buffer[0] = buffer[1]; in I2cWorkerThread()
121 buffer[1] = buffer[2]; in I2cWorkerThread()
122 bytesRead = i2cRead(fidI2c, buffer + 2, 1); in I2cWorkerThread()
126 } else if (buffer[2] != 0x7E) { in I2cWorkerThread()
128 buffer[2]); in I2cWorkerThread()
[all …]
/hardware/qcom/display/msm8998/sdm/libs/core/
Ddump_impl.cpp37 DisplayError DumpInterface::GetDump(char *buffer, uint32_t length) { in GetDump() argument
38 if (!buffer || !length) { in GetDump()
42 buffer[0] = '\0'; in GetDump()
43 DumpImpl::AppendString(buffer, length, "\n-------- Snapdragon Display Manager --------"); in GetDump()
45 DumpImpl::dump_list_[i]->AppendDump(buffer, length); in GetDump()
47 DumpImpl::AppendString(buffer, length, "\n\n"); in GetDump()
60 void DumpImpl::AppendString(char *buffer, uint32_t length, const char *format, ...) { in AppendString() argument
61 uint32_t filled = UINT32(strlen(buffer)); in AppendString()
66 buffer += filled; in AppendString()
70 vsnprintf(buffer, length - filled -1, format, list); in AppendString()
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/
Ddump_impl.cpp37 DisplayError DumpInterface::GetDump(char *buffer, uint32_t length) { in GetDump() argument
38 if (!buffer || !length) { in GetDump()
42 buffer[0] = '\0'; in GetDump()
43 DumpImpl::AppendString(buffer, length, "\n-------- Snapdragon Display Manager --------"); in GetDump()
45 DumpImpl::dump_list_[i]->AppendDump(buffer, length); in GetDump()
47 DumpImpl::AppendString(buffer, length, "\n\n"); in GetDump()
60 void DumpImpl::AppendString(char *buffer, uint32_t length, const char *format, ...) { in AppendString() argument
61 uint32_t filled = UINT32(strlen(buffer)); in AppendString()
66 buffer += filled; in AppendString()
70 vsnprintf(buffer, length - filled -1, format, list); in AppendString()
/hardware/qcom/display/msm8996/sdm/libs/core/
Ddump_impl.cpp37 DisplayError DumpInterface::GetDump(char *buffer, uint32_t length) { in GetDump() argument
38 if (!buffer || !length) { in GetDump()
42 buffer[0] = '\0'; in GetDump()
43 DumpImpl::AppendString(buffer, length, "\n-------- Snapdragon Display Manager --------"); in GetDump()
45 DumpImpl::dump_list_[i]->AppendDump(buffer, length); in GetDump()
47 DumpImpl::AppendString(buffer, length, "\n\n"); in GetDump()
60 void DumpImpl::AppendString(char *buffer, uint32_t length, const char *format, ...) { in AppendString() argument
61 uint32_t filled = UINT32(strlen(buffer)); in AppendString()
66 buffer += filled; in AppendString()
70 vsnprintf(buffer, length - filled -1, format, list); in AppendString()
/hardware/interfaces/graphics/mapper/3.0/
DIMapper.hal27 * allocated buffer, but does not necessarily represent the offset in
35 * allocated buffer.
40 * The number of image layers that must be in the allocated buffer.
62 * Creates a buffer descriptor. The descriptor can be used with IAllocator
65 * Since the buffer descriptor fully describes a buffer, any device
80 * @return descriptor Newly created buffer descriptor.
87 * Imports a raw buffer handle to create an imported buffer handle for use
90 * A buffer handle is considered raw when it is cloned (e.g., with
91 * `native_handle_clone()`) from another buffer handle locally, or when it
93 * buffer handle must not be used to access the underlying graphic
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/
Dand_constructor.c113 int32_t buffer[4]; in inv_playback() local
155 r = fread(buffer, sizeof(buffer[0]), 3, inv_construct.file); in inv_playback()
157 int32_to_long(buffer, accel, 3); in inv_playback()
160 buffer[0], buffer[1], buffer[2], ts); in inv_playback()
166 r = fread(buffer, sizeof(buffer[0]), 3, inv_construct.file); in inv_playback()
168 int32_to_long(buffer, compass, 3); in inv_playback()
171 buffer[0], buffer[1], buffer[2], ts); in inv_playback()
175 r = fread(buffer, sizeof(buffer[0]), 1, inv_construct.file); in inv_playback()
177 inv_build_temp(buffer[0], ts); in inv_playback()
179 buffer[0], ts); in inv_playback()
[all …]
/hardware/interfaces/graphics/mapper/4.0/
DIMapper.hal26 * The name of the buffer. Useful for debugging/tracing.
32 * allocated buffer, but does not necessarily represent the offset in
40 * allocated buffer.
45 * The number of image layers that must be in the allocated buffer.
61 * The size in bytes of the reserved region associated with the buffer.
75 * Creates a buffer descriptor. The descriptor can be used with IAllocator
78 * Since the buffer descriptor fully describes a buffer, any device
94 * @return descriptor Newly created buffer descriptor.
101 * Imports a raw buffer handle to create an imported buffer handle for use
104 * A buffer handle is considered raw when it is cloned (e.g., with
[all …]
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_device_impl.cpp196 buffer_handle_t buffer) { in CheckDeviceAndHandle() argument
197 const private_handle_t *hnd = PRIV_HANDLE_CONST(buffer); in CheckDeviceAndHandle()
199 ALOGE("Gralloc Error : device= %p, buffer-handle=%p", (void *)device, (void *)buffer); in CheckDeviceAndHandle()
286 gralloc1_error_t GrallocImpl::GetBackingStore(gralloc1_device_t *device, buffer_handle_t buffer, in GetBackingStore() argument
288 if (!device || !buffer) { in GetBackingStore()
293 static_cast<gralloc1_backing_store_t>(PRIV_HANDLE_CONST(buffer)->GetBackingstore()); in GetBackingStore()
298 gralloc1_error_t GrallocImpl::GetConsumerUsage(gralloc1_device_t *device, buffer_handle_t buffer, in GetConsumerUsage() argument
300 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetConsumerUsage()
302 *outUsage = PRIV_HANDLE_CONST(buffer)->GetConsumerUsage(); in GetConsumerUsage()
308 gralloc1_error_t GrallocImpl::GetBufferDimensions(gralloc1_device_t *device, buffer_handle_t buffer, in GetBufferDimensions() argument
[all …]
/hardware/qcom/display/msm8998/libgralloc1/
Dgr_device_impl.cpp214 buffer_handle_t buffer) { in CheckDeviceAndHandle() argument
215 const private_handle_t *hnd = PRIV_HANDLE_CONST(buffer); in CheckDeviceAndHandle()
217 ALOGE("Gralloc Error : device= %p, buffer-handle=%p", (void *)device, (void *)buffer); in CheckDeviceAndHandle()
304 gralloc1_error_t GrallocImpl::GetBackingStore(gralloc1_device_t *device, buffer_handle_t buffer, in GetBackingStore() argument
306 if (!device || !buffer) { in GetBackingStore()
311 static_cast<gralloc1_backing_store_t>(PRIV_HANDLE_CONST(buffer)->GetBackingstore()); in GetBackingStore()
316 gralloc1_error_t GrallocImpl::GetConsumerUsage(gralloc1_device_t *device, buffer_handle_t buffer, in GetConsumerUsage() argument
318 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetConsumerUsage()
320 *outUsage = PRIV_HANDLE_CONST(buffer)->GetConsumerUsage(); in GetConsumerUsage()
326 gralloc1_error_t GrallocImpl::GetBufferDimensions(gralloc1_device_t *device, buffer_handle_t buffer, in GetBufferDimensions() argument
[all …]
/hardware/interfaces/graphics/mapper/2.0/
DIMapper.hal25 * allocated buffer, but does not necessarily represent the offset in
33 * allocated buffer.
38 * The number of image layers that must be in the allocated buffer.
60 * Creates a buffer descriptor. The descriptor can be used with IAllocator
63 * Since the buffer descriptor fully describes a buffer, any device
76 * @return descriptor is the newly created buffer descriptor.
85 * Imports a raw buffer handle to create an imported buffer handle for use
88 * A buffer handle is considered raw when it is cloned (e.g., with
89 * native_handle_clone) from another buffer handle locally, or when it is
91 * buffer handle must not be used to access the underlying graphics
[all …]
/hardware/qcom/display/msm8909/gralloc/
Dgr_device_impl.cpp201 buffer_handle_t buffer) { in CheckDeviceAndHandle() argument
202 const private_handle_t *hnd = PRIV_HANDLE_CONST(buffer); in CheckDeviceAndHandle()
204 ALOGE("Gralloc Error : device= %p, buffer-handle=%p", (void *)device, (void *)buffer); in CheckDeviceAndHandle()
291 gralloc1_error_t GrallocImpl::GetBackingStore(gralloc1_device_t *device, buffer_handle_t buffer, in GetBackingStore() argument
293 if (!device || !buffer) { in GetBackingStore()
298 static_cast<gralloc1_backing_store_t>(PRIV_HANDLE_CONST(buffer)->GetBackingstore()); in GetBackingStore()
303 gralloc1_error_t GrallocImpl::GetConsumerUsage(gralloc1_device_t *device, buffer_handle_t buffer, in GetConsumerUsage() argument
305 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetConsumerUsage()
307 *outUsage = PRIV_HANDLE_CONST(buffer)->GetConsumerUsage(); in GetConsumerUsage()
313 gralloc1_error_t GrallocImpl::GetBufferDimensions(gralloc1_device_t *device, buffer_handle_t buffer, in GetBufferDimensions() argument
[all …]
/hardware/qcom/display/msm8909w_3100/libgralloc1/
Dgr_device_impl.cpp201 buffer_handle_t buffer) { in CheckDeviceAndHandle() argument
202 const private_handle_t *hnd = PRIV_HANDLE_CONST(buffer); in CheckDeviceAndHandle()
204 ALOGE("Gralloc Error : device= %p, buffer-handle=%p", (void *)device, (void *)buffer); in CheckDeviceAndHandle()
291 gralloc1_error_t GrallocImpl::GetBackingStore(gralloc1_device_t *device, buffer_handle_t buffer, in GetBackingStore() argument
293 if (!device || !buffer) { in GetBackingStore()
298 static_cast<gralloc1_backing_store_t>(PRIV_HANDLE_CONST(buffer)->GetBackingstore()); in GetBackingStore()
303 gralloc1_error_t GrallocImpl::GetConsumerUsage(gralloc1_device_t *device, buffer_handle_t buffer, in GetConsumerUsage() argument
305 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetConsumerUsage()
307 *outUsage = PRIV_HANDLE_CONST(buffer)->GetConsumerUsage(); in GetConsumerUsage()
313 gralloc1_error_t GrallocImpl::GetBufferDimensions(gralloc1_device_t *device, buffer_handle_t buffer, in GetBufferDimensions() argument
[all …]
/hardware/interfaces/graphics/mapper/2.1/
DIMapper.hal33 * allocated buffer, but does not necessarily represent the offset in
41 * allocated buffer.
46 * The number of image layers that must be in the allocated buffer.
61 * Validate that the buffer can be safely accessed by a caller who assumes
63 * that the buffer size is large enough. Validating the buffer against
64 * individual buffer attributes is optional.
66 * @param buffer is the buffer to validate against.
67 * @param descriptorInfo specifies the attributes of the buffer.
68 * @param stride is the buffer stride returned by IAllocator::allocate.
70 * BAD_BUFFER when the buffer is invalid.
[all …]
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/
DCommConn.cpp46 std::vector<uint8_t> buffer(static_cast<size_t>(numBytes)); in sendMessage() local
47 if (!msg.SerializeToArray(buffer.data(), numBytes)) { in sendMessage()
52 write(buffer); in sendMessage()
56 std::vector<uint8_t> buffer; in readThread() local
58 buffer = read(); in readThread()
59 if (buffer.size() == 0) { in readThread()
65 if (rxMsg.ParseFromArray(buffer.data(), static_cast<int32_t>(buffer.size()))) { in readThread()

12345678910>>...35