Searched refs:from_ptr (Results 1 – 12 of 12) sorted by relevance
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()
242 .and_then(|e| CStr::from_ptr(e).to_str().ok()) in on_transact()254 CStr::from_ptr(s) in on_transact()
295 CStr::from_ptr(out_ptr) in get_selinux_context()
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()
129 Some(std::ffi::CStr::from_ptr(sid)) in with_calling_sid()
166 pub(crate) unsafe fn from_ptr(ptr: *mut sys::AStatus) -> Self { in from_ptr() method194 CStr::from_ptr(description_ptr) in get_description()
235 pub(crate) unsafe fn from_ptr(ptr: *const sys::AIBinder_Class) -> InterfaceClass { in from_ptr() method249 CStr::from_ptr(raw_descriptor) in get_descriptor()
118 class.as_ref().map(|p| InterfaceClass::from_ptr(p)) in get_class()
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()
44 unsafe { (0..self.len).map(|i| CStr::from_ptr(*self.data.add(i)).to_str()) }.collect() in as_vec()
132 Self::Raw(p) => unsafe { CStr::from_ptr(*p) }, in deref()
626 Status::from_ptr(status_ptr) in deserialize()