Home
last modified time | relevance | path

Searched refs:ToString (Results 1 – 25 of 1075) sorted by relevance

12345678910>>...43

/external/protobuf/src/google/protobuf/util/
Dtime_util_test.cc57 EXPECT_EQ("0001-01-01T00:00:00Z", TimeUtil::ToString(begin)); in TEST()
58 EXPECT_EQ("9999-12-31T23:59:59.999999999Z", TimeUtil::ToString(end)); in TEST()
65 EXPECT_EQ("1969-12-31T23:59:59.999999999Z", TimeUtil::ToString(time)); in TEST()
69 TimeUtil::ToString(TimeUtil::NanosecondsToTimestamp(0))); in TEST()
71 TimeUtil::ToString(TimeUtil::NanosecondsToTimestamp(10000000))); in TEST()
73 TimeUtil::ToString(TimeUtil::NanosecondsToTimestamp(10000))); in TEST()
75 TimeUtil::ToString(TimeUtil::NanosecondsToTimestamp(10))); in TEST()
96 EXPECT_EQ("315537897599.999999999s", TimeUtil::ToString(end - begin)); in TEST()
98 EXPECT_EQ("-315537897599.999999999s", TimeUtil::ToString(begin - end)); in TEST()
102 EXPECT_EQ("1s", TimeUtil::ToString(TimeUtil::SecondsToDuration(1))); in TEST()
[all …]
/external/perfetto/src/trace_processor/
Dftrace_utils_unittest.cc38 ASSERT_STREQ(state.ToString().data(), "R"); in TEST()
39 ASSERT_STREQ(TaskState(1).ToString().data(), "S"); in TEST()
40 ASSERT_STREQ(TaskState(2).ToString().data(), "D"); in TEST()
41 ASSERT_STREQ(TaskState(4).ToString().data(), "T"); in TEST()
42 ASSERT_STREQ(TaskState(8).ToString().data(), "t"); in TEST()
43 ASSERT_STREQ(TaskState(16).ToString().data(), "X"); in TEST()
44 ASSERT_STREQ(TaskState(32).ToString().data(), "Z"); in TEST()
45 ASSERT_STREQ(TaskState(64).ToString().data(), "x"); in TEST()
46 ASSERT_STREQ(TaskState(128).ToString().data(), "K"); in TEST()
47 ASSERT_STREQ(TaskState(256).ToString().data(), "W"); in TEST()
[all …]
/external/perfetto/tools/ftrace_proto_gen/
Dftrace_proto_gen_unittest.cc25 EXPECT_EQ(InferProtoType(Field{"char foo[16]", 0, 16, false}).ToString(), in TEST()
27 EXPECT_EQ(InferProtoType(Field{"char bar_42[64]", 0, 64, false}).ToString(), in TEST()
30 InferProtoType(Field{"__data_loc char[] foo", 0, 4, false}).ToString(), in TEST()
32 EXPECT_EQ(InferProtoType(Field{"char[] foo", 0, 8, false}).ToString(), in TEST()
34 EXPECT_EQ(InferProtoType(Field{"char * foo", 0, 8, false}).ToString(), in TEST()
37 EXPECT_EQ(InferProtoType(Field{"int foo", 0, 4, true}).ToString(), "int32"); in TEST()
38 EXPECT_EQ(InferProtoType(Field{"s32 signal", 50, 4, true}).ToString(), in TEST()
41 EXPECT_EQ(InferProtoType(Field{"unsigned int foo", 0, 4, false}).ToString(), in TEST()
43 EXPECT_EQ(InferProtoType(Field{"u32 control_freq", 44, 4, false}).ToString(), in TEST()
46 EXPECT_EQ(InferProtoType(Field{"ino_t foo", 0, 4, false}).ToString(), in TEST()
[all …]
/external/flatbuffers/samples/
DSampleBinary.cs76 Assert(monster.Mana == 150, "monster.Mana", Convert.ToString(monster.Mana), in Main()
77 Convert.ToString(150)); in Main()
78 Assert(monster.Hp == 300, "monster.Hp", Convert.ToString(monster.Hp), Convert.ToString(30)); in Main()
81 Assert(monster.Color == Color.Red, "monster.Color", Convert.ToString(monster.Color), in Main()
82 Convert.ToString(Color.Red)); in Main()
86 Convert.ToString(vec.X), Convert.ToString(1.0f)); in Main()
88 Convert.ToString(vec.Y), Convert.ToString(2.0f)); in Main()
90 Convert.ToString(vec.Z), Convert.ToString(3.0f)); in Main()
96 Convert.ToString(monster.Inventory(i)), Convert.ToString(i)); in Main()
107 Convert.ToString(monster.Weapons(i).Value.Damage), in Main()
[all …]
/external/deqp-deps/SPIRV-Tools/test/
Dstring_utils_test.cpp25 TEST(ToString, Int) { in TEST() argument
26 EXPECT_EQ("0", ToString(0)); in TEST()
27 EXPECT_EQ("1000", ToString(1000)); in TEST()
28 EXPECT_EQ("-1", ToString(-1)); in TEST()
29 EXPECT_EQ("0", ToString(0LL)); in TEST()
30 EXPECT_EQ("1000", ToString(1000LL)); in TEST()
31 EXPECT_EQ("-1", ToString(-1LL)); in TEST()
34 TEST(ToString, Uint) { in TEST() argument
35 EXPECT_EQ("0", ToString(0U)); in TEST()
36 EXPECT_EQ("1000", ToString(1000U)); in TEST()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/
Dstring_utils_test.cpp25 TEST(ToString, Int) { in TEST() argument
26 EXPECT_EQ("0", ToString(0)); in TEST()
27 EXPECT_EQ("1000", ToString(1000)); in TEST()
28 EXPECT_EQ("-1", ToString(-1)); in TEST()
29 EXPECT_EQ("0", ToString(0LL)); in TEST()
30 EXPECT_EQ("1000", ToString(1000LL)); in TEST()
31 EXPECT_EQ("-1", ToString(-1LL)); in TEST()
34 TEST(ToString, Uint) { in TEST() argument
35 EXPECT_EQ("0", ToString(0U)); in TEST()
36 EXPECT_EQ("1000", ToString(1000U)); in TEST()
[all …]
/external/tensorflow/tensorflow/compiler/xla/
Dshape_test.cc60 EXPECT_EQ("opaque[]", opaque_.ToString()); in TEST_F()
61 EXPECT_EQ("token[]", token_.ToString()); in TEST_F()
62 EXPECT_EQ("f32[]", scalar_.ToString()); in TEST_F()
63 EXPECT_EQ("u32[1,2]", matrix_.ToString()); in TEST_F()
64 EXPECT_EQ("s32[3,4]", matrix2_.ToString()); in TEST_F()
65 EXPECT_EQ("(opaque[], f32[], u32[1,2], s32[3,4])", tuple_.ToString()); in TEST_F()
67 nested_tuple_.ToString()); in TEST_F()
69 EXPECT_EQ("opaque[]", opaque_.ToString(/*print_layout=*/true)); in TEST_F()
70 EXPECT_EQ("f32[]", scalar_.ToString(/*print_layout=*/true)); in TEST_F()
72 scalar_with_tile_.ToString(/*print_layout=*/true)); in TEST_F()
[all …]
Dlayout_test.cc34 TEST_F(LayoutTest, ToString) { in TEST_F() argument
35 EXPECT_EQ(Layout().ToString(), "invalid{}"); in TEST_F()
36 EXPECT_EQ(Layout({4, 5, 6}).ToString(), "{4,5,6}"); in TEST_F()
37 EXPECT_EQ(Layout().set_format(SPARSE).set_max_sparse_elements(123).ToString(), in TEST_F()
39 EXPECT_EQ(Layout({4, 5, 6}).ToString(), "{4,5,6}"); in TEST_F()
40 EXPECT_EQ(Layout({3, 2, 1, 0}, {Tile({42, 123}), Tile({4, 5})}).ToString(), in TEST_F()
43 Layout({1, 0}, {Tile({2, 55})}).set_element_size_in_bits(42).ToString(), in TEST_F()
46 Layout({1, 0}, {Tile({-2, 55})}).set_element_size_in_bits(42).ToString(), in TEST_F()
/external/tensorflow/tensorflow/stream_executor/rocm/
Drocm_driver.cc76 string ToString(hipError_t result) { in ToString() function
149 LOG(FATAL) << "failed to query current device: " << ToString(result); in CurrentDeviceOrDie()
160 LOG(FATAL) << "Synchronize found " << ToString(res) in SynchronizeOrDie()
271 << ToString(result); in ROCMPointersToCanAccessString()
279 << ToString(result); in ROCMPointersToCanAccessString()
303 LOG(ERROR) << "failed call to hipInit: " << ToString(res); in InternalInit()
306 absl::StrCat("failed call to hipInit: ", ToString(res))}; in InternalInit()
336 absl::StrCat("failed call to hipDeviceGet: ", ToString(res))}; in GetDevice()
347 << ToString(res); in GetDeviceName()
394 << ", config: " << cache_config << ", result: " << ToString(res); in FuncSetCacheConfig()
[all …]
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcuda_driver.cc110 string ToString(CUresult result) { in ToString() function
191 LOG(FATAL) << "Synchronize found " << ToString(res) in SynchronizeOrDie()
318 LOG(ERROR) << "failed call to cuInit: " << ToString(res); in InternalInit()
321 absl::StrCat("failed call to cuInit: ", ToString(res))); in InternalInit()
351 absl::StrCat("failed call to cuDeviceGet: ", ToString(res))); in GetDevice()
361 << ToString(res); in GetDeviceName()
457 string message = "failed call to cuDevicePrimaryCtxRetain: " + ToString(res); in CreateContext()
483 LOG(ERROR) << "failed to release CUDA context; leaking: " << ToString(res); in DestroyContext()
506 << ", config: " << cache_config << ", result: " << ToString(res); in FuncSetCacheConfig()
523 << ", result: " << ToString(result); in ContextGetSharedMemConfig()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Dreshape_mover.cc107 << hlo->ToString(HloPrintOptions().set_print_metadata(false)) in FirstNonScalarAndNonTrivialReshapeOperand()
109 << operand->ToString(HloPrintOptions().set_print_metadata(false)); in FirstNonScalarAndNonTrivialReshapeOperand()
175 VLOG(5) << "Changing broadcast from " << operand->ToString() << " to " in UpdateOperand()
176 << inst->ToString(); in UpdateOperand()
193 << instruction->ToString(print_no_metadata) in PerformSinkReshapeOrTranspose()
195 << first_reshape_operand->ToString(print_no_metadata) in PerformSinkReshapeOrTranspose()
208 << operands[i]->ToString(print_no_metadata); in PerformSinkReshapeOrTranspose()
242 << new_elementwise->ToString(print_no_metadata); in PerformSinkReshapeOrTranspose()
267 << instruction->ToString(print_no_metadata); in IsReshapeMoveCandidate()
290 << operand->ToString(print_no_metadata) << "\n\tinstruction: " in IsReshapeMoveCandidate()
[all …]
Dinstruction_fusion_test.cc63 ASSERT_THAT(fusion, op::Fusion()) << module->ToString(); in TEST_F()
66 << module->ToString(); in TEST_F()
87 ASSERT_THAT(fusion, op::Fusion()) << module->ToString(); in TEST_F()
89 << module->ToString(); in TEST_F()
108 ASSERT_THAT(fusion, op::Fusion()) << module->ToString(); in TEST_F()
110 << module->ToString(); in TEST_F()
182 << module->ToString(); in TEST_F()
212 << module->ToString(); in TEST_F()
213 EXPECT_EQ(Count(*module, HloOpcode::kFusion), 1) << module->ToString(); in TEST_F()
216 EXPECT_EQ(Count(*module, HloOpcode::kAdd), 1) << module->ToString(); in TEST_F()
[all …]
Dhlo_value.cc47 string HloPosition::ToString() const { in ToString() function in xla::HloPosition
49 instruction->shape().IsTuple() ? (" " + index.ToString()) : ""; in ToString()
54 out << position.ToString(); in operator <<()
58 string HloUse::ToString() const { in ToString() function in xla::HloUse
60 ? (" " + operand_index.ToString()) in ToString()
66 out << use.ToString(); in operator <<()
91 ? defining_index().ToString() in ToShortString()
97 string HloValue::ToString(int indent) const { in ToString() function in xla::HloValue
101 StrAppend(&out, indentation, " ", position.ToString(), "\n"); in ToString()
105 StrAppend(&out, indentation, " ", use.ToString(), "\n"); in ToString()
[all …]
Dwhile_loop_analysis.cc52 VLOG(2) << "GetGTEOperandIndex(" << instr->ToString() << ", " in GetGTEOperandIndex()
53 << gte_operand->ToString() << ")"; in GetGTEOperandIndex()
74 << tuple_idx << "): " << operand->ToString(); in GetGTEOperandIndex()
117 << while_cond->root_instruction()->ToString(); in GetLoopInductionVarTupleIdx()
132 << while_body_root->ToString(); in GetLoopInductionVarTupleIdx()
143 << while_body_inc->ToString(); in GetLoopInductionVarTupleIdx()
158 VLOG(2) << "While init expected to be a tuple: " << while_init->ToString(); in GetLoopInductionVarTupleIdx()
172 VLOG(2) << "literal is not an effective scalar: " << l.ToString(); in LiteralAsScalarInt64()
199 VLOG(2) << "literal is of non-integral type " << l.shape().ToString(); in LiteralAsScalarInt64()
243 << indvar_init.ToString(); in PatternMatchLoopTripCount()
[all …]
Dhlo_matchers.cc49 << operands[index]->ToString() in MatchAndExplain()
158 *listener << instruction->ToString() << " has incorrect shape (expected: " in MatchAndExplain()
173 *listener << instruction->ToString() << " has incorrect shape (expected: " in MatchAndExplain()
189 *listener << instruction->ToString() << " expected to have no sharding."; in MatchAndExplain()
196 *listener << instruction->ToString() in MatchAndExplain()
197 << " has incorrect sharding (expected: " << sharding_->ToString() in MatchAndExplain()
201 *listener << instruction->ToString() in MatchAndExplain()
202 << " has no sharding (expected: " << sharding_->ToString() << ")"; in MatchAndExplain()
209 *os << sharding_->ToString(); in DescribeTo()
225 *listener << instruction->ToString() in MatchAndExplain()
[all …]
Dhlo_verifier.cc67 hlo->ToString()); in CheckOperandCount()
89 hlo->ToString()); in Preprocess()
227 operand_no, StringifyShape(token->shape()), instruction->ToString()); in CheckIsTokenOperand()
240 operand->ToString(), parameter->ToString(), in CheckOperandAndParameter()
241 instruction->ToString()); in CheckOperandAndParameter()
267 StringifyShape(outfeed->outfeed_shape()), outfeed->ToString()); in HandleOutfeed()
290 instruction->ToString()); in HandleRng()
297 instruction->ToString()); in HandleRng()
310 instruction->ToString()); in HandleRng()
319 instruction->ToString()); in HandleRng()
[all …]
/external/webrtc/webrtc/system_wrappers/source/
Ddata_log_helpers_unittest.cc25 v1.ToString(&s1); in TEST()
26 v2.ToString(&s2); in TEST()
30 v1.ToString(&s1); in TEST()
40 v1.ToString(&s1); in TEST()
41 v2.ToString(&s2); in TEST()
45 v1.ToString(&s1); in TEST()
56 m1.ToString(&s1); in TEST()
57 m2.ToString(&s2); in TEST()
61 m1.ToString(&s1); in TEST()
63 m3.ToString(&s3); in TEST()
/external/protobuf/src/google/protobuf/stubs/
Dstatus_test.cc43 EXPECT_EQ("OK", util::Status::OK.ToString()); in TEST()
55 EXPECT_EQ("OK", status.ToString()); in TEST()
68 EXPECT_EQ("", status.error_message().ToString()); in TEST()
69 EXPECT_EQ("INVALID_ARGUMENT", status.ToString()); in TEST()
72 EXPECT_EQ("msg", status.error_message().ToString()); in TEST()
73 EXPECT_EQ("INVALID_ARGUMENT:msg", status.ToString()); in TEST()
76 EXPECT_EQ("", status.error_message().ToString()); in TEST()
77 EXPECT_EQ("OK", status.ToString()); in TEST()
83 ASSERT_EQ(a.ToString(), b.ToString()); in TEST()
90 ASSERT_EQ(a.ToString(), b.ToString()); in TEST()
[all …]
/external/grpc-grpc/test/cpp/common/
Dsecure_auth_context_test.cc27 using grpc::testing::ToString;
54 EXPECT_EQ("chapi", ToString(peer_identity[0])); in TEST_F()
55 EXPECT_EQ("chapo", ToString(peer_identity[1])); in TEST_F()
59 EXPECT_EQ("bar", ToString(bar[0])); in TEST_F()
77 EXPECT_EQ("name", ToString(p0.first)); in TEST_F()
78 EXPECT_EQ("chapi", ToString(p0.second)); in TEST_F()
79 EXPECT_EQ("name", ToString(p1.first)); in TEST_F()
80 EXPECT_EQ("chapo", ToString(p1.second)); in TEST_F()
81 EXPECT_EQ("foo", ToString(p2.first)); in TEST_F()
82 EXPECT_EQ("bar", ToString(p2.second)); in TEST_F()
Dauth_property_iterator_test.cc27 using ::grpc::testing::ToString;
73 EXPECT_EQ("name", ToString(p0.first)); in TEST_F()
74 EXPECT_EQ("chapi", ToString(p0.second)); in TEST_F()
75 EXPECT_EQ("name", ToString(p1.first)); in TEST_F()
76 EXPECT_EQ("chapo", ToString(p1.second)); in TEST_F()
77 EXPECT_EQ("foo", ToString(p2.first)); in TEST_F()
78 EXPECT_EQ("bar", ToString(p2.second)); in TEST_F()
/external/pdfium/fxjs/
Dcfxjse_formcalc_context_embeddertest.cpp89 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
91 << value->ToString().c_str() << "'"; in TEST_F()
385 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
387 << value->ToString().c_str() << "'"; in TEST_F()
447 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
449 << value->ToString().c_str() << "'"; in TEST_F()
469 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
471 << value->ToString().c_str() << "'"; in TEST_F()
494 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
496 << value->ToString().c_str() << "'"; in TEST_F()
[all …]
/external/protobuf/src/google/protobuf/util/internal/
Dexpecting_objectwriter.h96 : EXPECT_CALL(*mock_, StartObject(StrEq(name.ToString())))) in StartObject()
112 : EXPECT_CALL(*mock_, StartList(StrEq(name.ToString())))) in StartList()
128 : EXPECT_CALL(*mock_, RenderBool(StrEq(name.ToString()), in RenderBool()
138 : EXPECT_CALL(*mock_, RenderInt32(StrEq(name.ToString()), in RenderInt32()
148 : EXPECT_CALL(*mock_, RenderUint32(StrEq(name.ToString()), in RenderUint32()
158 : EXPECT_CALL(*mock_, RenderInt64(StrEq(name.ToString()), in RenderInt64()
168 : EXPECT_CALL(*mock_, RenderUint64(StrEq(name.ToString()), in RenderUint64()
179 : EXPECT_CALL(*mock_, RenderDouble(StrEq(name.ToString()), in RenderDouble()
190 : EXPECT_CALL(*mock_, RenderFloat(StrEq(name.ToString()), in RenderFloat()
200 TypedEq<StringPiece>(value.ToString()))) in RenderString()
[all …]
/external/webrtc/webrtc/base/
Dsocketaddress_unittest.cc50 EXPECT_EQ("1.2.3.4:5678", addr.ToString()); in TEST()
59 EXPECT_EQ("1.2.3.4:5678", addr.ToString()); in TEST()
70 EXPECT_EQ("[" + kTestV6AddrString + "]:1234", addr2.ToString()); in TEST()
80 EXPECT_EQ("255.255.255.255:5678", addr.ToString()); in TEST()
89 EXPECT_EQ("a.b.com:5678", addr.ToString()); in TEST()
99 EXPECT_EQ("1.2.3.4:5678", addr.ToString()); in TEST()
110 EXPECT_EQ("1.2.3.4:5678", addr.ToString()); in TEST()
121 EXPECT_EQ("1.2.3.4:5678", addr.ToString()); in TEST()
132 EXPECT_EQ("1.2.3.4:5678", addr.ToString()); in TEST()
143 EXPECT_EQ("a.b.com:5678", addr.ToString()); in TEST()
[all …]
Dwin32_unittest.cc68 EXPECT_EQ("2a00:8a00:a000:1190::1:0:252", ipv6.ToString()); in TEST_F()
72 EXPECT_EQ("::1", ipv6.ToString()); in TEST_F()
76 EXPECT_EQ("fe80::2aa:ff:fe9a:4ca2", ipv6.ToString()); in TEST_F()
80 EXPECT_EQ("2a00:8a00:a000:1190:0:1::", ipv6.ToString()); in TEST_F()
84 EXPECT_EQ("::1190:0:1:0:0", ipv6.ToString()); in TEST_F()
88 EXPECT_EQ("::1:0:1190:0:1:0:1", ipv6.ToString()); in TEST_F()
92 EXPECT_EQ("1234:5678:abcd:1234:5678:abcd:1234:5678", ipv6.ToString()); in TEST_F()
/external/tensorflow/tensorflow/core/lib/core/
Dbitmap_test.cc41 EXPECT_FALSE(bits.get(i)) << n << " " << i << " " << bits.ToString(); in TEST()
43 EXPECT_TRUE(bits.get(i)) << n << " " << i << " " << bits.ToString(); in TEST()
45 EXPECT_FALSE(bits.get(i)) << n << " " << i << " " << bits.ToString(); in TEST()
50 TEST(BitmapTest, ToString) { in TEST() argument
54 EXPECT_EQ(bits.ToString(), "0101000000"); in TEST()
87 ASSERT_FALSE(bitmap.get(pos)) << pos << " " << bitmap.ToString(); in TEST()
91 EXPECT_EQ(seen, n - one_count) << " " << bitmap.ToString(); in TEST()
117 ASSERT_FALSE(bitmap.get(pos)) << pos << " " << bitmap.ToString(); in TEST()
122 EXPECT_EQ(seen, zero_bits) << " " << bitmap.ToString(); in TEST()

12345678910>>...43