Home
last modified time | relevance | path

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

12345678910>>...19

/external/tensorflow/tensorflow/python/framework/
Ddevice_test.py33 self.assertEquals("", d.to_string())
35 self.assertEquals("", d.to_string())
45 self.assertEqual("/job:j/replica:0/task:1/device:CPU:2", d.to_string())
48 self.assertEquals("/device:GPU:0", d.to_string())
53 self.assertEquals("/job:foo", d.to_string())
55 self.assertEquals("/job:foo/task:3", d.to_string())
58 self.assertEquals("/job:foo/task:3/device:CPU:0", d.to_string())
61 self.assertEquals("/job:foo/replica:12/device:CPU:0", d.to_string())
64 self.assertEquals("/job:foo/replica:12/device:GPU:2", d.to_string())
67 self.assertEquals("/job:foo/replica:12/device:CPU:1", d.to_string())
[all …]
/external/selinux/python/sepolgen/src/sepolgen/
Drefpolicy.py143 return str(self.comment) + "\n" + self.to_string()
145 return self.to_string()
148 return "<%s(%s)>" % (self.__class__.__name__, self.to_string())
150 def to_string(self): member in Node
160 return str(self.comment) + "\n" + self.to_string()
162 return self.to_string()
165 return "<%s(%s)>" % (self.__class__.__name__, self.to_string())
167 def to_string(self): member in Leaf
319 def to_string(self, default_level=None): member in SecurityContext
402 def to_string(self): member in XpermSet
[all …]
/external/libcxx/test/std/strings/string.conversions/
Dto_string.pass.cpp32 std::string s = std::to_string(T(0)); in test_signed()
38 std::string s = std::to_string(T(12345)); in test_signed()
44 std::string s = std::to_string(T(-12345)); in test_signed()
50 std::string s = std::to_string(std::numeric_limits<T>::max()); in test_signed()
58 std::string s = std::to_string(std::numeric_limits<T>::min()); in test_signed()
71 std::string s = std::to_string(T(0)); in test_unsigned()
77 std::string s = std::to_string(T(12345)); in test_unsigned()
83 std::string s = std::to_string(std::numeric_limits<T>::max()); in test_unsigned()
97 std::string s = std::to_string(T(0)); in test_float()
103 std::string s = std::to_string(T(12345)); in test_float()
[all …]
/external/libcxx/test/std/utilities/template.bitset/bitset.members/
Dto_string.pass.cpp53 …std::wstring s = v.template to_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> … in test_to_string()
61 std::wstring s = v.template to_string<wchar_t, std::char_traits<wchar_t> >(); in test_to_string()
69 std::string s = v.template to_string<char>(); in test_to_string()
77 std::string s = v.to_string(); in test_to_string()
88 …std::wstring s = v.template to_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> … in test_to_string()
96 std::wstring s = v.template to_string<wchar_t, std::char_traits<wchar_t> >('0'); in test_to_string()
104 std::string s = v.template to_string<char>('0'); in test_to_string()
112 std::string s = v.to_string('0'); in test_to_string()
123 …std::wstring s = v.template to_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> … in test_to_string()
131 std::wstring s = v.template to_string<wchar_t, std::char_traits<wchar_t> >('0', '1'); in test_to_string()
[all …]
/external/pdfium/testing/
Dfx_string_testhelpers.cpp12 os << dt.GetYear() << "-" << std::to_string(dt.GetMonth()) << "-" in operator <<()
13 << std::to_string(dt.GetDay()) << " " << std::to_string(dt.GetHour()) in operator <<()
14 << ":" << std::to_string(dt.GetMinute()) << ":" in operator <<()
15 << std::to_string(dt.GetSecond()) << "." in operator <<()
16 << std::to_string(dt.GetMillisecond()); in operator <<()
/external/grpc-grpc/test/cpp/naming/
Dresolver_component_test.cc275 std::to_string(WSAGetLastError()); in OpenAndCloseSocketsStressLoop()
279 << "Failed to bind socket " + std::to_string(s) + in OpenAndCloseSocketsStressLoop()
280 " to [::1]:" + std::to_string(dummy_port) + in OpenAndCloseSocketsStressLoop()
281 ". WSA error: " + std::to_string(WSAGetLastError()); in OpenAndCloseSocketsStressLoop()
283 << "Failed to listen on socket " + std::to_string(s) + in OpenAndCloseSocketsStressLoop()
284 ". WSA error: " + std::to_string(WSAGetLastError()); in OpenAndCloseSocketsStressLoop()
295 std::to_string(sockets[i]) + in OpenAndCloseSocketsStressLoop()
299 std::to_string(WSAGetLastError()) + in OpenAndCloseSocketsStressLoop()
302 << "Failed to close socket: " + std::to_string(sockets[i]) + in OpenAndCloseSocketsStressLoop()
303 ". WSA error: " + std::to_string(WSAGetLastError()); in OpenAndCloseSocketsStressLoop()
[all …]
/external/selinux/python/sepolgen/tests/
Dtest_refpolicy.py89 self.assertEqual(a.to_string(), "")
91 self.assertEqual(a.to_string(), "")
93 self.assertEqual(a.to_string(), "~ 1234")
95 self.assertEqual(a.to_string(), "1234")
97 self.assertEqual(a.to_string(), "{ 1234 2345 }")
99 self.assertEqual(a.to_string(), "~ { 1234 2345 }")
101 self.assertEqual(a.to_string(), "~ { 42-64 1234 2345 }")
103 self.assertEqual(a.to_string(), "{ 42-64 1234 2345 }")
122 self.assertEqual(sc.to_string(default_level="s1"), context + ":s1")
132 self.assertEqual(sc.to_string(), context)
[all …]
/external/parameter-framework/upstream/test/functional-tests/
DFloatingPoint.cpp116 std::to_string(::utility::binaryCopy<uint32_t>(tooHigh))},
118 std::to_string(::utility::binaryCopy<uint32_t>(tooLow))},
120 {"(infinity)", std::to_string(::utility::binaryCopy<uint32_t>(inf))},
121 {"(NaN)", std::to_string(::utility::binaryCopy<uint32_t>(nan))},
132 std::to_string(::utility::binaryCopy<uint32_t>(upper))},
134 std::to_string(::utility::binaryCopy<uint32_t>(lower))},
136 std::to_string(::utility::binaryCopy<uint32_t>(zero))},
/external/v8/tools/
Dgdb-v8-support.py116 def to_string(self): member in V8ValuePrinter
173 to_string = True)
180 for l in gdb.execute("maint info sections", to_string = True).split('\n'):
185 for l in gdb.execute("info proc mappings", to_string = True).split('\n'):
209 old_stdout = gdb.execute("p dup(1)", to_string=True).split("=")[-1].strip()
216 gdb.execute('p dup2(open("%s", 1), 1)' % file, to_string=True)
218 result = gdb.execute(subcommand, from_tty=False, to_string=True)
231 gdb.execute("p dup2(%s, 1)" % old_stdout, to_string=True)
236 gdb.execute("p close(%s)" % old_stdout, to_string=True)
/external/swiftshader/third_party/SPIRV-Tools/source/
Dname_mapper.cpp34 std::string to_string(uint32_t id) { in to_string() function
44 NameMapper GetTrivialNameMapper() { return to_string; } in GetTrivialNameMapper()
62 return to_string(id); in NameForId()
93 name = base_name + to_string(index); in SaveName()
211 root = to_string(bit_width); in ParseInstruction()
231 SaveName(result_id, std::string("fp") + to_string(bit_width)); in ParseInstruction()
236 SaveName(result_id, std::string("v") + to_string(inst.words[3]) + in ParseInstruction()
240 SaveName(result_id, std::string("mat") + to_string(inst.words[3]) + in ParseInstruction()
289 SaveName(result_id, std::string("_struct_") + to_string(result_id)); in ParseInstruction()
314 SaveName(result_id, to_string(result_id)); in ParseInstruction()
[all …]
/external/deqp-deps/SPIRV-Tools/source/
Dname_mapper.cpp34 std::string to_string(uint32_t id) { in to_string() function
44 NameMapper GetTrivialNameMapper() { return to_string; } in GetTrivialNameMapper()
62 return to_string(id); in NameForId()
93 name = base_name + to_string(index); in SaveName()
211 root = to_string(bit_width); in ParseInstruction()
231 SaveName(result_id, std::string("fp") + to_string(bit_width)); in ParseInstruction()
236 SaveName(result_id, std::string("v") + to_string(inst.words[3]) + in ParseInstruction()
240 SaveName(result_id, std::string("mat") + to_string(inst.words[3]) + in ParseInstruction()
289 SaveName(result_id, std::string("_struct_") + to_string(result_id)); in ParseInstruction()
314 SaveName(result_id, to_string(result_id)); in ParseInstruction()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/
Dtext_to_binary.constant_test.cpp496 std::to_string(std::numeric_limits<uint32_t>::max()) + "\n",
498 std::to_string(std::numeric_limits<int32_t>::max()) + "\n",
500 std::to_string(std::numeric_limits<int32_t>::min()) + "\n",
504 std::to_string(kMaxUnsigned48Bit) + "\n",
506 std::to_string(kMaxSigned48Bit) + "\n",
508 std::to_string(kMinSigned48Bit) + "\n",
512 std::to_string(std::numeric_limits<uint64_t>::max()) + "\n",
514 std::to_string(std::numeric_limits<int64_t>::max()) + "\n",
516 std::to_string(std::numeric_limits<int64_t>::min()) + "\n",
606 std::to_string(std::numeric_limits<uint32_t>::max()) + "\n",
[all …]
/external/deqp-deps/SPIRV-Tools/test/
Dtext_to_binary.constant_test.cpp496 std::to_string(std::numeric_limits<uint32_t>::max()) + "\n",
498 std::to_string(std::numeric_limits<int32_t>::max()) + "\n",
500 std::to_string(std::numeric_limits<int32_t>::min()) + "\n",
504 std::to_string(kMaxUnsigned48Bit) + "\n",
506 std::to_string(kMaxSigned48Bit) + "\n",
508 std::to_string(kMinSigned48Bit) + "\n",
512 std::to_string(std::numeric_limits<uint64_t>::max()) + "\n",
514 std::to_string(std::numeric_limits<int64_t>::max()) + "\n",
516 std::to_string(std::numeric_limits<int64_t>::min()) + "\n",
606 std::to_string(std::numeric_limits<uint32_t>::max()) + "\n",
[all …]
/external/dynamic_depth/internal/dynamic_depth/
Dearth_pose.cc119 std::to_string(position_[0])) && in Serialize()
121 std::to_string(position_[1])) && in Serialize()
123 std::to_string(position_[2])); in Serialize()
129 std::to_string(orientation_[0])) && in Serialize()
131 std::to_string(orientation_[1])) && in Serialize()
133 std::to_string(orientation_[2])) && in Serialize()
135 std::to_string(orientation_[3])); in Serialize()
140 std::to_string(timestamp_)); in Serialize()
Dpose.cc113 std::to_string(position_[0])) && in Serialize()
115 std::to_string(position_[1])) && in Serialize()
117 std::to_string(position_[2])); in Serialize()
122 std::to_string(orientation_[0])) && in Serialize()
124 std::to_string(orientation_[1])) && in Serialize()
126 std::to_string(orientation_[2])) && in Serialize()
128 std::to_string(orientation_[3])); in Serialize()
133 std::to_string(timestamp_)); in Serialize()
Dimaging_model.cc165 std::to_string(params_.focal_length.x)) || in Serialize()
168 std::to_string(params_.focal_length.y)) || in Serialize()
171 std::to_string(params_.image_size.width)) || in Serialize()
174 std::to_string(params_.image_size.height)) || in Serialize()
178 std::to_string(params_.principal_point.x)) || in Serialize()
181 std::to_string(params_.principal_point.y)) || in Serialize()
184 std::to_string(params_.skew)) || in Serialize()
187 std::to_string(params_.pixel_aspect_ratio))) { in Serialize()
/external/swiftshader/third_party/llvm-7.0/llvm/utils/gdb-scripts/
Dprettyprinters.py23 def to_string(self): member in SmallStringPrinter
33 def to_string(self): member in StringRefPrinter
53 def to_string(self): member in SmallVectorPrinter
91 def to_string(self): member in ArrayRefPrinter
114 def to_string(self): member in ExpectedPrinter
133 def to_string(self): member in OptionalPrinter
194 def to_string(self): member in DenseMapPrinter
217 s = pp.to_string()
260 return pp.to_string()
265 return pp.to_string()
[all …]
/external/perfetto/src/traced/probes/ps/
Dprocess_stats_data_source_unittest.cc93 process.cmdline(0) == "proc_" + std::to_string(pid); in TEST_F()
99 thread.name() == "thread_" + std::to_string(tid); in TEST_F()
110 return "Name: \tthread_" + std::to_string(pid) + in TEST_F()
111 "\nTgid: " + std::to_string(tgid) + in TEST_F()
112 "\nPid: " + std::to_string(pid) + "\nPPid: 1\n"; in TEST_F()
115 std::string proc_name = "proc_" + std::to_string(p); in TEST_F()
223 process.cmdline(0) == "proc_" + std::to_string(pid); in TEST_F()
229 process.cmdline(0) == "new_" + std::to_string(pid); in TEST_F()
238 return "Name: \tthread_" + std::to_string(pid) + in TEST_F()
239 "\nTgid: " + std::to_string(pid) + in TEST_F()
[all …]
/external/perfetto/src/tracing/test/
Dmock_consumer.cc35 auto checkpoint_name = "on_consumer_disconnect_" + std::to_string(i++); in ~MockConsumer()
45 auto checkpoint_name = "on_consumer_connect_" + std::to_string(i++); in Connect()
74 auto checkpoint_name = "on_tracing_disabled_consumer_" + std::to_string(i++); in WaitForTracingDisabled()
82 auto checkpoint_name = "on_consumer_flush_" + std::to_string(i++); in Flush()
103 std::string checkpoint_name = "on_read_buffers_" + std::to_string(i++); in ReadBuffers()
128 auto checkpoint_name = "on_trace_stats_" + std::to_string(i++); in WaitForTraceStats()
152 std::string checkpoint_name = "on_observable_events_" + std::to_string(i++); in WaitForObservableEvents()
/external/skia/src/sksl/ir/
DSkSLLayout.h217 result += separator + "location = " + to_string(fLocation); in description()
221 result += separator + "offset = " + to_string(fOffset); in description()
225 result += separator + "binding = " + to_string(fBinding); in description()
229 result += separator + "index = " + to_string(fIndex); in description()
233 result += separator + "set = " + to_string(fSet); in description()
237 result += separator + "builtin = " + to_string(fBuiltin); in description()
241 result += separator + "input_attachment_index = " + to_string(fInputAttachmentIndex); in description()
361 result += separator + "max_vertices = " + to_string(fMaxVertices); in description()
365 result += separator + "invocations = " + to_string(fInvocations); in description()
/external/skqp/src/sksl/ir/
DSkSLLayout.h217 result += separator + "location = " + to_string(fLocation); in description()
221 result += separator + "offset = " + to_string(fOffset); in description()
225 result += separator + "binding = " + to_string(fBinding); in description()
229 result += separator + "index = " + to_string(fIndex); in description()
233 result += separator + "set = " + to_string(fSet); in description()
237 result += separator + "builtin = " + to_string(fBuiltin); in description()
241 result += separator + "input_attachment_index = " + to_string(fInputAttachmentIndex); in description()
361 result += separator + "max_vertices = " + to_string(fMaxVertices); in description()
365 result += separator + "invocations = " + to_string(fInvocations); in description()
/external/parameter-framework/upstream/test/tmpfile/windows/
DTmpFile.cpp37 using std::to_string;
66 return "Could not format error " + to_string(error) + ": " + to_string(::GetLastError()); in formatError()
80 "\", with prefix \"" + prefix + "\": (" + to_string(error) + ") " + in mktmp()
/external/perfetto/src/trace_processor/
Dquery_constraints.cc78 str_result.append(std::to_string(constraints_.size())); in ToNewSqlite3String()
81 str_result.append(std::to_string(cs.iColumn)); in ToNewSqlite3String()
83 str_result.append(std::to_string(cs.op)); in ToNewSqlite3String()
87 str_result.append(std::to_string(order_by_.size())); in ToNewSqlite3String()
90 str_result.append(std::to_string(ob.iColumn)); in ToNewSqlite3String()
92 str_result.append(std::to_string(ob.desc)); in ToNewSqlite3String()
/external/skia/src/sksl/lex/
DNFAState.h85 return "Accept(" + std::to_string(fData[0]) + ")"; in description()
90 result += std::to_string(v); in description()
100 result += std::to_string(v); in description()
111 result += std::to_string(v); in description()
128 result += std::to_string(n); in description()
/external/skqp/src/sksl/lex/
DNFAState.h85 return "Accept(" + std::to_string(fData[0]) + ")"; in description()
90 result += std::to_string(v); in description()
100 result += std::to_string(v); in description()
111 result += std::to_string(v); in description()
128 result += std::to_string(n); in description()

12345678910>>...19