Home
last modified time | relevance | path

Searched refs:readShort (Results 1 – 25 of 27) sorted by relevance

12

/libcore/dex/src/test/java/com/android/dex/
DEncodedValueReaderTest.java33 assertEquals((short) 0x8000, readerOf(34, 0x00, 0x80).readShort()); in testReadShort()
34 assertEquals((short) 0, readerOf( 2, 0x00).readShort()); in testReadShort()
35 assertEquals((short) 0xab, readerOf(34, 0xab, 0x00).readShort()); in testReadShort()
36 assertEquals((short) 0xabcd, readerOf(34, 0xcd, 0xab).readShort()); in testReadShort()
37 assertEquals((short) 0x7FFF, readerOf(34, 0xff, 0x7f).readShort()); in testReadShort()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DEOFExceptionTest.java33 .readShort(); in test_Constructor()
46 .readShort(); in test_ConstructorLjava_lang_String()
DDataOutputStreamTest.java219 short c = dis.readShort(); in test_writeShortI()
DDataInputStreamTest.java430 assertTrue("Incorrect short read", dis.readShort() == (short) 9875); in test_readShort()
505 public short readShort() throws IOException { in readShort() method in DataInputStreamTest.TestDataInputStream
DRandomAccessFileTest.java398 .readShort()); in test_readShort()
812 .readShort()); in test_writeShortI()
DSerializationStressTest.java550 assertEquals("Wrote incorrect short value", 127, ois.readShort()); in test_19_writeShort()
/libcore/luni/src/main/java/java/util/zip/
DZipEntry.java393 int gpbf = it.readShort() & 0xffff; in ZipEntry()
406 compressionMethod = it.readShort() & 0xffff; in ZipEntry()
407 time = it.readShort() & 0xffff; in ZipEntry()
408 modDate = it.readShort() & 0xffff; in ZipEntry()
415 nameLength = it.readShort() & 0xffff; in ZipEntry()
416 int extraLength = it.readShort() & 0xffff; in ZipEntry()
417 int commentByteCount = it.readShort() & 0xffff; in ZipEntry()
DZipFile.java310 int gpbf = Short.reverseBytes(is.readShort()) & 0xffff;
318 int fileNameLength = Short.reverseBytes(is.readShort()) & 0xffff;
319 int extraFieldLength = Short.reverseBytes(is.readShort()) & 0xffff;
412 int diskNumber = it.readShort() & 0xffff;
413 int diskWithCentralDir = it.readShort() & 0xffff;
414 int numEntries = it.readShort() & 0xffff;
415 int totalNumEntries = it.readShort() & 0xffff;
418 int commentLength = it.readShort() & 0xffff;
/libcore/luni/src/main/java/java/io/
DDataInputStream.java83 return (char) readShort(); in readChar()
151 public final short readShort() throws IOException { in readShort() method in DataInputStream
165 return ((int) readShort()) & 0xffff; in readUnsignedShort()
DDataInput.java191 public abstract short readShort() throws IOException; in readShort() method
DRandomAccessFile.java342 return (char) readShort(); in readChar()
512 public final short readShort() throws IOException { in readShort() method in RandomAccessFile
550 return ((int) readShort()) & 0xffff; in readUnsignedShort()
DObjectInputStream.java884 short numFields = input.readShort(); in readFieldDescriptors()
1005 element.fieldValue = input.readShort(); in readFieldValues()
1103 short s = input.readShort(); in readFieldValues()
1455 shortArray[i] = input.readShort(); in readNewArray()
2050 public short readShort() throws IOException { in readShort() method in ObjectInputStream
2051 return primitiveTypes.readShort(); in readShort()
2064 if (input.readShort() == STREAM_MAGIC in readStreamHeader()
2065 && input.readShort() == STREAM_VERSION) { in readStreamHeader()
/libcore/luni/src/test/java/libcore/java/io/
DOldObjectInputOutputStreamTest.java210 9875, is.readShort()); in test_read_writeShort()
213 is.readShort(); in test_read_writeShort()
221 is.readShort(); in test_read_writeShort()
DOldDataInputOutputStreamTest.java275 9875, dis.readShort()); in test_read_writeShort()
278 dis.readShort(); in test_read_writeShort()
286 dis.readShort(); in test_read_writeShort()
DOldRandomAccessFileTest.java688 Short.MIN_VALUE, raf.readShort()); in test_read_writeShort()
690 'T', raf.readShort()); in test_read_writeShort()
692 Short.MAX_VALUE, raf.readShort()); in test_read_writeShort()
694 0x7fff, raf.readShort()); in test_read_writeShort()
696 (short) 0x8000, raf.readShort()); in test_read_writeShort()
699 raf.readShort(); in test_read_writeShort()
713 raf.readShort(); in test_read_writeShort()
DOldAndroidDataInputStreamTest.java102 assertEquals(5, g.readShort()); in testDataInputStream()
/libcore/luni/src/main/java/libcore/io/
DBufferIterator.java61 public abstract short readShort(); in readShort() method in BufferIterator
DNioBufferIterator.java70 public short readShort() { in readShort() method in NioBufferIterator
DHeapBufferIterator.java73 public short readShort() { in readShort() method in HeapBufferIterator
/libcore/dex/src/main/java/com/android/dex/
DEncodedValueReader.java140 public short readShort() { in readShort() method in EncodedValueReader
227 readShort(); in skipValue()
DTableOfContents.java119 short type = in.readShort(); in readMap()
120 in.readShort(); // unused in readMap()
DDex.java532 public short readShort() { in readShort() method in Dex.Section
537 return readShort() & 0xffff; in readUnsignedShort()
556 result[i] = readShort(); in readShortArray()
654 readShort(); // padding in readCode()
/libcore/luni/src/main/java/java/sql/
DSQLInput.java87 public short readShort() throws SQLException; in readShort() method
/libcore/dalvik/src/main/java/dalvik/system/profiler/
DBinaryHprofReader.java239 short depth = in.readShort(); in parseControlSettings()
/libcore/luni/src/main/java/libcore/reflect/
DAnnotationAccess.java709 return reader.readShort(); in decodeValue()

12