Home
last modified time | relevance | path

Searched refs:SetProtection (Results 1 – 7 of 7) sorted by relevance

/commonlibrary/c_utils/base/test/unittest/common/
Dutils_ashmem_test.cpp165 ret = ashmem->SetProtection(PROT_READ);
200 ret = ashmem->SetProtection(PROT_READ);
229 bool ret = ashmem->SetProtection(-1);
307 bool ret = ashmem->SetProtection(PROT_WRITE);
310 ret = ashmem->SetProtection(PROT_READ);
313 ret = ashmem->SetProtection(PROT_READ | PROT_WRITE);
316 ret = ashmem->SetProtection(PROT_NONE);
319 ret = ashmem->SetProtection(PROT_READ);
/commonlibrary/c_utils/base/test/unittest/rust/
Drust_utils_ashmem_test.rs127 assert!(ashmem.SetProtection(ashmem::PROT_READ)); in test_ashmem_ffi_write_read_004()
154 assert!(ashmem.SetProtection(ashmem::PROT_READ)); in test_ashmem_ffi_write_read_005()
188 assert!(!ashmem.SetProtection(-1)); in test_ashmem_ffi_invalid_001()
259 assert!(ashmem.SetProtection(ashmem::PROT_WRITE)); in test_ashmem_ffi_invalid_005()
260 assert!(!ashmem.SetProtection(ashmem::PROT_READ)); in test_ashmem_ffi_invalid_005()
261 assert!(!ashmem.SetProtection(ashmem::PROT_READ | ashmem::PROT_WRITE)); in test_ashmem_ffi_invalid_005()
262 assert!(ashmem.SetProtection(ashmem::PROT_NONE)); in test_ashmem_ffi_invalid_005()
263 assert!(!ashmem.SetProtection(ashmem::PROT_READ)); in test_ashmem_ffi_invalid_005()
264 assert!(!ashmem.SetProtection(ashmem::PROT_WRITE)); in test_ashmem_ffi_invalid_005()
/commonlibrary/c_utils/base/src/rust/
Dashmem.rs86 pub fn SetProtection(self: &Ashmem, protType: i32) -> bool; in SetProtection() function
146 self.c_ashmem.SetProtection(prot_type) in set_protection()
/commonlibrary/c_utils/base/include/
Dashmem.h126 bool SetProtection(int protectionType) const;
/commonlibrary/c_utils/docs/zh-cn/
Dc_utils_guide_rust_ashmem.md25 | bool | **SetProtection**(self: &Ashmem, protType: i32)<br>设置内核中的ashmem区域的保护权限。 |
54 | bool | **SetProtection**(self: &Ashmem, protType: i32)<br>设置内核中的ashmem区域的保护权限。 |
Dc-utils-guide-ashmem.md40 | bool | **SetProtection**(int protectionType)<br>设置内核中的ashmem区域的保护权限。 |
/commonlibrary/c_utils/base/src/
Dashmem.cpp174 bool Ashmem::SetProtection(int protectionType) const in SetProtection() function in OHOS::Ashmem