HomeSort by relevance Sort by last modified time
    Searched refs:DecimalFormat (Results 1 - 25 of 122) sorted by null

1 2 3 4 5

  /libcore/luni/src/test/java/libcore/java/text/
OldDecimalFormatTest.java 23 import java.text.DecimalFormat;
44 DecimalFormat df = new DecimalFormat();
55 df = new DecimalFormat();
66 iterator = new DecimalFormat()
81 iterator = new DecimalFormat()
96 iterator = new DecimalFormat()
111 iterator = new DecimalFormat()
134 DecimalFormat form = (DecimalFormat) DecimalForma
    [all...]
DecimalFormatTest.java 22 import java.text.DecimalFormat;
30 DecimalFormat df = new DecimalFormat("0E0");
40 DecimalFormat df = (DecimalFormat) DecimalFormat.getInstance(Locale.US);
121 DecimalFormat df = (DecimalFormat) NumberFormat.getInstance();
161 DecimalFormat df = (DecimalFormat)NumberFormat.getInstance()
    [all...]
OldDecimalFormatTestICU.java 19 import java.text.DecimalFormat;
32 DecimalFormat format;
35 format = (DecimalFormat) NumberFormat.getNumberInstance();
40 DecimalFormat format = (DecimalFormat) NumberFormat
NumberFormatTest.java 20 import java.text.DecimalFormat;
69 assertEquals("#0.###;#0.###-", ((DecimalFormat) numberFormat).toPattern());
71 assertEquals("#0;#0-", ((DecimalFormat) integerFormat).toPattern());
  /external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
DecimalFormatTest.java 25 import java.text.DecimalFormat;
43 AttributedCharacterIterator iterator = new DecimalFormat().formatToCharacterIterator(new Integer(1));
55 DecimalFormat form = (DecimalFormat) DecimalFormat.getInstance(Locale.US);
69 DecimalFormat form = (DecimalFormat) DecimalFormat.getInstance(Locale.US);
76 form = (DecimalFormat) DecimalFormat.getInstance(Locale.US)
    [all...]
NumberFormatTest.java 21 import java.text.DecimalFormat;
38 DecimalFormat format = (DecimalFormat) NumberFormat
125 DecimalFormat format = (DecimalFormat) NumberFormat
153 DecimalFormat format = (DecimalFormat) NumberFormat
174 format = (DecimalFormat) NumberFormat.getIntegerInstance(arLocale);
  /external/chromium_org/third_party/icu/source/test/intltest/
