Home
last modified time | relevance | path

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

/ohos5.0/commonlibrary/c_utils/base/test/unittest/common/
H A 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);
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/ashemem_benchmark_test/
H A Dashemem_benchmark_test.cpp189 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()
/ohos5.0/commonlibrary/c_utils/base/test/unittest/rust/
H A 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()
/ohos5.0/commonlibrary/c_utils/base/src/rust/
H A Dashmem.rs78 pub fn SetProtection(self: &Ashmem, protType: i32) -> bool; in SetProtection() function
137 self.c_ashmem.SetProtection(prot_type) in set_protection()
/ohos5.0/commonlibrary/c_utils/docs/zh-cn/
H A Dc_utils_guide_rust_ashmem.md25 | bool | **SetProtection**(self: &Ashmem, protType: i32)<br>设置内核中的ashmem区域的保护权限。 |
54 | bool | **SetProtection**(self: &Ashmem, protType: i32)<br>设置内核中的ashmem区域的保护权限。 |
H A Dc-utils-guide-ashmem.md40 | bool | **SetProtection**(int protectionType)<br>设置内核中的ashmem区域的保护权限。 |
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/platform/utils/
H A Dashmem.h132 bool SetProtection(int protectionType);
/ohos5.0/commonlibrary/c_utils/base/test/fuzztest/ashmem_fuzzer/
H A Dashmem_fuzzer.cpp57 ashmem->SetProtection(prot); in AshmemTestFunc()
/ohos5.0/commonlibrary/c_utils/base/include/
H A Dashmem.h126 bool SetProtection(int protectionType) const;
/ohos5.0/foundation/communication/ipc/ipc/native/src/napi_common/include/
H A Dnapi_ashmem.h62 static napi_value SetProtection(napi_env env, napi_callback_info info);
/ohos5.0/commonlibrary/c_utils/base/src/
H A Dashmem.cpp174 bool Ashmem::SetProtection(int protectionType) const in SetProtection() function in OHOS::Ashmem
/ohos5.0/foundation/communication/ipc/ipc/native/src/napi_common/source/
H A Dnapi_ashmem.cpp520 napi_value NAPIAshmem::SetProtection(napi_env env, napi_callback_info info) in SetProtection() function in OHOS::NAPIAshmem
535 bool result = napiAshmem->GetAshmem()->SetProtection(protectionType); in SetProtection()
566 napiAshmem->GetAshmem()->SetProtection(protectionType); in SetProtectionType()
897 DECLARE_NAPI_FUNCTION("setProtection", NAPIAshmem::SetProtection), in AshmemExport()