Home
last modified time | relevance | path

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

/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_ashmem_test.cpp165 ret = ashmem->SetProtection(PROT_READ); in HWTEST_F()
200 ret = ashmem->SetProtection(PROT_READ); in HWTEST_F()
229 bool ret = ashmem->SetProtection(-1); in HWTEST_F()
307 bool ret = ashmem->SetProtection(PROT_WRITE); in HWTEST_F()
310 ret = ashmem->SetProtection(PROT_READ); in HWTEST_F()
313 ret = ashmem->SetProtection(PROT_READ | PROT_WRITE); in HWTEST_F()
316 ret = ashmem->SetProtection(PROT_NONE); in HWTEST_F()
319 ret = ashmem->SetProtection(PROT_READ); in HWTEST_F()
/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()
/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()
/commonlibrary/c_utils/base/src/rust/
H A Dashmem.rs78 pub fn SetProtection(self: &Ashmem, protType: i32) -> bool; in SetProtection() functions
137 self.c_ashmem.SetProtection(prot_type) in set_protection()
/commonlibrary/c_utils/base/test/fuzztest/ashmem_fuzzer/
H A Dashmem_fuzzer.cpp57 ashmem->SetProtection(prot); in AshmemTestFunc()
/commonlibrary/c_utils/base/include/
H A Dashmem.h126 bool SetProtection(int protectionType) const;
/commonlibrary/c_utils/base/src/
H A Dashmem.cpp174 bool Ashmem::SetProtection(int protectionType) const in SetProtection() function in OHOS::Ashmem

Completed in 24 milliseconds