Home
last modified time | relevance | path

Searched refs:ReadFromAshmem (Results 1 – 25 of 58) sorted by relevance

123

/ohos5.0/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_ashmem_test.cpp97 auto readData = ashmem->ReadFromAshmem(sizeof(MEMORY_CONTENT), 0);
103 readData = ashmem->ReadFromAshmem(sizeof(MEMORY_CONTENT), sizeof(MEMORY_CONTENT));
137 auto readData = ashmem->ReadFromAshmem(sizeof(MEMORY_CONTENT), 0);
174 auto readData = ashmem->ReadFromAshmem(sizeof(MEMORY_CONTENT), 0);
206 auto readData = ashmem->ReadFromAshmem(sizeof(MEMORY_CONTENT), 0);
269 auto readData = ashmem->ReadFromAshmem(sizeof(MEMORY_CONTENT), 0);
291 auto readData = ashmem->ReadFromAshmem(sizeof(MEMORY_CONTENT), 0);
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/ashemem_benchmark_test/
H A Dashemem_benchmark_test.cpp110 auto readData = ashmem->ReadFromAshmem(sizeof(MEMORY_CONTENT), 0); in BENCHMARK_F()
117 readData = ashmem->ReadFromAshmem(sizeof(MEMORY_CONTENT), sizeof(MEMORY_CONTENT)); in BENCHMARK_F()
156 auto readData = ashmem->ReadFromAshmem(sizeof(MEMORY_CONTENT), 0); in BENCHMARK_F()
198 auto readData = ashmem->ReadFromAshmem(sizeof(MEMORY_CONTENT), 0); in BENCHMARK_F()
235 auto readData = ashmem->ReadFromAshmem(sizeof(MEMORY_CONTENT), 0); in BENCHMARK_F()
312 auto readData = ashmem->ReadFromAshmem(sizeof(MEMORY_CONTENT), 0); in BENCHMARK_F()
338 auto readData = ashmem->ReadFromAshmem(sizeof(MEMORY_CONTENT), 0); in BENCHMARK_F()
/ohos5.0/commonlibrary/c_utils/base/test/fuzztest/ashmem_fuzzer/
H A Dashmem_fuzzer.cpp52 ashmem->ReadFromAshmem(memoryContent.size(), 0); in AshmemTestFunc()
54 ashmem->ReadFromAshmem(memoryContent2.size(), memoryContent.size()); in AshmemTestFunc()
/ohos5.0/commonlibrary/c_utils/base/include/
H A Dashmem.h149 const void *ReadFromAshmem(int32_t size, int32_t offset) const;
225 const void *ReadFromAshmem(int32_t size, int32_t offset);
/ohos5.0/foundation/multimedia/media_foundation/src/common/
H A Dshare_memory.cpp55 auto addr = const_cast<void*>(sharedMem_->ReadFromAshmem(0, 0)); in GetRealAddr()
85 …if (memcpy_s(out, length, sharedMem_->ReadFromAshmem((int32_t)readSize, (int32_t)start), length) !… in Read()
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/common/
H A Dshare_memory.cpp49 auto addr = const_cast<void*>(sharedMem_->ReadFromAshmem(0, 0)); in GetRealAddr()
79 …if (memcpy_s(out, length, sharedMem_->ReadFromAshmem((int32_t)readSize, (int32_t)start), length) !… in Read()
/ohos5.0/commonlibrary/c_utils/base/src/rust/
H A Dashmem.rs101 pub unsafe fn ReadFromAshmem(self: &Ashmem, size: i32, offset: i32) -> *const c_void; in ReadFromAshmem() function
185 let c_void_ptr = self.c_ashmem.ReadFromAshmem(size, offset); in read_from_ashmem()
/ohos5.0/commonlibrary/c_utils/base/test/unittest/rust/
H A Drust_utils_ashmem_test.rs56 …readout_ptr = ashmem::ffi::AsCharPtr(ashmem.ReadFromAshmem(MEMORY_CONTENT.len().try_into().expect(… in test_ashmem_ffi_write_read_002()
98 …readout_ptr = ashmem::ffi::AsCharPtr(ashmem.ReadFromAshmem(MEMORY_CONTENT.len().try_into().expect(… in test_ashmem_ffi_write_read_003()
133 …readout_ptr = ashmem::ffi::AsCharPtr(ashmem.ReadFromAshmem(MEMORY_CONTENT.len().try_into().expect(… in test_ashmem_ffi_write_read_004()
165 …readout_ptr = ashmem::ffi::AsCharPtr(ashmem.ReadFromAshmem(MEMORY_CONTENT.len().try_into().expect(… in test_ashmem_ffi_write_read_005()
222 …readout_ptr = ashmem::ffi::AsCharPtr(ashmem.ReadFromAshmem(MEMORY_CONTENT.len().try_into().expect(… in test_ashmem_ffi_invalid_003()
245 …readout_ptr = ashmem::ffi::AsCharPtr(ashmem.ReadFromAshmem(MEMORY_CONTENT.len().try_into().expect(… in test_ashmem_ffi_invalid_004()
/ohos5.0/foundation/ai/neural_network_runtime/example/drivers/nnrt/v1_0/hdi_cpu_service/src/
H A Dprepared_model_service.cpp302 auto data = const_cast<void*>(ashptr->ReadFromAshmem(input.data.dataSize, 0)); in SetInputs()
332 auto data = const_cast<void*>(ashptr->ReadFromAshmem(output.data.dataSize, 0)); in SetOutputs()
400 const void* data = ashptr->ReadFromAshmem(buffer.dataSize, buffer.offset); in ParseBuffer()
H A Dshared_buffer_parser.cpp80 auto bufferAddr = m_ashptr->ReadFromAshmem(buffer.dataSize, buffer.offset); in Init()
/ohos5.0/commonlibrary/c_utils/base/src/
H A Dashmem.cpp280 const void *Ashmem::ReadFromAshmem(int32_t size, int32_t offset) const in ReadFromAshmem() function in OHOS::Ashmem
282 const void *Ashmem::ReadFromAshmem(int32_t size, int32_t offset) in ReadFromAshmem()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/platform/utils/
H A Dashmem.h175 const void *ReadFromAshmem(int32_t size, int32_t offset);
/ohos5.0/foundation/ai/neural_network_runtime/example/drivers/nnrt/v2_0/hdi_cpu_service/src/
H A Dprepared_model_service.cpp352 auto data = const_cast<void*>(ashptr->ReadFromAshmem(input.data.dataSize, 0)); in SetInputs()
382 auto data = const_cast<void*>(ashptr->ReadFromAshmem(output.data.dataSize, 0)); in SetOutputs()
462 const void* data = ashptr->ReadFromAshmem(buffer.dataSize, buffer.offset); in ParseBuffer()
H A Dshared_buffer_parser.cpp80 auto bufferAddr = m_ashptr->ReadFromAshmem(buffer.dataSize, buffer.offset); in Init()
/ohos5.0/base/hiviewdfx/hiview/base/utility/include/
H A Dash_memory_utils.h57 auto origin = ashmem->ReadFromAshmem(allSize[i], offset); in ReadBulkData()
/ohos5.0/commonlibrary/c_utils/docs/zh-cn/
H A Dc-utils-guide-ashmem.md39 | const void * | **ReadFromAshmem**(int32_t size, int32_t offset)<br>从ashmem内存区域`offset`处读出数据。 |
/ohos5.0/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
H A Dash_mem_utils.cpp118 auto origin = ashmem->ReadFromAshmem(allSize[i], offset); in ReadBulkData()
/ohos5.0/base/hiviewdfx/hisysevent/adapter/native/idl/src/
H A Dash_mem_utils.cpp121 auto origin = ashmem->ReadFromAshmem(allSize[i], offset); in ReadBulkData()
/ohos5.0/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/base/
H A Ddata_operation_callback.cpp102 const uint8_t *mem = static_cast<const uint8_t *>(ashmem->ReadFromAshmem(size, 0)); in CreateArrayBufferFromAshmem()
/ohos5.0/foundation/communication/ipc/ipc/native/src/napi_common/include/
H A Dnapi_ashmem.h59 static napi_value ReadFromAshmem(napi_env env, napi_callback_info info);
/ohos5.0/drivers/external_device_manager/frameworks/ddk/base/
H A Dddk_api.cpp109 …reinterpret_cast<const uint8_t *>(g_shareMemoryMap[ashmem->ashmemFd]->ReadFromAshmem(ashmem->size,… in OH_DDK_MapAshmem()
/ohos5.0/foundation/distributeddatamgr/data_share/frameworks/native/common/src/
H A Ddatashare_template.cpp107 uint8_t *data = (uint8_t *)node.ashmem->ReadFromAshmem(node.ashmem->GetAshmemSize(), 0); in GetData()
/ohos5.0/drivers/peripheral/codec/hal/idl_service/src/
H A Dcodec_share_buffer.cpp112 …void *sharedPtr = const_cast<void *>(shMem_->ReadFromAshmem(codecBuffer.filledLen, codecBuffer.off… in EmptyOmxBuffer()
/ohos5.0/drivers/peripheral/codec/hal/v2.0/hdi_impl/src/
H A Dcodec_share_buffer.cpp126 …void *sharedPtr = const_cast<void *>(shMem_->ReadFromAshmem(codecBuffer.filledLen, codecBuffer.off… in EmptyOmxBuffer()
/ohos5.0/foundation/communication/ipc/ipc/native/src/napi_common/source/
H A Dnapi_ashmem.cpp394 napi_value NAPIAshmem::ReadFromAshmem(napi_env env, napi_callback_info info) in ReadFromAshmem() function in OHOS::NAPIAshmem
423 const void *result = napiAshmem->GetAshmem()->ReadFromAshmem(size, offset); in ReadFromAshmem()
486 const void *result = napiAshmem->GetAshmem()->ReadFromAshmem(size, offset); in ReadAshmem()
850 const void *result = napiAshmem->GetAshmem()->ReadFromAshmem(size, offset); in ReadDataFromAshmem()
895 DECLARE_NAPI_FUNCTION("readFromAshmem", NAPIAshmem::ReadFromAshmem), in AshmemExport()

123