Home
last modified time | relevance | path

Searched refs:magic (Results 1 – 4 of 4) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
DObjectInputStreamTest.java386 short magic = java.io.ObjectStreamConstants.STREAM_MAGIC; in fillStreamHeader() local
394 buffer[0] = (byte) (magic >> 8); in fillStreamHeader()
395 buffer[1] = (byte) magic; in fillStreamHeader()
431 short magic = java.io.ObjectStreamConstants.STREAM_MAGIC; in test_readStreamHeader() local
453 buffer[0] = (byte)magic; in test_readStreamHeader()
454 buffer[1] = (byte)(magic >> 8); in test_readStreamHeader()
467 buffer[0] = (byte)(magic >> 8); in test_readStreamHeader()
468 buffer[1] = (byte)magic; in test_readStreamHeader()
/libcore/luni/src/main/java/libcore/timezone/
DZoneInfoDB.java213 String magic = new String(tzdata_version, 0, 6, StandardCharsets.US_ASCII); in readHeader() local
214 if (!magic.equals("tzdata") || tzdata_version[11] != 0) { in readHeader()
/libcore/ojluni/src/main/java/java/util/
DGregorianCalendar.java1837 int magic = dayOfWeek + getMinimalDaysInFirstWeek() - 1; in getActualMaximum() local
1838 if ((magic == 6) || in getActualMaximum()
1839 (date.isLeapYear() && (magic == 5 || magic == 12))) { in getActualMaximum()
DJapaneseImperialCalendar.java1402 int magic = dayOfWeek + getMinimalDaysInFirstWeek() - 1; in getActualMaximum()
1403 if ((magic == 6) || in getActualMaximum()
1404 (date.isLeapYear() && (magic == 5 || magic == 12))) { in getActualMaximum()