Home
last modified time | relevance | path

Searched refs:fmt (Results 1 – 25 of 1339) sorted by relevance

12345678910>>...54

/external/mesa3d/src/intel/vulkan/
Danv_formats.c52 #define fmt(__vk_fmt, __hw_fmt) \ macro
61 fmt(VK_FORMAT_UNDEFINED, ISL_FORMAT_UNSUPPORTED),
62 fmt(VK_FORMAT_R4G4_UNORM_PACK8, ISL_FORMAT_UNSUPPORTED),
63 fmt(VK_FORMAT_R4G4B4A4_UNORM_PACK16, ISL_FORMAT_A4B4G4R4_UNORM),
65 fmt(VK_FORMAT_R5G6B5_UNORM_PACK16, ISL_FORMAT_B5G6R5_UNORM),
67 fmt(VK_FORMAT_R5G5B5A1_UNORM_PACK16, ISL_FORMAT_A1B5G5R5_UNORM),
68 fmt(VK_FORMAT_B5G5R5A1_UNORM_PACK16, ISL_FORMAT_UNSUPPORTED),
69 fmt(VK_FORMAT_A1R5G5B5_UNORM_PACK16, ISL_FORMAT_B5G5R5A1_UNORM),
70 fmt(VK_FORMAT_R8_UNORM, ISL_FORMAT_R8_UNORM),
71 fmt(VK_FORMAT_R8_SNORM, ISL_FORMAT_R8_SNORM),
[all …]
/external/ltp/testcases/kernel/device-drivers/v4l/user_space/
Dtest_VIDIOC_FMT.c220 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()
231 for (j = sizeof(format.fmt.pix); in do_get_formats()
[all …]
/external/libpcap/
Dbpf_image.c55 const char *fmt, *op; local
64 fmt = "0x%x";
70 fmt = "#%d";
75 fmt = "";
80 fmt = "[%d]";
85 fmt = "[%d]";
90 fmt = "[%d]";
95 fmt = "#pktlen";
100 fmt = "[x + %d]";
105 fmt = "[x + %d]";
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatRoundTripTest.java42 NumberFormat fmt = null; in TestNumberFormatRoundTrip() local
47 fmt = NumberFormat.getInstance(); in TestNumberFormatRoundTrip()
48 _test(fmt); in TestNumberFormatRoundTrip()
51 fmt = NumberFormat.getCurrencyInstance(); in TestNumberFormatRoundTrip()
52 _test(fmt); in TestNumberFormatRoundTrip()
55 fmt = NumberFormat.getPercentInstance(); in TestNumberFormatRoundTrip()
56 _test(fmt); in TestNumberFormatRoundTrip()
69 fmt = NumberFormat.getInstance(loc[i]); in TestNumberFormatRoundTrip()
70 _test(fmt); in TestNumberFormatRoundTrip()
72 fmt = NumberFormat.getCurrencyInstance(loc[i]); in TestNumberFormatRoundTrip()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatRoundTripTest.java43 NumberFormat fmt = null; in TestNumberFormatRoundTrip() local
48 fmt = NumberFormat.getInstance(); in TestNumberFormatRoundTrip()
49 _test(fmt); in TestNumberFormatRoundTrip()
52 fmt = NumberFormat.getCurrencyInstance(); in TestNumberFormatRoundTrip()
53 _test(fmt); in TestNumberFormatRoundTrip()
56 fmt = NumberFormat.getPercentInstance(); in TestNumberFormatRoundTrip()
57 _test(fmt); in TestNumberFormatRoundTrip()
70 fmt = NumberFormat.getInstance(loc[i]); in TestNumberFormatRoundTrip()
71 _test(fmt); in TestNumberFormatRoundTrip()
73 fmt = NumberFormat.getCurrencyInstance(loc[i]); in TestNumberFormatRoundTrip()
[all …]
/external/fmtlib/test/
Dprintf-test.cc37 using fmt::format;
38 using fmt::FormatError;
43 std::string make_positional(fmt::StringRef format) { in make_positional()
50 EXPECT_EQ(expected_output, fmt::sprintf(format, arg)) \
52 EXPECT_EQ(expected_output, fmt::sprintf(make_positional(format), arg))
55 EXPECT_EQ("test", fmt::sprintf("test")); in TEST()
59 EXPECT_EQ("%", fmt::sprintf("%%")); in TEST()
60 EXPECT_EQ("before %", fmt::sprintf("before %%")); in TEST()
61 EXPECT_EQ("% after", fmt::sprintf("%% after")); in TEST()
62 EXPECT_EQ("before % after", fmt::sprintf("before %% after")); in TEST()
[all …]
/external/icu/icu4c/source/test/intltest/
Dnmfmtrt.cpp94 NumberFormat *fmt = NULL; in start() local
98 fmt = NumberFormat::createInstance(status); in start()
100 test(fmt); in start()
102 delete fmt; in start()
104 fmt = NumberFormat::createCurrencyInstance(status); in start()
106 test(fmt); in start()
108 delete fmt; in start()
110 fmt = NumberFormat::createPercentInstance(status); in start()
112 test(fmt); in start()
114 delete fmt; in start()
[all …]
Dnumfmtst.h224 …void expectParseCurrency(const NumberFormat &fmt, const UChar* currency, double amount, const char…
234 void expect2(NumberFormat& fmt, const Formattable& n, const UnicodeString& str);
236 void expect3(NumberFormat& fmt, const Formattable& n, const UnicodeString& str);
238 void expect2(NumberFormat& fmt, const Formattable& n, const char* str) { in expect2() argument
239 expect2(fmt, n, UnicodeString(str, "")); in expect2()
242 void expect2(NumberFormat* fmt, const Formattable& n, const UnicodeString& str, UErrorCode ec);
244 void expect2(NumberFormat* fmt, const Formattable& n, const char* str, UErrorCode ec) { in expect2() argument
245 expect2(fmt, n, UnicodeString(str, ""), ec); in expect2()
248 void expect(NumberFormat& fmt, const UnicodeString& str, const Formattable& n);
250 void expect(NumberFormat& fmt, const char *str, const Formattable& n) { in expect() argument
[all …]
Dsimpleformattertest.cpp69 SimpleFormatter fmt("This doesn''t have templates '{0}", status); in TestNoArguments() local
70 assertEquals("getArgumentLimit", 0, fmt.getArgumentLimit()); in TestNoArguments()
75 fmt.format("unused", appendTo, status)); in TestNoArguments()
81 fmt.formatAndAppend(NULL, 0, appendTo, offsets, 1, status)); in TestNoArguments()
86 fmt.formatAndReplace(NULL, 0, appendTo, NULL, 0, status)); in TestNoArguments()
92 SimpleFormatter fmt("{}", status); in TestSyntaxErrors() local
95 fmt.applyPattern("{12d", status); in TestSyntaxErrors()
101 SimpleFormatter fmt; in TestOneArgument() local
102 fmt.applyPattern("{0} meter", status); in TestOneArgument()
106 assertEquals("getArgumentLimit", 1, fmt.getArgumentLimit()); in TestOneArgument()
[all …]
/external/libcxx/test/std/re/re.results/re.results.form/
Dform1.pass.cpp33 const char fmt[] = "prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"; in main() local
35 fmt, fmt + std::char_traits<char>::length(fmt)).base(); in main()
46 const char fmt[] = "prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"; in main() local
48 fmt, fmt + std::char_traits<char>::length(fmt)).base(); in main()
58 const char fmt[] = "prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"; in main() local
60 fmt, fmt + std::char_traits<char>::length(fmt)).base(); in main()
70 const char fmt[] = "prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"; in main() local
72 fmt, fmt + std::char_traits<char>::length(fmt), in main()
83 const char fmt[] = "match: &, m[1]: \\1, m[2]: \\2"; in main() local
85 fmt, fmt + std::char_traits<char>::length(fmt), in main()
[all …]
/external/syslinux/gpxe/src/core/
Dvsprintf.c165 size_t vcprintf ( struct printf_context *ctx, const char *fmt, va_list args ) { in vcprintf() argument
176 for ( ; *fmt ; fmt++ ) { in vcprintf()
178 if ( *fmt != '%' ) { in vcprintf()
179 cputchar ( ctx, *fmt ); in vcprintf()
182 fmt++; in vcprintf()
185 for ( ; ; fmt++ ) { in vcprintf()
186 if ( *fmt == '#' ) { in vcprintf()
188 } else if ( *fmt == '0' ) { in vcprintf()
197 for ( ; ; fmt++ ) { in vcprintf()
198 if ( ( ( unsigned ) ( *fmt - '0' ) ) < 10 ) { in vcprintf()
[all …]
/external/dtc/tests/
Dutilfdt_test.c33 static void check(const char *fmt, int expect_type, int expect_size) in check() argument
38 if (utilfdt_decode_type(fmt, &type, &size)) in check()
39 FAIL("format '%s': valid format string returned failure", fmt); in check()
41 FAIL("format '%s': expected type='%c', got type='%c'", fmt, in check()
44 FAIL("format '%s': expected size=%d, got size=%d", fmt, in check()
48 static void checkfail(const char *fmt) in checkfail() argument
53 if (!utilfdt_decode_type(fmt, &type, &size)) in checkfail()
55 fmt); in checkfail()
68 char fmt[10], *ptr; in check_sizes() local
71 if (strlen(modifier) + 2 >= sizeof(fmt)) in check_sizes()
[all …]
/external/syslinux/dos/
Dprintf.c112 int sprintf(char *buf, const char *fmt, ...);
114 int vsprintf(char *buf, const char *fmt, va_list args) in vsprintf() argument
129 for (str = buf; *fmt; ++fmt) { in vsprintf()
130 if (*fmt != '%') { in vsprintf()
131 *str++ = *fmt; in vsprintf()
138 ++fmt; /* this also skips first '%' */ in vsprintf()
139 switch (*fmt) { in vsprintf()
159 if (isdigit(*fmt)) in vsprintf()
160 field_width = skip_atou(&fmt); in vsprintf()
161 else if (*fmt == '*') { in vsprintf()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DSimpleFormatterTest.java31 SimpleFormatter fmt = SimpleFormatter.compile("This doesn''t have templates '{0}"); in TestWithNoArguments() local
35 fmt.getArgumentLimit()); in TestWithNoArguments()
39 fmt.format("unused")); in TestWithNoArguments()
43 fmt.format((CharSequence[])null)); in TestWithNoArguments()
47 fmt.toString()); in TestWithNoArguments()
52 fmt.formatAndAppend(new StringBuilder(), offsets).toString()); in TestWithNoArguments()
60 fmt.formatAndAppend(new StringBuilder(), null, (CharSequence[])null).toString()); in TestWithNoArguments()
64 fmt.formatAndReplace(new StringBuilder(), null, (CharSequence[])null).toString()); in TestWithNoArguments()
90 SimpleFormatter fmt = SimpleFormatter.compile("a{20}c"); in TestBigArgument() local
91 assertEquals("{20} count", 21, fmt.getArgumentLimit()); in TestBigArgument()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DSimpleFormatterTest.java32 SimpleFormatter fmt = SimpleFormatter.compile("This doesn''t have templates '{0}"); in TestWithNoArguments() local
36 fmt.getArgumentLimit()); in TestWithNoArguments()
40 fmt.format("unused")); in TestWithNoArguments()
44 fmt.format((CharSequence[])null)); in TestWithNoArguments()
48 fmt.toString()); in TestWithNoArguments()
53 fmt.formatAndAppend(new StringBuilder(), offsets).toString()); in TestWithNoArguments()
61 fmt.formatAndAppend(new StringBuilder(), null, (CharSequence[])null).toString()); in TestWithNoArguments()
65 fmt.formatAndReplace(new StringBuilder(), null, (CharSequence[])null).toString()); in TestWithNoArguments()
91 SimpleFormatter fmt = SimpleFormatter.compile("a{20}c"); in TestBigArgument() local
92 assertEquals("{20} count", 21, fmt.getArgumentLimit()); in TestBigArgument()
[all …]
/external/libevent/
Dlog.c59 static void _warn_helper(int severity, const char *errstr, const char *fmt,
85 event_err(int eval, const char *fmt, ...) in event_err() argument
89 va_start(ap, fmt); in event_err()
90 _warn_helper(_EVENT_LOG_ERR, strerror(errno), fmt, ap); in event_err()
96 event_warn(const char *fmt, ...) in event_warn() argument
100 va_start(ap, fmt); in event_warn()
101 _warn_helper(_EVENT_LOG_WARN, strerror(errno), fmt, ap); in event_warn()
106 event_sock_err(int eval, evutil_socket_t sock, const char *fmt, ...) in event_sock_err() argument
111 va_start(ap, fmt); in event_sock_err()
112 _warn_helper(_EVENT_LOG_ERR, evutil_socket_error_to_string(err), fmt, ap); in event_sock_err()
[all …]
/external/tcpdump/
Dsmbutil.c324 unsigned int val, const char *fmt) in write_bits() argument
326 const char *p = fmt; in write_bits()
329 while ((p = strchr(fmt, '|'))) { in write_bits()
330 size_t l = PTR_DIFF(p, fmt); in write_bits()
332 ND_PRINT((ndo, "%.*s ", (int)l, fmt)); in write_bits()
333 fmt = p + 1; in write_bits()
435 const u_char *buf, const char *fmt, const u_char *maxbuf, in smb_fdata1() argument
441 while (*fmt && buf<maxbuf) { in smb_fdata1()
442 switch (*fmt) { in smb_fdata1()
447 fmt++; in smb_fdata1()
[all …]
/external/deqp/framework/egl/
DegluCallLogWrapper.cpp61 std::ostream& operator<< (std::ostream& str, PointerFmt<T> fmt) in operator <<() argument
63 if (fmt.arr != DE_NULL) in operator <<()
66 for (deUint32 ndx = 0; ndx < fmt.size; ndx++) in operator <<()
70 str << fmt.arr[ndx]; in operator <<()
98 inline std::ostream& operator<< (std::ostream& str, EnumPointerFmt fmt) in operator <<() argument
100 if (fmt.value) in operator <<()
101 return str << tcu::Format::Enum<int, 2>(fmt.getName, *fmt.value); in operator <<()
120 inline std::ostream& operator<< (std::ostream& str, StringFmt fmt) in operator <<() argument
122 return str << (fmt.str ? fmt.str : "NULL"); in operator <<()
139 inline std::ostream& operator<< (std::ostream& str, const ConfigAttribValuePointerFmt& fmt) in operator <<() argument
[all …]
/external/syslinux/memdisk/
Dconio.c177 int vsprintf(char *buf, const char *fmt, va_list args) in vsprintf() argument
192 for (str = buf; *fmt; ++fmt) { in vsprintf()
193 if (*fmt != '%') { in vsprintf()
194 *str++ = *fmt; in vsprintf()
201 ++fmt; /* this also skips first '%' */ in vsprintf()
202 switch (*fmt) { in vsprintf()
222 if (isdigit(*fmt)) in vsprintf()
223 field_width = skip_atoi(&fmt); in vsprintf()
224 else if (*fmt == '*') { in vsprintf()
225 ++fmt; in vsprintf()
[all …]
/external/strace/tests-m32/
Dioctl_v4l2.c69 f->fmt.pix.width = 0x657b8160; in init_v4l2_format()
70 f->fmt.pix.height = 0x951c0047; in init_v4l2_format()
71 f->fmt.pix.pixelformat = magic; in init_v4l2_format()
72 f->fmt.pix.field = V4L2_FIELD_NONE; in init_v4l2_format()
73 f->fmt.pix.bytesperline = 0xdf20d185; in init_v4l2_format()
74 f->fmt.pix.sizeimage = 0x0cf7be41; in init_v4l2_format()
75 f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; in init_v4l2_format()
83 f->fmt.pix_mp.width = 0x1f3b774b; in init_v4l2_format()
84 f->fmt.pix_mp.height = 0xab96a8d6; in init_v4l2_format()
85 f->fmt.pix_mp.pixelformat = magic; in init_v4l2_format()
[all …]
/external/strace/tests/
Dioctl_v4l2.c69 f->fmt.pix.width = 0x657b8160; in init_v4l2_format()
70 f->fmt.pix.height = 0x951c0047; in init_v4l2_format()
71 f->fmt.pix.pixelformat = magic; in init_v4l2_format()
72 f->fmt.pix.field = V4L2_FIELD_NONE; in init_v4l2_format()
73 f->fmt.pix.bytesperline = 0xdf20d185; in init_v4l2_format()
74 f->fmt.pix.sizeimage = 0x0cf7be41; in init_v4l2_format()
75 f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; in init_v4l2_format()
83 f->fmt.pix_mp.width = 0x1f3b774b; in init_v4l2_format()
84 f->fmt.pix_mp.height = 0xab96a8d6; in init_v4l2_format()
85 f->fmt.pix_mp.pixelformat = magic; in init_v4l2_format()
[all …]
/external/strace/tests-mx32/
Dioctl_v4l2.c69 f->fmt.pix.width = 0x657b8160; in init_v4l2_format()
70 f->fmt.pix.height = 0x951c0047; in init_v4l2_format()
71 f->fmt.pix.pixelformat = magic; in init_v4l2_format()
72 f->fmt.pix.field = V4L2_FIELD_NONE; in init_v4l2_format()
73 f->fmt.pix.bytesperline = 0xdf20d185; in init_v4l2_format()
74 f->fmt.pix.sizeimage = 0x0cf7be41; in init_v4l2_format()
75 f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; in init_v4l2_format()
83 f->fmt.pix_mp.width = 0x1f3b774b; in init_v4l2_format()
84 f->fmt.pix_mp.height = 0xab96a8d6; in init_v4l2_format()
85 f->fmt.pix_mp.pixelformat = magic; in init_v4l2_format()
[all …]
/external/valgrind/VEX/priv/
Dguest_s390_toIR.c14210 formats fmt; in s390_decode_2byte_and_irgen() member
14235 case 0x06: s390_format_RR_RR(s390_irgen_BCTR, ovl.fmt.RR.r1, ovl.fmt.RR.r2); in s390_decode_2byte_and_irgen()
14237 case 0x07: s390_format_RR(s390_irgen_BCR, ovl.fmt.RR.r1, ovl.fmt.RR.r2); in s390_decode_2byte_and_irgen()
14239 case 0x0a: s390_format_I(s390_irgen_SVC, ovl.fmt.I.i); goto ok; in s390_decode_2byte_and_irgen()
14242 case 0x0d: s390_format_RR_RR(s390_irgen_BASR, ovl.fmt.RR.r1, ovl.fmt.RR.r2); in s390_decode_2byte_and_irgen()
14244 case 0x0e: s390_format_RR(s390_irgen_MVCL, ovl.fmt.RR.r1, ovl.fmt.RR.r2); in s390_decode_2byte_and_irgen()
14246 case 0x0f: s390_format_RR(s390_irgen_CLCL, ovl.fmt.RR.r1, ovl.fmt.RR.r2); in s390_decode_2byte_and_irgen()
14248 case 0x10: s390_format_RR_RR(s390_irgen_LPR, ovl.fmt.RR.r1, ovl.fmt.RR.r2); in s390_decode_2byte_and_irgen()
14250 case 0x11: s390_format_RR_RR(s390_irgen_LNR, ovl.fmt.RR.r1, ovl.fmt.RR.r2); in s390_decode_2byte_and_irgen()
14252 case 0x12: s390_format_RR_RR(s390_irgen_LTR, ovl.fmt.RR.r1, ovl.fmt.RR.r2); in s390_decode_2byte_and_irgen()
[all …]
/external/skia/infra/bots/
Dgen_tasks.go68 Name: fmt.Sprintf("infra/git/${platform}"),
70 Version: fmt.Sprintf("version:2.13.0.chromium9"),
73 Name: fmt.Sprintf("infra/tools/git/${platform}"),
75 Version: fmt.Sprintf("git_revision:a78b5f3658c0578a017db48df97d20ac09822bcd"),
91 fmt.Sprintf("os:%s", DEFAULT_OS_DEBIAN),
92 fmt.Sprintf("pool:%s", CONFIG.Pool),
334 rv = append(rv, fmt.Sprintf("%s:%s", k, v))
362 fmt.Sprintf("buildername=%s", BUNDLE_RECIPES_NAME),
363 fmt.Sprintf("swarm_out_dir=%s", specs.PLACEHOLDER_ISOLATED_OUTDIR),
492 fmt.Sprintf("repository=%s", specs.PLACEHOLDER_REPO),
[all …]
/external/fmtlib/
DChangeLog.rst3 * Fixed handling of thousands seperator (`#353 <https://github.com/fmtlib/fmt/issues/353>`_)
5 * Fixed handling of ``unsigned char`` strings (`#373 <https://github.com/fmtlib/fmt/issues/373>`_)
7 * Corrected buffer growth when formatting time (`#367 <https://github.com/fmtlib/fmt/issues/367>`_)
9fmt/issues/318>`_, `#250 <https://github.com/fmtlib/fmt/issues/250>`_, also merged `#385 <https://…
11fmt/pull/327>`_, `#345 <https://github.com/fmtlib/fmt/issues/345>`_ and `#381 <https://github.com/…
13fmt/issues/320>`_, `#333 <https://github.com/fmtlib/fmt/pull/333>`_, `#347 <https://github.com/fmt…
18 * The project has been renamed from C++ Format (cppformat) to fmt for
20 (`#307 <https://github.com/fmtlib/fmt/issues/307>`_).
21 Library headers are now located in the ``fmt`` directory:
25 #include "fmt/format.h"
[all …]

12345678910>>...54