Home
last modified time | relevance | path

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

/frameworks/native/libs/binder/rust/tests/
Dndk_rust_interop.rs35 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()
Dserialization.rs239 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()
Dintegration.rs613 CStr::from_ptr(out_ptr).to_str().expect("context was invalid UTF-8") in get_expected_selinux_context()
/frameworks/native/libs/binder/rust/src/
Dstate.rs156 Some(std::ffi::CStr::from_ptr(sid)) in with_calling_sid()
Dservice.rs219 instances.push(CStr::from_ptr(instance).to_owned()); in get_declared_instances()
Derror.rs180 pub(crate) unsafe fn from_ptr(ptr: *mut sys::AStatus) -> Self { in from_ptr() method
203 let description = unsafe { CStr::from_ptr(description_ptr) }; in get_description()
Dnative.rs357 .map(|s| CStr::from_ptr(*s)) in on_dump()
Dbinder.rs337 pub(crate) unsafe fn from_ptr(ptr: *const sys::AIBinder_Class) -> InterfaceClass { in from_ptr() method
350 CStr::from_ptr(raw_descriptor) in get_descriptor()
Dproxy.rs121 class.as_ref().map(|p| InterfaceClass::from_ptr(p)) in get_class()
/frameworks/native/libs/binder/rust/rpcbinder/src/server/
Dandroid.rs129 Ok(unsafe { RpcServer::from_ptr(ptr) }) in checked_from_ptr()
/frameworks/native/libs/binder/rust/rpcbinder/src/
Dsession.rs45 unsafe { RpcSession::from_ptr(binder_rpc_unstable_bindgen::ARpcSession_new()) } in new()
/frameworks/native/libs/binder/rust/src/parcel/
Dparcelable.rs836 Ok(unsafe { Status::from_ptr(status_ptr) }) in deserialize()