/external/rust/crates/grpcio/src/security/ |
D | credentials.rs | 4 use std::ffi::CString; 125 root: Option<CString>, 147 self.root = Some(CString::new(cert).unwrap()); in root_cert() 162 private_key: CString::new(private_key).unwrap().into_raw(), in add_cert() 163 cert_chain: CString::new(cert).unwrap().into_raw(), in add_cert() 174 .map_or_else(ptr::null_mut, CString::into_raw); in build_config() 181 CString::from_raw(root_cert); in build_config() 204 CString::from_raw(pair.cert_chain as *mut _); in drop() 205 let s = CString::from_raw(pair.private_key as *mut _); in drop() 241 root: Option<CString>, [all …]
|
/external/rust/crates/nix/test/test_kmod/ |
D | mod.rs | 38 use std::ffi::CString; 51 finit_module(&f, &CString::new("").unwrap(), ModuleInitFlags::empty()) in test_finit_and_delete_module() 55 &CString::new(kmod_name).unwrap(), in test_finit_and_delete_module() 71 &CString::new("who=Rust number=2018").unwrap(), in test_finit_and_delete_modul_with_params() 76 &CString::new(kmod_name).unwrap(), in test_finit_and_delete_modul_with_params() 93 init_module(&mut contents, &CString::new("").unwrap()).expect("unable to load kernel module"); in test_init_and_delete_module() 96 &CString::new(kmod_name).unwrap(), in test_init_and_delete_module() 113 init_module(&mut contents, &CString::new("who=Nix number=2015").unwrap()) in test_init_and_delete_module_with_params() 117 &CString::new(kmod_name).unwrap(), in test_init_and_delete_module_with_params() 131 let result = finit_module(&f, &CString::new("").unwrap(), ModuleInitFlags::empty()); in test_finit_module_invalid() [all …]
|
/external/mdnsresponder/mDNSWindows/ControlPanel/ |
D | SecondPage.h | 57 void OnAddRegistrationDomain( CString & domain ); 58 void OnRemoveRegistrationDomain( CString & domain ); 62 typedef std::list<CString> StringList; 93 CreateKey( CString & name, DWORD enabled ); 96 RegQueryString( HKEY key, CString valueName, CString & value );
|
D | SharedSecret.h | 40 Load( CString zone ); 43 Commit( CString zone ); 52 CString m_key; 53 CString m_secret;
|
D | SecondPage.cpp | 174 CString selected; in Commit() 209 CString string; in Commit() 257 CString name; in OnBnClickedSharedSecret() 336 CSecondPage::OnAddRegistrationDomain( CString & domain ) in OnAddRegistrationDomain() 352 CSecondPage::OnRemoveRegistrationDomain( CString & domain ) in OnRemoveRegistrationDomain() 384 CString string; in Populate() 402 CString tok; in Populate() 478 CSecondPage::CreateKey( CString & name, DWORD enabled ) in CreateKey() 506 CSecondPage::RegQueryString( HKEY key, CString valueName, CString & value ) in RegQueryString()
|
D | RegistrationPage.cpp | 203 CString hostname = name; in OnSetActive() 204 CString username; in OnSetActive() 205 CString password; in OnSetActive() 290 CString hostname; in Commit() 292 CString username; in Commit() 294 CString password; in Commit() 359 CString domain; in Commit()
|
/external/mdnsresponder/mDNSWindows/DNSServiceBrowser/Windows/Sources/ |
D | LoginDialog.h | 33 CString mUsername; 34 CString mPassword; 42 virtual BOOL GetLogin( CString &outUsername, CString &outPassword );
|
D | ChooserDialog.cpp | 244 CString domain; 274 static DWORD UTF8StringToStringObject( const char *inUTF8, CString &inObject ); 275 static DWORD StringObjectToUTF8String( CString &inObject, std::string &outUTF8 ); 369 CString tempString; in OnInitDialog() 594 CString s; in OnServiceListChanged() 641 CString url; in OnChooserListDoubleClick() 673 CString username; in OnChooserListDoubleClick() 674 CString password; in OnChooserListDoubleClick() 752 CString type; in PopulateServicesList() 753 CString desc; in PopulateServicesList() [all …]
|
/external/rust/crates/grpcio/src/ |
D | channel.rs | 6 use std::ffi::{CStr, CString}; 33 fn format_user_agent_string(agent: &str) -> CString { in format_user_agent_string() argument 41 CString::new(val).unwrap() in format_user_agent_string() 51 String(CString), 89 let authority = CString::new(authority).unwrap(); in default_authority() 350 OptTarget::Latency => CString::new("latency"), in optimize_for() 351 OptTarget::Blend => CString::new("blend"), in optimize_for() 352 OptTarget::Throughput => CString::new("throughput"), in optimize_for() 366 LbPolicy::PickFirst => CString::new("pick_first"), in load_balancing_policy() 367 LbPolicy::RoundRobin => CString::new("round_robin"), in load_balancing_policy() [all …]
|
/external/skia/modules/androidkit/src/ |
D | RuntimeShaderBuilder.cpp | 16 class CString { class 18 CString(JNIEnv* env, const jstring& jstr) in CString() function in __anoncd3118f90111::CString 24 ~CString() { in ~CString() 37 auto [eff,err] = SkRuntimeEffect::MakeForShader(SkString(CString(env, jsksl))); in Create() 57 builder->uniform(CString(env, jname)) = val; in SetUniform()
|
/external/llvm-project/llvm/bindings/go/llvm/ |
D | ir.go | 364 cname := C.CString(name) 371 cname := C.CString(name) 382 cname := C.CString(name) 404 ckind := C.CString(kind) 406 cval := C.CString(val) 441 cname := C.CString(name) 448 cname := C.CString(name) 464 clayout := C.CString(layout) 475 ctarget := C.CString(target) 481 cname := C.CString(name) [all …]
|
D | dibuilder.go | 126 file := C.CString(cu.File) 128 dir := C.CString(cu.Dir) 130 producer := C.CString(cu.Producer) 132 flags := C.CString(cu.Flags) 134 sysroot := C.CString(cu.SysRoot) 136 sdk := C.CString(cu.SDK) 159 cfilename := C.CString(filename) 161 cdir := C.CString(dir) 210 name := C.CString(f.Name) 212 linkageName := C.CString(f.LinkageName) [all …]
|
D | support.go | 31 libstr := C.CString(lib) 47 argstrs[i] = C.CString(arg) 50 overviewstr := C.CString(overview)
|
/external/llvm/bindings/go/llvm/ |
D | ir.go | 356 cname := C.CString(name) 363 cname := C.CString(name) 376 cname := C.CString(name) 383 cname := C.CString(name) 399 clayout := C.CString(layout) 410 ctarget := C.CString(target) 416 cname := C.CString(name) 436 casm := C.CString(asm) 442 cname := C.CString(name) 573 cname := C.CString(name) [all …]
|
D | dibuilder.go | 125 file := C.CString(cu.File) 127 dir := C.CString(cu.Dir) 129 producer := C.CString(cu.Producer) 131 flags := C.CString(cu.Flags) 147 cfilename := C.CString(filename) 149 cdir := C.CString(dir) 196 name := C.CString(f.Name) 198 linkageName := C.CString(f.LinkageName) 229 name := C.CString(v.Name) 260 name := C.CString(v.Name) [all …]
|
D | support.go | 32 libstr := C.CString(lib) 48 argstrs[i] = C.CString(arg) 51 overviewstr := C.CString(overview)
|
/external/rust/crates/structopt/tests/ui/ |
D | external_subcommand_wrong_type.stderr | 4 13 | Other(Vec<CString>) 5 | ^^^^^^^ expected struct `CString`, found struct `OsString` 7 = note: expected struct `Vec<CString>`
|
/external/crosvm/fuse/src/ |
D | mount.rs | 5 use std::ffi::{CString, OsStr}; 66 let mount_name = CString::new(name.as_bytes())?; in mount() 67 let fs_type = CString::new(String::from("fuse.") + name)?; in mount() 68 let mountpoint = CString::new(mountpoint.as_ref().as_bytes())?; in mount() 69 let mount_options = CString::new(join_mount_options(options))?; in mount()
|
/external/rust/crates/nix/test/ |
D | test_mq.rs | 1 use std::ffi::CString; 14 let mq_name= &CString::new(b"/a_nix_test_queue".as_ref()).unwrap(); in test_mq_send_and_receive() 46 let mq_name = &CString::new(b"/attr_test_get_attr".as_ref()).unwrap(); in test_mq_getattr() 69 let mq_name = &CString::new(b"/attr_test_get_attr".as_ref()).unwrap(); in test_mq_setattr() 106 let mq_name = &CString::new(b"/attr_test_get_attr".as_ref()).unwrap(); in test_mq_set_nonblocking() 130 let mq_name_opened = &CString::new(b"/mq_unlink_test".as_ref()).unwrap(); in test_mq_unlink() 131 let mq_name_not_opened = &CString::new(b"/mq_unlink_test".as_ref()).unwrap(); in test_mq_unlink()
|
/external/tensorflow/tensorflow/go/ |
D | graph.go | 136 cprefix := C.CString(options.Prefix) 144 cdev := C.CString(options.Device) 150 cSrcName := C.CString(src.Name) 185 cname := C.CString(name) 252 cprefix = C.CString(prefix) 315 cname := C.CString(args.Name) 316 ctype := C.CString(args.Type) 356 cdevice := C.CString(args.Device) 368 cAttrName := C.CString(name) 372 cstr := C.CString(value) [all …]
|
/external/mdnsresponder/mDNSWindows/DNSServiceBrowser/WindowsCE/Sources/ |
D | BrowserDialog.h | 62 CString name; 63 CString ip; 64 CString text;
|
/external/rust/cxx/book/src/binding/ |
D | rawptr.md | 49 use std::ffi::CString; 64 // Convert from OsString to nul-terminated CString, truncating each argument 66 let args: Vec<CString> = env::args_os() 69 CString::new(bytes).unwrap_or_else(|nul_error| { 73 CString::new(bytes).unwrap() 78 // Convert from Vec<CString> of owned strings to Vec<*mut c_char> of
|
/external/crosvm/sys_util/src/android/ |
D | syslog.rs | 14 use std::ffi::{CString, NulError}; 83 let tag = CString::new(tag)?; in android_log() 88 Some(file_name) => CString::new(file_name)?.as_ptr(), in android_log() 92 let message = CString::new(message)?; in android_log()
|
/external/minijail/rust/minijail/src/ |
D | lib.rs | 7 use std::ffi::CString; 300 let user_cstring = CString::new(user).map_err(|_| Error::StrToCString(user.to_owned()))?; in change_user() 308 CString::new(group).map_err(|_| Error::StrToCString(group.to_owned()))?; in change_group() 395 CString::new(pathstring).map_err(|_| Error::PathToCString(path.as_ref().to_owned()))?; in parse_seccomp_filters() 486 CString::new(uid_map).map_err(|_| Error::StrToCString(uid_map.to_owned()))?; in uidmap() 494 CString::new(gid_map).map_err(|_| Error::StrToCString(gid_map.to_owned()))?; in gidmap() 507 CString::new(table_name).map_err(|_| Error::StrToCString(table_name.to_owned()))?; in use_alt_syscall() 524 CString::new(pathstring).map_err(|_| Error::PathToCString(dir.as_ref().to_owned()))?; in enter_chroot() 538 CString::new(pathstring).map_err(|_| Error::PathToCString(dir.as_ref().to_owned()))?; in enter_pivot_root() 570 let src_path = CString::new(src_os).map_err(|_| Error::StrToCString(src_os.to_owned()))?; in mount_with_data() [all …]
|
/external/crosvm/tempfile/src/ |
D | lib.rs | 24 use std::ffi::CString; 32 fn temp_path_template(prefix: &str) -> Result<CString> { in temp_path_template() argument 37 Some(s) => Ok(CString::new(s)?), in temp_path_template() 77 let path = CString::from_raw(ptr); in tempdir() 101 let path = CString::from_raw(ptr); in tempfile()
|