/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | ObjectStreamClassTest.java | 67 ObjectStreamClass osc = ObjectStreamClass.lookup(FakeClass.class); in test_forClass() local 68 assertEquals("forClass returned an object: " + osc.forClass(), in test_forClass() 69 FakeClass.class, osc.forClass()); in test_forClass() 76 ObjectStreamClass osc = ObjectStreamClass.lookup(FakeClass.class); in test_getFieldLjava_lang_String() local 77 assertEquals("getField did not return correct field", 'J', osc in test_getFieldLjava_lang_String() 79 assertNull("getField did not null for non-existent field", osc in test_getFieldLjava_lang_String() 87 ObjectStreamClass osc = ObjectStreamClass.lookup(FakeClass.class); in test_getFields() local 88 ObjectStreamField[] osfArray = osc.getFields(); in test_getFields() 98 ObjectStreamClass osc = ObjectStreamClass.lookup(FakeClass.class); in test_getName() local 100 "getName returned incorrect name: " + osc.getName(), in test_getName() [all …]
|
D | ObjectStreamFieldTest.java | 52 ObjectStreamClass osc; field in ObjectStreamFieldTest 103 osfArray = osc.getFields(); in test_getOffset() 248 osc = ObjectStreamClass.lookup(FakeClass.class); in setUp() 249 bamField = osc.getField("bam"); in setUp() 250 samField = osc.getField("sam"); in setUp() 251 hamField = osc.getField("ham"); in setUp() 252 holaField = osc.getField("hola"); in setUp() 305 ObjectStreamClass osc = super.readClassDescriptor(); in readClassDescriptor() local 307 if (osc.getSerialVersionUID() == -2953957835918368056L) { in readClassDescriptor() 308 temp = osc; in readClassDescriptor() [all …]
|
/libcore/ojluni/src/test/java/io/Serializable/records/ |
D | RecordClassTest.java | 108 ObjectStreamClass osc = ObjectStreamClass.lookup(recordClass); in testSerialVersionUID() local 109 out.println("ObjectStreamClass::lookup : " + osc); in testSerialVersionUID() 110 assertEquals(osc.getSerialVersionUID(), expectedUID); in testSerialVersionUID() 112 osc = ObjectStreamClass.lookupAny(recordClass); in testSerialVersionUID() 113 out.println("ObjectStreamClass::lookupAny: " + osc); in testSerialVersionUID() 114 assertEquals(osc.getSerialVersionUID(), expectedUID); in testSerialVersionUID() 138 ObjectStreamClass osc = ObjectStreamClass.lookup(recordClass); in testSerialVersionUIDNonSer() local 139 out.println("ObjectStreamClass::lookup : " + osc); in testSerialVersionUIDNonSer() 140 assertEquals(osc, null); in testSerialVersionUIDNonSer() 142 osc = ObjectStreamClass.lookupAny(recordClass); in testSerialVersionUIDNonSer() [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldObjectStreamFieldTest.java | 60 ObjectStreamClass osc; field in OldObjectStreamFieldTest 137 osfArray = osc.getFields(); in test_getOffset() 161 osfArray = osc.getFields(); in test_isPrimitive() 173 osc = ObjectStreamClass.lookup(FakeClass.class); in setUp() 174 bamField = osc.getField("bam"); in setUp() 175 samField = osc.getField("sam"); in setUp() 176 hamField = osc.getField("ham"); in setUp() 177 holaField = osc.getField("hola"); in setUp()
|
D | SerializationTest.java | 36 ObjectStreamClass osc = ObjectStreamClass.lookup(FieldMadeTransient.class); in testSerializeFieldMadeTransient() local 37 ObjectStreamField[] fields = osc.getFields(); in testSerializeFieldMadeTransient() 60 ObjectStreamClass osc = ObjectStreamClass.lookup(FieldMadeStatic.class); in testSerializeFieldMadeStatic() local 61 ObjectStreamField[] fields = osc.getFields(); in testSerializeFieldMadeStatic()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SerializationBenchmark.java | 68 ObjectStreamClass osc = ObjectStreamClass.lookup(String.class); in timeReadObjectStreamClass() local 69 readSingleObject(reps, osc); in timeReadObjectStreamClass() 80 ObjectStreamClass osc = ObjectStreamClass.lookup(String.class); in timeWriteObjectStreamClass() local 81 writeSingleObject(reps, osc); in timeWriteObjectStreamClass()
|
/libcore/ojluni/src/main/java/java/io/ |
D | ObjectStreamClass.java | 594 ObjectStreamClass osc = null; in initProxy() local 596 osc = lookup(cl, true); in initProxy() 597 if (!osc.isProxy) { in initProxy() 609 if (osc != null) { in initProxy() 610 localDesc = osc; in initProxy() 632 ObjectStreamClass osc = null; in initNonProxy() local 634 osc = lookup(cl, true); in initNonProxy() 635 if (osc.isProxy) { in initNonProxy() 639 if (model.isEnum != osc.isEnum) { in initNonProxy() 645 if (model.serializable == osc.serializable && in initNonProxy() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
D | ObjectInputStreamTest.java | 1254 ObjectStreamClass osc = super.readClassDescriptor(); in readClassDescriptor() local 1256 if (osc.getName().equals(returnClass.getName())) { in readClassDescriptor() 1259 return osc; in readClassDescriptor() 1371 protected void writeClassDescriptor(ObjectStreamClass osc) throws IOException { in writeClassDescriptor() argument 1372 objs[pos++] = osc; in writeClassDescriptor()
|