Searched refs:from_ptr (Results 1 – 12 of 12) sorted by relevance
35 let service_name = unsafe { CStr::from_ptr(service_name) }.to_str().unwrap(); in rust_call_ndk()93 let service_name = unsafe { CStr::from_ptr(service_name) }.to_str().unwrap(); in rust_start_service()
239 unsafe { expected.as_ref().and_then(|e| CStr::from_ptr(e).to_str().ok()) }; in on_transact()251 CStr::from_ptr(s).to_str().expect("String was not UTF-8").to_owned() in on_transact()
613 CStr::from_ptr(out_ptr).to_str().expect("context was invalid UTF-8") in get_expected_selinux_context()
156 Some(std::ffi::CStr::from_ptr(sid)) in with_calling_sid()
219 instances.push(CStr::from_ptr(instance).to_owned()); in get_declared_instances()
180 pub(crate) unsafe fn from_ptr(ptr: *mut sys::AStatus) -> Self { in from_ptr() method203 let description = unsafe { CStr::from_ptr(description_ptr) }; in get_description()
357 .map(|s| CStr::from_ptr(*s)) in on_dump()
337 pub(crate) unsafe fn from_ptr(ptr: *const sys::AIBinder_Class) -> InterfaceClass { in from_ptr() method350 CStr::from_ptr(raw_descriptor) in get_descriptor()
121 class.as_ref().map(|p| InterfaceClass::from_ptr(p)) in get_class()
129 Ok(unsafe { RpcServer::from_ptr(ptr) }) in checked_from_ptr()
45 unsafe { RpcSession::from_ptr(binder_rpc_unstable_bindgen::ARpcSession_new()) } in new()
836 Ok(unsafe { Status::from_ptr(status_ptr) }) in deserialize()