Home
last modified time | relevance | path

Searched refs:from_ptr (Results 1 – 12 of 12) sorted by relevance

/aosp12/frameworks/native/libs/binder/rust/tests/
H A Dndk_rust_interop.rs34 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.rs242 .and_then(|e| CStr::from_ptr(e).to_str().ok()) in on_transact()
254 CStr::from_ptr(s) in on_transact()
H A Dintegration.rs295 CStr::from_ptr(out_ptr) in get_selinux_context()
/aosp12/system/security/keystore2/system_property/
H A Dlib.rs101 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()
/aosp12/frameworks/native/libs/binder/rust/src/
H A Dstate.rs129 Some(std::ffi::CStr::from_ptr(sid)) in with_calling_sid()
H A Derror.rs166 pub(crate) unsafe fn from_ptr(ptr: *mut sys::AStatus) -> Self { in from_ptr() method
194 CStr::from_ptr(description_ptr) in get_description()
H A Dbinder.rs235 pub(crate) unsafe fn from_ptr(ptr: *const sys::AIBinder_Class) -> InterfaceClass { in from_ptr() method
249 CStr::from_ptr(raw_descriptor) in get_descriptor()
H A Dproxy.rs118 class.as_ref().map(|p| InterfaceClass::from_ptr(p)) in get_class()
/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/vintf/
H A Dlib.rs44 unsafe { (0..self.len).map(|i| CStr::from_ptr(*self.data.add(i)).to_str()) }.collect() in as_vec()
/aosp12/system/security/keystore2/selinux/src/
H A Dlib.rs132 Self::Raw(p) => unsafe { CStr::from_ptr(*p) }, in deref()
/aosp12/frameworks/native/libs/binder/rust/src/parcel/
H A Dparcelable.rs626 Status::from_ptr(status_ptr) in deserialize()