/external/icu/android_icu4j/src/main/java/android/icu/text/ |
MeasureFormat.java | 122 private final transient ImmutableNumberFormat numberFormat; 165 WIDE(ListFormatter.Style.DURATION, NumberFormat.PLURALCURRENCYSTYLE), 170 SHORT(ListFormatter.Style.DURATION_SHORT, NumberFormat.ISOCURRENCYSTYLE), 175 NARROW(ListFormatter.Style.DURATION_NARROW, NumberFormat.CURRENCYSTYLE), 182 NUMERIC(ListFormatter.Style.DURATION_NARROW, NumberFormat.CURRENCYSTYLE); 213 return getInstance(locale, formatWidth, NumberFormat.getInstance(locale)); 235 public static MeasureFormat getInstance(ULocale locale, FormatWidth formatWidth, NumberFormat format) { 250 NumberFormat intFormat = NumberFormat.getInstance(locale); 261 new ImmutableNumberFormat(NumberFormat.getInstance(locale, formatWidth.getCurrencyStyle())) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
MeasureFormat.java | 122 private final transient ImmutableNumberFormat numberFormat; 169 WIDE(ListFormatter.Style.DURATION, NumberFormat.PLURALCURRENCYSTYLE), 176 SHORT(ListFormatter.Style.DURATION_SHORT, NumberFormat.ISOCURRENCYSTYLE), 183 NARROW(ListFormatter.Style.DURATION_NARROW, NumberFormat.CURRENCYSTYLE), 192 NUMERIC(ListFormatter.Style.DURATION_NARROW, NumberFormat.CURRENCYSTYLE); 224 return getInstance(locale, formatWidth, NumberFormat.getInstance(locale)); 248 public static MeasureFormat getInstance(ULocale locale, FormatWidth formatWidth, NumberFormat format) { 263 NumberFormat intFormat = NumberFormat.getInstance(locale); 274 new ImmutableNumberFormat(NumberFormat.getInstance(locale, formatWidth.getCurrencyStyle())) [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/ |
FormatHandler.java | 35 import android.icu.text.NumberFormat; 1077 NumberFormat formats[] = { 1080 * serialized NumberFormat objects in ICU 3.6: 1082 * NumberFormat.getInstance(Locale.US) 1083 * NumberFormat.getCurrencyInstance(Locale.US) 1084 * NumberFormat.getPercentInstance(Locale.US) 1085 * NumberFormat.getScientificInstance(Locale.US) 1106 NumberFormat format_a = (NumberFormat) a; 1107 NumberFormat format_b = (NumberFormat) b [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/ |
FormatHandler.java | 34 import com.ibm.icu.text.NumberFormat; 1076 NumberFormat formats[] = { 1079 * serialized NumberFormat objects in ICU 3.6: 1081 * NumberFormat.getInstance(Locale.US) 1082 * NumberFormat.getCurrencyInstance(Locale.US) 1083 * NumberFormat.getPercentInstance(Locale.US) 1084 * NumberFormat.getScientificInstance(Locale.US) 1105 NumberFormat format_a = (NumberFormat) a; 1106 NumberFormat format_b = (NumberFormat) b [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
DecimalFormatTest.java | 28 import java.text.NumberFormat; 95 DecimalFormat form = (DecimalFormat) NumberFormat.getInstance(Locale.US); 102 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); 116 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); 142 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); 151 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); 159 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); 177 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); 189 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); 201 form = (DecimalFormat) NumberFormat.getInstance(Locale.US) [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
GlobalizationPreferences.java | 27 import android.icu.text.NumberFormat; 101 NF_NUMBER = 0, // NumberFormat.NUMBERSTYLE 102 NF_CURRENCY = 1, // NumberFormat.CURRENCYSTYLE 103 NF_PERCENT = 2, // NumberFormat.PERCENTSTYLE 104 NF_SCIENTIFIC = 3, // NumberFormat.SCIENTIFICSTYLE 105 NF_INTEGER = 4; // NumberFormat.INTEGERSTYLE 691 public NumberFormat getNumberFormat(int style) { 695 NumberFormat result = null; 700 result = (NumberFormat) result.clone(); // clone for safety (later optimize) 715 public GlobalizationPreferences setNumberFormat(int style, NumberFormat format) [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
IntlTestDateFormatAPI.java | 33 import android.icu.text.NumberFormat; 205 final NumberFormat nf = def.getNumberFormat(); 206 NumberFormat newNf = (NumberFormat) nf.clone(); 210 errln("ERROR: set NumberFormat() failed");
|
PluralFormatUnitTest.java | 28 import android.icu.text.NumberFormat; 66 // NumberFormat for the default locale. 67 NumberFormat numberFmt = NumberFormat.getInstance(ULocale.getDefault()); 113 NumberFormat numberFormat = 114 NumberFormat.getInstance(ULocale.getDefault()); 117 numberFormat.format(i) + " is odd or even.", 120 numberFormat.format(i) + ((i%2 == 1) ? " is odd." 252 NumberFormat nrFmt = NumberFormat.getInstance(ULocale.ENGLISH) [all...] |
/external/icu/icu4c/source/i18n/unicode/ |
datefmt.h | [all...] |
msgfmt.h | 48 class NumberFormat; 72 * a Number value is formatted with a default (for the locale) NumberFormat, 171 * <td><code>NumberFormat.createInstance(getLocale(), status)</code> 174 * <td><code>NumberFormat.createInstance(getLocale(), kNumberStyle, status)</code> 177 * <td><code>NumberFormat.createCurrencyInstance(getLocale(), status)</code> 180 * <td><code>NumberFormat.createPercentInstance(getLocale(), status)</code> [all...] |
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/ |
MessageFormat.java | 214 * <td><code>NumberFormat.getInstance(getLocale())</code> 217 * <td><code>NumberFormat.getIntegerInstance(getLocale())</code> 220 * <td><code>NumberFormat.getCurrencyInstance(getLocale())</code> 223 * <td><code>NumberFormat.getPercentInstance(getLocale())</code> 404 * @see NumberFormat [all...] |
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/ |
MessageFormatTest.java | 20 import com.ibm.icu.text.NumberFormat; 137 NumberFormat.getIntegerInstance(), 155 NumberFormat.getIntegerInstance(), 190 NumberFormat nf = NumberFormat.getNumberInstance(Locale.US); 203 NumberFormat nf = NumberFormat.getNumberInstance(Locale.US);
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/util/ |
GlobalizationPreferences.java | 26 import com.ibm.icu.text.NumberFormat; 102 NF_NUMBER = 0, // NumberFormat.NUMBERSTYLE 103 NF_CURRENCY = 1, // NumberFormat.CURRENCYSTYLE 104 NF_PERCENT = 2, // NumberFormat.PERCENTSTYLE 105 NF_SCIENTIFIC = 3, // NumberFormat.SCIENTIFICSTYLE 106 NF_INTEGER = 4; // NumberFormat.INTEGERSTYLE 719 public NumberFormat getNumberFormat(int style) { 723 NumberFormat result = null; 728 result = (NumberFormat) result.clone(); // clone for safety (later optimize) 744 public GlobalizationPreferences setNumberFormat(int style, NumberFormat format) [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
IntlTestDateFormatAPI.java | 32 import com.ibm.icu.text.NumberFormat; 204 final NumberFormat nf = def.getNumberFormat(); 205 NumberFormat newNf = (NumberFormat) nf.clone(); 209 errln("ERROR: set NumberFormat() failed");
|
PluralFormatUnitTest.java | 27 import com.ibm.icu.text.NumberFormat; 65 // NumberFormat for the default locale. 66 NumberFormat numberFmt = NumberFormat.getInstance(ULocale.getDefault()); 112 NumberFormat numberFormat = 113 NumberFormat.getInstance(ULocale.getDefault()); 116 numberFormat.format(i) + " is odd or even.", 119 numberFormat.format(i) + ((i%2 == 1) ? " is odd." 251 NumberFormat nrFmt = NumberFormat.getInstance(ULocale.ENGLISH) [all...] |
/libcore/ojluni/src/main/java/java/text/ |
DateFormat.java | 141 * @see NumberFormat 168 protected NumberFormat numberFormat; 656 * @param newNumberFormat the given new NumberFormat. 658 public void setNumberFormat(NumberFormat newNumberFormat) 660 this.numberFormat = newNumberFormat; 668 public NumberFormat getNumberFormat() 670 return numberFormat; 749 return numberFormat.hashCode(); 765 numberFormat.equals(other.numberFormat)) [all...] |
MessageFormat.java | 162 * <td headers="sc">{@link NumberFormat#getInstance(Locale) NumberFormat.getInstance}{@code (getLocale())} 165 * <td headers="sc">{@link NumberFormat#getIntegerInstance(Locale) NumberFormat.getIntegerInstance}{@code (getLocale())} 168 * <td headers="sc">{@link NumberFormat#getCurrencyInstance(Locale) NumberFormat.getCurrencyInstance}{@code (getLocale())} 171 * <td headers="sc">{@link NumberFormat#getPercentInstance(Locale) NumberFormat.getPercentInstance}{@code (getLocale())} 335 * @see NumberFormat 533 } else if (fmt instanceof NumberFormat) { [all...] |
DecimalFormat.java | 61 * <code>NumberFormat</code> that formats decimal numbers. It has a variety of 68 * <p>To obtain a <code>NumberFormat</code> for a specific locale, including the 69 * default locale, call one of <code>NumberFormat</code>'s factory methods, such 72 * <code>NumberFormat</code> factory methods may return subclasses other than 77 * NumberFormat f = NumberFormat.getInstance(loc); 87 * the <code>NumberFormat</code> factory methods, the pattern and symbols are 343 * Locale[] locales = NumberFormat.getAvailableLocales(); 345 * NumberFormat form; 355 * form = NumberFormat.getInstance(locales[i]); break [all...] |
/external/icu/icu4c/source/test/intltest/ |
dtfmapts.cpp | 237 const NumberFormat *nf = def->getNumberFormat(); 238 NumberFormat *newNf = (NumberFormat*) nf->clone(); 242 errln("ERROR: adopt or set NumberFormat() failed"); 326 // NumberFormat calling Format API 328 logln("NumberFormat"); 330 NumberFormat *fmt = NumberFormat::createInstance(status); 336 dataerrln("FAIL: Can't create NumberFormat()"); 340 // DecimalFormat calling Format & NumberFormat AP [all...] |
/external/icu/icu4c/source/i18n/ |
measfmt.cpp | 125 void adoptCurrencyFormat(int32_t widthIndex, NumberFormat *nfToAdopt) { 129 const NumberFormat *getCurrencyFormat(UMeasureFormatWidth width) const { 132 void adoptIntegerFormat(NumberFormat *nfToAdopt) { 136 const NumberFormat *getIntegerFormat() const { 148 NumberFormat *currencyFormats[WIDTH_INDEX_COUNT]; 149 NumberFormat *integerFormat; 515 // NumberFormat::createInstance can erase warning codes from status, so pass it 518 result->adoptCurrencyFormat(i, NumberFormat::createInstance( 527 NumberFormat *inf = NumberFormat::createInstance [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/cldr/ |
TestCLDRVsICU.java | 43 import android.icu.text.NumberFormat; 119 addLocales(NumberFormat.getAvailableULocales(), s); 365 NumberFormat nf = null; 394 nf = NumberFormat.getInstance(locale); 397 nf = NumberFormat.getIntegerInstance(locale); 400 nf = NumberFormat.getNumberInstance(locale); 403 nf = NumberFormat.getPercentInstance(locale); 406 nf = NumberFormat.getScientificInstance(locale); 409 nf = NumberFormat.getCurrencyInstance(locale);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/cldr/ |
TestCLDRVsICU.java | 42 import com.ibm.icu.text.NumberFormat; 118 addLocales(NumberFormat.getAvailableULocales(), s); 364 NumberFormat nf = null; 393 nf = NumberFormat.getInstance(locale); 396 nf = NumberFormat.getIntegerInstance(locale); 399 nf = NumberFormat.getNumberInstance(locale); 402 nf = NumberFormat.getPercentInstance(locale); 405 nf = NumberFormat.getScientificInstance(locale); 408 nf = NumberFormat.getCurrencyInstance(locale);
|
/developers/build/prebuilts/gradle/AutoBackupForApps/Application/src/main/java/com/example/android/autobackupsample/ |
MainActivityFragment.java | 35 import java.text.NumberFormat; 113 String fileSizeInBytes = NumberFormat.getInstance()
|
/developers/samples/android/content/AutoBackupForApps/Application/src/main/java/com/example/android/autobackupsample/ |
MainActivityFragment.java | 35 import java.text.NumberFormat; 113 String fileSizeInBytes = NumberFormat.getInstance()
|
/development/samples/browseable/AutoBackupForApps/src/com.example.android.autobackupsample/ |
MainActivityFragment.java | 35 import java.text.NumberFormat; 113 String fileSizeInBytes = NumberFormat.getInstance()
|