Home
last modified time | relevance | path

Searched refs:write_to_ashmem (Results 1 - 2 of 2) sorted by relevance

/commonlibrary/c_utils/base/test/unittest/rust/
H A Drust_utils_ashmem_test.rs321 assert!(ashmem.write_to_ashmem(c_content.as_ptr(), MEMORY_CONTENT.len().try_into().expect("Invalid content size."), 0)); in test_ashmem_write_read_002()
322 assert!(ashmem.write_to_ashmem(c_content.as_ptr(), MEMORY_CONTENT.len().try_into().expect("Invalid content size."), in test_ashmem_write_read_002()
354 assert!(ashmem.write_to_ashmem(c_content.as_ptr(), MEMORY_CONTENT.len().try_into().expect("Invalid content size."), 0)); in test_ashmem_write_read_003()
361 assert!(!ashmem.write_to_ashmem(c_content.as_ptr(), MEMORY_CONTENT.len().try_into().expect("Invalid content size."), in test_ashmem_write_read_003()
392 assert!(ashmem.write_to_ashmem(c_content.as_ptr(), MEMORY_CONTENT.len().try_into().expect("Invalid content size."), 0)); in test_ashmem_write_read_004()
426 assert!(!ashmem.write_to_ashmem(c_content.as_ptr(), MEMORY_CONTENT.len().try_into().expect("Invalid content size."), 0)); in test_ashmem_write_read_005()
488 assert!(!ashmem.write_to_ashmem(c_content.as_ptr(), MEMORY_CONTENT.len().try_into().expect("Invalid content size."), 0)); in test_ashmem_invalid_003()
511 assert!(!ashmem.write_to_ashmem(c_content.as_ptr(), MEMORY_CONTENT.len().try_into().expect("Invalid content size."), 0)); in test_ashmem_invalid_004()
552 assert!(!ashmem.write_to_ashmem(ptr::null(), MEMORY_CONTENT.len().try_into().expect("Invalid content size."), 0)); in test_ashmem_invalid_006()
553 assert!(!ashmem.write_to_ashmem(c_conten in test_ashmem_invalid_006()
[all...]
/commonlibrary/c_utils/base/src/rust/
H A Dashmem.rs168 pub unsafe fn write_to_ashmem(&self, data: *const c_char, size: i32, offset: i32) -> bool { in write_to_ashmem() functions

Completed in 2 milliseconds