Home
last modified time | relevance | path

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

1234567

/external/rust/crates/grpcio/src/security/
Dcredentials.rs4 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/skia/modules/jetski/src/
DUtils.h19 class CString {
21 CString(JNIEnv* env, const jstring& jstr) in CString() function
27 ~CString() { in ~CString()
39 CString(CString&&) = delete;
40 CString(const CString&) = delete;
41 CString& operator=(CString&&) = delete;
42 CString& operator=(const CString&) = delete;
DRuntimeShaderBuilder.cpp19 SkString(jetski::utils::CString(env, jsksl))); in ShaderBuilder_Create()
39 builder->uniform(jetski::utils::CString(env, jname).str()) = val; in ShaderBuilder_SetUniformFloat()
45 builder->uniform(jetski::utils::CString(env, jname).str()) = SkV3{valX, valY, valZ}; in ShaderBuilder_SetUniformFloat3()
52 builder->uniform(jetski::utils::CString(env, jname).str()) = *matrix; in ShaderBuilder_SetUniformMatrix()
/external/rust/crates/nix/test/test_kmod/
Dmod.rs38 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()
75 &CString::new("who=Rust number=2018").unwrap(), in test_finit_and_delete_module_with_params()
81 &CString::new(kmod_name).unwrap(), in test_finit_and_delete_module_with_params()
99 init_module(&contents, &CString::new("").unwrap()) in test_init_and_delete_module()
103 &CString::new(kmod_name).unwrap(), in test_init_and_delete_module()
124 init_module(&contents, &CString::new("who=Nix number=2015").unwrap()) in test_init_and_delete_module_with_params()
128 &CString::new(kmod_name).unwrap(), in test_init_and_delete_module_with_params()
144 finit_module(&f, &CString::new("").unwrap(), ModuleInitFlags::empty()); in test_finit_module_invalid()
[all …]
/external/mdnsresponder/mDNSWindows/ControlPanel/
DSecondPage.h57 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 );
DSharedSecret.h40 Load( CString zone );
43 Commit( CString zone );
52 CString m_key;
53 CString m_secret;
DSecondPage.cpp174 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()
DRegistrationPage.cpp203 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/rust/crates/vulkano/src/pipeline/graphics_pipeline/
Dtests.rs29 use std::ffi::CString;
44 &CString::new("main").unwrap(), in create()
58 &CString::new("main").unwrap(), in create()
94 &CString::new("main").unwrap(), in bad_primitive_restart()
111 &CString::new("main").unwrap(), in bad_primitive_restart()
151 &CString::new("main").unwrap(), in multi_viewport_feature()
165 &CString::new("main").unwrap(), in multi_viewport_feature()
205 &CString::new("main").unwrap(), in max_viewports()
219 &CString::new("main").unwrap(), in max_viewports()
259 &CString::new("main").unwrap(), in no_depth_attachment()
[all …]
/external/llvm/bindings/go/llvm/
Dir.go356 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 …]
Ddibuilder.go125 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 …]
Dsupport.go32 libstr := C.CString(lib)
48 argstrs[i] = C.CString(arg)
51 overviewstr := C.CString(overview)
/external/rust/crates/grpcio/src/
Dchannel.rs6 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/mdnsresponder/mDNSWindows/DNSServiceBrowser/Windows/Sources/
DLoginDialog.h33 CString mUsername;
34 CString mPassword;
42 virtual BOOL GetLogin( CString &outUsername, CString &outPassword );
DChooserDialog.cpp244 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/openssl/src/
Dprovider.rs6 use std::ffi::CString;
29 let name = CString::new(name).unwrap(); in load()
50 let name = CString::new(name).unwrap(); in try_load()
68 let path = CString::new(path).unwrap(); in set_default_search_path()
/external/tensorflow/tensorflow/go/
Dgraph.go136 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/crosvm/fuse/src/
Dmount.rs5 use std::ffi::CString;
71 let mount_name = CString::new(name.as_bytes())?; in mount()
72 let fs_type = CString::new(String::from("fuse.") + name)?; in mount()
73 let mountpoint = CString::new(mountpoint.as_ref().as_bytes())?; in mount()
74 let mount_options = CString::new(join_mount_options(options))?; in mount()
/external/rust/crates/nix/test/
Dtest_mq.rs2 use std::ffi::CString;
33 let mq_name = &CString::new(b"/a_nix_test_queue".as_ref()).unwrap(); in test_mq_send_and_receive()
63 let mq_name = &CString::new(b"/attr_test_get_attr".as_ref()).unwrap(); in test_mq_getattr()
88 let mq_name = &CString::new(b"/attr_test_get_attr".as_ref()).unwrap(); in test_mq_setattr()
138 let mq_name = &CString::new(b"/attr_test_get_attr".as_ref()).unwrap(); in test_mq_set_nonblocking()
162 let mq_name_opened = &CString::new(b"/mq_unlink_test".as_ref()).unwrap(); in test_mq_unlink()
165 &CString::new(b"/mq_unlink_test".as_ref()).unwrap(); in test_mq_unlink()
/external/rust/cxx/book/src/binding/
Drawptr.md49 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/base/src/sys/unix/android/
Dsyslog.rs9 use std::ffi::CString;
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/rust/crates/nix/patches/
Dunistd.diff10 - passwd: CString::new(CStr::from_ptr(pw.pw_passwd).to_bytes()).unwrap(),
12 + passwd: if pw.pw_passwd.is_null() { Default::default() } else { CString::new(CStr:…
14 - gecos: CString::new(CStr::from_ptr(pw.pw_gecos).to_bytes()).unwrap(),
17 + gecos: if pw.pw_gecos.is_null() { Default::default() } else { CString::new(CStr::f…
/external/minijail/rust/minijail/src/
Dlib.rs5 use std::ffi::CString;
29 args_cstr: Vec<CString>,
33 env_cstr: Option<Vec<CString>>,
118 CString::new(path_str).map_err(|_| Error::StrToCString(path_str.to_owned()))?; in run_command()
456 let user_cstring = CString::new(user).map_err(|_| Error::StrToCString(user.to_owned()))?; in change_user()
464 CString::new(group).map_err(|_| Error::StrToCString(group.to_owned()))?; in change_group()
554 CString::new(pathstring).map_err(|_| Error::PathToCString(path.as_ref().to_owned()))?; in parse_seccomp_filters()
645 CString::new(uid_map).map_err(|_| Error::StrToCString(uid_map.to_owned()))?; in uidmap()
653 CString::new(gid_map).map_err(|_| Error::StrToCString(gid_map.to_owned()))?; in gidmap()
666 CString::new(table_name).map_err(|_| Error::StrToCString(table_name.to_owned()))?; in use_alt_syscall()
[all …]
/external/mdnsresponder/mDNSWindows/DNSServiceBrowser/WindowsCE/Sources/
DBrowserDialog.h62 CString name;
63 CString ip;
64 CString text;
/external/crosvm/src/crosvm/sys/unix/
Dandroid.rs8 use std::ffi::CString;
29 let owned: Vec<CString> = profiles in set_process_profiles()
31 .map(|s| CString::new(s.clone()).unwrap()) in set_process_profiles()

1234567