Searched refs:SetProtection (Results 1 – 7 of 7) sorted by relevance
165 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);
127 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()
86 pub fn SetProtection(self: &Ashmem, protType: i32) -> bool; in SetProtection() function146 self.c_ashmem.SetProtection(prot_type) in set_protection()
126 bool SetProtection(int protectionType) const;
25 | bool | **SetProtection**(self: &Ashmem, protType: i32)<br>设置内核中的ashmem区域的保护权限。 |54 | bool | **SetProtection**(self: &Ashmem, protType: i32)<br>设置内核中的ashmem区域的保护权限。 |
40 | bool | **SetProtection**(int protectionType)<br>设置内核中的ashmem区域的保护权限。 |
174 bool Ashmem::SetProtection(int protectionType) const in SetProtection() function in OHOS::Ashmem