Home
last modified time | relevance | path

Searched refs:CStr (Results 1 – 10 of 10) sorted by relevance

/frameworks/native/libs/binder/rust/tests/
Dndk_rust_interop.rs24 use std::ffi::CStr;
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()
Dserialization.rs28 use std::ffi::{c_void, CStr, CString};
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()
Dintegration.rs28 use std::ffi::CStr;
121 fn dump(&self, _writer: &mut dyn Write, args: &[&CStr]) -> Result<(), StatusCode> { in dump()
369 use std::ffi::CStr;
613 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.rs142 for<'a> F: FnOnce(Option<&'a std::ffi::CStr>) -> T, in with_calling_sid()
156 Some(std::ffi::CStr::from_ptr(sid)) in with_calling_sid()
Dnative.rs26 use std::ffi::{c_void, CStr};
357 .map(|s| CStr::from_ptr(*s)) in on_dump()
480 fn on_dump(&self, _writer: &mut dyn Write, _args: &[&CStr]) -> Result<()> { in on_dump()
Dservice.rs22 use std::ffi::{c_void, CStr, CString};
219 instances.push(CStr::from_ptr(instance).to_owned()); in get_declared_instances()
Derror.rs21 use std::ffi::{CStr, CString};
125 pub fn new_service_specific_error(err: i32, message: Option<&CStr>) -> Status { in new_service_specific_error()
154 pub fn new_exception(exception: ExceptionCode, message: Option<&CStr>) -> Status { in new_exception()
203 let description = unsafe { CStr::from_ptr(description_ptr) }; in get_description()
Dbinder.rs28 use std::ffi::{c_void, CStr, CString};
65 fn dump(&self, _writer: &mut dyn Write, _args: &[&CStr]) -> Result<()> { in dump()
168 fn on_dump(&self, file: &mut dyn Write, args: &[&CStr]) -> Result<()>; in on_dump()
350 CStr::from_ptr(raw_descriptor) in get_descriptor()
937 …fn on_dump(&self, writer: &mut dyn std::io::Write, args: &[&std::ffi::CStr]) -> std::result::Resul…
/frameworks/native/libs/binder/rust/rpcbinder/src/
Dsession.rs181 port: &std::ffi::CStr, in setup_trusty_client() argument
/frameworks/av/media/libeffects/config/src/
DEffectsConfig.cpp58 return printer.CStr();