/commonlibrary/c_utils/base/test/unittest/common/ |
H A D | utils_ashmem_test.cpp | 91 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); in HWTEST_F() 94 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), sizeof(MEMORY_CONTENT)); in HWTEST_F() 126 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); in HWTEST_F() 134 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), sizeof(MEMORY_CONTENT)); in HWTEST_F() 160 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); in HWTEST_F() 197 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); in HWTEST_F() 203 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); in HWTEST_F() 266 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); in HWTEST_F() 288 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); in HWTEST_F() 338 ret = ashmem->WriteToAshmem(nullpt in HWTEST_F() [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/ashemem_benchmark_test/ |
H A D | ashemem_benchmark_test.cpp | 104 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); in BENCHMARK_F() 107 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), sizeof(MEMORY_CONTENT)); in BENCHMARK_F() 145 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); in BENCHMARK_F() 153 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), sizeof(MEMORY_CONTENT)); in BENCHMARK_F() 184 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); in BENCHMARK_F() 226 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); in BENCHMARK_F() 232 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); in BENCHMARK_F() 309 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); in BENCHMARK_F() 335 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); in BENCHMARK_F() 393 ret = ashmem->WriteToAshmem(nullpt in BENCHMARK_F() [all...] |
/commonlibrary/c_utils/base/test/unittest/rust/ |
H A D | rust_utils_ashmem_test.rs | 50 assert!(ashmem.WriteToAshmem(c_content_ptr, MEMORY_CONTENT.len().try_into().expect("Invalid content size."), 0)); in test_ashmem_ffi_write_read_002() 51 assert!(ashmem.WriteToAshmem(c_content_ptr, MEMORY_CONTENT.len().try_into().expect("Invalid content size."), in test_ashmem_ffi_write_read_002() 85 assert!(ashmem.WriteToAshmem(c_content_ptr, MEMORY_CONTENT.len().try_into().expect("Invalid content size."), 0)); in test_ashmem_ffi_write_read_003() 92 assert!(!ashmem.WriteToAshmem(c_content_ptr, MEMORY_CONTENT.len().try_into().expect("Invalid content size."), in test_ashmem_ffi_write_read_003() 123 assert!(ashmem.WriteToAshmem(c_content_ptr, MEMORY_CONTENT.len().try_into().expect("Invalid content size."), 0)); in test_ashmem_ffi_write_read_004() 158 assert!(!ashmem.WriteToAshmem(c_content_ptr, MEMORY_CONTENT.len().try_into().expect("Invalid content size."), 0)); in test_ashmem_ffi_write_read_005() 217 assert!(!ashmem.WriteToAshmem(c_content_ptr, MEMORY_CONTENT.len().try_into().expect("Invalid content size."), 0)); in test_ashmem_ffi_invalid_003() 240 assert!(!ashmem.WriteToAshmem(c_content_ptr, MEMORY_CONTENT.len().try_into().expect("Invalid content size."), 0)); in test_ashmem_ffi_invalid_004() 281 assert!(!ashmem.WriteToAshmem(ptr::null(), MEMORY_CONTENT.len().try_into().expect("Invalid content size."), 0)); in test_ashmem_ffi_invalid_006() 282 assert!(!ashmem.WriteToAshmem(c_content_pt in test_ashmem_ffi_invalid_006() [all...] |
/commonlibrary/c_utils/base/test/fuzztest/ashmem_fuzzer/ |
H A D | ashmem_fuzzer.cpp | 41 ret = ashmem->WriteToAshmem(memoryContent.c_str(), memoryContent.size(), 0); in AshmemTestFunc() 47 ret = ashmem->WriteToAshmem(memoryContent2.c_str(), memoryContent2.size(), memoryContent.size()); in AshmemTestFunc()
|
/commonlibrary/c_utils/base/include/ |
H A D | ashmem.h | 148 bool WriteToAshmem(const void *data, int32_t size, int32_t offset) const; 210 bool WriteToAshmem(const void *data, int32_t size, int32_t offset);
|
/commonlibrary/c_utils/base/src/rust/ |
H A D | ashmem.rs | 90 pub unsafe fn WriteToAshmem( in WriteToAshmem() functions 170 self.c_ashmem.WriteToAshmem(c_void_ptr, size, offset) in write_to_ashmem()
|
/commonlibrary/c_utils/base/src/ |
H A D | ashmem.cpp | 255 bool Ashmem::WriteToAshmem(const void *data, int32_t size, int32_t offset) const in WriteToAshmem() function in OHOS::Ashmem 257 bool Ashmem::WriteToAshmem(const void *data, int32_t size, int32_t offset) in WriteToAshmem()
|