Home
last modified time | relevance | path

Searched refs:to_string (Results 1 – 25 of 2597) sorted by relevance

12345678910>>...104

/external/pigweed/pw_format/rust/
Dpw_format_test_macros_printf_test.rs68 TestGeneratorOps::StringFragment("test ".to_string()), in generate_calls_generator_correctly()
77 arg: "5".to_string(), in generate_calls_generator_correctly()
79 TestGeneratorOps::StringFragment(" ".to_string()), in generate_calls_generator_correctly()
80 TestGeneratorOps::StringConversion("\"test\"".to_string()), in generate_calls_generator_correctly()
81 TestGeneratorOps::StringFragment(" ".to_string()), in generate_calls_generator_correctly()
82 TestGeneratorOps::CharConversion("'c'".to_string()), in generate_calls_generator_correctly()
83 TestGeneratorOps::StringFragment(" ".to_string()), in generate_calls_generator_correctly()
84 TestGeneratorOps::UntypedConversion("1".to_string()), in generate_calls_generator_correctly()
107 PrintfTestGeneratorOps::StringFragment("test ".to_string()), in generate_printf_calls_generator_correctly()
109 ty: "i32".to_string(), in generate_printf_calls_generator_correctly()
[all …]
/external/webrtc/api/test/
Dvideocodec_test_stats.cc39 map["frame_number"] = std::to_string(frame_number); in ToMap()
40 map["decoded_width"] = std::to_string(decoded_width); in ToMap()
41 map["decoded_height"] = std::to_string(decoded_height); in ToMap()
42 map["spatial_idx"] = std::to_string(spatial_idx); in ToMap()
43 map["temporal_idx"] = std::to_string(temporal_idx); in ToMap()
44 map["inter_layer_predicted"] = std::to_string(inter_layer_predicted); in ToMap()
46 std::to_string(non_ref_for_inter_layer_pred); in ToMap()
47 map["frame_type"] = std::to_string(static_cast<int>(frame_type)); in ToMap()
48 map["length_bytes"] = std::to_string(length_bytes); in ToMap()
49 map["qp"] = std::to_string(qp); in ToMap()
[all …]
/external/bazelbuild-rules_rust/proto/prost/private/tests/types/
Dtypes_test.rs21 a_string: "a".to_string(), in test_types()
37 repeated_string: vec!["a".to_string(), "b".to_string()], in test_types()
40 ("a".to_string(), Enum::A.into()), in test_types()
41 ("b".to_string(), Enum::B.into()), in test_types()
45 map_string_double: vec![("a".to_string(), 2.0), ("b".to_string(), 3.0)] in test_types()
48 map_string_float: vec![("a".to_string(), 3.0), ("b".to_string(), 4.0)] in test_types()
51 map_string_int32: vec![("a".to_string(), 4), ("b".to_string(), 5)] in test_types()
54 map_string_int64: vec![("a".to_string(), 5), ("b".to_string(), 6)] in test_types()
57 map_string_uint32: vec![("a".to_string(), 6), ("b".to_string(), 7)] in test_types()
60 map_string_uint64: vec![("a".to_string(), 7), ("b".to_string(), 8)] in test_types()
[all …]
/external/rust/crates/toml/tests/testsuite/
Ddisplay.rs6 $(_m.insert($k.to_string(), $v);)*
12 assert_eq!(String("foo".to_string()).to_string(), "\"foo\""); in simple_show()
13 assert_eq!(Integer(10).to_string(), "10"); in simple_show()
14 assert_eq!(Float(10.0).to_string(), "10.0"); in simple_show()
15 assert_eq!(Float(2.4).to_string(), "2.4"); in simple_show()
16 assert_eq!(Boolean(true).to_string(), "true"); in simple_show()
17 assert_eq!(Array(vec![]).to_string(), "[]"); in simple_show()
18 assert_eq!(Array(vec![Integer(1), Integer(2)]).to_string(), "[1, 2]"); in simple_show()
23 assert_eq!(map! {}.to_string(), ""); in table()
28 .to_string(), in table()
[all …]
/external/tensorflow/tensorflow/python/framework/
Ddevice_spec_test.py33 self.assertEqual("", d.to_string())
35 self.assertEqual("", d.to_string())
46 self.assertEqual("/job:j/replica:0/task:1/device:CPU:2", d.to_string())
49 self.assertEqual("/device:GPU:0", d.to_string())
55 self.assertEqual("/job:foo", d.to_string())
57 self.assertEqual("/job:foo/task:3", d.to_string())
60 self.assertEqual("/job:foo/task:3/device:CPU:0", d.to_string())
63 self.assertEqual("/job:foo/replica:12/device:CPU:0", d.to_string())
66 self.assertEqual("/job:foo/replica:12/device:GPU:2", d.to_string())
69 self.assertEqual("/job:foo/replica:12/device:CPU:1", d.to_string())
[all …]
/external/crosvm/e2e_tests/tests/
Dvsock.rs50 let config = Config::new().extra_args(vec!["--cid".to_string(), guest_cid.to_string()]); in host_to_guest()
60 .extra_args(vec!["--cid".to_string(), guest_cid.to_string()]) in host_to_guest_disable_sandbox()
72 "--cid".to_string(), in host_to_guest_snapshot_restore()
73 guest_cid.to_string(), in host_to_guest_snapshot_restore()
74 "--no-usb".to_string(), in host_to_guest_snapshot_restore()
84 "--cid".to_string(), in host_to_guest_snapshot_restore()
85 guest_cid.to_string(), in host_to_guest_snapshot_restore()
86 "--restore".to_string(), in host_to_guest_snapshot_restore()
87 snap.to_str().unwrap().to_string(), in host_to_guest_snapshot_restore()
88 "--no-usb".to_string(), in host_to_guest_snapshot_restore()
[all …]
/external/rust/crates/chrono/src/format/
Dstrftime.rs864 assert_eq!(dt.format("%Y").to_string(), "2001"); in test_strftime_docs()
865 assert_eq!(dt.format("%C").to_string(), "20"); in test_strftime_docs()
866 assert_eq!(dt.format("%y").to_string(), "01"); in test_strftime_docs()
867 assert_eq!(dt.format("%m").to_string(), "07"); in test_strftime_docs()
868 assert_eq!(dt.format("%b").to_string(), "Jul"); in test_strftime_docs()
869 assert_eq!(dt.format("%B").to_string(), "July"); in test_strftime_docs()
870 assert_eq!(dt.format("%h").to_string(), "Jul"); in test_strftime_docs()
871 assert_eq!(dt.format("%d").to_string(), "08"); in test_strftime_docs()
872 assert_eq!(dt.format("%e").to_string(), " 8"); in test_strftime_docs()
873 assert_eq!(dt.format("%e").to_string(), dt.format("%_d").to_string()); in test_strftime_docs()
[all …]
/external/rust/crates/serde-xml-rs/tests/
Dmigrated.rs80 subject: "Reference rates".to_string(), in test_namespaces()
102 subject: "Reference rates".to_string(), in test_doctype()
113 subject: "Reference rates".to_string(), in test_doctype()
126 subject: "Reference rates".to_string(), in test_doctype()
154 .to_string(), in test_forwarded_namespace()
164 test_parse_ok(&[("<bla> </bla>", " ".to_string())]); in test_parse_string_not_trim()
177 Frog("Quak".to_string()), in test_parse_enum()
184 c: "bla".to_string(), in test_parse_enum()
185 d: Some("Foo".to_string()), in test_parse_enum()
193 c: "bla".to_string(), in test_parse_enum()
[all …]
Ddatatypes.rs16 #[case::string("<bla>This is a String</bla>", "This is a String".to_string())]
17 #[case::string("<bla></bla>", "".to_string())]
18 #[case::string("<bla> </bla>", "".to_string())]
19 #[case::string("<bla>&lt;boom/&gt;</bla>", "<boom/>".to_string())]
20 #[case::string("<bla>&#9835;</bla>", "♫".to_string())]
21 #[case::string("<bla>&#x266B;</bla>", "♫".to_string())]
22 #[case::string("<bla>♫<![CDATA[<cookies/>]]>♫</bla>", "♫<cookies/>♫".to_string())]
41 #[case::option("<bla/>", Some("".to_string()))]
42 #[case::option("<bla></bla>", Some("".to_string()))]
43 #[case::option("<bla> </bla>", Some("".to_string()))]
[all …]
/external/rust/crates/x509-cert/tests/
Dtrust_anchor_format.rs26 tai.pub_key.algorithm.oid.to_string(), in decode_ta1()
85 assert_eq!(policy_ids[counter], ext.policy_identifier.to_string()); in decode_ta1()
95 assert_eq!(atav.oid.to_string(), "2.5.4.6"); in decode_ta1()
99 .to_string(), in decode_ta1()
103 assert_eq!(atav.oid.to_string(), "2.5.4.10"); in decode_ta1()
107 .to_string(), in decode_ta1()
111 assert_eq!(atav.oid.to_string(), "2.5.4.11"); in decode_ta1()
115 .to_string(), in decode_ta1()
119 assert_eq!(atav.oid.to_string(), "2.5.4.3"); in decode_ta1()
123 .to_string(), in decode_ta1()
[all …]
/external/rust/crates/clap_complete/src/generator/
Dutils.rs51 subcmds.push((sc.get_name().to_string(), sc_bin_name.to_string())); in subcommands()
95 .map(|s| s.to_string()) in longs_and_visible_aliases()
97 visible_aliases.push(a.get_long().unwrap().to_string()); in longs_and_visible_aliases()
100 Some(vec![a.get_long().unwrap().to_string()]) in longs_and_visible_aliases()
177 ("test".to_string(), "my-cmd test".to_string()), in test_subcommands()
178 ("hello".to_string(), "my-cmd hello".to_string()), in test_subcommands()
179 ("help".to_string(), "my-cmd help".to_string()), in test_subcommands()
191 ("test".to_string(), "my-cmd test".to_string()), in test_all_subcommands()
192 ("hello".to_string(), "my-cmd hello".to_string()), in test_all_subcommands()
193 ("help".to_string(), "my-cmd help".to_string()), in test_all_subcommands()
[all …]
/external/tensorflow/tensorflow/lite/delegates/gpu/common/tasks/
Dconv_metal_simd.cc50 std::to_string(launch_remap[0]) + " * GROUP_SIZE_0 + LOCAL_ID_0;\n"; in GenerateDstCoords()
68 c += " int DST_S = GROUP_ID_" + std::to_string(launch_remap[1]) + in GenerateDstCoords()
75 c += " int DST_X = GROUP_ID_" + std::to_string(launch_remap[0]) + in GenerateDstCoords()
86 global_id_1 = "GROUP_ID_" + std::to_string(launch_remap[1]) + in GenerateDstCoords()
99 c += " int DST_S = GROUP_ID_" + std::to_string(launch_remap[2]) + in GenerateDstCoords()
113 c += "#define SPATIAL_THREADS " + std::to_string(spatial_threads) + "\n"; in GenerateConvolution()
124 c += " DST_S *= " + std::to_string(conv_params.slices_per_thread) + ";\n"; in GenerateConvolution()
145 std::to_string(weights_flt4_per_spatial * in GenerateConvolution()
149 c += " tmp_w_x1 += " + std::to_string(weights_flt4_per_spatial * 4) + in GenerateConvolution()
156 std::to_string(src_x4_slices) + "];\n"; in GenerateConvolution()
[all …]
/external/sdv/vsomeip/third_party/boost/date_time/test/local_time/
Dtestlocal_time.cpp66 check("to_string: " + az_time.to_string(), in main()
67 az_time.to_string() == "2003-Dec-20 05:00:00 MST"); in main()
75 check("to_string: " + az_time2.to_string(), in main()
76 az_time2.to_string() == "2003-Dec-20 05:00:00 MST"); in main()
88 check("to_string: " + sv_time.to_string(), in main()
89 sv_time.to_string() == "not-a-date-time"); in main()
93 check("to_string: " + sv_time2.to_string(), in main()
94 sv_time2.to_string() == "+infinity"); in main()
101 check("max_date_time to_string: " + sv_time3.to_string(), in main()
102 sv_time3.to_string() == "9999-Dec-31 18:59:59.999999999 EST"); in main()
[all …]
/external/ComputeLibrary/src/gpu/cl/kernels/
DClDirectConv3dKernel.cpp128 build_options.add_option("-DSRC_WIDTH=" + support::cpp11::to_string(src_width)); in configure()
129 build_options.add_option("-DSRC_HEIGHT=" + support::cpp11::to_string(src_height)); in configure()
130 build_options.add_option("-DSRC_DEPTH=" + support::cpp11::to_string(src_depth)); in configure()
131 build_options.add_option("-DSRC_CHANNELS=" + support::cpp11::to_string(src_channels)); in configure()
132 build_options.add_option("-DDST_WIDTH=" + support::cpp11::to_string(dst_width)); in configure()
133 build_options.add_option("-DDST_HEIGHT=" + support::cpp11::to_string(dst_height)); in configure()
134 build_options.add_option("-DDST_DEPTH=" + support::cpp11::to_string(dst_depth)); in configure()
135 build_options.add_option("-DDST_CHANNELS=" + support::cpp11::to_string(dst_channels)); in configure()
136 build_options.add_option("-DWEI_WIDTH=" + support::cpp11::to_string(weights_width)); in configure()
137 build_options.add_option("-DWEI_HEIGHT=" + support::cpp11::to_string(weights_height)); in configure()
[all …]
DClDirectConv2dKernel.cpp262 build_options.add_option("-DSRC_CHANNELS=" + support::cpp11::to_string(src->dimension(0))); in configure()
263 build_options.add_option("-DSRC_WIDTH=" + support::cpp11::to_string(src->dimension(1))); in configure()
264 build_options.add_option("-DSRC_HEIGHT=" + support::cpp11::to_string(src->dimension(2))); in configure()
265 build_options.add_option("-DDST_CHANNELS=" + support::cpp11::to_string(dst->dimension(0))); in configure()
266 build_options.add_option("-DDST_WIDTH=" + support::cpp11::to_string(dst->dimension(1))); in configure()
267 build_options.add_option("-DDST_HEIGHT=" + support::cpp11::to_string(dst->dimension(2))); in configure()
271 …build_options.add_option("-DWEI_WIDTH=" + support::cpp11::to_string(weights->dimension(width_idx))… in configure()
272 …build_options.add_option("-DWEI_HEIGHT=" + support::cpp11::to_string(weights->dimension(height_idx… in configure()
274 build_options.add_option("-DSTRIDE_X=" + support::cpp11::to_string(conv_stride_x)); in configure()
275 build_options.add_option("-DSTRIDE_Y=" + support::cpp11::to_string(conv_stride_y)); in configure()
[all …]
DClTransposedConvolutionKernel.cpp159 build_options.add_option("-DSRC_CHANNELS=" + support::cpp11::to_string(input_channels)); in configure()
160 build_options.add_option("-DSRC_WIDTH=" + support::cpp11::to_string(input_width)); in configure()
161 build_options.add_option("-DSRC_HEIGHT=" + support::cpp11::to_string(input_height)); in configure()
162 build_options.add_option("-DDST_CHANNELS=" + support::cpp11::to_string(output_channels)); in configure()
163 build_options.add_option("-DDST_WIDTH=" + support::cpp11::to_string(output_width)); in configure()
164 build_options.add_option("-DDST_HEIGHT=" + support::cpp11::to_string(output_height)); in configure()
168 build_options.add_option("-DWEI_WIDTH=" + support::cpp11::to_string(weights_width)); in configure()
169 build_options.add_option("-DWEI_HEIGHT=" + support::cpp11::to_string(weights_height)); in configure()
171 build_options.add_option("-DSTRIDE_X=" + support::cpp11::to_string(strides.first)); in configure()
172 build_options.add_option("-DSTRIDE_Y=" + support::cpp11::to_string(strides.second)); in configure()
[all …]
/external/rust/crates/quote/tests/
Dtest.rs43 assert_eq!(expected, tokens.to_string()); in test_quote_impl()
65 assert_eq!(expected, tokens.to_string()); in test_quote_spanned_impl()
75 assert_eq!(expected, tokens.to_string()); in test_substitution()
82 assert_eq!("X X X X", quote!(#(#primes)*).to_string()); in test_iter()
84 assert_eq!("X , X , X , X ,", quote!(#(#primes,)*).to_string()); in test_iter()
86 assert_eq!("X , X , X , X", quote!(#(#primes),*).to_string()); in test_iter()
162 assert_eq!(expected, tokens.to_string()); in test_advanced()
187 assert_eq!(expected, tokens.to_string()); in test_integer()
201 assert_eq!(expected, tokens.to_string()); in test_floating()
217 assert_eq!(expected, tokens.to_string()); in test_char()
[all …]
/external/rust/crates/proc-macro2/tests/
Dtest.rs15 Ident::new("String", Span::call_site()).to_string(), in idents()
18 assert_eq!(Ident::new("fn", Span::call_site()).to_string(), "fn"); in idents()
19 assert_eq!(Ident::new("_", Span::call_site()).to_string(), "_"); in idents()
25 Ident::new_raw("String", Span::call_site()).to_string(), in raw_idents()
28 assert_eq!(Ident::new_raw("fn", Span::call_site()).to_string(), "r#fn"); in raw_idents()
99 assert_eq!(Literal::string("foo").to_string(), "\"foo\""); in literal_string()
100 assert_eq!(Literal::string("\"").to_string(), "\"\\\"\""); in literal_string()
101 assert_eq!(Literal::string("didn't").to_string(), "\"didn't\""); in literal_string()
103 Literal::string("a\00b\07c\08d\0e\0").to_string(), in literal_string()
137 assert_eq!(Literal::byte_string(b"").to_string(), "b\"\""); in literal_byte_string()
[all …]
/external/grpc-grpc/test/core/util/
Dsocket_use_after_close_detector.cc78 std::to_string(WSAGetLastError()); in OpenAndCloseSocketsStressLoop()
82 << "Failed to bind socket " + std::to_string(s) + in OpenAndCloseSocketsStressLoop()
83 " to [::1]:" + std::to_string(port) + in OpenAndCloseSocketsStressLoop()
84 ". WSA error: " + std::to_string(WSAGetLastError()); in OpenAndCloseSocketsStressLoop()
86 << "Failed to listen on socket " + std::to_string(s) + in OpenAndCloseSocketsStressLoop()
87 ". WSA error: " + std::to_string(WSAGetLastError()); in OpenAndCloseSocketsStressLoop()
97 std::to_string(sockets[i]) + in OpenAndCloseSocketsStressLoop()
101 std::to_string(WSAGetLastError()) + in OpenAndCloseSocketsStressLoop()
104 << "Failed to close socket: " + std::to_string(sockets[i]) + in OpenAndCloseSocketsStressLoop()
105 ". WSA error: " + std::to_string(WSAGetLastError()); in OpenAndCloseSocketsStressLoop()
[all …]
/external/rust/crates/der_derive/src/choice/
Dvariant.rs170 variant.to_decode_tokens().to_string(), in simple()
176 .to_string() in simple()
180 variant.to_encode_value_tokens().to_string(), in simple()
184 .to_string() in simple()
188 variant.to_value_len_tokens().to_string(), in simple()
192 .to_string() in simple()
196 variant.to_tagged_tokens().to_string(), in simple()
200 .to_string() in simple()
215 variant.to_decode_tokens().to_string(), in utf8string()
222 .to_string() in utf8string()
[all …]
/external/rust/crates/anyhow/tests/
Dtest_chain.rs11 assert_eq!("3", chain.next().unwrap().to_string()); in test_iter()
12 assert_eq!("2", chain.next().unwrap().to_string()); in test_iter()
13 assert_eq!("1", chain.next().unwrap().to_string()); in test_iter()
14 assert_eq!("0", chain.next().unwrap().to_string()); in test_iter()
23 assert_eq!("0", chain.next().unwrap().to_string()); in test_rev()
24 assert_eq!("1", chain.next().unwrap().to_string()); in test_rev()
25 assert_eq!("2", chain.next().unwrap().to_string()); in test_rev()
26 assert_eq!("3", chain.next().unwrap().to_string()); in test_rev()
37 assert_eq!("3", chain.next().unwrap().to_string()); in test_len()
40 assert_eq!("0", chain.next_back().unwrap().to_string()); in test_len()
[all …]
/external/rust/crates/serde_json/tests/
Dtest.rs33 from_reader, from_slice, from_str, from_value, json, to_string, to_string_pretty, to_value,
93 let out = out.to_string(); in test_encode_ok()
95 let s = to_string(value).unwrap(); in test_encode_ok()
99 let s = to_string(&v).unwrap(); in test_encode_ok()
109 let out = out.to_string(); in test_pretty_encode_ok()
129 let tests = &[(3u64, "3"), (u64::MAX, &u64::MAX.to_string())]; in test_write_u64()
140 (i64::MIN, &i64::MIN.to_string()), in test_write_i64()
263 (treemap!("a".to_string() => true), "{\"a\":true}"), in test_write_object()
266 "a".to_string() => true, in test_write_object()
267 "b".to_string() => false in test_write_object()
[all …]
/external/swiftshader/include/vulkan/
Dvulkan_to_string.hpp27 VULKAN_HPP_INLINE std::string to_string( FormatFeatureFlags value ) in to_string() function
101 VULKAN_HPP_INLINE std::string to_string( ImageCreateFlags value ) in to_string() function
149 VULKAN_HPP_INLINE std::string to_string( ImageUsageFlags value ) in to_string() function
203 VULKAN_HPP_INLINE std::string to_string( InstanceCreateFlags value ) in to_string() function
215 VULKAN_HPP_INLINE std::string to_string( MemoryHeapFlags value ) in to_string() function
229 VULKAN_HPP_INLINE std::string to_string( MemoryPropertyFlags value ) in to_string() function
257 VULKAN_HPP_INLINE std::string to_string( QueueFlags value ) in to_string() function
285 VULKAN_HPP_INLINE std::string to_string( SampleCountFlags value ) in to_string() function
309 VULKAN_HPP_INLINE std::string to_string( DeviceCreateFlags ) in to_string() function
314 VULKAN_HPP_INLINE std::string to_string( DeviceQueueCreateFlags value ) in to_string() function
[all …]
/external/rust/crates/toml_edit/tests/testsuite/
Dinvalid.rs12 err.to_string(), in incomplete_inline_table_issue_296()
27 err.to_string(), in bare_value_disallowed_issue_293()
42 err.to_string(), in bare_value_in_array_disallowed_issue_293()
68 err.to_string(), in duplicate_table_after_dotted_key_issue_509()
83 snapbox::assert_eq(expected_err, err.to_string()); in bad()
95 snapbox::assert_eq(expected_err, err.to_string()); in bad()
107 snapbox::assert_eq(expected_err, err.to_string()); in bad()
118 snapbox::assert_eq(expected_err, err.to_string()); in bad()
129 snapbox::assert_eq(expected_err, err.to_string()); in bad()
140 snapbox::assert_eq(expected_err, err.to_string()); in bad()
[all …]
/external/rust/crates/nom/tests/
Djson.rs138 assert_eq!(string("\"\""), Ok(("", "".to_string()))); in json_string()
139 assert_eq!(string("\"abc\""), Ok(("", "abc".to_string()))); in json_string()
142 Ok(("", "abc\"\\/\x08\x0C\n\r\t\x01——def".to_string())), in json_string()
144 assert_eq!(string("\"\\uD83D\\uDE10\""), Ok(("", "��".to_string()))); in json_string()
163 ("a".to_string(), Num(42.0)), in json_object()
164 ("b".to_string(), Str("x".to_string())), in json_object()
179 let expected = Array(vec![Num(42.0), Str("x".to_string())]); in json_array()
208 ("null".to_string(), Null), in json_whitespace()
209 ("true".to_string(), Bool(true)), in json_whitespace()
210 ("false".to_string(), Bool(false)), in json_whitespace()
[all …]

12345678910>>...104