numfmtst.h 202 void expectPad(DecimalFormat& fmt, const UnicodeString& pat,
205 void expectPad(DecimalFormat& fmt, const char *pat,
210 void expectPad(DecimalFormat& fmt, const UnicodeString& pat,
213 void expectPad(DecimalFormat& fmt, const char *pat,
218 void expectPat(DecimalFormat& fmt, const UnicodeString& exp);
220 void expectPat(DecimalFormat& fmt, const char *exp) {
224 void expectPad(DecimalFormat& fmt, const UnicodeString& pat,
227 void expectPad(DecimalFormat& fmt, const char *pat,
246 void checkRounding(DecimalFormat* df, double base, int iterations, double increment);
248 double checkRound(DecimalFormat* df, double iValue, double lastParsed)
    [all...]
numfmtst.cpp 218 DecimalFormat fmt(pat[i], sym, status);
219 if (U_FAILURE(status)) { errln((UnicodeString)"FAIL: DecimalFormat constructor failed for " + pat[i]); continue; }
353 DecimalFormat fmt(pat[p], sym, status);
354 if (U_FAILURE(status)) { errln("FAIL: Bad status returned by DecimalFormat ct"); continue; }
444 DecimalFormat* fmt = (DecimalFormat*)NumberFormat::createCurrencyInstance("en_US", status);
460 DecimalFormat fmt("##0.00E0",status);
495 DecimalFormat fmt("#.#E0",status);
587 DecimalFormat *fmt = new DecimalFormat(*pat, *sym, status)
    [all...]
numrgts.cpp 276 * DecimalFormat.format() incorrectly uses maxFractionDigits setting.
282 DecimalFormat *df = new DecimalFormat(status);
283 if (!failure(status, "new DecimalFormat", "")) {
306 * DecimalFormatSymbols should be cloned in the ctor DecimalFormat.
307 * DecimalFormat(String, DecimalFormatSymbols).
318 DecimalFormat *df = new DecimalFormat("#,##0.0", *symbols, status);
319 failure(status, "new DecimalFormat with symbols", "");
337 * DecimalFormat.format() incorrectly formats 0.
    [all...]
dcfmapts.cpp 26 case 0: name = "DecimalFormat API test";
28 logln((UnicodeString)"DecimalFormat API test---"); logln((UnicodeString)"");
41 logln((UnicodeString)"DecimalFormat Rounding test---");
47 logln((UnicodeString)"DecimalFormat Rounding Increment test---");
62 * This test checks various generic API methods in DecimalFormat to achieve 100%
71 logln((UnicodeString)"Testing DecimalFormat constructors");
73 DecimalFormat def(status);
75 errcheckln(status, "ERROR: Could not create DecimalFormat (default) - %s", u_errorName(status));
81 DecimalFormat pat(pattern, status);
83 errln((UnicodeString)"ERROR: Could not create DecimalFormat (pattern)")
    [all...]
dcfmtest.cpp 312 DecimalFormat format(pattern, symbols, status);
378 DecimalFormat fmtr(pattern, symbols, status);
385 fmtr.setRoundingMode(DecimalFormat::kRoundCeiling);
387 fmtr.setRoundingMode(DecimalFormat::kRoundFloor);
389 fmtr.setRoundingMode(DecimalFormat::kRoundDown);
391 fmtr.setRoundingMode(DecimalFormat::kRoundUp);
393 fmtr.setRoundingMode(DecimalFormat::kRoundHalfEven);
395 fmtr.setRoundingMode(DecimalFormat::kRoundHalfDown);
397 fmtr.setRoundingMode(DecimalFormat::kRoundHalfUp);
401 fmtr.setRoundingMode(DecimalFormat::kRoundFloor)
    [all...]
  /external/icu4c/test/intltest/
numfmtst.h 214 void expectPad(DecimalFormat& fmt, const UnicodeString& pat,
217 void expectPad(DecimalFormat& fmt, const char *pat,
222 void expectPad(DecimalFormat& fmt, const UnicodeString& pat,
225 void expectPad(DecimalFormat& fmt, const char *pat,
230 void expectPat(DecimalFormat& fmt, const UnicodeString& exp);
232 void expectPat(DecimalFormat& fmt, const char *exp) {
236 void expectPad(DecimalFormat& fmt, const UnicodeString& pat,
239 void expectPad(DecimalFormat& fmt, const char *pat,
258 void checkRounding(DecimalFormat* df, double base, int iterations, double increment);
260 double checkRound(DecimalFormat* df, double iValue, double lastParsed)
    [all...]
numfmtst.cpp 225 DecimalFormat fmt(pat[i], sym, status);
226 if (U_FAILURE(status)) { errln((UnicodeString)"FAIL: DecimalFormat constructor failed for " + pat[i]); continue; }
360 DecimalFormat fmt(pat[p], sym, status);
361 if (U_FAILURE(status)) { errln("FAIL: Bad status returned by DecimalFormat ct"); continue; }
451 DecimalFormat* fmt = (DecimalFormat*)NumberFormat::createCurrencyInstance("en_US", status);
467 DecimalFormat fmt("##0.00E0",status);
502 DecimalFormat fmt("#.#E0",status);
594 DecimalFormat *fmt = new DecimalFormat(*pat, *sym, status)
    [all...]
numrgts.cpp 280 * DecimalFormat.format() incorrectly uses maxFractionDigits setting.
286 DecimalFormat *df = new DecimalFormat(status);
287 if (!failure(status, "new DecimalFormat", "")) {
310 * DecimalFormatSymbols should be cloned in the ctor DecimalFormat.
311 * DecimalFormat(String, DecimalFormatSymbols).
322 DecimalFormat *df = new DecimalFormat("#,##0.0", *symbols, status);
323 failure(status, "new DecimalFormat with symbols", "");
341 * DecimalFormat.format() incorrectly formats 0.
    [all...]
  /external/icu4c/i18n/
decimfmt.cpp 219 // class DecimalFormat
222 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DecimalFormat)
248 const int32_t DecimalFormat::kDoubleIntegerDigits = 309;
249 const int32_t DecimalFormat::kDoubleFractionDigits = 340;
251 const int32_t DecimalFormat::kMaxScientificIntegerDigits = 8;
257 const char DecimalFormat::fgNumberPatterns[]="NumberPatterns"; // Deprecated - not used
261 static const char fgDecimalFormat[]="decimalFormat";
269 // Constructs a DecimalFormat instance in the default locale.
271 DecimalFormat::DecimalFormat(UErrorCode& status)
    [all...]
unum.cpp 76 retVal = new DecimalFormat(pat, syms, *parseErr, *status);
139 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf);
472 // The remaining attributea are only supported for DecimalFormat
473 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf);
490 // keep this here as the class may not be a DecimalFormat
493 // The remaining attributea are only supported for DecimalFormat
494 DecimalFormat* df = dynamic_cast<DecimalFormat*>(nf)
    [all...]
nfsubs.h 35 const DecimalFormat* numberFormat;
54 const DecimalFormat* getNumberFormat() const { return numberFormat; }
107 * either ruleSet or decimalFormat, and inserts the result into
119 * either ruleSet or decimalFormat, and inserts the result into
133 * is formatted using the rule set or DecimalFormat that this
144 * is formatted using the rule set or DecimalFormat that this
158 * Parses a string using the rule set or DecimalFormat belonging
  /external/chromium_org/third_party/icu/source/i18n/unicode/
decimfmt.h 52 * DecimalFormat is a concrete subclass of NumberFormat that formats decimal
62 * createInstance(). Do not call the DecimalFormat constructors directly, unless
64 * return subclasses other than DecimalFormat.
101 * pattern = ((DecimalFormat*)form)->toPattern(pattern);
134 * <p>A DecimalFormat consists of a <em>pattern</em> and a set of
258 * <p>A DecimalFormat pattern contains a postive and negative
295 * DecimalFormat to set a failing UErrorCode.
346 * <p>DecimalFormat parses all Unicode characters that represent
348 * DecimalFormat also recognizes as digits the ten consecutive
418 * but it need not be. DecimalFormat supports arbitrary mantissas
    [all...]
  /external/chromium_org/v8/src/
i18n.h 38 class DecimalFormat;
86 static icu::DecimalFormat* InitializeNumberFormat(
93 static icu::DecimalFormat* UnpackNumberFormat(Isolate* isolate,
  /external/icu4c/i18n/unicode/
compactdecimalformat.h 53 class U_I18N_API CompactDecimalFormat : public DecimalFormat {
69 * @param source the DecimalFormat object to be copied from.
83 * @param rhs the DecimalFormat object to be copied.
108 using DecimalFormat::format;
322 CompactDecimalFormat(const DecimalFormat &, const UHashtable* unitsByVariant, const double* divisors, PluralRules* pluralRules);
decimfmt.h 71 * DecimalFormat is a concrete subclass of NumberFormat that formats decimal
81 * createInstance(). Do not call the DecimalFormat constructors directly, unless
83 * return subclasses other than DecimalFormat.
120 * pattern = ((DecimalFormat*)form)->toPattern(pattern);
153 * <p>A DecimalFormat consists of a <em>pattern</em> and a set of
277 * <p>A DecimalFormat pattern contains a postive and negative
314 * DecimalFormat to set a failing UErrorCode.
365 * <p>DecimalFormat parses all Unicode characters that represent
367 * DecimalFormat also recognizes as digits the ten consecutive
438 * but it need not be. DecimalFormat supports arbitrary mantissas
    [all...]
  /external/chromium_org/third_party/icu/source/i18n/
decimfmt.cpp 191 // class DecimalFormat
194 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DecimalFormat)
220 const int32_t DecimalFormat::kDoubleIntegerDigits = 309;
221 const int32_t DecimalFormat::kDoubleFractionDigits = 340;
223 const int32_t DecimalFormat::kMaxScientificIntegerDigits = 8;
229 const char DecimalFormat::fgNumberPatterns[]="NumberPatterns"; // Deprecated - not used
233 static const char fgDecimalFormat[]="decimalFormat";
241 // Constructs a DecimalFormat instance in the default locale.
243 DecimalFormat::DecimalFormat(UErrorCode& status)
    [all...]
nfsubs.h 35 const DecimalFormat* numberFormat;
54 const DecimalFormat* getNumberFormat() const { return numberFormat; }
107 * either ruleSet or decimalFormat, and inserts the result into
119 * either ruleSet or decimalFormat, and inserts the result into
133 * is formatted using the rule set or DecimalFormat that this
144 * is formatted using the rule set or DecimalFormat that this
158 * Parses a string using the rule set or DecimalFormat belonging
unum.cpp 108 retVal = (UNumberFormat*)new DecimalFormat(pat, syms, *parseErr, *status);
171 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf);
486 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf);
568 DecimalFormat* df = dynamic_cast<DecimalFormat*>(nf);
630 df->setRoundingMode((DecimalFormat::ERoundingMode)newValue);
639 df->setPadPosition((DecimalFormat::EPadPosition)newValue);
666 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf)
    [all...]
  /device/google/accessory/demokit/app/src/com/google/android/DemoKit/
InputController.java 3 import java.text.DecimalFormat;
16 private final DecimalFormat mLightValueFormatter = new DecimalFormat("##.#");
17 private final DecimalFormat mTemperatureFormatter = new DecimalFormat(

Completed in 736 milliseconds

1 2 3 4 5