Home
last modified time | relevance | path

Searched refs:CString (Results 1 – 8 of 8) sorted by relevance

/frameworks/native/libs/binder/rust/src/
Dservice.rs22 use std::ffi::{c_void, CStr, CString};
33 let instance = CString::new(identifier).unwrap(); in add_service()
54 let instance = CString::new(identifier).unwrap(); in register_lazy_service()
149 let name = CString::new(name).ok()?; in get_service()
158 let name = CString::new(name).ok()?; in check_service()
168 let name = CString::new(name).ok()?; in wait_for_service()
196 let interface = CString::new(interface).or(Err(StatusCode::UNEXPECTED_NULL))?; in is_declared()
214 if let Some(instances) = unsafe { opaque.cast::<Vec<CString>>().as_mut() } { in get_declared_instances()
226 let interface = CString::new(interface).or(Err(StatusCode::UNEXPECTED_NULL))?; in get_declared_instances()
227 let mut instances: Vec<CString> = vec![]; in get_declared_instances()
[all …]
Derror.rs21 use std::ffi::{CStr, CString};
108 fn to_cstring<T: AsRef<str>>(message: T) -> Option<CString> { in to_cstring() argument
109 CString::new(message.as_ref()).ok() in to_cstring()
Dproxy.rs32 use std::ffi::{c_void, CString};
311 let args: Vec<_> = args.iter().map(|a| CString::new(*a).unwrap()).collect(); in dump()
Dbinder.rs28 use std::ffi::{c_void, CStr, CString};
305 let descriptor = CString::new(I::get_descriptor()).unwrap(); in new()
/frameworks/native/libs/binder/rust/rpcbinder/src/server/
Dandroid.rs21 use std::ffi::CString;
103 let address = match CString::new(address) { in new_inet()
/frameworks/native/libs/binder/rust/rpcbinder/src/
Dsession.rs112 let socket_name = match std::ffi::CString::new(socket_name) { in setup_unix_domain_client()
158 let address = match std::ffi::CString::new(address) { in setup_inet_client()
/frameworks/native/libs/binder/rust/tests/
Dserialization.rs28 use std::ffi::{c_void, CStr, CString};
302 Some(&CString::new("a status message").unwrap()), in on_transact()
306 Some(&CString::new("a service-specific error").unwrap()), in on_transact()
/frameworks/native/libs/binder/trusty/rust/binder_rpc_test/
Dmain.rs24 use trusty_std::ffi::{CString, FallibleCString};
45 let port = CString::try_new(port).expect("Failed to allocate port name"); in get_service()