/libcore/luni/src/main/java/libcore/icu/ |
DateTimeFormat.java | 45 String skeleton = DateUtilsBridge.toSkeleton(time, flags); local 46 String key = skeleton + "\t" + icuLocale + "\t" + time.getTimeZone(); 51 formatter = new SimpleDateFormat(generator.getBestPattern(skeleton), icuLocale);
|
DateIntervalFormat.java | 53 // skeleton instead of int flags.) 84 String skeleton = DateUtilsBridge.toSkeleton(startCalendar, endCalendar, flags); local 87 getFormatter(skeleton, icuLocale, icuTimeZone); 93 private static android.icu.text.DateIntervalFormat getFormatter(String skeleton, ULocale locale, 95 String key = skeleton + "\t" + locale + "\t" + icuTimeZone; 100 formatter = android.icu.text.DateIntervalFormat.getInstance(skeleton, locale);
|
/external/javassist/src/main/javassist/ |
CtNewConstructor.java | 176 public static CtConstructor skeleton(CtClass[] parameters, method in class:CtNewConstructor
|
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/ |
grpc_tensor_coding.cc | 77 // the "skeleton" of "val" (all the data needed for dtype and the shape, 86 // Encode the skeleton for "val" (the encoded TensorProto contents 121 TensorProto skeleton; local 122 skeleton.set_dtype(val.dtype()); 123 val.shape().AsProto(skeleton.mutable_tensor_shape()); 125 skeleton.AppendToString(&tensor_except_contents); 129 skeleton.AppendToString(&out); 130 DCHECK_EQ(tensor_except_contents, out) << skeleton.DebugString() << " vs\n" 153 // skeleton is the encoded TensorProto contents (dtype and shape), but 155 gtl::InlinedVector<char, 128> skeleton(SkeletonEncodingSizeUpperBound(val)) [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/ |
PowerUtil.java | 146 String skeleton = android.text.format.DateFormat.getTimeFormatString(context); local 147 DateFormat fmt = DateFormat.getInstanceForSkeleton(skeleton);
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
AlarmUtils.java | 40 final String skeleton = DateFormat.is24HourFormat(context) ? "EHm" : "Ehma"; local 41 final String pattern = DateFormat.getBestDateTimePattern(Locale.getDefault(), skeleton);
|
/packages/apps/Settings/src/com/android/settings/notification/ |
ZenModeVoiceActivity.java | 111 String skeleton = DateFormat.is24HourFormat(this, UserHandle.myUserId()) ? "Hm" : "hma"; local 112 String pattern = DateFormat.getBestDateTimePattern(Locale.getDefault(), skeleton);
|
/external/icu/icu4c/source/test/intltest/ |
dtifmtts.cpp | 67 /* ====== Test create interval instance with default locale and skeleton 70 logln("Testing DateIntervalFormat create instance with default locale and skeleton"); 74 dataerrln("ERROR: Could not create DateIntervalFormat (skeleton + default locale) - exitting"); 81 /* ====== Test create interval instance with given locale and skeleton 84 logln("Testing DateIntervalFormat create instance with given locale and skeleton"); 88 dataerrln("ERROR: Could not create DateIntervalFormat (skeleton + locale) - exitting"); 95 /* ====== Test create interval instance with dateIntervalInfo and skeleton 98 logln("Testing DateIntervalFormat create instance with dateIntervalInfo and skeleton"); 106 dataerrln("ERROR: Could not create DateIntervalFormat (skeleton + DateIntervalInfo + default locale) - exitting"); 113 /* ====== Test create interval instance with dateIntervalInfo and skeleton 1372 UnicodeString skeleton[] = { local [all...] |
dtptngts.cpp | 360 // pattern skeleton baseSkeleton 565 logln(UnicodeString(" ja locale with skeleton: YYYYMMM Best Pattern:") + bPattern); 1083 UnicodeString skeleton = DateTimePatternGenerator::staticGetSkeleton(testData[i], status); local [all...] |
/external/icu/icu4c/source/test/cintltst/ |
cdateintervalformattest.c | 43 const char * skeleton; member in struct:__anon21554 83 u_unescape(testItemPtr->skeleton, skelBuf, kSkelBufLen); 102 log_err("ERROR: udtitvfmt_format for locale %s, skeleton %s, tzid %s, from %.1f, to %.1f: expect %s, get %s\n", 103 testItemPtr->locale, testItemPtr->skeleton, tzidForLog, testItemPtr->from, testItemPtr->to, 107 log_err("FAIL: udtitvfmt_format for locale %s, skeleton %s, tzid %s, from %.1f, to %.1f: %s\n", 108 testItemPtr->locale, testItemPtr->skeleton, tzidForLog, testItemPtr->from, testItemPtr->to, myErrorName(status) ); 112 log_data_err("FAIL: udtitvfmt_open for locale %s, skeleton %s, tzid %s - %s\n", 113 testItemPtr->locale, testItemPtr->skeleton, tzidForLog, myErrorName(status) ); 257 const char * skeleton; member in struct:__anon21558 285 ulen = u_unescape(locSkelItemPtr->skeleton, ubuf, kSizeUBuf) [all...] |
udatpg_test.c | 72 static const UChar skeleton[]= {0x4d, 0x4d, 0x4d, 0x64, 0}; /* MMMd */ variable 158 /* Test skeleton == NULL */ 162 log_err("udatpg_getBestPattern failed in illegal argument - skeleton is NULL.\n"); 305 /* Get all skeletons and the crroespong pattern for each skeleton. */ 352 length = udatpg_getBestPattern(generator, skeleton, 4, 429 log_err("ERROR udatpg_getBestPatternWithOptions, locale %s, skeleton %s, options 0x%04X, expected pattern %s, got %s, status %d\n",
|
/external/v8/src/ |
i18n.cc | 121 // Make formatter from skeleton. Calendar and numbering system are added 124 icu::UnicodeString skeleton; local 125 if (ExtractStringSetting(isolate, options, "skeleton", &skeleton)) { 130 pattern = generator->getBestPattern(skeleton, status); [all...] |
/packages/apps/Contacts/src/com/android/contacts/datepicker/ |
DatePicker.java | 207 String skeleton = mHasYear ? "yyyyMMMdd" : "MMMdd"; local 208 String pattern = DateFormat.getBestDateTimePattern(Locale.getDefault(), skeleton);
|
/external/icu/icu4c/source/i18n/ |
dtitvinf.cpp | 84 DateIntervalInfo::setIntervalPattern(const UnicodeString& skeleton, 90 setIntervalPatternInternally(skeleton, UCAL_AM_PM, intervalPattern, status); 91 setIntervalPatternInternally(skeleton, UCAL_HOUR, intervalPattern, status); 94 setIntervalPatternInternally(skeleton, UCAL_DATE, intervalPattern, status); 96 setIntervalPatternInternally(skeleton, lrgDiffCalUnit, intervalPattern, status); 180 DateIntervalInfo::getIntervalPattern(const UnicodeString& skeleton, 188 const UnicodeString* patternsOfOneSkeleton = (UnicodeString*) fIntervalPatterns->get(skeleton); 271 // Process the skeleton 282 * Processes the patterns for a skeleton table 287 // Iterate over all the patterns in the current skeleton tabl 597 UnicodeString* skeleton = (UnicodeString*)keyTok.pointer; local [all...] |
dtitvfmt.cpp | 79 DateIntervalFormat::createInstance(const UnicodeString& skeleton, 81 return createInstance(skeleton, Locale::getDefault(), status); 86 DateIntervalFormat::createInstance(const UnicodeString& skeleton, 93 skeleton.extract(0, skeleton.length(), result, "UTF-8"); 97 sprintf(mesg, "skeleton: %s; pattern: %s\n", result, result_1); 102 return create(locale, dtitvinf, &skeleton, status); 108 DateIntervalFormat::createInstance(const UnicodeString& skeleton, 111 return createInstance(skeleton, Locale::getDefault(), dtitvinf, status); 116 DateIntervalFormat::createInstance(const UnicodeString& skeleton, 740 UnicodeString skeleton = fSkeleton; local 950 const UnicodeString* skeleton; local [all...] |
dtptngen_impl.h | 121 // A compact storage mechanism for skeleton field strings. Several dozen of these will be created 179 PtnSkeleton *skeleton; member in class:PtnElem 230 PtnSkeleton skeleton; member in class:DateTimeMatcher 235 void set(const UnicodeString& pattern, FormatParser* fp, PtnSkeleton& skeleton); 236 void copyFrom(const PtnSkeleton& skeleton); 252 void add(const UnicodeString& basePattern, const PtnSkeleton& skeleton, const UnicodeString& value, UBool skeletonWasSpecified, UErrorCode& status); 254 const UnicodeString* getPatternFromSkeleton(PtnSkeleton& skeleton, const PtnSkeleton** specifiedSkeletonPtr = 0); 260 PtnElem* getDuplicateElem(const UnicodeString &basePattern, const PtnSkeleton& skeleton, PtnElem *baseElem);
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
DateIntervalFormat.java | 68 * from (skeleton, the_largest_different_calendar_field) 72 * A skeleton 89 * letter length in skeleton. 112 * There is a set of pre-defined static skeleton strings in DateFormat, 115 * For example, for a skeleton YEAR_ABBR_MONTH_DAY, which is "yMMMd", 125 * For date skeleton, the interval patterns when year, or month, or date is 127 * For time skeleton, the interval patterns when am/pm, or hour, or minute is 131 * If a skeleton is not found in a locale's DateIntervalInfo, which means 132 * the interval patterns for the skeleton is not defined in resource file, 174 * create an instance using default or given locale plus given skeleton 290 final String skeleton; field in class:DateIntervalFormat.SkeletonAndItsBestMatch 1099 String skeleton = fSkeleton; local 1508 String skeleton; local [all...] |
DateIntervalInfo.java | 47 * formatter when user pass in skeleton and locale. 56 * from (skeleton, the_largest_different_calendar_field) 60 * A skeleton 77 * letter length in skeleton. 95 * There is a set of pre-defined static skeleton strings. 98 * For example, for a skeleton YEAR_ABBR_MONTH_DAY, which is "yMMMd", 108 * For date skeleton, the interval patterns when year, or month, or date is 110 * For time skeleton, the interval patterns when am/pm, or hour, or minute is 126 * but for skeleton "yMMMd", the interval pattern when day is different is 128 * pattern is the earlier date. But for skeleton "yMMMd", when day is different 958 String skeleton = skeletonEntry.getKey(); local [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
DateIntervalFormat.java | 67 * from (skeleton, the_largest_different_calendar_field) 71 * A skeleton 88 * letter length in skeleton. 111 * There is a set of pre-defined static skeleton strings in DateFormat, 114 * For example, for a skeleton YEAR_ABBR_MONTH_DAY, which is "yMMMd", 124 * For date skeleton, the interval patterns when year, or month, or date is 126 * For time skeleton, the interval patterns when am/pm, or hour, or minute is 130 * If a skeleton is not found in a locale's DateIntervalInfo, which means 131 * the interval patterns for the skeleton is not defined in resource file, 173 * create an instance using default or given locale plus given skeleton 291 final String skeleton; field in class:DateIntervalFormat.SkeletonAndItsBestMatch 1112 String skeleton = fSkeleton; local 1521 String skeleton; local [all...] |
DateIntervalInfo.java | 46 * formatter when user pass in skeleton and locale. 55 * from (skeleton, the_largest_different_calendar_field) 59 * A skeleton 76 * letter length in skeleton. 94 * There is a set of pre-defined static skeleton strings. 97 * For example, for a skeleton YEAR_ABBR_MONTH_DAY, which is "yMMMd", 107 * For date skeleton, the interval patterns when year, or month, or date is 109 * For time skeleton, the interval patterns when am/pm, or hour, or minute is 125 * but for skeleton "yMMMd", the interval pattern when day is different is 127 * pattern is the earlier date. But for skeleton "yMMMd", when day is different 973 String skeleton = skeletonEntry.getKey(); local [all...] |
/frameworks/base/core/java/android/widget/ |
TimePickerSpinnerDelegate.java | 250 "hm" /* skeleton */); 260 * We pass the correct "skeleton" depending on 12 or 24 hours view and then extract the 264 final String skeleton = (mIs24HourView) ? "Hm" : "hm"; local 266 skeleton);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
QuickStatusBarHeader.java | 589 String skeleton = android.text.format.DateFormat local 592 .getBestDateTimePattern(Locale.getDefault(), skeleton);
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
DigitalAppWidgetProvider.java | 456 final String skeleton = context.getString(R.string.abbrev_wday_month_day_no_year); local 457 return DateFormat.getBestDateTimePattern(locale, skeleton);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
DateIntervalFormatTest.java | 65 // followed by a group of locale/from_data/to_data/skeleton/interval_data 75 // test skeleton with both date and time 992 String[] skeleton = { local 1781 public String skeleton; field in class:DateIntervalFormatTest.LocaleAndSkeletonItem [all...] |
DateTimeGeneratorTest.java | 87 String skeleton = test[1]; local 89 String pattern = gen.getBestPattern(skeleton, options); 90 assertEquals(test[0] + "/" + skeleton, test[2], pattern); 139 errln("getBaseSkeleton for skeleton " + dataItem[0] + ", expected " + dataItem[1] + ", got " + base); 146 errln("getBestPattern for skeleton " + testItem[0] + ", expected " + testItem[1] + ", got " + pattern); 217 assertEquals("Testing skeleton '" + testSkeleton + "' with " + sampleDate, tests[i][1], formattedDate); 1353 public String skeleton; field in class:DateTimeGeneratorTest.TestOptionsItem 1506 String skeleton = new String(skelBuf, 0, skelLen); local 1623 String skeleton = "GrMMd"; local [all...] |