Searched refs:SetProtection (Results 1 – 12 of 12) 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);
189 ret = ashmem->SetProtection(PROT_READ); in BENCHMARK_F()229 ret = ashmem->SetProtection(PROT_READ); in BENCHMARK_F()264 bool ret = ashmem->SetProtection(-1); in BENCHMARK_F()358 bool ret = ashmem->SetProtection(PROT_WRITE); in BENCHMARK_F()361 ret = ashmem->SetProtection(PROT_READ); in BENCHMARK_F()364 ret = ashmem->SetProtection(PROT_READ | PROT_WRITE); in BENCHMARK_F()367 ret = ashmem->SetProtection(PROT_NONE); in BENCHMARK_F()370 ret = ashmem->SetProtection(PROT_READ); in BENCHMARK_F()
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()
78 pub fn SetProtection(self: &Ashmem, protType: i32) -> bool; in SetProtection() function137 self.c_ashmem.SetProtection(prot_type) in set_protection()
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区域的保护权限。 |
132 bool SetProtection(int protectionType);
57 ashmem->SetProtection(prot); in AshmemTestFunc()
126 bool SetProtection(int protectionType) const;
62 static napi_value SetProtection(napi_env env, napi_callback_info info);
174 bool Ashmem::SetProtection(int protectionType) const in SetProtection() function in OHOS::Ashmem
520 napi_value NAPIAshmem::SetProtection(napi_env env, napi_callback_info info) in SetProtection() function in OHOS::NAPIAshmem535 bool result = napiAshmem->GetAshmem()->SetProtection(protectionType); in SetProtection()566 napiAshmem->GetAshmem()->SetProtection(protectionType); in SetProtectionType()897 DECLARE_NAPI_FUNCTION("setProtection", NAPIAshmem::SetProtection), in AshmemExport()