/external/ltp/testcases/kernel/device-drivers/v4l/user_space/ |
D | test_VIDIOC_FMT.c | 209 dprintf("\tformat = {.type=0x%X, .fmt.pix = { " in do_get_formats() 220 format.fmt.pix.width, in do_get_formats() 221 format.fmt.pix.height, in do_get_formats() 222 format.fmt.pix.pixelformat, in do_get_formats() 223 format.fmt.pix.field, in do_get_formats() 224 format.fmt.pix.bytesperline, in do_get_formats() 225 format.fmt.pix.sizeimage, in do_get_formats() 226 format.fmt.pix.colorspace, format.fmt.pix.priv); in do_get_formats() 227 if (sizeof(format.fmt.pix) < in do_get_formats() 228 sizeof(format.fmt.raw_data)) { in do_get_formats() [all …]
|
/external/fmtlib/test/ |
D | color-test.cc | 8 #include "fmt/color.h" 17 EXPECT_WRITE(stdout, fmt::print(fg(fmt::rgb(255, 20, 30)), "rgb(255,20,30)"), in TEST() 19 EXPECT_WRITE(stdout, fmt::print(fg(fmt::color::blue), "blue"), in TEST() 23 fmt::print(fg(fmt::color::blue) | bg(fmt::color::red), "two color"), in TEST() 25 EXPECT_WRITE(stdout, fmt::print(fmt::emphasis::bold, "bold"), in TEST() 27 EXPECT_WRITE(stdout, fmt::print(fmt::emphasis::italic, "italic"), in TEST() 29 EXPECT_WRITE(stdout, fmt::print(fmt::emphasis::underline, "underline"), in TEST() 32 fmt::print(fmt::emphasis::strikethrough, "strikethrough"), in TEST() 36 fmt::print(fg(fmt::color::blue) | fmt::emphasis::bold, "blue/bold"), in TEST() 38 EXPECT_WRITE(stderr, fmt::print(stderr, fmt::emphasis::bold, "bold error"), in TEST() [all …]
|
D | chrono-test.cc | 12 #include "fmt/chrono.h" 57 fmt::format("The date is {:%Y-%m-%d}.", tm)); in TEST() 65 fmt::format(s, *std::localtime(&t)); in TEST() 72 fmt::format_to(std::back_inserter(s), "{:%S}", time); in TEST() 76 TEST(TimeTest, EmptyResult) { EXPECT_EQ("", fmt::format("{}", std::tm())); } in TEST() 89 EXPECT_TRUE(EqualTime(tm, fmt::localtime(t))); in TEST() 95 EXPECT_TRUE(EqualTime(tm, fmt::gmtime(t))); in TEST() 106 EXPECT_EQ(strftime_output, fmt::format("It is {:%Y-%m-%d %H:%M:%S}", point)); in TEST() 113 fmt::format(loc, "{:" spec "}", duration)); \ 119 EXPECT_EQ("42s", fmt::format("{}", std::chrono::seconds(42))); in TEST() [all …]
|
D | compile-test.cc | 11 // Check that fmt/compile.h compiles with windows.h included before it. 16 #include "fmt/compile.h" 26 typedef fmt::detail::compiled_format_base<decltype(format)> provider; in check_prepared_parts_type() 27 typedef fmt::detail::format_part<char> in check_prepared_parts_type() 53 const auto prepared = fmt::detail::compile<int>("test {}"); in TEST() 54 EXPECT_EQ("test 42", fmt::format(prepared, 42)); in TEST() 55 const auto wprepared = fmt::detail::compile<int>(L"test {}"); in TEST() 56 EXPECT_EQ(L"test 42", fmt::format(wprepared, 42)); in TEST() 61 const auto prepared = fmt::detail::compile<int>("4{}"); in TEST() 62 fmt::format_to(fmt::detail::make_checked(buffer, 32), prepared, 2); in TEST() [all …]
|
D | core-test.cc | 21 // Check if fmt/core.h compiles with windows.h included before it. 26 #include "fmt/core.h" 31 using fmt::basic_format_arg; 32 using fmt::string_view; 33 using fmt::detail::buffer; 34 using fmt::detail::make_arg; 35 using fmt::detail::value; 77 static_assert(!std::is_destructible<fmt::detail::buffer<int>>(), in TEST() 125 const fmt::detail::buffer<char>& const_buffer = buffer; in TEST() 188 EXPECT_EQ(fmt::string_view(buffer.data(), buffer.size()), "0123456789"); in TEST() [all …]
|
D | ostream-test.cc | 8 #include "fmt/format.h" 12 // Test that there is no issues with specializations when fmt/ostream.h is 13 // included after fmt/format.h. 14 namespace fmt { namespace 21 } // namespace fmt 25 #include "fmt/ostream.h" 26 #include "fmt/ranges.h" 31 using fmt::format; 32 using fmt::format_error; 61 EXPECT_EQ("streamable_enum", fmt::format("{}", streamable_enum())); in TEST() [all …]
|
D | format-impl-test.cc | 17 #include "fmt/printf.h" 27 using fmt::detail::bigint; 28 using fmt::detail::fp; 29 using fmt::detail::max_value; 35 EXPECT_EQ("", fmt::format("{}", bigint())); in TEST() 36 EXPECT_EQ("42", fmt::format("{}", bigint(0x42))); in TEST() 37 EXPECT_EQ("123456789abcedf0", fmt::format("{}", bigint(0x123456789abcedf0))); in TEST() 83 EXPECT_EQ("42", fmt::format("{}", n)); in TEST() 85 EXPECT_EQ("84", fmt::format("{}", n)); in TEST() 87 EXPECT_EQ("108000000", fmt::format("{}", n)); in TEST() [all …]
|
D | ranges-test.cc | 10 // {fmt} support for ranges, containers and types tuple interface. 12 #include "fmt/ranges.h" 27 auto ivf = fmt::format("{}", iv); in TEST() 33 auto ivf = fmt::format("{}", ivv); in TEST() 39 EXPECT_EQ("{(\"one\", 1), (\"two\", 2)}", fmt::format("{}", simap)); in TEST() 44 EXPECT_EQ("(42, 1.5)", fmt::format("{}", pa1)); in TEST() 50 EXPECT_EQ("(42, 1.5, \"this is tuple\", 'i')", fmt::format("{}", t)); in TEST() 51 EXPECT_EQ("()", fmt::format("{}", std::tuple<>())); in TEST() 57 EXPECT_EQ("(a, 1, 2)", fmt::format("({})", fmt::join(t1, ", "))); in TEST() 62 EXPECT_EQ("b + 4", fmt::format("{}", fmt::join(t2, " + "))); in TEST() [all …]
|
/external/fmtlib/ |
D | ChangeLog.rst | 5 (`#1996 <https://github.com/fmtlib/fmt/issues/1996>`_, 6 `#2029 <https://github.com/fmtlib/fmt/issues/2029>`_). 9 (`#2011 <https://github.com/fmtlib/fmt/issues/2011>`_). 12 (`#2014 <https://github.com/fmtlib/fmt/issues/2014>`_). 15 (`#2017 <https://github.com/fmtlib/fmt/issues/2017>`_). 21 (`#1976 <https://github.com/fmtlib/fmt/issues/1976>`_). 27 (`#1961 <https://github.com/fmtlib/fmt/issues/1961>`_). 31 (`#1919 <https://github.com/fmtlib/fmt/issues/1919>`_). 34 (`#1957 <https://github.com/fmtlib/fmt/issues/1957>`_). 37 (`#1955 <https://github.com/fmtlib/fmt/issues/1955>`_). [all …]
|
/external/rust/crates/syn/tests/debug/ |
D | gen.rs | 5 use std::fmt::{self, Debug, Display}; 7 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method 15 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method 19 Debug::fmt(Lite(_val), formatter)?; in fmt() 30 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method 38 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method 52 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method 64 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method 68 Debug::fmt(Lite(&_val.1), formatter)?; in fmt() 81 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method [all …]
|
D | mod.rs | 5 use std::fmt::{self, Debug}; 29 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method 35 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method 41 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method 47 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method 53 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method 59 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method 65 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method 82 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() function 83 Debug::fmt(Lite(&*self.value), formatter) in fmt() [all …]
|
/external/llvm-project/lldb/unittests/DataFormatter/ |
D | StringPrinterTests.cpp | 52 auto fmt = [](StringRef str) { in TEST() local 58 EXPECT_EQ(fmt({"\0", 1}), QUOTE("")); in TEST() 59 EXPECT_EQ(fmt("\a"), QUOTE(R"(\a)")); in TEST() 60 EXPECT_EQ(fmt("\b"), QUOTE(R"(\b)")); in TEST() 61 EXPECT_EQ(fmt("\f"), QUOTE(R"(\f)")); in TEST() 62 EXPECT_EQ(fmt("\n"), QUOTE(R"(\n)")); in TEST() 63 EXPECT_EQ(fmt("\r"), QUOTE(R"(\r)")); in TEST() 64 EXPECT_EQ(fmt("\t"), QUOTE(R"(\t)")); in TEST() 65 EXPECT_EQ(fmt("\v"), QUOTE(R"(\v)")); in TEST() 66 EXPECT_EQ(fmt("\""), QUOTE(R"(\")")); in TEST() [all …]
|
/external/rust/crates/serde/src/ser/ |
D | fmt.rs | 4 impl Error for fmt::Error { 6 fmt::Error in custom() 13 fn $f(self, v: $t) -> fmt::Result { 14 Display::fmt(&v, self) 22 /// use std::fmt::{self, Display}; 32 /// fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { 37 impl<'a, 'b> Serializer for &'a mut fmt::Formatter<'b> { 39 type Error = fmt::Error; 40 type SerializeSeq = Impossible<(), fmt::Error>; 41 type SerializeTuple = Impossible<(), fmt::Error>; [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | NumberFormatRoundTripTest.java | 46 NumberFormat fmt = null; in TestNumberFormatRoundTrip() local 51 fmt = NumberFormat.getInstance(); in TestNumberFormatRoundTrip() 52 _test(fmt); in TestNumberFormatRoundTrip() 55 fmt = NumberFormat.getCurrencyInstance(); in TestNumberFormatRoundTrip() 56 _test(fmt); in TestNumberFormatRoundTrip() 59 fmt = NumberFormat.getPercentInstance(); in TestNumberFormatRoundTrip() 60 _test(fmt); in TestNumberFormatRoundTrip() 73 fmt = NumberFormat.getInstance(loc[i]); in TestNumberFormatRoundTrip() 74 _test(fmt); in TestNumberFormatRoundTrip() 76 fmt = NumberFormat.getCurrencyInstance(loc[i]); in TestNumberFormatRoundTrip() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | NumberFormatRoundTripTest.java | 49 NumberFormat fmt = null; in TestNumberFormatRoundTrip() local 54 fmt = NumberFormat.getInstance(); in TestNumberFormatRoundTrip() 55 _test(fmt); in TestNumberFormatRoundTrip() 58 fmt = NumberFormat.getCurrencyInstance(); in TestNumberFormatRoundTrip() 59 _test(fmt); in TestNumberFormatRoundTrip() 62 fmt = NumberFormat.getPercentInstance(); in TestNumberFormatRoundTrip() 63 _test(fmt); in TestNumberFormatRoundTrip() 76 fmt = NumberFormat.getInstance(loc[i]); in TestNumberFormatRoundTrip() 77 _test(fmt); in TestNumberFormatRoundTrip() 79 fmt = NumberFormat.getCurrencyInstance(loc[i]); in TestNumberFormatRoundTrip() [all …]
|
/external/fmtlib/doc/ |
D | api.rst | 7 The {fmt} library API consists of the following parts: 9 * :ref:`fmt/core.h <core-api>`: the core API providing argument handling 11 * :ref:`fmt/format.h <format-api>`: the full format API providing compile-time 14 * :ref:`fmt/ranges.h <ranges-api>`: additional formatting support for ranges 16 * :ref:`fmt/chrono.h <chrono-api>`: date and time formatting 17 * :ref:`fmt/compile.h <compile-api>`: format string compilation 18 * :ref:`fmt/color.h <color-api>`: terminal color and text style 19 * :ref:`fmt/ostream.h <ostream-api>`: ``std::ostream`` support 20 * :ref:`fmt/printf.h <printf-api>`: ``printf`` formatting 22 All functions and types provided by the library reside in namespace ``fmt`` and [all …]
|
D | usage.rst | 5 To use the {fmt} library, add :file:`fmt/core.h`, :file:`fmt/format.h`, 6 :file:`fmt/format-inl.h`, :file:`src/format.cc` and optionally other headers 7 from a `release archive <https://github.com/fmtlib/fmt/releases/latest>`_ or 8 the `Git repository <https://github.com/fmtlib/fmt>`_ to your project. 16 The included `CMake build script`__ can be used to build the fmt 20 __ https://github.com/fmtlib/fmt/blob/master/CMakeLists.txt 30 where :file:`{<path/to/fmt>}` is a path to the ``fmt`` repository. 39 CMake option. This can be useful if you include fmt as a subdirectory in 40 your project but don't want to add fmt's tests to your ``test`` target. 42 If you use Windows and have Visual Studio installed, a :file:`FMT.sln` [all …]
|
/external/rust/crates/syn/src/gen/ |
D | debug.rs | 5 use std::fmt::{self, Debug}; 9 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method 19 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method 31 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method 45 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method 59 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method 72 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method 83 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method 231 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method 242 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method [all …]
|
/external/adhd/cras/src/tests/ |
D | audio_area_unittest.cc | 31 struct cras_audio_format fmt; in TEST() local 34 fmt.num_channels = 2; in TEST() 35 fmt.format = SND_PCM_FORMAT_S16_LE; in TEST() 37 fmt.channel_layout[i] = stereo[i]; in TEST() 41 cras_audio_area_config_channels(a1, &fmt); in TEST() 42 cras_audio_area_config_channels(a2, &fmt); in TEST() 43 cras_audio_area_config_buf_pointers(a1, &fmt, (uint8_t*)buf1); in TEST() 44 cras_audio_area_config_buf_pointers(a2, &fmt, (uint8_t*)buf2); in TEST() 51 cras_audio_area_copy(a1, 0, &fmt, a2, 0, 1.0); in TEST() 60 struct cras_audio_format fmt; in TEST() local [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | nmfmtrt.cpp | 95 NumberFormat *fmt = NULL; in start() local 99 fmt = NumberFormat::createInstance(status); in start() 101 test(fmt); in start() 103 delete fmt; in start() 105 fmt = NumberFormat::createCurrencyInstance(status); in start() 107 test(fmt); in start() 109 delete fmt; in start() 111 fmt = NumberFormat::createPercentInstance(status); in start() 113 test(fmt); in start() 115 delete fmt; in start() [all …]
|
/external/rust/crates/crossbeam-channel/src/ |
D | err.rs | 2 use std::fmt; 118 impl<T> fmt::Debug for SendError<T> { 119 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method 120 "SendError(..)".fmt(f) in fmt() 124 impl<T> fmt::Display for SendError<T> { 125 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method 126 "sending on a disconnected channel".fmt(f) in fmt() 152 impl<T> fmt::Debug for TrySendError<T> { 153 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method 155 TrySendError::Full(..) => "Full(..)".fmt(f), in fmt() [all …]
|
/external/rust/crates/quote/src/ |
D | ident_fragment.rs | 3 use std::fmt; 13 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result; in fmt() method 28 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method 29 IdentFragment::fmt(*self, f) in fmt() 38 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method 39 IdentFragment::fmt(*self, f) in fmt() 48 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method 51 fmt::Display::fmt(&id[2..], f) in fmt() 53 fmt::Display::fmt(&id[..], f) in fmt() 66 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() function [all …]
|
/external/rust/crates/ring/src/ |
D | debug.rs | 19 impl ::core::fmt::Debug for $typename { 20 fn fmt(&self, f: &mut ::core::fmt::Formatter) -> Result<(), ::core::fmt::Error> { 21 ::core::fmt::Debug::fmt(&self.id, f) 33 impl ::core::fmt::Debug for $type { 34 fn fmt(&self, f: &mut ::core::fmt::Formatter) -> Result<(), ::core::fmt::Error> { 47 impl ::core::fmt::Debug for $typename { 48 fn fmt(&self, f: &mut ::core::fmt::Formatter) -> Result<(), ::core::fmt::Error> { 56 fmt: &mut core::fmt::Formatter, in write_hex_tuple() 59 ) -> Result<(), ::core::fmt::Error> { in write_hex_tuple() 60 fmt.debug_tuple(type_name) in write_hex_tuple() [all …]
|
/external/rust/crates/tokio/src/sync/mpsc/ |
D | error.rs | 4 use std::fmt; 10 impl<T> fmt::Display for SendError<T> { 11 fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method 12 write!(fmt, "channel closed") in fmt() 16 impl<T: fmt::Debug> std::error::Error for SendError<T> {} 33 impl<T: fmt::Debug> Error for TrySendError<T> {} 35 impl<T> fmt::Display for TrySendError<T> { 36 fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method 38 fmt, in fmt() 60 impl fmt::Display for RecvError { [all …]
|
/external/rust/crates/anyhow/src/ |
D | wrapper.rs | 2 use core::fmt::{self, Debug, Display}; 11 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() function 12 Debug::fmt(&self.0, f) in fmt() 20 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() function 21 Display::fmt(&self.0, f) in fmt() 34 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() function 35 Display::fmt(&self.0, f) in fmt() 43 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() function 44 Display::fmt(&self.0, f) in fmt() 56 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method [all …]
|