/dalvik/libcore/luni/src/test/java/java/text/ |
NumberFormatTest.java | 38 NumberFormat nf = NumberFormat.getNumberInstance(Locale.US); local 39 assertEquals("123", nf.format(new MyNumber())); 58 NumberFormat nf = new MyNumberFormat(); local 59 assertEquals("long", nf.format(BigInteger.valueOf(Long.MAX_VALUE))); 60 assertEquals("double", nf.format(BigInteger.valueOf(Long.MAX_VALUE).add(BigInteger.ONE))); 61 assertEquals("long", nf.format(BigInteger.valueOf(Long.MIN_VALUE))); 62 assertEquals("double", nf.format(BigInteger.valueOf(Long.MIN_VALUE).subtract(BigInteger.ONE)));
|
/external/icu4c/samples/numfmt/ |
main.cpp | 92 * @param nf The NumberFormat on which to set the currency; takes effect on 95 * The display style of the output is controlled by nf (its pattern, 103 setNumberFormatCurrency_2_4(NumberFormat &nf, const char *currency, UErrorCode &errorCode) { 116 if(nf.getDynamicClassID()!=DecimalFormat::getStaticClassID()) { 168 nf.setMinimumFractionDigits(currencyMap[i].fractionDigits); 169 nf.setMaximumFractionDigits(currencyMap[i].fractionDigits); 171 DecimalFormat &dnf=(DecimalFormat &)nf; 182 * @param nf The NumberFormat on which to set the currency; takes effect on 184 * The display style of the output is controlled by nf (its pattern, 192 setNumberFormatCurrency_2_6(NumberFormat &nf, const char *currency, UErrorCode &errorCode) 228 NumberFormat *nf; local [all...] |
/external/srec/srec/cfront/ |
chelmel4.c | 55 //static void mel_cuberoot_offset(cepdata *fbo, cepdata *ch_off, int nf); 57 static void mel_spectrum_correction(cepdata *fbo, cepdata *ch_gain, int nf); 61 //static void mel_exp(cepdata *fbo, int nf); 64 static void icostrans(cepdata *cs, cepdata fb[], cepdata cep[], int nf, int nc); 79 write_scaled_frames(freqobj->nf, 1, channel->filterbank, D_FIXED, 1 / (float)LOG_SCALE); 93 static void icostrans(cepdata *cs, cepdata fb[], cepdata cep[], int nf, int nc) 104 cp = &cs[i*nf]; 105 for (j = 0, temp = 0; j < nf; j++) 113 static void mel_spectrum_correction(cepdata *fbo, cepdata *ch_gain, int nf) 119 for (i = 0;i < nf; i++ [all...] |
frontobj.c | 112 setup_cep_object(config->cepobj, parameters, config->freqobj->nf, 177 channel->num_freq = freqobj->nf; 415 for (freqobj->nf = 0; i <= 10; i++, freqobj->nf++) 416 freqobj->fc[freqobj->nf] = (fftdata)(100 * i); /* 100 Hz */ 417 for (f = 1000.; f <= high_cut; freqobj->nf++) 420 freqobj->fc[freqobj->nf] = (fftdata) fixed_round(f); /* 10 % */ 422 freqobj->nf--; 424 if ((freqobj->fc[freqobj->nf] + freqobj->fc[freqobj->nf-1]) / 2. > high_cut [all...] |
spec_anl.c | 134 write_scaled_frames(freqobj->nf, 1, channel->filterbank, D_FIXED, (float)(0x01 << channel->shift)); 136 write_scaled_frames(freqobj->nf, 1, channel->filterbank, D_FIXED, (float)1 / (0x01 << -channel->shift)); 290 for (i = 0, k = 2; i < freqobj->nf; i++, k++)
|
/packages/apps/Gallery3D/src/com/cooliris/media/ |
Shared.java | 97 float nf = (angleToRotate / 360.0f); local 100 n = (int) (nf - 1.0f); 102 n = (int) (nf);
|
/external/icu4c/test/intltest/ |
pptest.cpp | 179 NumberFormat *nf = NumberFormat::createInstance(status); local 181 delete nf; 185 if(nf->getDynamicClassID() != DecimalFormat::getStaticClassID()) { 189 DecimalFormat *fmt = (DecimalFormat*) nf; 213 delete nf;
|
numrgts.cpp | 472 NumberFormat *nf = NumberFormat::createInstance(status); local 474 delete nf; 477 nf->setMaximumFractionDigits(4); 480 out = nf->format(x, out, pos); 486 delete nf; 514 DecimalFormat *nf = (DecimalFormat*) nf1; local 516 logln("nf toPattern1: " + nf->toPattern(temp)); 517 logln("nf toLocPattern1: " + nf->toLocalizedPattern(temp)) 839 NumberFormat *nf = NumberFormat::createCurrencyInstance(*de, status); local 1610 NumberFormat *nf = NumberFormat::createInstance(status); local 1779 DecimalFormat *nf = new DecimalFormat("##,###,###.00", status); local 1915 DecimalFormat *nf = (DecimalFormat*)nff; local 2181 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status); local 2386 NumberFormat *nf; local 2526 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status); local 2644 NumberFormat *nf = NumberFormat::createInstance(loc, status); local [all...] |
numfmtst.h | 186 void expectCurrency(NumberFormat& nf, const Locale& locale, 230 void roundingTest(NumberFormat& nf, double x, int32_t maxFractionDigits, const char* expected);
|
dtfmapts.cpp | 205 const NumberFormat *nf = def->getNumberFormat(); local 206 NumberFormat *newNf = (NumberFormat*) nf->clone();
|
icusvtst.cpp | [all...] |
numfmtst.cpp | 845 NumberFormat *nf = NumberFormat::createInstance(status); local 851 roundingTest(*nf, 0.00159999, 4, "0.0016"); 852 roundingTest(*nf, 0.00995, 4, "0.01"); 854 roundingTest(*nf, 12.3995, 3, "12.4"); 856 roundingTest(*nf, 12.4999, 0, "12"); 857 roundingTest(*nf, - 19.5, 0, "-20"); 858 delete nf; 963 NumberFormatTest::roundingTest(NumberFormat& nf, double x, int32_t maxFractionDigits, const char* expected) 965 nf.setMaximumFractionDigits(maxFractionDigits); 966 UnicodeString out; nf.format(x, out) 1416 NumberFormat* nf = NumberFormat::createCurrencyInstance(locs[i], ec); local [all...] |
/external/opencore/codecs_v2/audio/gsm_amr/amr_nb/common/src/ |
az_lsp.cpp | 385 Word16 i, j, nf, ip; 433 nf = 0; // number of found frequencies 442 // while ( (nf < M) && (j < grid_points) ) 443 while ((sub (nf, M) < 0) && (sub (j, grid_points) < 0)) 505 lsp[nf] = xint; 507 nf++; 526 if (sub (nf, M) < 0) 569 register Word16 nf; local 627 nf = 0; /* number of found frequencies */ 637 while ((nf < M) && (j < grid_points) [all...] |
/frameworks/base/media/libstagefright/codecs/amrnb/common/src/ |
az_lsp.cpp | 385 Word16 i, j, nf, ip; 433 nf = 0; // number of found frequencies 442 // while ( (nf < M) && (j < grid_points) ) 443 while ((sub (nf, M) < 0) && (sub (j, grid_points) < 0)) 505 lsp[nf] = xint; 507 nf++; 526 if (sub (nf, M) < 0) 569 register Word16 nf; local 627 nf = 0; /* number of found frequencies */ 637 while ((nf < M) && (j < grid_points) [all...] |
/external/libffi/src/powerpc/ |
ffi_darwin.c | 648 long nf; /* number of floating registers already used. */ local 658 nf = 0; 729 if (nf < NUM_FPR_ARG_REGISTERS) 740 nf++; 748 if (nf < NUM_FPR_ARG_REGISTERS) 757 nf++; 767 if (nf < NUM_FPR_ARG_REGISTERS - 1) 775 else if (nf == NUM_FPR_ARG_REGISTERS - 1) 785 nf += 2;
|
ffi.c | 1008 long nf; /* number of floating registers already used */ local 1018 nf = 0; 1161 if (nf < 8) 1166 nf++; [all...] |
/external/icu4c/test/cintltst/ |
cnumtst.c | 15 * 06/24/99 helena Integrated Alan's NF enhancements and Java2 bug fixes 810 UNumberFormat *nf = unum_open(UNUM_SPELLOUT, NULL, 0, testPtr->locale, NULL, &status); local 815 value = unum_parse(nf, testPtr->source, -1, &position, &status); 822 unum_close(nf); 1431 UNumberFormat *nf = unum_open(UNUM_CURRENCY, NULL, 0, "en_US", NULL, &status); local 1496 UNumberFormat* nf = NULL; local [all...] |
cnmdptst.c | 14 * 06/24/99 helena Integrated Alan's NF enhancements and Java2 bug fixes 637 static void roundingTest(UNumberFormat* nf, double x, int32_t maxFractionDigits, const char* expected) 645 unum_setAttribute(nf, UNUM_MAX_FRACTION_DIGITS, maxFractionDigits); 647 lneed=unum_formatDouble(nf, x, NULL, lneed, NULL, &status); 652 unum_formatDouble(nf, x, out, lneed+1, &pos, &status); [all...] |
/external/bluetooth/bluez/common/ |
glib-helper.c | 710 struct hci_filter nf; local 760 hci_filter_clear(&nf); 761 hci_filter_set_ptype(HCI_EVENT_PKT, &nf); 762 hci_filter_set_event(EVT_CMD_STATUS, &nf); 763 hci_filter_set_event(EVT_AUTH_COMPLETE, &nf); 764 hci_filter_set_event(EVT_ENCRYPT_CHANGE, &nf); 766 if (setsockopt(dd, SOL_HCI, HCI_FILTER, &nf, sizeof(nf)) < 0) {
|
/external/icu4c/i18n/ |
winnmfmt.cpp | 221 NumberFormat *nf = fCurrency? NumberFormat::createCurrencyInstance(loc, status) : NumberFormat::createInstance(loc, status); local 223 nf->parse(text, result, parsePosition); 224 delete nf;
|
smpdtfmt.cpp | 182 delete cur->nf; 1342 NumberFormat *nf = NULL; local [all...] |
/external/speex/libspeex/ |
smallft.c | 49 int nf=0; local 63 nf++; 64 ifac[nf+1]=ntry; 67 if(nf==1)goto L107; 69 for (i=1;i<nf;i++){ 70 ib=nf-i+1; 78 ifac[1]=nf; 81 nfm1=nf-1; 577 int na,kh,nf; local 580 nf=ifac[1] 1159 int nf,ip,iw,ix2,ix3,ido,idl1; local [all...] |
/external/srec/srec/include/ |
front.h | 55 #define NF 40 166 int np, ns, nf, lognp; member in struct:__anon5864 167 fftdata fcb[NF]; 169 int fcmid[NF+2]; 170 fftdata fcscl[NF+1], framp[NP+1];
|
/external/svox/pico/lib/ |
picoos.c | 934 picopal_File nf; member in struct:picoos_file 997 (*f)->nf = picopal_get_fnil(); 1001 (*f)->nf = picopal_fopen((*f)->name, mode); 1002 done = !(picopal_is_fnil((*f)->nf)); 1004 (*f)->lFileLen = picopal_flength((*f)->nf); [all...] |
/bootable/recovery/edify/ |
expr.c | 376 NamedFunction* nf = bsearch(&key, fn_table, fn_entries, local 378 if (nf == NULL) { 381 return nf->fn;
|