Home
last modified time | relevance | path

Searched refs:sharedMemory (Results 1 - 2 of 2) sorted by relevance

/drivers/peripheral/codec/hal/idl_service/src/
H A Dcodec_share_buffer.cpp72 std::shared_ptr<Ashmem> sharedMemory = std::make_shared<Ashmem>(sharedFD, codecBuffer.allocLen); in Allocate() local
73 if (sharedMemory == nullptr) { in Allocate()
74 CODEC_LOGE("Failed to init sharedMemory"); in Allocate()
79 mapd = sharedMemory->MapReadAndWriteAshmem(); in Allocate()
81 mapd = sharedMemory->MapReadOnlyAshmem(); in Allocate()
91 buffer->SetAshMem(sharedMemory); in Allocate()
/drivers/peripheral/codec/hal/v2.0/hdi_impl/src/
H A Dcodec_share_buffer.cpp80 std::shared_ptr<Ashmem> sharedMemory = std::make_shared<Ashmem>(sharedFD, codecBuffer.allocLen); in Allocate() local
81 if (sharedMemory == nullptr) { in Allocate()
87 mapd = sharedMemory->MapReadAndWriteAshmem(); in Allocate()
89 mapd = sharedMemory->MapReadOnlyAshmem(); in Allocate()
101 buffer->SetAshMem(sharedMemory); in Allocate()

Completed in 2 milliseconds