Home
last modified time | relevance | path

Searched refs:CString (Results 1 – 8 of 8) sorted by relevance

/system/extras/simpleperf/rust/
Dlib.rs20 use std::ffi::CString;
24 fn path_to_cstr(path: &Path) -> CString { in path_to_cstr() argument
25 CString::new(path.to_str().unwrap()).unwrap() in path_to_cstr()
45 let event_name: CString = match scope { in record()
46 RecordScope::USERSPACE => CString::new("cs-etm:u").unwrap(), in record()
47 RecordScope::KERNEL => CString::new("cs-etm:k").unwrap(), in record()
48 RecordScope::BOTH => CString::new("cs-etm").unwrap(), in record()
/system/security/keystore2/src/vintf/
Dlib.rs20 use std::ffi::{CStr, CString};
77 let packages = CString::new(package).expect("Failed to make CString from package."); in get_hidl_instances()
79 CString::new(interface_name).expect("Failed to make CString from interface_name."); in get_hidl_instances()
98 let packages = CString::new(package).expect("Failed to make CString from package."); in get_aidl_instances()
100 CString::new(interface_name).expect("Failed to make CString from interface_name."); in get_aidl_instances()
/system/security/keystore2/system_property/
Dlib.rs23 ffi::{c_void, CStr, CString},
64 prop_name: CString,
72 Ok(Self { prop_name: CString::new(name)?, prop_info: null(), serial: 0 }) in new()
204 CString::new(name) in write()
207 CString::new(value) in write()
/system/security/keystore2/selinux/src/
Dlib.rs30 use std::ffi::{CStr, CString};
97 CString(CString), enumerator
133 Self::CString(cstr) => &cstr, in deref()
141 Ok(Self::CString( in new()
142 CString::new(con) in new()
198 let c_key = CString::new(key).with_context(|| { in lookup()
286 let c_tclass = CString::new(tclass).with_context(|| { in check_access()
289 let c_perm = CString::new(perm).with_context(|| { in check_access()
/system/logging/rust/
Dlogger.rs19 use std::ffi::CString;
34 tag: Option<CString>,
50 self.tag = Some(CString::new(tag).expect("Can't convert tag to CString")); in with_tag_on_device()
167 assert_eq!(config.tag.unwrap(), CString::new("my_app").unwrap()); in test_with_tag_on_device()
/system/security/keystore2/apc_compat/
Dapc_compat.rs30 use std::{ffi::CString, slice};
164 let prompt_text = CString::new(prompt_text).unwrap(); in prompt_user_confirmation()
165 let locale = CString::new(locale).unwrap(); in prompt_user_confirmation()
/system/extras/profcollectd/libprofcollectd/
Dservice.rs23 use std::ffi::CString;
39 let msg = CString::new(msg).expect("Failed to convert to CString"); in err_to_binder_status()
/system/iorap/include/binder/
Dauto_parcelable.h115 FN(CString,const char*)\