Searched refs:SHORT (Results 1 - 25 of 35) sorted by relevance

12

/libcore/luni/src/main/java/libcore/io/
H A DSizeOf.java25 public static final int SHORT = 2; field in class:SizeOf
H A DHeapBufferIterator.java75 position += SizeOf.SHORT;
H A DNioBufferIterator.java72 position += SizeOf.SHORT;
/libcore/luni/src/main/java/java/nio/
H A DByteBufferAsShortBuffer.java44 super(byteBuffer.capacity() / SizeOf.SHORT, byteBuffer.effectiveDirectAddress);
64 byteBuffer.limit(limit * SizeOf.SHORT);
65 byteBuffer.position(position * SizeOf.SHORT);
89 return byteBuffer.getShort(position++ * SizeOf.SHORT);
95 return byteBuffer.getShort(index * SizeOf.SHORT);
100 byteBuffer.limit(limit * SizeOf.SHORT);
101 byteBuffer.position(position * SizeOf.SHORT);
143 byteBuffer.putShort(position++ * SizeOf.SHORT, c);
150 byteBuffer.putShort(index * SizeOf.SHORT, c);
156 byteBuffer.limit(limit * SizeOf.SHORT);
[all...]
H A DByteArrayBuffer.java145 int byteCount = checkGetBounds(SizeOf.SHORT, dst.length, dstOffset, shortCount);
146 Memory.unsafeBulkGet(dst, dstOffset, byteCount, backingArray, arrayOffset + position, SizeOf.SHORT, order.needsSwap);
224 int newPosition = position + SizeOf.SHORT;
234 checkIndex(index, SizeOf.SHORT);
303 int byteCount = checkPutBounds(SizeOf.SHORT, src.length, srcOffset, shortCount);
304 Memory.unsafeBulkPut(backingArray, arrayOffset + position, byteCount, src, srcOffset, SizeOf.SHORT, order.needsSwap);
394 checkIndex(index, SizeOf.SHORT);
403 int newPosition = position + SizeOf.SHORT;
H A DDirectByteBuffer.java156 int byteCount = checkGetBounds(SizeOf.SHORT, dst.length, dstOffset, shortCount);
262 int newPosition = position + SizeOf.SHORT;
273 checkIndex(index, SizeOf.SHORT);
399 int byteCount = checkPutBounds(SizeOf.SHORT, src.length, srcOffset, shortCount);
529 int newPosition = position + SizeOf.SHORT;
543 checkIndex(index, SizeOf.SHORT);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DDateFormatTest.java53 DateFormat f1 = DateFormat.getDateTimeInstance(DateFormat.SHORT,
54 DateFormat.SHORT, locales[i]);
93 .getDateInstance(DateFormat.SHORT);
96 DateFormat.SHORT, Locale.getDefault())));
143 DateFormat.SHORT, Locale.GERMAN);
218 testDateTime(DateFormat.SHORT, DateFormat.SHORT);
219 testDateTime(DateFormat.SHORT, DateFormat.MEDIUM);
220 testDateTime(DateFormat.SHORT, DateFormat.LONG);
221 testDateTime(DateFormat.SHORT, DateForma
[all...]
/libcore/benchmarks/src/benchmarks/regression/
H A DStringBenchmark.java25 SHORT("short"), enum constant in enum:StringBenchmark.StringLengths
H A DExpensiveObjectsBenchmark.java32 DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT);
38 DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT);
45 DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT);
/libcore/luni/src/test/java/libcore/java/util/
H A DOldTimeZoneTest.java101 assertEquals("PST", tz.getDisplayName(false, TimeZone.SHORT));
116 assertEquals("PDT", tz.getDisplayName(true, TimeZone.SHORT, Locale.US));
117 assertEquals("PST", tz.getDisplayName(false, TimeZone.SHORT, Locale.US));
122 assertEquals("GMT-08:00", tz.getDisplayName(false, TimeZone.SHORT, Locale.FRANCE));
123 assertEquals("GMT-07:00", tz.getDisplayName(true, TimeZone.SHORT, Locale.FRANCE));
124 assertEquals("GMT-08:00", tz.getDisplayName(false, TimeZone.SHORT, Locale.UK));
125 assertEquals("GMT-07:00", tz.getDisplayName(true, TimeZone.SHORT, Locale.UK));
136 assertEquals("GMT+03:30", iranTz.getDisplayName(false, TimeZone.SHORT, Locale.UK));
137 assertEquals("GMT+04:30", iranTz.getDisplayName(true, TimeZone.SHORT, Locale.UK));
H A DTimeZoneTest.java53 assertEquals("GMT+00:01", tz0001.getDisplayName(false, TimeZone.SHORT, Locale.US));
54 assertEquals("GMT+01:30", tz0130.getDisplayName(false, TimeZone.SHORT, Locale.US));
55 assertEquals("GMT-01:30", tzMinus0130.getDisplayName(false, TimeZone.SHORT, Locale.US));
225 String shortDst = tz.getDisplayName(true, TimeZone.SHORT, Locale.US);
226 String shortStd = tz.getDisplayName(false, TimeZone.SHORT, Locale.US);
283 assertEquals("GMT-03:00", tz.getDisplayName(true, TimeZone.SHORT, Locale.US));
284 assertEquals("GMT-04:00", tz.getDisplayName(false, TimeZone.SHORT, Locale.US));
292 assertEquals("GMT+14:00", tz.getDisplayName(true, TimeZone.SHORT, Locale.US));
293 assertEquals("GMT+13:00", tz.getDisplayName(false, TimeZone.SHORT, Locale.US));
/libcore/luni/src/main/java/java/io/
H A DDataOutputStream.java192 out.write(scratch, 0, SizeOf.SHORT);
193 written += SizeOf.SHORT;
H A DDataInputStream.java152 Streams.readFully(in, scratch, 0, SizeOf.SHORT);
H A DRandomAccessFile.java513 readFully(scratch, 0, SizeOf.SHORT);
859 write(scratch, 0, SizeOf.SHORT);
/libcore/luni/src/main/java/java/nio/charset/
H A DModifiedUtf8.java120 byte[] result = new byte[SizeOf.SHORT + utfCount];
122 ModifiedUtf8.encode(result, SizeOf.SHORT, s);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DCalendarTest.java804 assertEquals(cal.getDisplayName(field, Calendar.SHORT,
810 assertEquals(cal.getDisplayName(field, Calendar.SHORT,
818 assertEquals(cal.getDisplayName(field, Calendar.SHORT,
824 assertEquals(cal.getDisplayName(field, Calendar.SHORT,
834 assertEquals(cal.getDisplayName(field, Calendar.SHORT,
845 assertEquals(cal.getDisplayName(field, Calendar.SHORT,
854 .getDisplayName(field, Calendar.SHORT, locale));
863 cal.getDisplayName(-1, Calendar.SHORT, Locale.US);
887 cal.getDisplayName(Calendar.MONTH, Calendar.SHORT, null);
893 cal.getDisplayName(-1, Calendar.SHORT, nul
[all...]
/libcore/luni/src/main/java/java/text/
H A DDateFormat.java103 public static final int SHORT = 3; field in class:DateFormat
363 * one of SHORT, MEDIUM, LONG, FULL, or DEFAULT.
367 * if {@code style} is not one of SHORT, MEDIUM, LONG, FULL, or
380 * one of SHORT, MEDIUM, LONG, FULL, or DEFAULT.
384 * if {@code style} is not one of SHORT, MEDIUM, LONG, FULL, or
412 * one of SHORT, MEDIUM, LONG, FULL, or DEFAULT.
414 * one of SHORT, MEDIUM, LONG, FULL, or DEFAULT.
419 * SHORT, MEDIUM, LONG, FULL, or DEFAULT.
432 * one of SHORT, MEDIUM, LONG, FULL, or DEFAULT.
434 * one of SHORT, MEDIU
[all...]
H A DDateFormatSymbols.java332 zone[2] = TimeZone.getTimeZone(id).getDisplayName(false, TimeZone.SHORT, locale);
338 zone[4] = TimeZone.getTimeZone(id).getDisplayName(true, TimeZone.SHORT, locale);
496 * @param style one of the {@link TimeZone} styles such as {@link TimeZone#SHORT}
501 if (style != TimeZone.SHORT && style != TimeZone.LONG) {
H A DMessageFormat.java172 * <td>{@code DateFormat.getDateInstance(DateFormat.SHORT, getLocale())}</td>
197 * <td>{@code DateFormat.getTimeInstance(DateFormat.SHORT, getLocale())}</td>
998 dateStyle = DateFormat.SHORT;
1115 } else if (format.equals(DateFormat.getTimeInstance(DateFormat.SHORT,
1118 } else if (format.equals(DateFormat.getDateInstance(DateFormat.SHORT,
/libcore/luni/src/main/java/libcore/icu/
H A DLocaleData.java163 case DateFormat.SHORT:
177 case DateFormat.SHORT:
/libcore/luni/src/test/java/libcore/io/
H A DMemoryTest.java111 int scale = SizeOf.SHORT;
141 assertEquals(expectedValues[i], Memory.peekShort(ptr + SizeOf.SHORT * i, swap));
/libcore/luni/src/main/java/java/util/
H A DCalendar.java684 * Requests both {@code SHORT} and {@code LONG} styles in the map returned by
695 public static final int SHORT = 1; field in class:Calendar
1278 * <p>For example, {@code getDisplayName(MONTH, SHORT, Locale.US)} will return "Jan"
1282 * @param style {@code SHORT} or {@code LONG}
1290 // TODO: the RI's documentation says ALL_STYLES is invalid, but actually treats it as SHORT.
1292 style = SHORT;
1319 if (style != ALL_STYLES && style != SHORT && style != LONG) {
1333 * @param style {@code SHORT}, {@code LONG}, or {@code ALL_STYLES}
1344 if (style == SHORT || style == ALL_STYLES) {
1345 insertValuesInMap(result, getDisplayNameArray(field, SHORT, local
[all...]
H A DTimeZone.java77 public static final int SHORT = 0; field in class:TimeZone
179 * Returns the {@link #SHORT short} or {@link #LONG long} name of this time
185 * @param style either {@link TimeZone#LONG} or {@link TimeZone#SHORT}.
189 if (style != SHORT && style != LONG) {
/libcore/luni/src/test/java/libcore/java/text/
H A DOldDateFormatTest.java90 DateFormat.SHORT, DateFormat.SHORT, Locale.US);
108 DateFormat.SHORT, DateFormat.SHORT, Locale.US);
207 DateFormat format = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, Locale.US);
325 format = DateFormat.getDateTimeInstance(DateFormat.DEFAULT, DateFormat.SHORT, Locale.US);
H A DSimpleDateFormatTest.java367 SimpleDateFormat.getDateInstance(DateFormat.SHORT, null);
372 SimpleDateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, null);
377 SimpleDateFormat.getTimeInstance(DateFormat.SHORT, null);

Completed in 472 milliseconds

12