/external/tensorflow/tensorflow/python/kernel_tests/strings_ops/ |
D | as_string_op_test.py | 38 output = string_ops.as_string(input_, shortest=True) 43 output = string_ops.as_string(input_, scientific=True) 47 output = string_ops.as_string(input_) 51 output = string_ops.as_string(input_, width=3) 55 output = string_ops.as_string(input_, width=3, fill="0") 59 output = string_ops.as_string(input_, width=3, fill="0", shortest=True) 63 output = string_ops.as_string(input_, precision=10, width=3) 67 output = string_ops.as_string( 73 output = string_ops.as_string(input_, scientific=True, shortest=True) 77 output = string_ops.as_string(input_, fill="ab") [all …]
|
D | regex_replace_op_test.py | 90 def as_string(s): function 101 (as_string, as_tensor), 102 (as_tensor, as_string),
|
/external/tensorflow/tensorflow/security/advisory/ |
D | tfsa-2020-013.md | 1 ## TFSA-2020-013: Format-string vulnerability in TensorFlow's `as_string` 8 [`tf.strings.as_string`](https://www.tensorflow.org/api_docs/python/tf/strings/as_string), 24 In [1]: tf.strings.as_string(input=[1234], width=6, fill='-') 27 In [2]: tf.strings.as_string(input=[1234], width=6, fill='+') 30 In [3]: tf.strings.as_string(input=[1234], width=6, fill="h") 33 In [4]: tf.strings.as_string(input=[1234], width=6, fill="d") 36 In [5]: tf.strings.as_string(input=[1234], width=6, fill="o") 39 In [6]: tf.strings.as_string(input=[1234], width=6, fill="x") 42 In [7]: tf.strings.as_string(input=[1234], width=6, fill="g") 45 In [8]: tf.strings.as_string(input=[1234], width=6, fill="a") [all …]
|
/external/libchrome/base/strings/ |
D | string_piece_unittest.cc | 19 static const T as_string(const char* input) { in as_string() function in base::CommonStringPieceTest 22 static const T& as_string(const T& input) { in as_string() function in base::CommonStringPieceTest 30 static const string16 as_string(const char* input) { in as_string() function in base::CommonStringPieceTest 33 static const string16 as_string(const std::string& input) { in as_string() function in base::CommonStringPieceTest 45 TypeParam lhs(TestFixture::as_string(x)); \ in TYPED_TEST() 46 TypeParam rhs(TestFixture::as_string(y)); \ in TYPED_TEST() 55 TypeParam lhs(TestFixture::as_string(x)); \ in TYPED_TEST() 56 TypeParam rhs(TestFixture::as_string(y)); \ in TYPED_TEST() 138 TypeParam alphabet(TestFixture::as_string("abcdefghijklmnopqrstuvwxyz")); in TYPED_TEST() 139 TypeParam abc(TestFixture::as_string("abc")); in TYPED_TEST() [all …]
|
/external/libcxx/src/ |
D | string.cpp | 355 as_string(P sprintf_like, S s, const typename S::value_type* fmt, V a) in as_string() function 438 return as_string(snprintf, initial_string<string, int>()(), "%d", val); in to_string() 443 return as_string(snprintf, initial_string<string, unsigned>()(), "%u", val); in to_string() 448 return as_string(snprintf, initial_string<string, long>()(), "%ld", val); in to_string() 453 return as_string(snprintf, initial_string<string, unsigned long>()(), "%lu", val); in to_string() 458 return as_string(snprintf, initial_string<string, long long>()(), "%lld", val); in to_string() 463 return as_string(snprintf, initial_string<string, unsigned long long>()(), "%llu", val); in to_string() 468 return as_string(snprintf, initial_string<string, float>()(), "%f", val); in to_string() 473 return as_string(snprintf, initial_string<string, double>()(), "%f", val); in to_string() 478 return as_string(snprintf, initial_string<string, long double>()(), "%Lf", val); in to_string() [all …]
|
/external/cronet/base/strings/ |
D | string_piece_unittest.cc | 19 static std::string as_string(const char* input) { return input; } in as_string() function in base::CommonStringPieceTest 20 static const std::string& as_string(const std::string& input) { in as_string() function in base::CommonStringPieceTest 28 static std::u16string as_string(const char* input) { in as_string() function in base::CommonStringPieceTest 31 static std::u16string as_string(const std::string& input) { in as_string() function in base::CommonStringPieceTest 43 std::basic_string<TypeParam> lhs(TestFixture::as_string(x)); \ in TYPED_TEST() 44 std::basic_string<TypeParam> rhs(TestFixture::as_string(y)); \ in TYPED_TEST() 56 std::basic_string<TypeParam> lhs(TestFixture::as_string(x)); \ in TYPED_TEST() 57 std::basic_string<TypeParam> rhs(TestFixture::as_string(y)); \ in TYPED_TEST() 143 TestFixture::as_string("abcdefghijklmnopqrstuvwxyz")); in TYPED_TEST() 144 std::basic_string<TypeParam> abc(TestFixture::as_string("abc")); in TYPED_TEST() [all …]
|
/external/cronet/base/trace_event/ |
D | trace_arguments_unittest.cc | 186 EXPECT_EQ(kText, args.values()[0].as_string); in TEST() 195 EXPECT_EQ(text.c_str(), args.values()[0].as_string); in TEST() 204 EXPECT_EQ(kText, args.values()[0].as_string); in TEST() 273 EXPECT_EQ(kText1, args1.values()[0].as_string); in TEST() 301 EXPECT_EQ(kText, args.values()[1].as_string); in TEST() 343 EXPECT_EQ(kText1, args1.values()[0].as_string); in TEST() 359 EXPECT_EQ(kText1, args2.values()[0].as_string); in TEST() 382 EXPECT_EQ(kText1, args1.values()[0].as_string); in TEST() 400 EXPECT_EQ(kText1, args2.values()[0].as_string); in TEST() 467 EXPECT_TRUE(storage.Contains(args.values()[0].as_string)); in TEST() [all …]
|
D | trace_arguments.cc | 159 !Contains(args.values()[n].as_string)) { in Contains() 207 EscapeJSONString(this->as_string ? this->as_string : "NULL", true, out); in Append() 209 *out += this->as_string ? this->as_string : "NULL"; in Append() 273 alloc_size += GetAllocLength(values_[n].as_string); in CopyStringsTo() 288 CopyTraceEventParameter(&ptr, &values_[n].as_string, end); in CopyStringsTo() 302 DCHECK(storage->Contains(values_[n].as_string)); in CopyStringsTo()
|
/external/libabigail/src/ |
D | abg-suppression.cc | 1625 ? drop_artifact->get_value()->as_string() in read_type_suppression() 1630 string label_str = label ? label->get_value()->as_string() : ""; in read_type_suppression() 1635 file_name_regex_prop ? file_name_regex_prop->get_value()->as_string() : ""; in read_type_suppression() 1641 ? file_name_not_regex_prop->get_value()->as_string() in read_type_suppression() 1647 soname_regex_prop ? soname_regex_prop->get_value()->as_string() : ""; in read_type_suppression() 1653 ? soname_not_regex_prop->get_value()->as_string() in read_type_suppression() 1659 ? name_regex_prop->get_value()->as_string() in read_type_suppression() 1665 ? name_not_regex_prop->get_value()->as_string() in read_type_suppression() 1671 ? name_prop->get_value()->as_string() in read_type_suppression() 1680 srcloc_not_in.insert(p->get_value()->as_string()); in read_type_suppression() [all …]
|
D | abg-ini.cc | 278 {return as_string();} in operator const string&() 325 string_property_value::as_string() const in as_string() function in abigail::ini::string_property_value 333 {return as_string();} in operator string() 413 list_property_value::as_string() const in as_string() function in abigail::ini::list_property_value 499 tuple_property_value::as_string() const in as_string() function in abigail::ini::tuple_property_value 511 priv_->string_rep_ += (*i)->as_string(); in as_string() 606 return priv_->value_->as_string().empty(); in has_empty_value() 1818 result = simple_prop->get_value()->as_string(); in write_property_value() 1821 result = list_prop->get_value()->as_string(); in write_property_value() 1823 result = tuple_prop->get_value()->as_string(); in write_property_value()
|
/external/mesa3d/src/gallium/frontends/clover/api/ |
D | platform.cpp | 61 buf.as_string() = "FULL_PROFILE"; in GetPlatformInfo() 68 buf.as_string() = "OpenCL " + version_string + " Mesa " PACKAGE_VERSION MESA_GIT_SHA1; in GetPlatformInfo() 72 buf.as_string() = "Clover"; in GetPlatformInfo() 76 buf.as_string() = "Mesa"; in GetPlatformInfo() 80 buf.as_string() = platform.supported_extensions(); in GetPlatformInfo() 84 buf.as_string() = "MESA"; in GetPlatformInfo()
|
D | device.cpp | 304 buf.as_string() = ""; in clGetDeviceInfo() 308 buf.as_string() = dev.device_name(); in clGetDeviceInfo() 312 buf.as_string() = dev.vendor_name(); in clGetDeviceInfo() 316 buf.as_string() = PACKAGE_VERSION; in clGetDeviceInfo() 320 buf.as_string() = "FULL_PROFILE"; in clGetDeviceInfo() 324 buf.as_string() = "OpenCL " + dev.device_version() + " Mesa " PACKAGE_VERSION MESA_GIT_SHA1; in clGetDeviceInfo() 328 buf.as_string() = dev.supported_extensions(); in clGetDeviceInfo() 368 buf.as_string() = "OpenCL C " + dev.device_clc_version() + " "; in clGetDeviceInfo()
|
/external/tensorflow/tensorflow/core/api_def/python_api/ |
D | api_def_AsString.pbtxt | 4 name: "dtypes.as_string" 8 name: "strings.as_string" 11 name: "as_string"
|
/external/python/cpython3/Lib/test/test_email/ |
D | test_pickleable.py | 66 self.assertEqual(msg2.as_string(), msg.as_string()) 72 self.assertEqual(msg2.as_string(), msg.as_string())
|
/external/webrtc/rtc_base/ |
D | event_tracer.cc | 111 size_t str_length = strlen(arg.value.as_string) + 1; in AddTraceEvent() 113 memcpy(str_copy, arg.value.as_string, str_length); in AddTraceEvent() 114 arg.value.as_string = str_copy; in AddTraceEvent() 155 delete[] arg.value.as_string; in Log() 156 arg.value.as_string = nullptr; in Log() 237 const char* as_string; member 264 output.reserve(strlen(arg.value.as_string) * 2 + 2); in TraceArgValueAsString() 266 const char* c = arg.value.as_string; in TraceArgValueAsString()
|
/external/tensorflow/tensorflow/core/kernels/fuzzing/ |
D | parse_tensor_op_fuzz.cc | 46 string as_string = string(reinterpret_cast<const char*>(data), size); in FuzzImpl() local 48 if (!ParseProtoUnlimited(&proto, as_string)) { in FuzzImpl() 66 input_tensor.scalar<tstring>()() = as_string; in FuzzImpl()
|
/external/skia/tools/trace/ |
D | SkPerfettoTrace.cpp | 215 TRACE_EVENT_BEGIN(category, nullptr, arg1Name, value.as_string, in triggerTraceEvent() 221 TRACE_EVENT_BEGIN(category, nullptr, arg1Name, value.as_string, in triggerTraceEvent() 276 TRACE_EVENT_BEGIN(category, nullptr, arg1Name, arg1Val, arg2Name, value.as_string, in begin_event_with_second_arg() 282 TRACE_EVENT_BEGIN(category, nullptr, arg1Name, arg1Val, arg2Name, value.as_string, in begin_event_with_second_arg() 332 begin_event_with_second_arg(category, eventName, arg1Name, value.as_string, arg2Name, in triggerTraceEvent() 337 begin_event_with_second_arg(category, eventName, arg1Name, value.as_string, arg2Name, in triggerTraceEvent()
|
D | ChromeTracingTracer.cpp | 98 size += strlen(value.as_string) + 1; in addTraceEvent() 130 while (*value.as_string) { in addTraceEvent() 131 *stringTable++ = *value.as_string++; in addTraceEvent() 164 case TRACE_VALUE_TYPE_STRING: writer->appendCString(value.as_string); break; in trace_value_to_json()
|
/external/cronet/net/third_party/quiche/src/quiche/quic/core/http/ |
D | spdy_utils_test.cc | 359 EXPECT_EQ("https", headers[":scheme"].as_string()); in TEST_F() 360 EXPECT_EQ("www.google.com", headers[":authority"].as_string()); in TEST_F() 361 EXPECT_EQ("/index.html", headers[":path"].as_string()); in TEST_F() 368 EXPECT_EQ("https", headers[":scheme"].as_string()); in TEST_F() 369 EXPECT_EQ("www.google.com", headers[":authority"].as_string()); in TEST_F() 370 EXPECT_EQ("/", headers[":path"].as_string()); in TEST_F()
|
/external/cronet/buildtools/third_party/libc++/trunk/src/ |
D | string.cpp | 299 inline S as_string(P sprintf_like, S s, const typename S::value_type* fmt, V a) { in as_string() function 382 string to_string (float val) { return as_string(snprintf, initial_string< string>()(),… in to_string() 383 string to_string (double val) { return as_string(snprintf, initial_string< string>()(),… in to_string() 384 string to_string (long double val) { return as_string(snprintf, initial_string< string>()(),… in to_string() 387 wstring to_wstring(float val) { return as_string(get_swprintf(), initial_string<wstring>()(),… in to_wstring() 388 wstring to_wstring(double val) { return as_string(get_swprintf(), initial_string<wstring>()(),… in to_wstring() 389 wstring to_wstring(long double val) { return as_string(get_swprintf(), initial_string<wstring>()(),… in to_wstring()
|
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/ |
D | lookup_ops_test.py | 53 lambda x: string_ops.as_string(x * 2)) 66 lambda x: string_ops.as_string(x * 2)) 120 values = dataset_ops.Dataset.range(100).map(string_ops.as_string) 142 lambda x: string_ops.as_string(x * 2))
|
/external/libabigail/include/ |
D | abg-ini.h | 87 as_string() const = 0; 113 as_string() const; 157 as_string() const; 191 as_string() const;
|
/external/libchrome/mojo/core/ |
D | invitation_dispatcher.cc | 36 auto result = attached_ports_.emplace(name.as_string(), remote_peer_port); in AttachMessagePipe() 50 auto it = attached_ports_.find(name.as_string()); in ExtractMessagePipe()
|
/external/python/cpython2/Lib/email/test/ |
D | test_email.py | 194 msg.as_string() 299 eq(text, msg.as_string()) 567 self.assertRaises(Errors.HeaderParseError, msg.as_string) 572 self.assertRaises(Errors.HeaderParseError, msg.as_string) 793 eq(msg.as_string(), """\ 803 eq(msg.as_string(), """\ 813 eq(msg.as_string(0), '''\ 855 self.assertEqual(msg.as_string(), """\ 871 self.ndiffAssertEqual(msg.as_string(), """\ 887 eq(msg.as_string(), """\ [all …]
|
/external/libchrome/base/trace_event/ |
D | trace_config_category_filter.cc | 44 excluded_categories_.push_back(category.substr(1).as_string()); in InitializeFromString() 46 disabled_categories_.push_back(category.as_string()); in InitializeFromString() 48 included_categories_.push_back(category.as_string()); in InitializeFromString()
|