Searched refs:CreateAshmemStd (Results 1 – 5 of 5) sorted by relevance
/ohos5.0/commonlibrary/c_utils/base/test/unittest/rust/ |
H A D | rust_utils_ashmem_test.rs | 27 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), MEMORY_SIZE) }; in test_ashmem_ffi_write_read_001() 41 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), MEMORY_SIZE) }; in test_ashmem_ffi_write_read_002() 76 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), MEMORY_SIZE) }; in test_ashmem_ffi_write_read_003() 116 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), MEMORY_SIZE) }; in test_ashmem_ffi_write_read_004() 150 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), MEMORY_SIZE) }; in test_ashmem_ffi_write_read_005() 182 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), -1) }; in test_ashmem_ffi_invalid_001() 185 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), MEMORY_SIZE) }; in test_ashmem_ffi_invalid_001() 197 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), MEMORY_SIZE) }; in test_ashmem_ffi_invalid_002() 208 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), MEMORY_SIZE) }; in test_ashmem_ffi_invalid_003() 231 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), MEMORY_SIZE) }; in test_ashmem_ffi_invalid_004() [all …]
|
/ohos5.0/commonlibrary/c_utils/base/src/rust/ |
H A D | ashmem.rs | 40 pub unsafe fn CreateAshmemStd(name: *const c_char, size: i32) -> SharedPtr<Ashmem>; in CreateAshmemStd() function 196 let c_ashmem_ptr = ffi::CreateAshmemStd(name_ptr, size); in create_ashmem_instance()
|
/ohos5.0/commonlibrary/c_utils/docs/zh-cn/ |
H A D | c_utils_guide_rust_ashmem.md | 45 | SharedPtr< Ashmem > | **CreateAshmemStd**(name: *const c_char, size: i32)<br>使用指定名称及大小创建Ashmem对象。… 65 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), MEMORY_SIZE) };
|
/ohos5.0/commonlibrary/c_utils/base/include/ |
H A D | ashmem.h | 41 std::shared_ptr<Ashmem> CreateAshmemStd(const char *name, int32_t size);
|
/ohos5.0/commonlibrary/c_utils/base/src/ |
H A D | ashmem.cpp | 39 std::shared_ptr<Ashmem> CreateAshmemStd(const char *name, int32_t size) in CreateAshmemStd() function
|