Home
last modified time | relevance | path

Searched refs:set_protection (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/commonlibrary/c_utils/base/test/unittest/rust/
H A Drust_utils_ashmem_test.rs396 assert!(ashmem.set_protection(ashmem::PROT_READ)); in test_ashmem_write_read_004()
423 assert!(ashmem.set_protection(ashmem::PROT_READ)); in test_ashmem_write_read_005()
457 assert!(!ashmem.set_protection(-1)); in test_ashmem_invalid_001()
531 assert!(ashmem.set_protection(ashmem::PROT_WRITE)); in test_ashmem_invalid_005()
532 assert!(!ashmem.set_protection(ashmem::PROT_READ)); in test_ashmem_invalid_005()
533 assert!(!ashmem.set_protection(ashmem::PROT_READ | ashmem::PROT_WRITE)); in test_ashmem_invalid_005()
534 assert!(ashmem.set_protection(ashmem::PROT_NONE)); in test_ashmem_invalid_005()
535 assert!(!ashmem.set_protection(ashmem::PROT_READ)); in test_ashmem_invalid_005()
536 assert!(!ashmem.set_protection(ashmem::PROT_WRITE)); in test_ashmem_invalid_005()
/ohos5.0/commonlibrary/c_utils/base/src/rust/
H A Dashmem.rs136 pub fn set_protection(&self, prot_type: i32) -> bool { in set_protection() method