Home
last modified time | relevance | path

Searched refs:tzfmt (Results 1 – 18 of 18) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/util/
DTimeZone.java482 TimeZoneFormat tzfmt = TimeZoneFormat.getInstance(locale); in _getDisplayName() local
488 result = tzfmt.format(Style.GENERIC_LOCATION, this, date, timeType); in _getDisplayName()
491 result = tzfmt.format(Style.GENERIC_LONG, this, date, timeType); in _getDisplayName()
494 result = tzfmt.format(Style.GENERIC_SHORT, this, date, timeType); in _getDisplayName()
505tzfmt.formatOffsetShortLocalizedGMT(offset) : tzfmt.formatOffsetLocalizedGMT(offset); in _getDisplayName()
510 TimeZoneFormat tzfmt = TimeZoneFormat.getInstance(locale); in _getDisplayName() local
514 result = tzfmt.formatOffsetLocalizedGMT(offset); in _getDisplayName()
517 result = tzfmt.formatOffsetISO8601Basic(offset, false, false, false); in _getDisplayName()
540 TimeZoneFormat tzfmt = TimeZoneFormat.getInstance(locale); in _getDisplayName() local
543tzfmt.formatOffsetLocalizedGMT(offset) : tzfmt.formatOffsetShortLocalizedGMT(offset); in _getDisplayName()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DTimeZone.java545 TimeZoneFormat tzfmt = TimeZoneFormat.getInstance(locale); in _getDisplayName() local
551 result = tzfmt.format(Style.GENERIC_LOCATION, this, date, timeType); in _getDisplayName()
554 result = tzfmt.format(Style.GENERIC_LONG, this, date, timeType); in _getDisplayName()
557 result = tzfmt.format(Style.GENERIC_SHORT, this, date, timeType); in _getDisplayName()
568tzfmt.formatOffsetShortLocalizedGMT(offset) : tzfmt.formatOffsetLocalizedGMT(offset); in _getDisplayName()
573 TimeZoneFormat tzfmt = TimeZoneFormat.getInstance(locale); in _getDisplayName() local
577 result = tzfmt.formatOffsetLocalizedGMT(offset); in _getDisplayName()
580 result = tzfmt.formatOffsetISO8601Basic(offset, false, false, false); in _getDisplayName()
603 TimeZoneFormat tzfmt = TimeZoneFormat.getInstance(locale); in _getDisplayName() local
606tzfmt.formatOffsetLocalizedGMT(offset) : tzfmt.formatOffsetShortLocalizedGMT(offset); in _getDisplayName()
/external/icu/icu4c/source/i18n/
Dtimezone.cpp1207 LocalPointer<TimeZoneFormat> tzfmt(TimeZoneFormat::createInstance(locale, status)); in getDisplayName() local
1215 tzfmt->format(UTZFMT_STYLE_GENERIC_LOCATION, *this, date, result, &timeType); in getDisplayName()
1218 tzfmt->format(UTZFMT_STYLE_GENERIC_LONG, *this, date, result, &timeType); in getDisplayName()
1221 tzfmt->format(UTZFMT_STYLE_GENERIC_SHORT, *this, date, result, &timeType); in getDisplayName()
1232 tzfmt->formatOffsetShortLocalizedGMT(offset, result, status); in getDisplayName()
1234 tzfmt->formatOffsetLocalizedGMT(offset, result, status); in getDisplayName()
1238 LocalPointer<TimeZoneFormat> tzfmt(TimeZoneFormat::createInstance(locale, status)); in getDisplayName() local
1246 tzfmt->formatOffsetLocalizedGMT(offset, result, status); in getDisplayName()
1249 tzfmt->formatOffsetISO8601Basic(offset, FALSE, FALSE, FALSE, result, status); in getDisplayName()
1278 LocalPointer<TimeZoneFormat> tzfmt(TimeZoneFormat::createInstance(locale, status)); in getDisplayName() local
[all …]
Dtzfmt.cpp477 TimeZoneFormat* tzfmt = (TimeZoneFormat*)&other; in operator ==() local
480 fLocale == tzfmt->fLocale in operator ==()
481 && fGMTPattern == tzfmt->fGMTPattern in operator ==()
482 && fGMTZeroFormat == tzfmt->fGMTZeroFormat in operator ==()
483 && *fTimeZoneNames == *tzfmt->fTimeZoneNames; in operator ==()
486 isEqual = fGMTOffsetPatterns[i] == tzfmt->fGMTOffsetPatterns[i]; in operator ==()
489 isEqual = fGMTOffsetDigits[i] == tzfmt->fGMTOffsetDigits[i]; in operator ==()
505 TimeZoneFormat* tzfmt = new TimeZoneFormat(locale, status); in createInstance() local
507 return tzfmt; in createInstance()
509 delete tzfmt; in createInstance()
DAndroid.bp175 "tzfmt.cpp",
DMakefile.in98 tzfmt.o compactdecimalformat.o gender.o region.o scriptset.o \
Dsmpdtfmt.cpp4116 TimeZoneFormat *tzfmt = TimeZoneFormat::createInstance(fLocale, status); in tzFormat() local
4121 const_cast<SimpleDateFormat *>(this)->fTimeZoneFormat = tzfmt; in tzFormat()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DTimeZoneFormatTest.java653 TimeZoneFormat tzfmt = TimeZoneFormat.getInstance(loc); in TestParse() local
656 TimeZone tz = tzfmt.parse(style, text, pos, options, timeType); in TestParse()
947 TimeZoneFormat tzfmt = TimeZoneFormat.getInstance(uloc); in TestFormat() local
948 … String out = tzfmt.format((Style)testCase[3], tz, ((Date)testCase[2]).getTime(), timeType); in TestFormat()
958 tzfmt = TimeZoneFormat.getInstance(loc); in TestFormat()
959 out = tzfmt.format((Style)testCase[3], tz, ((Date)testCase[2]).getTime(), timeType); in TestFormat()
1035 TimeZoneFormat tzfmt = TimeZoneFormat.getInstance(loc).cloneAsThawed(); in TestFormatTZDBNames() local
1037 tzfmt.setTimeZoneNames(tzdbNames); in TestFormatTZDBNames()
1041 … String out = tzfmt.format((Style)testCase[3], tz, ((Date)testCase[2]).getTime(), timeType); in TestFormatTZDBNames()
DDateFormatTest.java672 TimeZoneFormat tzfmt = univ.getTimeZoneFormat().cloneAsThawed(); in TestGenericTime() local
673 tzfmt.setDefaultParseOptions(EnumSet.of(ParseOption.ALL_STYLES)); in TestGenericTime()
674 tzfmt.freeze(); in TestGenericTime()
675 univ.setTimeZoneFormat(tzfmt); in TestGenericTime()
677 sdf.setTimeZoneFormat(tzfmt); in TestGenericTime()
3292 TimeZoneFormat tzfmt = fmt.getTimeZoneFormat().cloneAsThawed(); in expect() local
3293 tzfmt.setDefaultParseOptions(EnumSet.of(ParseOption.ALL_STYLES)).freeze(); in expect()
3294 fmt.setTimeZoneFormat(tzfmt); in expect()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DTimeZoneFormatTest.java654 TimeZoneFormat tzfmt = TimeZoneFormat.getInstance(loc); in TestParse() local
657 TimeZone tz = tzfmt.parse(style, text, pos, options, timeType); in TestParse()
948 TimeZoneFormat tzfmt = TimeZoneFormat.getInstance(uloc); in TestFormat() local
949 … String out = tzfmt.format((Style)testCase[3], tz, ((Date)testCase[2]).getTime(), timeType); in TestFormat()
959 tzfmt = TimeZoneFormat.getInstance(loc); in TestFormat()
960 out = tzfmt.format((Style)testCase[3], tz, ((Date)testCase[2]).getTime(), timeType); in TestFormat()
1036 TimeZoneFormat tzfmt = TimeZoneFormat.getInstance(loc).cloneAsThawed(); in TestFormatTZDBNames() local
1038 tzfmt.setTimeZoneNames(tzdbNames); in TestFormatTZDBNames()
1042 … String out = tzfmt.format((Style)testCase[3], tz, ((Date)testCase[2]).getTime(), timeType); in TestFormatTZDBNames()
DDateFormatTest.java673 TimeZoneFormat tzfmt = univ.getTimeZoneFormat().cloneAsThawed(); in TestGenericTime() local
674 tzfmt.setDefaultParseOptions(EnumSet.of(ParseOption.ALL_STYLES)); in TestGenericTime()
675 tzfmt.freeze(); in TestGenericTime()
676 univ.setTimeZoneFormat(tzfmt); in TestGenericTime()
678 sdf.setTimeZoneFormat(tzfmt); in TestGenericTime()
3293 TimeZoneFormat tzfmt = fmt.getTimeZoneFormat().cloneAsThawed(); in expect() local
3294 tzfmt.setDefaultParseOptions(EnumSet.of(ParseOption.ALL_STYLES)).freeze(); in expect()
3295 fmt.setTimeZoneFormat(tzfmt); in expect()
/external/icu/icu4c/source/test/intltest/
Dtzfmttst.cpp813 …LocalPointer<TimeZoneFormat> tzfmt(TimeZoneFormat::createInstance(Locale(DATA[i].locale), status)); in TestParse() local
820 TimeZone* tz = tzfmt->parse(DATA[i].style, DATA[i].text, pos, DATA[i].parseOptions, &ttype); in TestParse()
1097 …LocalPointer<TimeZoneFormat> tzfmt(TimeZoneFormat::createInstance(Locale(DATA[i].locale), status)); in TestFormat() local
1107 tzfmt->format(DATA[i].style, *(tz.getAlias()), DATA[i].date, out, &timeType); in TestFormat()
1188 LocalPointer<TimeZoneFormat> tzfmt(TimeZoneFormat::createInstance(loc, status)); in TestFormatTZDBNames() local
1198 tzfmt->adoptTimeZoneNames(tzdbNames); in TestFormatTZDBNames()
1204 tzfmt->format(DATA[i].style, *(tz.getAlias()), DATA[i].date, out, &timeType); in TestFormatTZDBNames()
/external/icu/icu4c/source/test/hdrtst/
Dcxxfiles.txt99 tzfmt.h
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
DFormatHandler.java2425 TimeZoneFormat tzfmt = TimeZoneFormat.getInstance(ULocale.ENGLISH).cloneAsThawed(); in getTestObjects() local
2426 tzfmt.setGMTPattern(CUSTOM_GMT_PATTERN); in getTestObjects()
2428 return new Object[] {tzfmt}; in getTestObjects()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DFormatHandler.java2424 TimeZoneFormat tzfmt = TimeZoneFormat.getInstance(ULocale.ENGLISH).cloneAsThawed(); in getTestObjects() local
2425 tzfmt.setGMTPattern(CUSTOM_GMT_PATTERN); in getTestObjects()
2427 return new Object[] {tzfmt}; in getTestObjects()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DSimpleDateFormat.java3921 public void setTimeZoneFormat(TimeZoneFormat tzfmt) { in setTimeZoneFormat() argument
3922 if (tzfmt.isFrozen()) { in setTimeZoneFormat()
3924 tzFormat = tzfmt; in setTimeZoneFormat()
3927 tzFormat = tzfmt.cloneAsThawed().freeze(); in setTimeZoneFormat()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DSimpleDateFormat.java3895 public void setTimeZoneFormat(TimeZoneFormat tzfmt) { in setTimeZoneFormat() argument
3896 if (tzfmt.isFrozen()) { in setTimeZoneFormat()
3898 tzFormat = tzfmt; in setTimeZoneFormat()
3901 tzFormat = tzfmt.cloneAsThawed().freeze(); in setTimeZoneFormat()
/external/icu/icu4c/source/test/depstest/
Ddependencies.txt878 tzfmt.o tzgnames.o tznames.o tznames_impl.o