Searched refs:CStr (Results 1 – 9 of 9) sorted by relevance
/packages/modules/DnsResolver/tests/doh/src/ |
D | ffi.rs | 23 use std::ffi::CStr; 41 let addr = CStr::from_ptr(addr).to_str().unwrap(); in frontend_new() 42 let port = CStr::from_ptr(port).to_str().unwrap(); in frontend_new() 43 let backend_addr = CStr::from_ptr(backend_addr).to_str().unwrap(); in frontend_new() 44 let backend_port = CStr::from_ptr(backend_port).to_str().unwrap(); in frontend_new() 99 let certificate = CStr::from_ptr(certificate).to_str().unwrap(); in frontend_set_certificate() 116 let private_key = CStr::from_ptr(private_key).to_str().unwrap(); in frontend_set_private_key()
|
/packages/modules/DnsResolver/doh/ |
D | ffi.rs | 194 std::ffi::CStr::from_ptr(url).to_str(), in doh_net_new() 195 std::ffi::CStr::from_ptr(domain).to_str(), in doh_net_new() 196 std::ffi::CStr::from_ptr(ip_addr).to_str(), in doh_net_new() 197 std::ffi::CStr::from_ptr(cert_path).to_str(), in doh_net_new() 369 let ip_addr = std::ffi::CStr::from_ptr(ip_addr).to_str().unwrap(); in assert_validation_info() 372 let host = std::ffi::CStr::from_ptr(host).to_str().unwrap(); in assert_validation_info()
|
/packages/modules/Virtualization/virtualizationservice/src/ |
D | selinux.rs | 18 use std::ffi::{CStr, CString}; 67 type Target = CStr; 73 Self::Raw(p) => unsafe { CStr::from_ptr(*p) }, in deref()
|
D | aidl.rs | 58 use std::ffi::CStr; 99 fn dump(&self, mut file: &File, _args: &[&CStr]) -> Result<(), StatusCode> { in dump()
|
/packages/modules/Virtualization/authfs/src/ |
D | fusefs.rs | 29 use std::ffi::{CStr, CString, OsStr}; 339 name: &CStr, in create_new_entry_with_ref_count() argument 512 fn lookup(&self, _ctx: Context, parent: Inode, name: &CStr) -> io::Result<Entry> { in lookup() 667 name: &CStr, in create() argument 817 name: &CStr, in getxattr() argument 826 if name != CStr::from_bytes_with_nul(b"authfs.fsverity.digest\0").unwrap() { in getxattr() 851 name: &CStr, in mkdir() argument 883 fn unlink(&self, _ctx: Context, parent: Self::Inode, name: &CStr) -> io::Result<()> { in unlink() 910 fn rmdir(&self, _ctx: Context, parent: Self::Inode, name: &CStr) -> io::Result<()> { in rmdir() 1070 fn cstr_to_path(cstr: &CStr) -> &Path { in cstr_to_path()
|
/packages/modules/Virtualization/compos/composd/native/ |
D | lib.rs | 22 use std::ffi::{CStr, OsStr}; 44 let cstr = unsafe { CStr::from_ptr(staging_dir) }; in palette_create_odrefresh_staging_directory()
|
/packages/modules/Virtualization/microdroid_manager/src/payload/ |
D | apex.rs | 19 use std::ffi::{c_void, CStr}; 127 CStr::from_ptr(avb_vbmeta_verify_result_to_string(res)) in verify()
|
/packages/modules/Virtualization/zipfuse/src/ |
D | inode.rs | 18 use std::ffi::{CStr, CString}; 142 fn find(&self, parent: Inode, name: &CStr) -> Option<Inode> { in find()
|
D | main.rs | 29 use std::ffi::{CStr, CString}; 182 fn lookup(&self, _ctx: Context, parent: Self::Inode, name: &CStr) -> io::Result<Entry> { in lookup()
|