Searched refs:ReadFromAshmem (Results 1 - 7 of 7) sorted by relevance
/commonlibrary/c_utils/base/test/unittest/common/ |
H A D | utils_ashmem_test.cpp | 97 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 D | ashmem_fuzzer.cpp | 52 ashmem->ReadFromAshmem(memoryContent.size(), 0); in AshmemTestFunc() 54 ashmem->ReadFromAshmem(memoryContent2.size(), memoryContent.size()); in AshmemTestFunc()
|
/commonlibrary/c_utils/base/include/ |
H A D | ashmem.h | 149 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 D | ashemem_benchmark_test.cpp | 110 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 D | ashmem.rs | 101 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 D | rust_utils_ashmem_test.rs | 56 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 D | ashmem.cpp | 280 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