Home
last modified time | relevance | path

Searched refs:ReadFromAshmem (Results 1 - 7 of 7) sorted by relevance

/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_ashmem_test.cpp97 auto readData = ashmem->ReadFromAshmem(sizeof(MEMORY_CONTENT), 0); in HWTEST_F()
103 readData = ashmem->ReadFromAshmem(sizeof(MEMORY_CONTENT), sizeof(MEMORY_CONTENT)); in HWTEST_F()
137 auto readData = ashmem->ReadFromAshmem(sizeof(MEMORY_CONTENT), 0); in HWTEST_F()
174 auto readData = ashmem->ReadFromAshmem(sizeof(MEMORY_CONTENT), 0); in HWTEST_F()
206 auto readData = ashmem->ReadFromAshmem(sizeof(MEMORY_CONTENT), 0); in HWTEST_F()
269 auto readData = ashmem->ReadFromAshmem(sizeof(MEMORY_CONTENT), 0); in HWTEST_F()
291 auto readData = ashmem->ReadFromAshmem(sizeof(MEMORY_CONTENT), 0); in HWTEST_F()
/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()
/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);
/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()
/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() functions
185 let c_void_ptr = self.c_ashmem.ReadFromAshmem(size, offset); in read_from_ashmem()
/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("Invalid content size."), 0)); in test_ashmem_ffi_write_read_002()
98 readout_ptr = ashmem::ffi::AsCharPtr(ashmem.ReadFromAshmem(MEMORY_CONTENT.len().try_into().expect("Invalid content size."), 0)); in test_ashmem_ffi_write_read_003()
133 readout_ptr = ashmem::ffi::AsCharPtr(ashmem.ReadFromAshmem(MEMORY_CONTENT.len().try_into().expect("Invalid content size."), 0)); in test_ashmem_ffi_write_read_004()
165 readout_ptr = ashmem::ffi::AsCharPtr(ashmem.ReadFromAshmem(MEMORY_CONTENT.len().try_into().expect("Invalid content size."), 0)); in test_ashmem_ffi_write_read_005()
222 readout_ptr = ashmem::ffi::AsCharPtr(ashmem.ReadFromAshmem(MEMORY_CONTENT.len().try_into().expect("Invalid content size."), 0)); in test_ashmem_ffi_invalid_003()
245 readout_ptr = ashmem::ffi::AsCharPtr(ashmem.ReadFromAshmem(MEMORY_CONTENT.len().try_into().expect("Invalid content size."), 0)); in test_ashmem_ffi_invalid_004()
/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()

Completed in 4 milliseconds