Home
last modified time | relevance | path

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

/system/librustutils/
Dsystem_properties.rs22 ffi::{c_uint, c_void, CStr, CString},
98 fn read_raw(prop_info: *const PropInfo, mut f: impl FnMut(Option<&CStr>, Option<&CStr>)) { in read_raw() argument
111 Some(CStr::from_ptr(name)) in read_raw()
116 Some(CStr::from_ptr(value)) in read_raw()
118 let f = &mut *res_p.cast::<&mut dyn FnMut(Option<&CStr>, Option<&CStr>)>(); in read_raw()
122 let mut f: &mut dyn FnMut(Option<&CStr>, Option<&CStr>) = &mut f; in read_raw()
281 let name = unsafe { CStr::from_ptr(name) }.to_str().unwrap(); in foreach()
282 let value = unsafe { CStr::from_ptr(value) }.to_str().unwrap(); in foreach()
/system/security/diced/sample_inputs/src/
Dsample_inputs.rs26 use std::ffi::CStr;
110 Some(CStr::from_bytes_with_nul(b"ABL\0").unwrap()), in make_sample_bcc_and_cdis()
132 Some(CStr::from_bytes_with_nul(b"AVB\0").unwrap()), in make_sample_bcc_and_cdis()
149 Some(CStr::from_bytes_with_nul(b"Android\0").unwrap()), in make_sample_bcc_and_cdis()
/system/security/keystore2/selinux/src/
Dlib.rs30 use std::ffi::{CStr, CString};
128 type Target = CStr;
132 Self::Raw(p) => unsafe { CStr::from_ptr(*p) }, in deref()
283 pub fn check_access(source: &CStr, target: &CStr, tclass: &str, perm: &str) -> Result<()> { in check_access() argument
325 pub fn setcon(target: &CStr) -> std::io::Result<()> { in setcon()
637 pub fn check_permission<T: ClassPermission>(source: &CStr, target: &CStr, perm: T) -> Result<()> { in check_permission() argument
/system/security/diced/open_dice/src/
Dretry.rs26 use std::ffi::CStr;
87 name: Option<&CStr>, in retry_bcc_format_config_descriptor() argument
Dbcc.rs23 use std::{ffi::CStr, ptr};
28 name: Option<&CStr>, in bcc_format_config_descriptor() argument
/system/tools/aidl/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/
DIDeprecated.rs47 …fn dump(&self, _file: &std::fs::File, _args: &[&std::ffi::CStr]) -> std::result::Result<(), binder… in new_async_binder()
DIOldName.rs47 …fn dump(&self, _file: &std::fs::File, _args: &[&std::ffi::CStr]) -> std::result::Result<(), binder… in new_async_binder()
DINamedCallback.rs47 …fn dump(&self, _file: &std::fs::File, _args: &[&std::ffi::CStr]) -> std::result::Result<(), binder… in new_async_binder()
DINewName.rs47 …fn dump(&self, _file: &std::fs::File, _args: &[&std::ffi::CStr]) -> std::result::Result<(), binder… in new_async_binder()
DICircular.rs47 …fn dump(&self, _file: &std::fs::File, _args: &[&std::ffi::CStr]) -> std::result::Result<(), binder… in new_async_binder()
DListOfInterfaces.rs71 …fn dump(&self, _file: &std::fs::File, _args: &[&std::ffi::CStr]) -> std::result::Result<(), binder… in new_async_binder()
151 …fn dump(&self, _file: &std::fs::File, _args: &[&std::ffi::CStr]) -> std::result::Result<(), binder… in new_async_binder()
DArrayOfInterfaces.rs71 …fn dump(&self, _file: &std::fs::File, _args: &[&std::ffi::CStr]) -> std::result::Result<(), binder… in new_async_binder()
151 …fn dump(&self, _file: &std::fs::File, _args: &[&std::ffi::CStr]) -> std::result::Result<(), binder… in new_async_binder()
DITestService.rs251 …fn dump(&self, _file: &std::fs::File, _args: &[&std::ffi::CStr]) -> std::result::Result<(), binder… in new_async_binder()
4450 …fn dump(&self, _file: &std::fs::File, _args: &[&std::ffi::CStr]) -> std::result::Result<(), binder… in new_async_binder()
/system/security/keystore2/src/
Dpermission.rs33 use std::ffi::CStr;
268 pub fn check_keystore_permission(caller_ctx: &CStr, perm: KeystorePerm) -> anyhow::Result<()> { in check_keystore_permission() argument
287 caller_ctx: &CStr, in check_grant_permission() argument
336 caller_ctx: &CStr, in check_key_permission() argument
/system/tools/aidl/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/nested/
DINestedService.rs50 …fn dump(&self, _file: &std::fs::File, _args: &[&std::ffi::CStr]) -> std::result::Result<(), binder… in new_async_binder()
273 …fn dump(&self, _file: &std::fs::File, _args: &[&std::ffi::CStr]) -> std::result::Result<(), binder… in new_async_binder()
/system/tools/aidl/tests/golden_output/aidl-test-versioned-interface-V1-rust-source/gen/android/aidl/versioned/tests/
DIFooInterface.rs70 …fn dump(&self, _file: &std::fs::File, _args: &[&std::ffi::CStr]) -> std::result::Result<(), binder… in new_async_binder()
/system/tools/aidl/tests/golden_output/aidl-test-fixedsizearray-rust-source/gen/android/aidl/fixedsizearray/
DFixedSizeArrayExample.rs425 …fn dump(&self, _file: &std::fs::File, _args: &[&std::ffi::CStr]) -> std::result::Result<(), binder… in new_async_binder()
1027 …fn dump(&self, _file: &std::fs::File, _args: &[&std::ffi::CStr]) -> std::result::Result<(), binder… in new_async_binder()
/system/libvintf/
Dparse_xml.cpp75 return std::string{p.CStr()}; in printDocument()