Home
last modified time | relevance | path

Searched refs:CStr (Results 1 – 16 of 16) sorted by relevance

/aosp12/system/security/keystore2/system_property/
H A Dlib.rs23 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()
/aosp12/frameworks/native/libs/binder/rust/tests/
H A Dndk_rust_interop.rs24 use std::ffi::CStr;
34 let service_name = CStr::from_ptr(service_name).to_str().unwrap(); in rust_call_ndk()
91 let service_name = CStr::from_ptr(service_name).to_str().unwrap(); in rust_start_service()
H A Dserialization.rs27 use std::ffi::{c_void, CStr, CString};
242 .and_then(|e| CStr::from_ptr(e).to_str().ok()) in on_transact()
254 CStr::from_ptr(s) in on_transact()
H A Dintegration.rs206 use std::ffi::CStr;
295 CStr::from_ptr(out_ptr) in get_selinux_context()
/aosp12/frameworks/native/libs/binder/rust/src/
H A Dstate.rs116 for<'a> F: FnOnce(Option<&'a std::ffi::CStr>) -> T { in with_calling_sid()
129 Some(std::ffi::CStr::from_ptr(sid)) in with_calling_sid()
H A Derror.rs21 use std::ffi::CStr;
122 pub fn new_service_specific_error(err: i32, message: Option<&CStr>) -> Status { in new_service_specific_error()
150 pub fn new_exception(exception: ExceptionCode, message: Option<&CStr>) -> Status { in new_exception()
194 CStr::from_ptr(description_ptr) in get_description()
H A Dbinder.rs26 use std::ffi::{c_void, CStr, CString};
249 CStr::from_ptr(raw_descriptor) in get_descriptor()
/aosp12/system/security/keystore2/selinux/src/
H A Dlib.rs30 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
/aosp12/system/security/keystore2/src/vintf/
H A Dlib.rs20 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()
/aosp12/packages/modules/DnsResolver/
H A Ddoh.rs411 std::ffi::CStr::from_ptr(url).to_str(), in doh_new()
412 std::ffi::CStr::from_ptr(ip_addr).to_str(), in doh_new()
413 std::ffi::CStr::from_ptr(cert_path).to_str(), in doh_new()
585 assert_eq!(std::ffi::CStr::from_ptr(super::doh_init()).to_str().unwrap(), "1.0"); in doh_init()
/aosp12/system/security/keystore2/src/
H A Dpermission.rs27 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
/aosp12/packages/modules/Virtualization/authfs/src/
H A Dfusefs.rs21 use std::ffi::CStr;
201 fn lookup(&self, _ctx: Context, _parent: Inode, name: &CStr) -> io::Result<Entry> { in lookup()
/aosp12/packages/modules/Virtualization/zipfuse/src/
H A Dinode.rs18 use std::ffi::{CStr, CString};
142 fn find(&self, parent: Inode, name: &CStr) -> Option<Inode> { in find()
H A Dmain.rs29 use std::ffi::{CStr, CString};
160 fn lookup(&self, _ctx: Context, parent: Self::Inode, name: &CStr) -> io::Result<Entry> { in lookup()
/aosp12/frameworks/av/media/libeffects/config/src/
H A DEffectsConfig.cpp57 return printer.CStr();
/aosp12/system/libvintf/
H A Dparse_xml.cpp68 return std::string{p.CStr()}; in printDocument()