Searched refs:CStr (Results 1 – 5 of 5) sorted by relevance
/system/security/keystore2/system_property/ |
D | lib.rs | 23 ffi::{c_void, CStr, CString}, 91 fn read_raw(prop_info: *const PropInfo, mut f: impl FnOnce(Option<&CStr>, Option<&CStr>)) { in read_raw() argument 101 let name = if name.is_null() { None } else { Some(CStr::from_ptr(name)) }; in read_raw() 102 let value = if value.is_null() { None } else { Some(CStr::from_ptr(value)) }; in read_raw() 103 let f = &mut *res_p.cast::<&mut dyn FnMut(Option<&CStr>, Option<&CStr>)>(); in read_raw() 107 let mut f: &mut dyn FnOnce(Option<&CStr>, Option<&CStr>) = &mut f; in read_raw()
|
/system/security/keystore2/src/vintf/ |
D | lib.rs | 20 use std::ffi::{CStr, CString}; 44 unsafe { (0..self.len).map(|i| CStr::from_ptr(*self.data.add(i)).to_str()) }.collect() in as_vec()
|
/system/security/keystore2/selinux/src/ |
D | lib.rs | 30 use std::ffi::{CStr, CString}; 128 type Target = CStr; 132 Self::Raw(p) => unsafe { CStr::from_ptr(*p) }, in deref() 283 pub fn check_access(source: &CStr, target: &CStr, tclass: &str, perm: &str) -> Result<()> { in check_access() argument
|
/system/security/keystore2/src/ |
D | permission.rs | 27 use std::ffi::CStr; 435 pub fn check_keystore_permission(caller_ctx: &CStr, perm: KeystorePerm) -> anyhow::Result<()> { in check_keystore_permission() argument 454 caller_ctx: &CStr, in check_grant_permission() argument 506 caller_ctx: &CStr, in check_key_permission() argument
|
/system/libvintf/ |
D | parse_xml.cpp | 68 return std::string{p.CStr()}; in printDocument()
|