Searched refs:importedBufferHandle (Results 1 – 3 of 3) sorted by relevance
81 native_handle_t* importedBufferHandle = native_handle_clone(bufferHandle); in importBuffer() local82 if (!importedBufferHandle) { in importBuffer()88 int ret = mDriver->retain(importedBufferHandle); in importBuffer()90 native_handle_close(importedBufferHandle); in importBuffer()91 native_handle_delete(importedBufferHandle); in importBuffer()96 hidlCb(Error::NONE, importedBufferHandle); in importBuffer()
137 native_handle_t* importedBufferHandle = native_handle_clone(bufferHandle); in importBuffer() local138 if (!importedBufferHandle) { in importBuffer()144 int ret = mDriver->retain(importedBufferHandle); in importBuffer()146 native_handle_close(importedBufferHandle); in importBuffer()147 native_handle_delete(importedBufferHandle); in importBuffer()152 hidlCb(Error::NONE, importedBufferHandle); in importBuffer()
277 buffer_handle_t importedBufferHandle = nullptr; in prepareForExternalUseANDROID() local278 if(GrallocModule::getInstance()->import(backingMemory.nativeHandle, &importedBufferHandle) != 0) in prepareForExternalUseANDROID()282 if(!importedBufferHandle) in prepareForExternalUseANDROID()287 …if(GrallocModule::getInstance()->lock(importedBufferHandle, GRALLOC_USAGE_SW_WRITE_OFTEN, 0, 0, ex… in prepareForExternalUseANDROID()308 if(GrallocModule::getInstance()->unlock(importedBufferHandle) != 0) in prepareForExternalUseANDROID()313 if(GrallocModule::getInstance()->release(importedBufferHandle) != 0) in prepareForExternalUseANDROID()