/third_party/ltp/testcases/kernel/device-drivers/v4l/user_space/ |
D | test_VIDIOC_FMT.c | 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() 231 for (j = sizeof(format.fmt.pix); in do_get_formats() [all …]
|
/third_party/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 …]
|
D | BigNumberFormatTest.java | 68 private void expectPad(DecimalFormat fmt, String pat, int pos) { in expectPad() argument 69 expectPad(fmt, pat, pos, 0, (char)0); in expectPad() 72 private void expectPad(DecimalFormat fmt, String pat, in expectPad() argument 77 fmt.applyPattern(pat); in expectPad() 78 apos = fmt.getPadPosition(); in expectPad() 79 awidth = fmt.getFormatWidth(); in expectPad() 80 apad = fmt.getPadCharacter(); in expectPad() 101 DecimalFormat fmt = new DecimalFormat("#", US); in TestPatterns() local 103 expectPad(fmt, "*^#", DecimalFormat.PAD_BEFORE_PREFIX, 1, '^'); in TestPatterns() 104 expectPad(fmt, "$*^#", DecimalFormat.PAD_AFTER_PREFIX, 2, '^'); in TestPatterns() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/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 …]
|
D | BigNumberFormatTest.java | 71 private void expectPad(DecimalFormat fmt, String pat, int pos) { in expectPad() argument 72 expectPad(fmt, pat, pos, 0, (char)0); in expectPad() 75 private void expectPad(DecimalFormat fmt, String pat, in expectPad() argument 80 fmt.applyPattern(pat); in expectPad() 81 apos = fmt.getPadPosition(); in expectPad() 82 awidth = fmt.getFormatWidth(); in expectPad() 83 apad = fmt.getPadCharacter(); in expectPad() 104 DecimalFormat fmt = new DecimalFormat("#", US); in TestPatterns() local 106 expectPad(fmt, "*^#", DecimalFormat.PAD_BEFORE_PREFIX, 1, '^'); in TestPatterns() 107 expectPad(fmt, "$*^#", DecimalFormat.PAD_AFTER_PREFIX, 2, '^'); in TestPatterns() [all …]
|
/third_party/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 …]
|
D | simpleformattertest.cpp | 69 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 …]
|
/third_party/skia/third_party/externals/tint/tools/src/cmd/intrinsic-gen/ast/ |
D | ast.go | 37 fmt.Fprintf(&sb, "%v", e) 38 fmt.Fprintln(&sb) 41 fmt.Fprintf(&sb, "%v", p) 42 fmt.Fprintln(&sb) 45 fmt.Fprintf(&sb, "%v", m) 46 fmt.Fprintln(&sb) 49 fmt.Fprintf(&sb, "%v", f) 50 fmt.Fprintln(&sb) 63 func (e EnumDecl) Format(w fmt.State, verb rune) { 64 fmt.Fprintf(w, "enum %v {\n", e.Name) [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/ |
D | SDL_blit.h | 121 #define RGB_FROM_PIXEL(Pixel, fmt, r, g, b) \ argument 123 r = SDL_expand_byte[fmt->Rloss][((Pixel&fmt->Rmask)>>fmt->Rshift)]; \ 124 g = SDL_expand_byte[fmt->Gloss][((Pixel&fmt->Gmask)>>fmt->Gshift)]; \ 125 b = SDL_expand_byte[fmt->Bloss][((Pixel&fmt->Bmask)>>fmt->Bshift)]; \ 176 #define DISEMBLE_RGB(buf, bpp, fmt, Pixel, r, g, b) \ argument 181 RGB_FROM_PIXEL(Pixel, fmt, r, g, b); \ 186 RGB_FROM_PIXEL(Pixel, fmt, r, g, b); \ 192 r = *((buf)+fmt->Rshift/8); \ 193 g = *((buf)+fmt->Gshift/8); \ 194 b = *((buf)+fmt->Bshift/8); \ [all …]
|
/third_party/musl/src/locale/ |
D | strfmon.c | 8 static ssize_t vstrfmon_l(char *s, size_t n, locale_t loc, const char *fmt, va_list ap) in vstrfmon_l() argument 15 for (; n && *fmt; ) { in vstrfmon_l() 16 if (*fmt != '%') { in vstrfmon_l() 18 *s++ = *fmt++; in vstrfmon_l() 22 fmt++; in vstrfmon_l() 23 if (*fmt == '%') goto literal; in vstrfmon_l() 30 for (; ; fmt++) { in vstrfmon_l() 31 switch (*fmt) { in vstrfmon_l() 33 fill = *++fmt; in vstrfmon_l() 52 for (fw=0; isdigit(*fmt); fmt++) in vstrfmon_l() [all …]
|
/third_party/python/Lib/test/ |
D | test_plistlib.py | 411 def _create(self, fmt=None): argument 459 for fmt in ALL_FORMATS: 460 with self.subTest(fmt=fmt): 461 self.assertRaises(TypeError, plistlib.dumps, pl, fmt=fmt) 474 for fmt in ALL_FORMATS: 475 with self.subTest(pl=pl, fmt=fmt): 476 data = plistlib.dumps(pl, fmt=fmt) 480 data2 = plistlib.dumps(pl2, fmt=fmt) 483 for fmt in ALL_FORMATS: 485 with self.subTest(pl=pl, fmt=fmt): [all …]
|
/third_party/musl/src/legacy/ |
D | err.c | 8 void vwarn(const char *fmt, va_list ap) in vwarn() argument 11 if (fmt) { in vwarn() 12 vfprintf(stderr, fmt, ap); in vwarn() 18 void vwarnx(const char *fmt, va_list ap) in vwarnx() argument 21 if (fmt) vfprintf(stderr, fmt, ap); in vwarnx() 25 _Noreturn void verr(int status, const char *fmt, va_list ap) in verr() argument 27 vwarn(fmt, ap); in verr() 31 _Noreturn void verrx(int status, const char *fmt, va_list ap) in verrx() argument 33 vwarnx(fmt, ap); in verrx() 37 void warn(const char *fmt, ...) in warn() argument [all …]
|
/third_party/vk-gl-cts/framework/egl/ |
D | egluCallLogWrapper.cpp | 61 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 …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | SimpleFormatterTest.java | 34 SimpleFormatter fmt = SimpleFormatter.compile("This doesn''t have templates '{0}"); in TestWithNoArguments() local 38 fmt.getArgumentLimit()); in TestWithNoArguments() 42 fmt.format("unused")); in TestWithNoArguments() 46 fmt.format((CharSequence[])null)); in TestWithNoArguments() 50 fmt.toString()); in TestWithNoArguments() 55 fmt.formatAndAppend(new StringBuilder(), offsets).toString()); in TestWithNoArguments() 63 fmt.formatAndAppend(new StringBuilder(), null, (CharSequence[])null).toString()); in TestWithNoArguments() 67 fmt.formatAndReplace(new StringBuilder(), null, (CharSequence[])null).toString()); in TestWithNoArguments() 93 SimpleFormatter fmt = SimpleFormatter.compile("a{20}c"); in TestBigArgument() local 94 assertEquals("{20} count", 21, fmt.getArgumentLimit()); in TestBigArgument() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/ |
D | SimpleFormatterTest.java | 37 SimpleFormatter fmt = SimpleFormatter.compile("This doesn''t have templates '{0}"); in TestWithNoArguments() local 41 fmt.getArgumentLimit()); in TestWithNoArguments() 45 fmt.format("unused")); in TestWithNoArguments() 49 fmt.format((CharSequence[])null)); in TestWithNoArguments() 53 fmt.toString()); in TestWithNoArguments() 58 fmt.formatAndAppend(new StringBuilder(), offsets).toString()); in TestWithNoArguments() 66 fmt.formatAndAppend(new StringBuilder(), null, (CharSequence[])null).toString()); in TestWithNoArguments() 70 fmt.formatAndReplace(new StringBuilder(), null, (CharSequence[])null).toString()); in TestWithNoArguments() 96 SimpleFormatter fmt = SimpleFormatter.compile("a{20}c"); in TestBigArgument() local 97 assertEquals("{20} count", 21, fmt.getArgumentLimit()); in TestBigArgument() [all …]
|
/third_party/mesa3d/src/util/ |
D | log.h | 53 #define mesa_loge(fmt, ...) mesa_log(MESA_LOG_ERROR, (MESA_LOG_TAG), (fmt), ##__VA_ARGS__) argument 54 #define mesa_logw(fmt, ...) mesa_log(MESA_LOG_WARN, (MESA_LOG_TAG), (fmt), ##__VA_ARGS__) argument 55 #define mesa_logi(fmt, ...) mesa_log(MESA_LOG_INFO, (MESA_LOG_TAG), (fmt), ##__VA_ARGS__) argument 57 #define mesa_logd(fmt, ...) mesa_log(MESA_LOG_DEBUG, (MESA_LOG_TAG), (fmt), ##__VA_ARGS__) argument 59 #define mesa_logd(fmt, ...) __mesa_log_use_args((fmt), ##__VA_ARGS__) argument 62 #define mesa_loge_v(fmt, va) mesa_log_v(MESA_LOG_ERROR, (MESA_LOG_TAG), (fmt), (va)) argument 63 #define mesa_logw_v(fmt, va) mesa_log_v(MESA_LOG_WARN, (MESA_LOG_TAG), (fmt), (va)) argument 64 #define mesa_logi_v(fmt, va) mesa_log_v(MESA_LOG_INFO, (MESA_LOG_TAG), (fmt), (va)) argument 66 #define mesa_logd_v(fmt, va) mesa_log_v(MESA_LOG_DEBUG, (MESA_LOG_TAG), (fmt), (va)) argument 68 #define mesa_logd_v(fmt, va) __mesa_log_use_args((fmt), (va)) argument
|
/third_party/ffmpeg/libavformat/ |
D | format.c | 54 const AVOutputFormat *fmt = NULL; in av_guess_format() local 69 while ((fmt = av_muxer_iterate(&i))) { in av_guess_format() 71 if (fmt->name && short_name && av_match_name(short_name, fmt->name)) in av_guess_format() 73 if (fmt->mime_type && mime_type && !strcmp(fmt->mime_type, mime_type)) in av_guess_format() 75 if (filename && fmt->extensions && in av_guess_format() 76 av_match_ext(filename, fmt->extensions)) { in av_guess_format() 81 fmt_found = (AVOutputFormat*)fmt; in av_guess_format() 87 enum AVCodecID av_guess_codec(ff_const59 AVOutputFormat *fmt, const char *short_name, in av_guess_codec() argument 91 if (av_match_name("segment", fmt->name) || av_match_name("ssegment", fmt->name)) { in av_guess_codec() 94 fmt = fmt2; in av_guess_codec() [all …]
|
/third_party/mesa3d/src/mesa/main/ |
D | format_fallback.py | 42 names = set(fmt.name for fmt in formats) 44 for fmt in formats: 45 if fmt.colorspace != 'srgb': 57 if fmt.name.find(rep[0]) == -1: 60 unorm_name = fmt.name.replace(rep[0], rep[1]) 62 yield unorm_name, fmt.name 70 names = set(fmt.name for fmt in formats) 72 for fmt in formats: 73 if not fmt.has_channel('r') or not fmt.has_channel('x'): 78 if not 'X' in fmt.name: [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/common/ |
D | utracimp.h | 106 utrace_data(int32_t utraceFnNumber, int32_t level, const char *fmt, ...); 223 #define UTRACE_DATA0(level, fmt) \ argument 225 utrace_data(utraceFnNumber & ~UTRACE_TRACED_ENTRY, (level), (fmt)); \ 236 #define UTRACE_DATA1(level, fmt, a) \ argument 238 utrace_data(utraceFnNumber & ~UTRACE_TRACED_ENTRY , (level), (fmt), (a)); \ 249 #define UTRACE_DATA2(level, fmt, a, b) \ argument 251 utrace_data(utraceFnNumber & ~UTRACE_TRACED_ENTRY , (level), (fmt), (a), (b)); \ 262 #define UTRACE_DATA3(level, fmt, a, b, c) \ argument 264 utrace_data(utraceFnNumber & ~UTRACE_TRACED_ENTRY, (level), (fmt), (a), (b), (c)); \ 275 #define UTRACE_DATA4(level, fmt, a, b, c, d) \ argument [all …]
|
/third_party/skia/third_party/externals/tint/src/diagnostic/ |
D | formatter_test.cc | 52 Formatter fmt{{false, false, false, false}}; in TEST_F() local 53 auto got = fmt.format(List{diag_note, diag_warn, diag_err}); in TEST_F() 61 Formatter fmt{{false, false, false, true}}; in TEST_F() local 62 auto got = fmt.format(List{diag_note, diag_warn, diag_err}); in TEST_F() 71 Formatter fmt{{false, false, false, false}}; in TEST_F() local 73 auto got = fmt.format(List{diag}); in TEST_F() 79 Formatter fmt{{true, false, false, false}}; in TEST_F() local 80 auto got = fmt.format(List{diag_note, diag_warn, diag_err}); in TEST_F() 88 Formatter fmt{{false, true, false, false}}; in TEST_F() local 89 auto got = fmt.format(List{diag_note, diag_warn, diag_err}); in TEST_F() [all …]
|
/third_party/node/deps/icu-small/source/common/ |
D | utracimp.h | 106 utrace_data(int32_t utraceFnNumber, int32_t level, const char *fmt, ...); 232 #define UTRACE_DATA0(level, fmt) UPRV_BLOCK_MACRO_BEGIN { \ argument 234 utrace_data(utraceFnNumber & ~UTRACE_TRACED_ENTRY, (level), (fmt)); \ 246 #define UTRACE_DATA1(level, fmt, a) UPRV_BLOCK_MACRO_BEGIN { \ argument 248 utrace_data(utraceFnNumber & ~UTRACE_TRACED_ENTRY , (level), (fmt), (a)); \ 260 #define UTRACE_DATA2(level, fmt, a, b) UPRV_BLOCK_MACRO_BEGIN { \ argument 262 utrace_data(utraceFnNumber & ~UTRACE_TRACED_ENTRY , (level), (fmt), (a), (b)); \ 274 #define UTRACE_DATA3(level, fmt, a, b, c) UPRV_BLOCK_MACRO_BEGIN { \ argument 276 utrace_data(utraceFnNumber & ~UTRACE_TRACED_ENTRY, (level), (fmt), (a), (b), (c)); \ 288 #define UTRACE_DATA4(level, fmt, a, b, c, d) UPRV_BLOCK_MACRO_BEGIN { \ argument [all …]
|
/third_party/icu/icu4c/source/common/ |
D | utracimp.h | 106 utrace_data(int32_t utraceFnNumber, int32_t level, const char *fmt, ...); 232 #define UTRACE_DATA0(level, fmt) UPRV_BLOCK_MACRO_BEGIN { \ argument 234 utrace_data(utraceFnNumber & ~UTRACE_TRACED_ENTRY, (level), (fmt)); \ 246 #define UTRACE_DATA1(level, fmt, a) UPRV_BLOCK_MACRO_BEGIN { \ argument 248 utrace_data(utraceFnNumber & ~UTRACE_TRACED_ENTRY , (level), (fmt), (a)); \ 260 #define UTRACE_DATA2(level, fmt, a, b) UPRV_BLOCK_MACRO_BEGIN { \ argument 262 utrace_data(utraceFnNumber & ~UTRACE_TRACED_ENTRY , (level), (fmt), (a), (b)); \ 274 #define UTRACE_DATA3(level, fmt, a, b, c) UPRV_BLOCK_MACRO_BEGIN { \ argument 276 utrace_data(utraceFnNumber & ~UTRACE_TRACED_ENTRY, (level), (fmt), (a), (b), (c)); \ 288 #define UTRACE_DATA4(level, fmt, a, b, c, d) UPRV_BLOCK_MACRO_BEGIN { \ argument [all …]
|
/third_party/skia/third_party/externals/icu/source/common/ |
D | utracimp.h | 106 utrace_data(int32_t utraceFnNumber, int32_t level, const char *fmt, ...); 232 #define UTRACE_DATA0(level, fmt) UPRV_BLOCK_MACRO_BEGIN { \ argument 234 utrace_data(utraceFnNumber & ~UTRACE_TRACED_ENTRY, (level), (fmt)); \ 246 #define UTRACE_DATA1(level, fmt, a) UPRV_BLOCK_MACRO_BEGIN { \ argument 248 utrace_data(utraceFnNumber & ~UTRACE_TRACED_ENTRY , (level), (fmt), (a)); \ 260 #define UTRACE_DATA2(level, fmt, a, b) UPRV_BLOCK_MACRO_BEGIN { \ argument 262 utrace_data(utraceFnNumber & ~UTRACE_TRACED_ENTRY , (level), (fmt), (a), (b)); \ 274 #define UTRACE_DATA3(level, fmt, a, b, c) UPRV_BLOCK_MACRO_BEGIN { \ argument 276 utrace_data(utraceFnNumber & ~UTRACE_TRACED_ENTRY, (level), (fmt), (a), (b), (c)); \ 288 #define UTRACE_DATA4(level, fmt, a, b, c, d) UPRV_BLOCK_MACRO_BEGIN { \ argument [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/ |
D | SDL_error.c | 53 SDL_SetError(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) in SDL_SetError() argument 59 if (fmt == NULL) return -1; in SDL_SetError() 64 SDL_strlcpy((char *) error->key, fmt, sizeof(error->key)); in SDL_SetError() 66 va_start(ap, fmt); in SDL_SetError() 68 while (*fmt) { in SDL_SetError() 69 if (*fmt++ == '%') { in SDL_SetError() 70 while (*fmt == '.' || (*fmt >= '0' && *fmt <= '9')) { in SDL_SetError() 71 ++fmt; in SDL_SetError() 73 switch (*fmt++) { in SDL_SetError() 75 --fmt; in SDL_SetError() [all …]
|
/third_party/skia/third_party/externals/tint/tools/src/cmd/test-runner/ |
D | main.go | 53 fmt.Println(err) 59 fmt.Println(` 70 fmt.Println(``) 108 return fmt.Errorf("'%s' not found or is not executable", exe) 142 return fmt.Errorf("Failed to glob files: %w", err) 166 return fmt.Errorf("unknown format '%s'", f) 192 return fmt.Errorf("%v not found at '%v'", tool.name, *tool.path) 196 fmt.Printf("%-4s", tool.lang) 198 fmt.Printf(" validation ") 205 fmt.Printf("ENABLED (" + tool_path + ")") [all …]
|