/libcore/luni/src/main/java/java/nio/ |
D | ByteBufferAsShortBuffer.java | 44 super(byteBuffer.capacity() / SizeOf.SHORT, byteBuffer.effectiveDirectAddress); in ByteBufferAsShortBuffer() 64 byteBuffer.limit(limit * SizeOf.SHORT); in compact() 65 byteBuffer.position(position * SizeOf.SHORT); in compact() 89 return byteBuffer.getShort(position++ * SizeOf.SHORT); in get() 95 return byteBuffer.getShort(index * SizeOf.SHORT); in get() 100 byteBuffer.limit(limit * SizeOf.SHORT); in get() 101 byteBuffer.position(position * SizeOf.SHORT); in get() 143 byteBuffer.putShort(position++ * SizeOf.SHORT, c); in put() 150 byteBuffer.putShort(index * SizeOf.SHORT, c); in put() 156 byteBuffer.limit(limit * SizeOf.SHORT); in put() [all …]
|
D | ByteArrayBuffer.java | 145 int byteCount = checkGetBounds(SizeOf.SHORT, dst.length, dstOffset, shortCount); in get() 146 …et(dst, dstOffset, byteCount, backingArray, arrayOffset + position, SizeOf.SHORT, order.needsSwap); in get() 224 int newPosition = position + SizeOf.SHORT; in getShort() 234 checkIndex(index, SizeOf.SHORT); in getShort() 303 int byteCount = checkPutBounds(SizeOf.SHORT, src.length, srcOffset, shortCount); in put() 304 …ut(backingArray, arrayOffset + position, byteCount, src, srcOffset, SizeOf.SHORT, order.needsSwap); in put() 394 checkIndex(index, SizeOf.SHORT); in putShort() 403 int newPosition = position + SizeOf.SHORT; in putShort()
|
D | DirectByteBuffer.java | 156 int byteCount = checkGetBounds(SizeOf.SHORT, dst.length, dstOffset, shortCount); in get() 262 int newPosition = position + SizeOf.SHORT; in getShort() 273 checkIndex(index, SizeOf.SHORT); in getShort() 399 int byteCount = checkPutBounds(SizeOf.SHORT, src.length, srcOffset, shortCount); in put() 529 int newPosition = position + SizeOf.SHORT; in putShort() 543 checkIndex(index, SizeOf.SHORT); in putShort()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DateFormatTest.java | 53 DateFormat f1 = DateFormat.getDateTimeInstance(DateFormat.SHORT, in test_getAvailableLocales() 54 DateFormat.SHORT, locales[i]); in test_getAvailableLocales() 93 .getDateInstance(DateFormat.SHORT); in test_getDateInstanceI() 96 DateFormat.SHORT, Locale.getDefault()))); in test_getDateInstanceI() 143 DateFormat.SHORT, Locale.GERMAN); in test_getDateInstanceILjava_util_Locale() 218 testDateTime(DateFormat.SHORT, DateFormat.SHORT); in test_getDateTimeInstanceII() 219 testDateTime(DateFormat.SHORT, DateFormat.MEDIUM); in test_getDateTimeInstanceII() 220 testDateTime(DateFormat.SHORT, DateFormat.LONG); in test_getDateTimeInstanceII() 221 testDateTime(DateFormat.SHORT, DateFormat.FULL); in test_getDateTimeInstanceII() 223 testDateTime(DateFormat.MEDIUM, DateFormat.SHORT); in test_getDateTimeInstanceII() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldTimeZoneTest.java | 101 assertEquals("PST", tz.getDisplayName(false, TimeZone.SHORT)); in test_getDisplayNameZI() 116 assertEquals("PDT", tz.getDisplayName(true, TimeZone.SHORT, Locale.US)); in test_getDisplayNameZILjava_util_Locale() 117 assertEquals("PST", tz.getDisplayName(false, TimeZone.SHORT, Locale.US)); in test_getDisplayNameZILjava_util_Locale() 122 assertEquals("GMT-08:00", tz.getDisplayName(false, TimeZone.SHORT, Locale.FRANCE)); in test_getDisplayNameZILjava_util_Locale() 123 assertEquals("GMT-07:00", tz.getDisplayName(true, TimeZone.SHORT, Locale.FRANCE)); in test_getDisplayNameZILjava_util_Locale() 124 assertEquals("GMT-08:00", tz.getDisplayName(false, TimeZone.SHORT, Locale.UK)); in test_getDisplayNameZILjava_util_Locale() 125 assertEquals("GMT-07:00", tz.getDisplayName(true, TimeZone.SHORT, Locale.UK)); in test_getDisplayNameZILjava_util_Locale() 136 assertEquals("GMT+03:30", iranTz.getDisplayName(false, TimeZone.SHORT, Locale.UK)); in test_getDisplayNameZILjava_util_Locale() 137 assertEquals("GMT+04:30", iranTz.getDisplayName(true, TimeZone.SHORT, Locale.UK)); in test_getDisplayNameZILjava_util_Locale()
|
D | TimeZoneTest.java | 53 assertEquals("GMT+00:01", tz0001.getDisplayName(false, TimeZone.SHORT, Locale.US)); in testCustomTimeZoneDisplayNames() 54 assertEquals("GMT+01:30", tz0130.getDisplayName(false, TimeZone.SHORT, Locale.US)); in testCustomTimeZoneDisplayNames() 55 assertEquals("GMT-01:30", tzMinus0130.getDisplayName(false, TimeZone.SHORT, Locale.US)); in testCustomTimeZoneDisplayNames() 204 String shortDst = tz.getDisplayName(true, TimeZone.SHORT, Locale.US); in testDisplayNames() 205 String shortStd = tz.getDisplayName(false, TimeZone.SHORT, Locale.US); in testDisplayNames() 263 assertEquals("GMT-03:00", tz.getDisplayName(true, TimeZone.SHORT, Locale.US)); in test_getDisplayName_GMT_short_names() 264 assertEquals("GMT-03:00", tz.getDisplayName(false, TimeZone.SHORT, Locale.US)); in test_getDisplayName_GMT_short_names()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | ExpensiveObjectsBenchmark.java | 32 DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT); in timeNewDateFormatTimeInstance() 38 DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT); in timeClonedDateFormatTimeInstance() 45 DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT); in timeReusedDateFormatTimeInstance()
|
D | StringBenchmark.java | 25 SHORT("short"), enumConstant
|
/libcore/luni/src/main/java/libcore/io/ |
D | SizeOf.java | 25 public static final int SHORT = 2; field in SizeOf
|
D | NioBufferIterator.java | 72 position += SizeOf.SHORT; in readShort()
|
D | HeapBufferIterator.java | 75 position += SizeOf.SHORT; in readShort()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | CalendarTest.java | 804 assertEquals(cal.getDisplayName(field, Calendar.SHORT, in test_getDisplayNameIILjava_util_Locale() 810 assertEquals(cal.getDisplayName(field, Calendar.SHORT, in test_getDisplayNameIILjava_util_Locale() 818 assertEquals(cal.getDisplayName(field, Calendar.SHORT, in test_getDisplayNameIILjava_util_Locale() 824 assertEquals(cal.getDisplayName(field, Calendar.SHORT, in test_getDisplayNameIILjava_util_Locale() 834 assertEquals(cal.getDisplayName(field, Calendar.SHORT, in test_getDisplayNameIILjava_util_Locale() 845 assertEquals(cal.getDisplayName(field, Calendar.SHORT, in test_getDisplayNameIILjava_util_Locale() 854 .getDisplayName(field, Calendar.SHORT, locale)); in test_getDisplayNameIILjava_util_Locale() 863 cal.getDisplayName(-1, Calendar.SHORT, Locale.US); in test_getDisplayNameIILjava_util_Locale() 887 cal.getDisplayName(Calendar.MONTH, Calendar.SHORT, null); in test_getDisplayNameIILjava_util_Locale() 893 cal.getDisplayName(-1, Calendar.SHORT, null); in test_getDisplayNameIILjava_util_Locale() [all …]
|
/libcore/luni/src/main/java/java/text/ |
D | DateFormat.java | 110 public static final int SHORT = 3; field in DateFormat 469 return getDateTimeInstance(SHORT, SHORT); in getInstance() 841 if (!(style == SHORT || style == MEDIUM || style == LONG in checkDateStyle() 848 if (!(style == SHORT || style == MEDIUM || style == LONG in checkTimeStyle()
|
D | DateFormatSymbols.java | 332 zone[2] = TimeZone.getTimeZone(id).getDisplayName(false, TimeZone.SHORT, locale); in getZoneStrings() 338 zone[4] = TimeZone.getTimeZone(id).getDisplayName(true, TimeZone.SHORT, locale); in getZoneStrings() 501 if (style != TimeZone.SHORT && style != TimeZone.LONG) { in getTimeZoneDisplayName()
|
D | MessageFormat.java | 998 dateStyle = DateFormat.SHORT; in parseVariable() 1115 } else if (format.equals(DateFormat.getTimeInstance(DateFormat.SHORT, in decodeSimpleDateFormat() 1118 } else if (format.equals(DateFormat.getDateInstance(DateFormat.SHORT, in decodeSimpleDateFormat()
|
/libcore/luni/src/main/java/java/nio/charset/ |
D | ModifiedUtf8.java | 120 byte[] result = new byte[SizeOf.SHORT + utfCount]; in encode() 122 ModifiedUtf8.encode(result, SizeOf.SHORT, s); in encode()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldDateFormatTest.java | 90 DateFormat.SHORT, DateFormat.SHORT, Locale.US); in test_formatLjava_util_Date() 108 DateFormat.SHORT, DateFormat.SHORT, Locale.US); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 207 … DateFormat format = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, Locale.US); in test_parseLString() 325 format = DateFormat.getDateTimeInstance(DateFormat.DEFAULT, DateFormat.SHORT, Locale.US); in test_parseLString()
|
D | SimpleDateFormatTest.java | 367 SimpleDateFormat.getDateInstance(DateFormat.SHORT, null); in test_nullLocales() 372 SimpleDateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, null); in test_nullLocales() 377 SimpleDateFormat.getTimeInstance(DateFormat.SHORT, null); in test_nullLocales() 384 DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, new Locale("sl")); in test_sl_dates()
|
/libcore/luni/src/main/java/java/io/ |
D | DataOutputStream.java | 192 out.write(scratch, 0, SizeOf.SHORT); in writeShort() 193 written += SizeOf.SHORT; in writeShort()
|
D | RandomAccessFile.java | 513 readFully(scratch, 0, SizeOf.SHORT); in readShort() 859 write(scratch, 0, SizeOf.SHORT); in writeShort()
|
D | DataInputStream.java | 152 Streams.readFully(in, scratch, 0, SizeOf.SHORT); in readShort()
|
/libcore/luni/src/main/java/java/util/ |
D | Calendar.java | 695 public static final int SHORT = 1; field in Calendar 1292 style = SHORT; in getDisplayName() 1319 if (style != ALL_STYLES && style != SHORT && style != LONG) { in checkStyle() 1344 if (style == SHORT || style == ALL_STYLES) { in getDisplayNames() 1345 insertValuesInMap(result, getDisplayNameArray(field, SHORT, locale)); in getDisplayNames()
|
D | TimeZone.java | 77 public static final int SHORT = 0; field in TimeZone 189 if (style != SHORT && style != LONG) { in getDisplayName()
|
/libcore/luni/src/test/java/libcore/io/ |
D | MemoryTest.java | 111 int scale = SizeOf.SHORT; in testSetShortArray() 141 assertEquals(expectedValues[i], Memory.peekShort(ptr + SizeOf.SHORT * i, swap)); in assertShortsEqual()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | LocaleData.java | 169 case DateFormat.SHORT: in getDateFormat() 183 case DateFormat.SHORT: in getTimeFormat()
|