/aosp12/system/security/keystore2/system_property/ |
H A 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()
|
/aosp12/frameworks/native/libs/binder/rust/tests/ |
H A D | ndk_rust_interop.rs | 24 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 D | serialization.rs | 27 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 D | integration.rs | 206 use std::ffi::CStr; 295 CStr::from_ptr(out_ptr) in get_selinux_context()
|
/aosp12/frameworks/native/libs/binder/rust/src/ |
H A D | state.rs | 116 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 D | error.rs | 21 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 D | binder.rs | 26 use std::ffi::{c_void, CStr, CString}; 249 CStr::from_ptr(raw_descriptor) in get_descriptor()
|
/aosp12/system/security/keystore2/selinux/src/ |
H A 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
|
/aosp12/system/security/keystore2/src/vintf/ |
H A 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()
|
/aosp12/packages/modules/DnsResolver/ |
H A D | doh.rs | 411 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 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
|
/aosp12/packages/modules/Virtualization/authfs/src/ |
H A D | fusefs.rs | 21 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 D | inode.rs | 18 use std::ffi::{CStr, CString}; 142 fn find(&self, parent: Inode, name: &CStr) -> Option<Inode> { in find()
|
H A D | main.rs | 29 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 D | EffectsConfig.cpp | 57 return printer.CStr();
|
/aosp12/system/libvintf/ |
H A D | parse_xml.cpp | 68 return std::string{p.CStr()}; in printDocument()
|