/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/ |
ns_addr.c | 119 char *fmt;
local 187 fmt = "%3x";
190 fmt = "%3o";
193 fmt = "%3d";
205 (void)sscanf(bp, fmt, hp);
210 (void)sscanf(buf, fmt, hp);
|
/external/curl/tests/libtest/ |
lib518.c | 104 char *fmt; local 115 fmt = fmt_llu; 118 fmt = (sizeof(rl.rlim_max) < sizeof(long))?fmt_u:fmt_lu; 135 snprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_cur); 143 snprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max); 201 snprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_cur); 209 snprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max); 236 snprintf(strbuff2, sizeof(strbuff2), fmt, rl.rlim_cur); 237 snprintf(strbuff1, sizeof(strbuff1), fmt, num_open.rlim_cur); 260 snprintf(strbuff, sizeof(strbuff), fmt, num_open.rlim_max) [all...] |
lib537.c | 106 char *fmt; local 116 fmt = fmt_llu; 119 fmt = (sizeof(rl.rlim_max) < sizeof(long))?fmt_u:fmt_lu; 136 snprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_cur); 144 snprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max); 196 snprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_cur); 204 snprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max); 234 snprintf(strbuff, sizeof(strbuff), fmt, num_open.rlim_max); 277 snprintf(strbuff1, sizeof(strbuff1), fmt, num_open.rlim_max); 289 snprintf(strbuff, sizeof(strbuff), fmt, num_open.rlim_max) [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
QuantityFormatter.java | 109 Number number, NumberFormat fmt, PluralRules rules, 112 fmt.format(number, formattedNumber, fpos);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
NumberFormatSpecificationTest.java | 138 DecimalFormat fmt = new DecimalFormat("い **#######0", sym); local 139 fmt.setCurrency(Currency.getInstance("JPY")); 141 assertEquals("", "JPY ****433", fmt.format(433.22)); 146 DecimalFormat fmt = new DecimalFormat("い **#######0;い (#)", sym); local 147 assertEquals("", "USD (433.22)", fmt.format(-433.22)); 153 DecimalFormat fmt = new DecimalFormat("QU**00.#####E0", sym); local 154 assertEquals("", "QU**43,3EE-1", fmt.format(4.33)); 162 DecimalFormat fmt = new DecimalFormat(pattern, sym); local 163 return fmt.format(d).replace('\u00a0', ' ');
|
RBNFParseTest.java | 90 RuleBasedNumberFormat fmt = new RuleBasedNumberFormat(tests[i], Locale.US); local 91 logln("1.23: " + fmt.format(20)); 92 logln("-123: " + fmt.format(-123)); 93 logln(".123: " + fmt.format(.123)); 94 logln(" 123: " + fmt.format(123));
|
/external/icu/icu4c/source/samples/numfmt/ |
main.cpp | 55 NumberFormat *fmt = NumberFormat::createInstance(us, status); local 62 fmt->parse(str, result, status); 74 fmt->format(result, str, status); 83 delete fmt; // Release the storage used by the formatter
|
/external/icu/icu4c/source/test/compat/ |
tzdate.c | 76 UDateFormat *fmt; local 84 fmt = udat_open(style, style, 0, tz, -1,NULL,0, &status); 86 len = udat_format(fmt, timeToCheck, 0, len, 0, &status); 96 udat_format(fmt, timeToCheck, s, len + 1, 0, &status); 107 udat_close(fmt);
|
/external/icu/icu4c/source/test/intltest/ |
pptest.cpp | 187 DecimalFormat *fmt = dynamic_cast<DecimalFormat *>(nf); local 188 if(fmt == NULL) { 192 fmt->setDecimalSeparatorAlwaysShown(TRUE); 204 //ToCharString(fmt->format(doubleNum[i], buf, pos), fmtText); 206 res = fmt->format(doubleNum[i], buf, pos);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
CurrencyFormat.java | 39 private NumberFormat fmt; field in class:CurrencyFormat 46 fmt = NumberFormat.getCurrencyInstance(locale.toLocale()); 55 result.fmt = (NumberFormat) fmt.clone(); 69 fmt.setCurrency(currency.getCurrency()); 70 return fmt.format(currency.getNumber(), toAppendTo, pos); 79 return fmt.parseCurrency(source, pos); 120 return new CurrencyFormat(fmt.getLocale(ULocale.ACTUAL_LOCALE));
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
IntlTestDateFormatAPIC.java | 89 NumberFormat fmt = NumberFormat.getInstance(); local 90 if (fmt != null) { 91 str = fmt.format(numObj); 92 strBuffer = fmt.format(numObj, strBuffer, fpos); 101 DecimalFormat fmt = new DecimalFormat(); local 103 str = fmt.format(numObj); 104 strBuffer = fmt.format(numObj, strBuffer, fpos); 106 str = fmt.format(2.71828); 107 str = fmt.format(1234567); 108 strBuffer = fmt.format(1.41421, strBuffer, fpos) [all...] |
NumberFormatSpecificationTest.java | 135 DecimalFormat fmt = new DecimalFormat("い **#######0", sym); local 136 fmt.setCurrency(Currency.getInstance("JPY")); 138 assertEquals("", "JPY ****433", fmt.format(433.22)); 143 DecimalFormat fmt = new DecimalFormat("い **#######0;い (#)", sym); local 144 assertEquals("", "USD (433.22)", fmt.format(-433.22)); 150 DecimalFormat fmt = new DecimalFormat("QU**00.#####E0", sym); local 151 assertEquals("", "QU**43,3EE-1", fmt.format(4.33)); 159 DecimalFormat fmt = new DecimalFormat(pattern, sym); local 160 return fmt.format(d).replace('\u00a0', ' ');
|
/external/libchrome/base/strings/ |
safe_sprintf_unittest.cc | 130 const char fmt[] = "hello%cworld"; local 136 EXPECT_EQ(-1, SafeSNPrintf(buf, static_cast<size_t>(-1), fmt, ' ')); 140 EXPECT_EQ(-1, SafeSNPrintf(buf, 0, fmt, ' ')); 145 SafeSNPrintf(buf, 1, fmt, ' ')); 153 SafeSNPrintf(buf, 2, fmt, ' ')); 162 SafeSNPrintf(buf, sizeof(buf), fmt, ' ')); 169 EXPECT_EQ(static_cast<ssize_t>(sizeof(text))-1, SafeSPrintf(buf, fmt, ' ')); 522 char buf[40], fmt[40]; local 533 SafeSPrintf(fmt, "%%%dc", std::numeric_limits<ssize_t>::max() - 1); 534 EXPECT_EQ(std::numeric_limits<ssize_t>::max()-1, SafeSPrintf(buf, fmt, 'A')) [all...] |
/external/ltp/testcases/kernel/timers/leapsec/ |
leapsec_timer.c | 109 static char fmt[256], buf[256]; local 111 if (snprintf(fmt, sizeof(fmt), "%%F %%T.%09ld %%z", now->tv_nsec) < 0) { 115 if (!strftime(buf, sizeof(buf), fmt, localtime(&now->tv_sec))) {
|
/external/mesa3d/src/gallium/drivers/etnaviv/ |
etnaviv_screen.c | 443 gpu_supports_texure_format(struct etna_screen *screen, uint32_t fmt) 445 if (fmt == TEXTURE_FORMAT_ETC1) 448 if (fmt >= TEXTURE_FORMAT_DXT1 && fmt <= TEXTURE_FORMAT_DXT4_DXT5) 496 uint32_t fmt = translate_texture_format(format); local 498 if (!gpu_supports_texure_format(screen, fmt)) 499 fmt = ETNA_NO_MATCH; 501 if (sample_count < 2 && fmt != ETNA_NO_MATCH)
|
/external/mesa3d/src/gallium/drivers/nouveau/nv30/ |
nv30_fragtex.c | 49 const struct nv30_texfmt *fmt = nv30_texfmt(pscreen, sv->pipe.format); local 54 u32 format = sv->fmt | ss->fmt; 76 if (fmt->nv40 == NV40_3D_TEX_FORMAT_FORMAT_Z16) 79 if (fmt->nv40 == NV40_3D_TEX_FORMAT_FORMAT_Z24) 82 format |= fmt->nv40; 84 format |= fmt->nv40; 98 if (fmt->nv30 == NV30_3D_TEX_FORMAT_FORMAT_Z16) { 104 if (fmt->nv30 == NV30_3D_TEX_FORMAT_FORMAT_Z24) { 111 format |= fmt->nv30 [all...] |
nv30_texture.c | 140 so->fmt = 0; 156 so->fmt |= NV40_3D_TEX_FORMAT_RECT; 208 swizzle(const struct nv30_texfmt *fmt, unsigned cmp, unsigned swz) 210 uint32_t data = fmt->swz[swz].src << 8; 212 data |= fmt->swz[swz].cmp; 214 data |= fmt->swz[cmp].cmp; 222 const struct nv30_texfmt *fmt = nv30_texfmt(pipe->screen, tmpl->format); local 236 so->fmt = NV30_3D_TEX_FORMAT_NO_BORDER; 239 so->fmt |= NV30_3D_TEX_FORMAT_DIMS_1D; 242 so->fmt |= NV30_3D_TEX_FORMAT_CUBIC [all...] |
/external/mesa3d/src/mesa/swrast/ |
s_texfetch.c | 479 mesa_format fmt; local 480 for (fmt = 0; fmt < MESA_FORMAT_COUNT; fmt++) { 481 assert(texfetch_funcs[fmt].Name == fmt);
|
/external/strace/ |
poll.c | 114 static const char fmt[] = "{fd=%d, revents="; local 115 char fdstr[sizeof(fmt) + sizeof(int) * 3]; 116 xsprintf(fdstr, fmt, fds.fd);
|
/external/syslinux/com32/sysdump/ |
dmi.c | 28 uint8_t fmt[5]; member in struct:smbios_header
|
/frameworks/av/media/libstagefright/omx/ |
OMXUtils.cpp | 209 const OMX_COLOR_FORMATTYPE fmt = params.eColorFormat; local 214 if (fmt != OMX_COLOR_FormatYUV420Planar && 215 fmt != OMX_COLOR_FormatYUV420PackedPlanar && 216 fmt != OMX_COLOR_FormatYUV420SemiPlanar && 217 fmt != OMX_COLOR_FormatYUV420PackedSemiPlanar && 218 fmt != (OMX_COLOR_FORMATTYPE)HAL_PIXEL_FORMAT_YV12) { 219 ALOGW("do not know color format 0x%x = %d", fmt, fmt); 220 if (fmt == OMX_COLOR_FormatYUV420Planar16) { 239 fmt, fmt, params.nStride, params.nSliceHeight) [all...] |
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/ |
mm_qcamera_rdi.c | 102 cam_format_t fmt = CAM_FORMAT_MAX; local 119 fmt = cam_cap->supported_raw_fmts[i]; 120 LOGE(" fmt=%d\n", fmt); 124 if (CAM_FORMAT_MAX == fmt) { 170 stream->s_config.stream_info->fmt = DEFAULT_RAW_FORMAT; 233 stream->s_config.stream_info->fmt = DEFAULT_SNAPSHOT_FORMAT;
|
/prebuilts/go/darwin-x86/src/fmt/ |
format.go | 5 package fmt package 39 // A fmt is the raw formatter used by Printf etc. 41 type fmt struct { type 54 func (f *fmt) clearflags() { 58 func (f *fmt) init(buf *buffer) { 64 func (f *fmt) writePadding(n int) { 90 func (f *fmt) pad(b []byte) { 108 func (f *fmt) padString(s string) { 126 func (f *fmt) fmt_boolean(v bool) { 135 func (f *fmt) fmt_unicode(u uint64) [all...] |
/prebuilts/go/linux-x86/src/fmt/ |
format.go | 5 package fmt package 39 // A fmt is the raw formatter used by Printf etc. 41 type fmt struct { type 54 func (f *fmt) clearflags() { 58 func (f *fmt) init(buf *buffer) { 64 func (f *fmt) writePadding(n int) { 90 func (f *fmt) pad(b []byte) { 108 func (f *fmt) padString(s string) { 126 func (f *fmt) fmt_boolean(v bool) { 135 func (f *fmt) fmt_unicode(u uint64) [all...] |
/system/bt/bta/ag/ |
bta_ag_at.h | 51 uint8_t fmt; /* whether arg is int or string */ member in struct:__anon1209
|