Home
last modified time | relevance | path

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

12345678910>>...69

/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/gfxstream/codegen/vulkan/vulkan-docs-next/katex/contrib/
Dmhchem.js258 var buffer = {};
259 buffer['parenthesisLevel'] = 0;
302 … o = machine.actions[task.action_[iA].type_](buffer, matches.match_, task.action_[iA].option);
304 … o = mhchemParser.actions[task.action_[iA].type_](buffer, matches.match_, task.action_[iA].option);
735 'a=': function a(buffer, m) { argument
736 buffer.a = (buffer.a || "") + m;
738 'b=': function b(buffer, m) { argument
739 buffer.b = (buffer.b || "") + m;
741 'p=': function p(buffer, m) { argument
742 buffer.p = (buffer.p || "") + m;
[all …]
/hardware/google/gfxstream/guest/android/
DANativeWindowAndroid.cpp34 bool ANativeWindowHelperAndroid::isValid(EGLClientBuffer buffer) { in isValid() argument
36 auto* anwb = reinterpret_cast<ANativeWindowBuffer*>(buffer); in isValid()
48 (void)buffer; in isValid()
71 void ANativeWindowHelperAndroid::acquire(EGLClientBuffer buffer) { in acquire() argument
73 auto* anwb = reinterpret_cast<ANativeWindowBuffer*>(buffer); in acquire()
76 (void)buffer; in acquire()
80 void ANativeWindowHelperAndroid::release(EGLClientBuffer buffer) { in release() argument
82 auto* anwb = reinterpret_cast<ANativeWindowBuffer*>(buffer); in release()
85 (void)buffer; in release()
130 int ANativeWindowHelperAndroid::getWidth(EGLClientBuffer buffer) { in getWidth() argument
[all …]
DANativeWindowEmulated.cpp25 for (auto& buffer : mBuffers) { in EmulatedANativeWindow() local
27 .ahb = buffer.get(), in EmulatedANativeWindow()
43 int EmulatedANativeWindow::queueBuffer(EGLClientBuffer buffer, int fence) { in queueBuffer() argument
44 auto ahb = reinterpret_cast<EmulatedAHardwareBuffer*>(buffer); in queueBuffer()
54 int EmulatedANativeWindow::dequeueBuffer(EGLClientBuffer* buffer, int* fence) { in dequeueBuffer() argument
58 *buffer = queuedAhb.ahb->asEglClientBuffer(); in dequeueBuffer()
63 int EmulatedANativeWindow::cancelBuffer(EGLClientBuffer buffer) { in cancelBuffer() argument
64 auto ahb = reinterpret_cast<EmulatedAHardwareBuffer*>(buffer); in cancelBuffer()
89 bool EmulatedANativeWindowHelper::isValid(EGLClientBuffer buffer) { in isValid() argument
91 (void)buffer; in isValid()
[all …]
/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/
Dvk_buffer.c33 struct vk_buffer *buffer, in vk_buffer_init() argument
36 vk_object_base_init(device, &buffer->base, VK_OBJECT_TYPE_BUFFER); in vk_buffer_init()
41 buffer->create_flags = pCreateInfo->flags; in vk_buffer_init()
42 buffer->size = pCreateInfo->size; in vk_buffer_init()
43 buffer->usage = pCreateInfo->usage; in vk_buffer_init()
49 buffer->usage = usage2_info->usage; in vk_buffer_init()
58 struct vk_buffer *buffer = in vk_buffer_create() local
61 if (buffer == NULL) in vk_buffer_create()
64 vk_buffer_init(device, buffer, pCreateInfo); in vk_buffer_create()
66 return buffer; in vk_buffer_create()
[all …]
/hardware/samsung/nfc/halimpl/src/
Dutil.cc38 bool willBeContinuous(char* buffer, size_t maxlen) { in willBeContinuous() argument
41 if (!buffer) return false; in willBeContinuous()
43 len = strnlen(buffer, maxlen); in willBeContinuous()
44 if (len == maxlen && buffer[len - 2] != '\n') return true; in willBeContinuous()
46 p = buffer + len - 1; in willBeContinuous()
47 while (isspace(*p) && p > buffer) p--; in willBeContinuous()
53 char *p, buffer[256] = { in find_by_name_from_current() local
63 while (!feof(file) && fgets(buffer, sizeof(buffer) - 1, file)) { in find_by_name_from_current()
65 skip = willBeContinuous(buffer, sizeof(buffer)); in find_by_name_from_current()
68 skip = willBeContinuous(buffer, sizeof(buffer)); in find_by_name_from_current()
[all …]
/hardware/interfaces/graphics/mapper/stable-c/implutils/
Dimpltests.cpp39 static std::span<uint8_t> SkipHeader(std::vector<uint8_t>& buffer) { in SkipHeader() argument
40 return std::span<uint8_t>(buffer).subspan(HeaderSize); in SkipHeader()
68 std::vector<uint8_t> buffer(10000, 0); in TEST() local
69 int64_t* payload = reinterpret_cast<int64_t*>(SkipHeader(buffer).data()); in TEST()
72 EXPECT_EQ(8 + HeaderSize, BufferId::encode(18, buffer.data(), 0)); in TEST()
74 EXPECT_EQ(8 + HeaderSize, BufferId::encode(18, buffer.data(), buffer.size())); in TEST()
76 EXPECT_FALSE(BufferId::decode(buffer.data(), 0)); in TEST()
77 auto read = BufferId::decode(buffer.data(), buffer.size()); in TEST()
85 std::vector<uint8_t> buffer(10000, 0); in TEST() local
86 auto data = SkipHeader(buffer); in TEST()
[all …]
/hardware/nxp/nfc/snxxx/aidl/
DNfcExtns.cpp31 std::array<uint8_t, NXP_MAX_CONFIG_STRING_LEN> buffer; in getConfig() local
32 buffer.fill(0); in getConfig()
60 if (GetNxpByteArrayValue(NAME_DEVICE_HOST_ALLOW_LIST, (char*)buffer.data(), in getConfig()
61 buffer.size(), &retlen)) { in getConfig()
63 for (long i = 0; i < retlen; i++) config.hostAllowlist[i] = buffer[i]; in getConfig()
74 if (GetNxpByteArrayValue(NAME_OFFHOST_ROUTE_UICC, (char*)buffer.data(), in getConfig()
75 buffer.size(), &retlen)) { in getConfig()
77 for (long i = 0; i < retlen; i++) config.offHostRouteUicc[i] = buffer[i]; in getConfig()
80 if (GetNxpByteArrayValue(NAME_OFFHOST_ROUTE_ESE, (char*)buffer.data(), in getConfig()
81 buffer.size(), &retlen)) { in getConfig()
[all …]
/hardware/nxp/nfc/snxxx/1.2/
DNfcExtns.cpp41 std::array<uint8_t, NXP_MAX_CONFIG_STRING_LEN> buffer; in getConfig() local
42 buffer.fill(0); in getConfig()
47 if (GetNxpByteArrayValue(NAME_OFFHOST_ROUTE_UICC, (char*)buffer.data(), in getConfig()
48 buffer.size(), &retlen)) { in getConfig()
50 for (long i = 0; i < retlen; i++) config.offHostRouteUicc[i] = buffer[i]; in getConfig()
53 if (GetNxpByteArrayValue(NAME_OFFHOST_ROUTE_ESE, (char*)buffer.data(), in getConfig()
54 buffer.size(), &retlen)) { in getConfig()
56 for (long i = 0; i < retlen; i++) config.offHostRouteEse[i] = buffer[i]; in getConfig()
75 std::array<uint8_t, NXP_MAX_CONFIG_STRING_LEN> buffer; in getConfig() local
76 buffer.fill(0); in getConfig()
[all …]
/hardware/google/gfxstream/guest/android-emu/aemu/base/files/
DStreamSerializing.h35 void saveBufferRaw(Stream* stream, char* buffer, uint32_t len);
36 bool loadBufferRaw(Stream* stream, char* buffer);
39 void saveBuffer(Stream* stream, const std::vector<T>& buffer) { in saveBuffer() argument
40 stream->putBe32(buffer.size()); in saveBuffer()
41 stream->write(buffer.data(), sizeof(T) * buffer.size()); in saveBuffer()
45 bool loadBuffer(Stream* stream, std::vector<T>* buffer) { in loadBuffer() argument
47 buffer->resize(len); in loadBuffer()
48 auto ret = static_cast<std::size_t>(stream->read(buffer->data(), len * sizeof(T))); in loadBuffer()
53 void saveBuffer(Stream* stream, const SmallVector<T>& buffer) { in saveBuffer() argument
54 stream->putBe32(buffer.size()); in saveBuffer()
[all …]
/hardware/google/aemu/base/include/aemu/base/files/
DStreamSerializing.h35 void saveBufferRaw(Stream* stream, char* buffer, uint32_t len);
36 bool loadBufferRaw(Stream* stream, char* buffer);
39 void saveBuffer(Stream* stream, const std::vector<T>& buffer) { in saveBuffer() argument
40 stream->putBe32(buffer.size()); in saveBuffer()
41 stream->write(buffer.data(), sizeof(T) * buffer.size()); in saveBuffer()
45 bool loadBuffer(Stream* stream, std::vector<T>* buffer) { in loadBuffer() argument
47 buffer->resize(len); in loadBuffer()
48 int ret = (int)stream->read(buffer->data(), len * sizeof(T)); in loadBuffer()
53 void saveBuffer(Stream* stream, const SmallVector<T>& buffer) { in saveBuffer() argument
54 stream->putBe32(buffer.size()); in saveBuffer()
[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.h66 Return<void> getMapSecureBufferFlag(void *buffer, getMapSecureBufferFlag_cb _hidl_cb) override;
67 Return<void> getInterlacedFlag(void *buffer, getInterlacedFlag_cb _hidl_cb) override;
68 Return<void> getCustomDimensions(void *buffer, getCustomDimensions_cb _hidl_cb) override;
69 Return<void> getRgbDataAddress(void *buffer, getRgbDataAddress_cb _hidl_cb) override;
75 Return<void> getColorSpace(void *buffer, getColorSpace_cb _hidl_cb) override;
76 Return<void> getYuvPlaneInfo(void *buffer, getYuvPlaneInfo_cb _hidl_cb) override;
77 Return<Error> setSingleBufferMode(void *buffer, bool enable) override;
78 Return<void> getFd(void *buffer, getFd_cb _hidl_cb) override;
79 Return<void> getWidth(void *buffer, getWidth_cb _hidl_cb) override;
80 Return<void> getHeight(void *buffer, getHeight_cb _hidl_cb) override;
[all …]
/hardware/qcom/sm7250/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.h66 Return<void> getMapSecureBufferFlag(void *buffer, getMapSecureBufferFlag_cb _hidl_cb) override;
67 Return<void> getInterlacedFlag(void *buffer, getInterlacedFlag_cb _hidl_cb) override;
68 Return<void> getCustomDimensions(void *buffer, getCustomDimensions_cb _hidl_cb) override;
69 Return<void> getRgbDataAddress(void *buffer, getRgbDataAddress_cb _hidl_cb) override;
75 Return<void> getColorSpace(void *buffer, getColorSpace_cb _hidl_cb) override;
76 Return<void> getYuvPlaneInfo(void *buffer, getYuvPlaneInfo_cb _hidl_cb) override;
77 Return<Error> setSingleBufferMode(void *buffer, bool enable) override;
78 Return<void> getFd(void *buffer, getFd_cb _hidl_cb) override;
79 Return<void> getWidth(void *buffer, getWidth_cb _hidl_cb) override;
80 Return<void> getHeight(void *buffer, getHeight_cb _hidl_cb) override;
[all …]
/hardware/interfaces/graphics/mapper/stable-c/implutils/include/android/hardware/graphics/mapper/utils/
DIMapperProvider.h43 virtual AIMapper_Error freeBuffer(buffer_handle_t _Nonnull buffer) = 0;
45 virtual AIMapper_Error getTransportSize(buffer_handle_t _Nonnull buffer,
49 virtual AIMapper_Error lock(buffer_handle_t _Nonnull buffer, uint64_t cpuUsage,
53 virtual AIMapper_Error unlock(buffer_handle_t _Nonnull buffer, int* _Nonnull releaseFence) = 0;
55 virtual AIMapper_Error flushLockedBuffer(buffer_handle_t _Nonnull buffer) = 0;
57 virtual AIMapper_Error rereadLockedBuffer(buffer_handle_t _Nonnull buffer) = 0;
59 virtual int32_t getMetadata(buffer_handle_t _Nonnull buffer, AIMapper_MetadataType metadataType,
62 virtual int32_t getStandardMetadata(buffer_handle_t _Nonnull buffer,
66 virtual AIMapper_Error setMetadata(buffer_handle_t _Nonnull buffer,
70 virtual AIMapper_Error setStandardMetadata(buffer_handle_t _Nonnull buffer,
[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/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/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/google/camera/common/hal/utils/
Dzsl_buffer_manager.cc97 for (auto& buffer : buffers) { in AllocateBuffersLocked() local
98 if (buffer != kInvalidBufferHandle) { in AllocateBuffersLocked()
99 buffers_.push_back(buffer); in AllocateBuffersLocked()
100 empty_zsl_buffers_.push_back(buffer); in AllocateBuffersLocked()
129 buffer_handle_t buffer = GetEmptyBufferLocked(); in GetEmptyBuffer() local
130 if (buffer == kInvalidBufferHandle) { in GetEmptyBuffer()
139 buffer = GetEmptyBufferLocked(); in GetEmptyBuffer()
142 return buffer; in GetEmptyBuffer()
147 buffer_handle_t buffer = kInvalidBufferHandle; in GetEmptyBufferLocked() local
155 buffer = empty_zsl_buffers_[0]; in GetEmptyBufferLocked()
[all …]
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/
DDefaultVehicleHalServer.cpp236 result.buffer += "Server side properties: \n"; in onDump()
240 result.buffer += fmt::format("[{}]: {}\n", i, toString(value)); in onDump()
262 result.buffer += "No command specified\n"; in debugCommand()
263 result.buffer += getHelpInfo(); in debugCommand()
269 result.buffer += getHelpInfo(); in debugCommand()
277 result.buffer += "Unknown command: \"" + command + "\"\n"; in debugCommand()
278 result.buffer += getHelpInfo(); in debugCommand()
315 result.buffer += "No subcommand specified for genfakedata\n"; in genFakeDataCommand()
316 result.buffer += getHelpInfo(); in genFakeDataCommand()
326 result.buffer += in genFakeDataCommand()
[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/nxp/nfc/snxxx/1.1/
DNfcExtns.cpp41 std::array<uint8_t, NXP_MAX_CONFIG_STRING_LEN> buffer; in getConfig() local
42 buffer.fill(0); in getConfig()
68 if (GetNxpByteArrayValue(NAME_DEVICE_HOST_ALLOW_LIST, (char*)buffer.data(), in getConfig()
69 buffer.size(), &retlen)) { in getConfig()
71 for (long i = 0; i < retlen; i++) config.hostWhitelist[i] = buffer[i]; in getConfig()
79 if ((GetNxpByteArrayValue(NAME_NFA_PROPRIETARY_CFG, (char*)buffer.data(), in getConfig()
80 buffer.size(), &retlen)) && in getConfig()
82 config.nfaProprietaryCfg.protocol18092Active = (uint8_t)buffer[0]; in getConfig()
83 config.nfaProprietaryCfg.protocolBPrime = (uint8_t)buffer[1]; in getConfig()
84 config.nfaProprietaryCfg.protocolDual = (uint8_t)buffer[2]; in getConfig()
[all …]
/hardware/google/graphics/common/libhwjpeg/
DLibScalerForJpeg.cpp156 v4l2_buffer buffer{}; in queueBuffer() local
161 buffer.type = buftype; in queueBuffer()
162 buffer.m.planes = plane; in queueBuffer()
164 bufferFiller(buffer); in queueBuffer()
166 return ioctl(mFd, VIDIOC_QBUF, &buffer) >= 0; in queueBuffer()
171 if (!queueBuffer(buftype, [buf, len](v4l2_buffer &buffer) { in queueBuffer() argument
172 buffer.memory = V4L2_MEMORY_DMABUF; in queueBuffer()
173 buffer.length = SCALER_MAX_PLANES; in queueBuffer()
175 buffer.m.planes[i].m.fd = buf[i]; in queueBuffer()
176 buffer.m.planes[i].length = len[i]; in queueBuffer()
[all …]

12345678910>>...69