Lines Matching refs:Error3
39 using Error3 = MapperV3::Error; typedef
98 const Error3 e = importBufferImpl(hh.getNativeHandle(), &imported); in importBuffer()
99 if (e == Error3::NONE) { in importBuffer()
100 hidl_cb(Error3::NONE, imported); in importBuffer()
107 Return<Error3> freeBuffer(void* raw) { in freeBuffer()
109 RETURN_ERROR(Error3::BAD_BUFFER); in freeBuffer()
113 RETURN_ERROR(Error3::BAD_BUFFER); in freeBuffer()
129 RETURN(Error3::NONE); in freeBuffer()
141 const Error3 e = lockImpl(raw, cpuUsage, accessRegion, acquireFence, in lock()
143 if (e == Error3::NONE) { in lock()
144 hidl_cb(Error3::NONE, ptr, bytesPerPixel, bytesPerStride); in lock()
157 const Error3 e = lockYCbCrImpl(raw, cpuUsage, accessRegion, acquireFence, in lockYCbCr()
159 if (e == Error3::NONE) { in lockYCbCr()
160 hidl_cb(Error3::NONE, ycbcr); in lockYCbCr()
177 hidl_cb(Error3::NONE, raw); in createDescriptor()
183 hidl_cb(Error3::NONE, isSupportedImpl(description)); in isSupported()
187 Return<Error3> validateBufferSize(void* buffer, in validateBufferSize()
194 RETURN_ERROR(Error3::BAD_BUFFER); in validateBufferSize()
202 hidl_cb(Error3::NONE, cb->numFds, cb->numInts); in getTransportSize()
204 hidl_cb(Error3::BAD_BUFFER, 0, 0); in getTransportSize()
211 Error3 importBufferImpl(const native_handle_t* nh, native_handle_t** phandle) { in importBufferImpl()
213 RETURN_ERROR(Error3::BAD_BUFFER); in importBufferImpl()
217 RETURN_ERROR(Error3::BAD_BUFFER); in importBufferImpl()
223 RETURN_ERROR(Error3::BAD_BUFFER); in importBufferImpl()
237 RETURN_ERROR(Error3::NO_RESOURCES); in importBufferImpl()
249 RETURN(Error3::NONE); in importBufferImpl()
252 Error3 lockImpl(void* raw, in lockImpl()
260 RETURN_ERROR(Error3::BAD_BUFFER); in lockImpl()
264 RETURN_ERROR(Error3::BAD_BUFFER); in lockImpl()
267 RETURN_ERROR(Error3::BAD_BUFFER); in lockImpl()
271 RETURN_ERROR(Error3::BAD_BUFFER); in lockImpl()
274 RETURN_ERROR(Error3::BAD_VALUE); in lockImpl()
278 const Error3 e = lockHostImpl(*cb, cpuUsage, accessRegion, bufferBits); in lockImpl()
279 if (e != Error3::NONE) { in lockImpl()
287 RETURN(Error3::NONE); in lockImpl()
290 Error3 lockYCbCrImpl(void* raw, in lockYCbCrImpl()
296 RETURN_ERROR(Error3::BAD_BUFFER); in lockYCbCrImpl()
300 RETURN_ERROR(Error3::BAD_BUFFER); in lockYCbCrImpl()
303 RETURN_ERROR(Error3::BAD_BUFFER); in lockYCbCrImpl()
307 RETURN_ERROR(Error3::BAD_BUFFER); in lockYCbCrImpl()
310 RETURN_ERROR(Error3::BAD_VALUE); in lockYCbCrImpl()
346 RETURN_ERROR(Error3::BAD_BUFFER); in lockYCbCrImpl()
350 const Error3 e = lockHostImpl(*cb, cpuUsage, accessRegion, bufferBits); in lockYCbCrImpl()
351 if (e != Error3::NONE) { in lockYCbCrImpl()
363 RETURN(Error3::NONE); in lockYCbCrImpl()
366 Error3 lockHostImpl(cb_handle_30_t& cb, in lockHostImpl()
381 RETURN_ERROR(Error3::NO_RESOURCES); in lockHostImpl()
457 RETURN(Error3::NONE); in lockHostImpl()
460 Error3 unlockImpl(void* raw) { in unlockImpl()
462 RETURN_ERROR(Error3::BAD_BUFFER); in unlockImpl()
466 RETURN_ERROR(Error3::BAD_BUFFER); in unlockImpl()
469 RETURN_ERROR(Error3::BAD_BUFFER); in unlockImpl()
473 RETURN_ERROR(Error3::BAD_BUFFER); in unlockImpl()
480 RETURN(Error3::NONE); in unlockImpl()
590 Error3 validateBufferSizeImpl(const cb_handle_t& /*cb*/, in validateBufferSizeImpl()
593 RETURN(Error3::NONE); in validateBufferSizeImpl()