/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | LocaleDisplayNamesImpl.java | 27 import com.ibm.icu.text.DisplayContext; 28 import com.ibm.icu.text.DisplayContext.Type; 38 private final DisplayContext capitalization; 39 private final DisplayContext nameLength; 94 public static LocaleDisplayNames getInstance(ULocale locale, DisplayContext... contexts) { in getInstance() 101 …e, (dialectHandling==DialectHandling.STANDARD_NAMES)? DisplayContext.STANDARD_NAMES: DisplayContex… in LocaleDisplayNamesImpl() 102 DisplayContext.CAPITALIZATION_NONE); in LocaleDisplayNamesImpl() 105 public LocaleDisplayNamesImpl(ULocale locale, DisplayContext... contexts) { in LocaleDisplayNamesImpl() 107 DisplayContext capitalization = DisplayContext.CAPITALIZATION_NONE; in LocaleDisplayNamesImpl() 108 DisplayContext nameLength = DisplayContext.LENGTH_FULL; in LocaleDisplayNamesImpl() [all …]
|
D | RelativeDateFormat.java | 20 import com.ibm.icu.text.DisplayContext; 111 DisplayContext capitalizationContext = getContext(DisplayContext.Type.CAPITALIZATION); in format() 126 … (capitalizationContext == DisplayContext.CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE || in format() 127 …(capitalizationContext == DisplayContext.CAPITALIZATION_FOR_UI_LIST_OR_MENU && capitalizationOfRel… in format() 128 …(capitalizationContext == DisplayContext.CAPITALIZATION_FOR_STANDALONE && capitalizationOfRelative… in format() 136 fDateTimeFormat.setContext(DisplayContext.CAPITALIZATION_NONE); in format() 193 public void setContext(DisplayContext context) { in setContext() 196 …(context==DisplayContext.CAPITALIZATION_FOR_UI_LIST_OR_MENU || context==DisplayContext.CAPITALIZAT… in setContext() 200 …if (capitalizationBrkIter == null && (context==DisplayContext.CAPITALIZATION_FOR_BEGINNING_OF_SENT… in setContext() 201 …(context==DisplayContext.CAPITALIZATION_FOR_UI_LIST_OR_MENU && capitalizationOfRelativeUnitsForLis… in setContext() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | ULocaleTest.java | 29 import com.ibm.icu.text.DisplayContext; 1036 public DisplayContext dialectHandling; in TestDisplayNames() 1037 public DisplayContext capitalization; in TestDisplayNames() 1038 public DisplayContext nameLength; in TestDisplayNames() 1041 …public TestContextItem(String dLoc, DisplayContext dia, DisplayContext cap, DisplayContext nameLen… in TestDisplayNames() 1051 …w TestContextItem( "da", DisplayContext.STANDARD_NAMES, DisplayContext.CAPITALIZATION_FOR_MIDDLE_O… in TestDisplayNames() 1052 …w TestContextItem( "da", DisplayContext.STANDARD_NAMES, DisplayContext.CAPITALIZATION_FOR_BEGINNIN… in TestDisplayNames() 1053 …w TestContextItem( "da", DisplayContext.STANDARD_NAMES, DisplayContext.CAPITALIZATION_FOR_UI_LIST_… in TestDisplayNames() 1054 …w TestContextItem( "da", DisplayContext.STANDARD_NAMES, DisplayContext.CAPITALIZATION_FOR_STANDALO… in TestDisplayNames() 1055 …w TestContextItem( "da", DisplayContext.STANDARD_NAMES, DisplayContext.CAPITALIZATION_FOR_MIDDLE_O… in TestDisplayNames() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | LocaleDisplayNames.java | 19 import com.ibm.icu.text.DisplayContext.Type; 108 public static LocaleDisplayNames getInstance(ULocale locale, DisplayContext... contexts) { in getInstance() 136 public static LocaleDisplayNames getInstance(Locale locale, DisplayContext... contexts) { in getInstance() 162 public abstract DisplayContext getContext(DisplayContext.Type type); in getContext() 429 ULocale.class, DisplayContext[].class); 447 private DisplayContext[] contexts; 451 DisplayContext context = (dialectHandling == DialectHandling.DIALECT_NAMES) ? in LastResortLocaleDisplayNames() 452 DisplayContext.DIALECT_NAMES : DisplayContext.STANDARD_NAMES; in LastResortLocaleDisplayNames() 453 this.contexts = new DisplayContext[] {context}; in LastResortLocaleDisplayNames() 456 private LastResortLocaleDisplayNames(ULocale locale, DisplayContext... contexts) { in LastResortLocaleDisplayNames() [all …]
|
D | RelativeDateTimeFormatter.java | 276 … return getInstance(ULocale.getDefault(), null, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance() 287 return getInstance(locale, null, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance() 313 return getInstance(locale, nf, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance() 332 DisplayContext capitalizationContext) { in getInstance() 347 capitalizationContext == DisplayContext.CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE ? in getInstance() 450 public DisplayContext getCapitalizationContext() { in getCapitalizationContext() 520 DisplayContext capitalizationContext, in RelativeDateTimeFormatter() 529 if (capitalizationContext.type() != DisplayContext.Type.CAPITALIZATION) { in RelativeDateTimeFormatter() 548 private final DisplayContext capitalizationContext;
|
D | DisplayContext.java | 14 public enum DisplayContext { enum 119 private DisplayContext(Type type, int value) { in DisplayContext() method in DisplayContext
|
D | RuleBasedNumberFormat.java | 1430 public void setContext(DisplayContext context) { in setContext() 1433 …(context==DisplayContext.CAPITALIZATION_FOR_UI_LIST_OR_MENU || context==DisplayContext.CAPITALIZAT… in setContext() 1437 …if (capitalizationBrkIter == null && (context==DisplayContext.CAPITALIZATION_FOR_BEGINNING_OF_SENT… in setContext() 1438 … (context==DisplayContext.CAPITALIZATION_FOR_UI_LIST_OR_MENU && capitalizationForListOrMenu) || in setContext() 1439 … (context==DisplayContext.CAPITALIZATION_FOR_STANDALONE && capitalizationForStandAlone) )) { in setContext() 1894 DisplayContext capitalization = getContext(DisplayContext.Type.CAPITALIZATION); in adjustForContext() 1895 if ( capitalization==DisplayContext.CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE || in adjustForContext() 1896 …(capitalization == DisplayContext.CAPITALIZATION_FOR_UI_LIST_OR_MENU && capitalizationForListOrMen… in adjustForContext() 1897 …(capitalization == DisplayContext.CAPITALIZATION_FOR_STANDALONE && capitalizationForStandAlone) ) { in adjustForContext()
|
D | NumberFormat.java | 524 public void setContext(DisplayContext context) { in setContext() 525 if (context.type() == DisplayContext.Type.CAPITALIZATION) { in setContext() 538 public DisplayContext getContext(DisplayContext.Type type) { in getContext() 539 return (type == DisplayContext.Type.CAPITALIZATION && capitalizationSetting != null)? in getContext() 540 capitalizationSetting: DisplayContext.CAPITALIZATION_NONE; in getContext() 1551 capitalizationSetting = DisplayContext.CAPITALIZATION_NONE; in readObject() 1785 private DisplayContext capitalizationSetting = DisplayContext.CAPITALIZATION_NONE;
|
D | DateFormat.java | 510 private DisplayContext capitalizationSetting = DisplayContext.CAPITALIZATION_NONE; 1615 public void setContext(DisplayContext context) { in setContext() 1616 if (context.type() == DisplayContext.Type.CAPITALIZATION) { in setContext() 1629 public DisplayContext getContext(DisplayContext.Type type) { in getContext() 1630 return (type == DisplayContext.Type.CAPITALIZATION && capitalizationSetting != null)? in getContext() 1631 capitalizationSetting: DisplayContext.CAPITALIZATION_NONE; in getContext() 1731 capitalizationSetting = DisplayContext.CAPITALIZATION_NONE; in readObject()
|
D | SimpleDateFormat.java | 1265 public void setContext(DisplayContext context) { in setContext() 1267 …if (capitalizationBrkIter == null && (context==DisplayContext.CAPITALIZATION_FOR_BEGINNING_OF_SENT… in setContext() 1268 context==DisplayContext.CAPITALIZATION_FOR_UI_LIST_OR_MENU || in setContext() 1269 context==DisplayContext.CAPITALIZATION_FOR_STANDALONE)) { in setContext() 1299 …StringBuffer result = format(cal, getContext(DisplayContext.Type.CAPITALIZATION), toAppendTo, pos,… in format() 1309 private StringBuffer format(Calendar cal, DisplayContext capitalizationContext, in format() 1481 return subFormat(ch, count, beginOffset, 0, DisplayContext.CAPITALIZATION_NONE, pos, cal); in subFormat() 1493 int fieldNum, DisplayContext capitalizationContext, in subFormat() 1518 int fieldNum, DisplayContext capitalizationContext, in subFormat() 1878 … titlecase = (capitalizationContext==DisplayContext.CAPITALIZATION_FOR_UI_LIST_OR_MENU)? in subFormat() [all …]
|
D | ChineseDateFormat.java | 124 int fieldNum, DisplayContext capitalizationContext, in subFormat()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | RbnfTest.java | 17 import com.ibm.icu.text.DisplayContext; 1448 public DisplayContext context; in TestContext() 1452 … public TextContextItem(String loc, int fmt, DisplayContext ctxt, double val, String expRes) { in TestContext() 1461 …new TextContextItem( "sv", RuleBasedNumberFormat.SPELLOUT, DisplayContext.CAPITALIZATION_FOR_MIDDL… in TestContext() 1462 …new TextContextItem( "sv", RuleBasedNumberFormat.SPELLOUT, DisplayContext.CAPITALIZATION_FOR_BEGIN… in TestContext() 1463 …new TextContextItem( "sv", RuleBasedNumberFormat.SPELLOUT, DisplayContext.CAPITALIZATION_FOR_UI_LI… in TestContext() 1464 …new TextContextItem( "sv", RuleBasedNumberFormat.SPELLOUT, DisplayContext.CAPITALIZATION_FOR_STAND… in TestContext() 1465 …new TextContextItem( "en", RuleBasedNumberFormat.SPELLOUT, DisplayContext.CAPITALIZATION_FOR_MIDDL… in TestContext() 1466 …new TextContextItem( "en", RuleBasedNumberFormat.SPELLOUT, DisplayContext.CAPITALIZATION_FOR_BEGIN… in TestContext() 1467 …new TextContextItem( "en", RuleBasedNumberFormat.SPELLOUT, DisplayContext.CAPITALIZATION_FOR_UI_LI… in TestContext() [all …]
|
D | RelativeDateTimeFormatterTest.java | 12 import com.ibm.icu.text.DisplayContext; 160 DisplayContext.CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE); in TestRelativeDateWithQuantityCaps() 234 DisplayContext.CAPITALIZATION_NONE); in TestRelativeDateWithQuantityShort() 308 DisplayContext.CAPITALIZATION_NONE); in TestRelativeDateWithQuantityNarrow() 342 DisplayContext.CAPITALIZATION_NONE); in TestRelativeDateWithQuantitySrFallback() 475 DisplayContext.CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE); in TestRelativeDateWithoutQuantityCaps() 548 DisplayContext.CAPITALIZATION_NONE); in TestRelativeDateWithoutQuantityShort() 621 DisplayContext.CAPITALIZATION_NONE); in TestRelativeDateWithoutQuantityNarrow() 733 DisplayContext.CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE); in TestGetters() 737 DisplayContext.CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE, in TestGetters() [all …]
|
D | DateFormatTest.java | 43 import com.ibm.icu.text.DisplayContext; 4339 public DisplayContext capitalizationContext; in TestContext() 4342 public TestContextItem(String loc, String pat, DisplayContext capCtxt, String expFmt) { in TestContext() 4350 …new TestContextItem( "fr", "MMMM y", DisplayContext.CAPITALIZATION_NONE, "juill… in TestContext() 4351 …new TestContextItem( "fr", "MMMM y", DisplayContext.CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE, "juill… in TestContext() 4352 …new TestContextItem( "fr", "MMMM y", DisplayContext.CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE, "Jui… in TestContext() 4353 …new TestContextItem( "fr", "MMMM y", DisplayContext.CAPITALIZATION_FOR_UI_LIST_OR_MENU, "juill… in TestContext() 4354 …new TestContextItem( "fr", "MMMM y", DisplayContext.CAPITALIZATION_FOR_STANDALONE, "Juill… in TestContext() 4355 …new TestContextItem( "cs", "LLLL y", DisplayContext.CAPITALIZATION_NONE, "\u010… in TestContext() 4356 …new TestContextItem( "cs", "LLLL y", DisplayContext.CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE, "\u010… in TestContext() [all …]
|
D | NumberFormatTest.java | 34 import com.ibm.icu.text.DisplayContext; 3586 DisplayContext context = nfmt.getContext(DisplayContext.Type.CAPITALIZATION); 3587 if (context != DisplayContext.CAPITALIZATION_NONE) { 3590 nfmt.setContext(DisplayContext.CAPITALIZATION_FOR_STANDALONE); 3591 context = nfmt.getContext(DisplayContext.Type.CAPITALIZATION); 3592 if (context != DisplayContext.CAPITALIZATION_FOR_STANDALONE) {
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/util/ |
D | ULocaleCollationTest.java | 25 import com.ibm.icu.text.DisplayContext; 26 import com.ibm.icu.text.DisplayContext.Type; 290 DisplayContext.CAPITALIZATION_FOR_UI_LIST_OR_MENU); in TestNameList() 291 for (Type type : DisplayContext.Type.values()) { in TestNameList() 326 DisplayContext.CAPITALIZATION_FOR_UI_LIST_OR_MENU); in TestIllformedLocale()
|