Lines Matching refs:common

46 	if (common::validateDescriptorInfo(descriptorInfo))  in createDescriptor()
48 hidl_cb(hidl::Error::NONE, common::grallocEncodeBufferDescriptor<uint8_t>(descriptorInfo)); in createDescriptor()
70 common::importBuffer(inHandle, &outHandle)); in importBuffer()
78 buffer_handle_t handle = common::getBuffer(buffer); in freeBuffer()
80 return static_cast<hidl::Error>(common::freeBuffer(handle)); in freeBuffer()
87 if (!common::validateDescriptorInfo<BufferDescriptorInfo>(descriptorInfo)) in validateBufferSize()
92 return static_cast<hidl::Error>(common::validateBufferSize(buffer, descriptorInfo, in_stride)); in validateBufferSize()
118 common::lock(static_cast<buffer_handle_t>(buffer), cpuUsage, in lock()
119 common::GrallocRect(accessRegion), fenceFd, &outData)); in lock()
146 const native_handle_t *handle = common::getBuffer(buffer); in unlock()
153 static_cast<hidl::Error>(common::unlock(handle, &fenceFd)); in unlock()
169 …hidl::Error err = static_cast<hidl::Error>(common::flushLockedBuffer(static_cast<buffer_handle_t>(… in flushLockedBuffer()
176 return static_cast<hidl::Error>(common::rereadLockedBuffer(common::getBuffer(buffer))); in rereadLockedBuffer()
183 common::get(common::getBuffer(buffer), common::MetadataType(metadataType), vec)); in get()
190 buffer_handle_t bufferHandle = common::getBuffer(buffer); in set()
191 …return static_cast<hidl::Error>(common::set(bufferHandle, common::MetadataType(metadataType), meta… in set()
199 hidl::Error err = static_cast<hidl::Error>(common::getFromBufferDescriptorInfo( in getFromBufferDescriptorInfo()
200 description, common::MetadataType(metadataType), vec)); in getFromBufferDescriptorInfo()
208 buffer_handle_t bufferHandle = common::getBuffer(buffer); in getTransportSize()
209 …hidl::Error err = static_cast<hidl::Error>(common::getTransportSize(bufferHandle, &outNumFds, &out… in getTransportSize()
216 if (!common::validateDescriptorInfo<BufferDescriptorInfo>(description)) in isSupported()
221 hidl_cb(hidl::Error::NONE, common::isSupported(description)); in isSupported()
227 std::vector<common::MetadataTypeDescription> desc = common::listSupportedMetadataTypes(); in listSupportedMetadataTypes()
236 common::BufferDump out; in dumpBuffer()
237 hidl::Error err = static_cast<hidl::Error>(common::dumpBuffer(common::getBuffer(buffer), out)); in dumpBuffer()
244 auto bufferDump = common::dumpBuffers(); in dumpBuffers()
258 common::getReservedRegion(static_cast<buffer_handle_t>(buffer), in getReservedRegion()