Home
last modified time | relevance | path

Searched refs:osc (Results 1 – 8 of 8) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DObjectStreamClassTest.java50 ObjectStreamClass osc = ObjectStreamClass.lookup(DummyClass.class); in test_forClass() local
51 assertEquals("forClass returned an object: " + osc.forClass(), in test_forClass()
52 DummyClass.class, osc.forClass()); in test_forClass()
59 ObjectStreamClass osc = ObjectStreamClass.lookup(DummyClass.class); in test_getFieldLjava_lang_String() local
60 assertEquals("getField did not return correct field", 'J', osc in test_getFieldLjava_lang_String()
62 assertNull("getField did not null for non-existent field", osc in test_getFieldLjava_lang_String()
70 ObjectStreamClass osc = ObjectStreamClass.lookup(DummyClass.class); in test_getFields() local
71 ObjectStreamField[] osfArray = osc.getFields(); in test_getFields()
81 ObjectStreamClass osc = ObjectStreamClass.lookup(DummyClass.class); in test_getName() local
83 "getName returned incorrect name: " + osc.getName(), in test_getName()
[all …]
DObjectStreamFieldTest.java52 ObjectStreamClass osc; field in ObjectStreamFieldTest
103 osfArray = osc.getFields(); in test_getOffset()
248 osc = ObjectStreamClass.lookup(DummyClass.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/luni/src/test/java/libcore/java/io/
DOldObjectStreamFieldTest.java60 ObjectStreamClass osc; field in OldObjectStreamFieldTest
137 osfArray = osc.getFields(); in test_getOffset()
161 osfArray = osc.getFields(); in test_isPrimitive()
173 osc = ObjectStreamClass.lookup(DummyClass.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()
DSerializationTest.java36 ObjectStreamClass osc = ObjectStreamClass.lookup(FieldMadeTransient.class); in testSerializeFieldMadeTransient() local
37 ObjectStreamField[] fields = osc.getFields(); in testSerializeFieldMadeTransient()
58 ObjectStreamClass osc = ObjectStreamClass.lookup(FieldMadeStatic.class); in testSerializeFieldMadeStatic() local
59 ObjectStreamField[] fields = osc.getFields(); in testSerializeFieldMadeStatic()
/libcore/benchmarks/src/benchmarks/regression/
DSerializationBenchmark.java67 ObjectStreamClass osc = ObjectStreamClass.lookup(String.class); in timeReadObjectStreamClass() local
68 readSingleObject(reps, osc); in timeReadObjectStreamClass()
79 ObjectStreamClass osc = ObjectStreamClass.lookup(String.class); in timeWriteObjectStreamClass() local
80 writeSingleObject(reps, osc); in timeWriteObjectStreamClass()
/libcore/luni/src/main/java/java/io/
DObjectStreamClass.java843 for (ObjectStreamClass osc = this; osc != null; osc = osc.getSuperclass()) { in makeHierarchy()
844 result.add(0, osc); in makeHierarchy()
1055 ObjectStreamClass osc = lookupStreamClass(cl); in lookup() local
1056 return (osc.isSerializable() || osc.isExternalizable()) ? osc : null; in lookup()
DObjectOutputStream.java1021 ObjectStreamClass osc = hierarchy.get(i); in writeHierarchy() local
1025 currentClass = osc; in writeHierarchy()
1030 if (osc.hasMethodWriteObject()) { in writeHierarchy()
1031 final Method method = osc.getMethodWriteObject(); in writeHierarchy()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
DObjectInputStreamTest.java1257 ObjectStreamClass osc = super.readClassDescriptor(); in readClassDescriptor() local
1259 if (osc.getName().equals(returnClass.getName())) { in readClassDescriptor()
1262 return osc; in readClassDescriptor()
1374 protected void writeClassDescriptor(ObjectStreamClass osc) throws IOException { in writeClassDescriptor() argument
1375 objs[pos++] = osc; in writeClassDescriptor()