/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | ObjectStreamClassTest.java | 25 import java.io.ObjectStreamClass; 50 ObjectStreamClass osc = ObjectStreamClass.lookup(DummyClass.class); in test_forClass() 59 ObjectStreamClass osc = ObjectStreamClass.lookup(DummyClass.class); in test_getFieldLjava_lang_String() 70 ObjectStreamClass osc = ObjectStreamClass.lookup(DummyClass.class); in test_getFields() 81 ObjectStreamClass osc = ObjectStreamClass.lookup(DummyClass.class); in test_getName() 92 ObjectStreamClass osc = ObjectStreamClass.lookup(DummyClass.class); in test_getSerialVersionUID() 117 ObjectStreamClass osc = ObjectStreamClass.lookup(DummyClass.class); in test_lookupLjava_lang_Class() 128 ObjectStreamClass osc = ObjectStreamClass.lookup(DummyClass.class); in test_toString() 139 ObjectStreamClass osc = ObjectStreamClass in testSerialization() 140 .lookup(ObjectStreamClass.class); in testSerialization() [all …]
|
D | ObjectStreamFieldTest.java | 27 import java.io.ObjectStreamClass; 52 ObjectStreamClass osc; 169 ObjectStreamClass oc = obj.getObjectStreamClass(); in test_getType_Deserialized() 190 ObjectStreamClass oc = ois.getObjectStreamClass(); in test_getType_MockObjectInputStream() 209 ObjectStreamClass objectStreamClass = getField.getObjectStreamClass(); in test_isUnshared() 248 osc = ObjectStreamClass.lookup(DummyClass.class); in setUp() 286 public ObjectStreamClass getObjectStreamClass() { in getObjectStreamClass() 292 private ObjectStreamClass temp = null; 303 public ObjectStreamClass readClassDescriptor() throws IOException, in readClassDescriptor() 305 ObjectStreamClass osc = super.readClassDescriptor(); in readClassDescriptor() [all …]
|
D | ComputeSerialVersionUIDTest.java | 3 import java.io.ObjectStreamClass; 84 return ObjectStreamClass.lookup(clazz).getSerialVersionUID(); in computeSerialVersionUID()
|
D | ObjectInputStream2Test.java | 27 import java.io.ObjectStreamClass; 172 protected Class resolveClass(ObjectStreamClass desc) in resolveClass()
|
D | ObjectOutputStreamTest.java | 33 import java.io.ObjectStreamClass; 1251 replaceObject = ObjectStreamClass.lookup(Integer.class); in test_replaceObject() 1285 oos.writeObject(ObjectStreamClass.lookup(Integer.class)); in test_replaceObject() 1302 ObjectStreamClass.class, obj3.getClass()); in test_replaceObject()
|
D | SerializationStressTest2.java | 28 import java.io.ObjectStreamClass; 264 if (objClass == ObjectStreamClass.class) in replaceObject() 1006 objToSave = ObjectStreamClass.lookup(SerialPersistentFields.class); // Test in test_18_47_writeObject() 1305 objToSave = ObjectStreamClass.lookup(FOO.getClass()); in test_18_58_writeObject()
|
D | SerializationStressTest.java | 31 import java.io.ObjectStreamClass; 103 public Class<?> resolveClass(ObjectStreamClass osClass) in resolveClass()
|
D | FileTest.java | 25 import java.io.ObjectStreamClass; 2147 ObjectStreamClass objectStreamClass = ObjectStreamClass in test_objectStreamClass_getFields()
|
/libcore/luni/src/main/native/ |
D | java_io_ObjectStreamClass.cpp | 59 NATIVE_METHOD(ObjectStreamClass, getConstructorId, "(Ljava/lang/Class;)J"), 60 …NATIVE_METHOD(ObjectStreamClass, getConstructorSignature, "(Ljava/lang/reflect/Constructor;)Ljava/… 61 …NATIVE_METHOD(ObjectStreamClass, getFieldSignature, "(Ljava/lang/reflect/Field;)Ljava/lang/String;… 62 …NATIVE_METHOD(ObjectStreamClass, getMethodSignature, "(Ljava/lang/reflect/Method;)Ljava/lang/Strin… 63 NATIVE_METHOD(ObjectStreamClass, hasClinit, "(Ljava/lang/Class;)Z"), 64 NATIVE_METHOD(ObjectStreamClass, newInstance, "(Ljava/lang/Class;J)Ljava/lang/Object;"),
|
/libcore/luni/src/main/java/java/io/ |
D | ObjectStreamClass.java | 48 public class ObjectStreamClass implements Serializable { class 108 static final Class<ObjectStreamClass> OBJECTSTREAMCLASSCLASS = ObjectStreamClass.class; 163 private transient ObjectStreamClass superclass; 241 ObjectStreamClass() { in ObjectStreamClass() method in ObjectStreamClass 252 private static ObjectStreamClass createClassDesc(Class<?> cl) { in createClassDesc() 254 ObjectStreamClass result = new ObjectStreamClass(); in createClassDesc() 342 final Field f = ObjectStreamClass.fieldSerialPersistentFields(this.forClass()); in buildFieldDescriptors() 695 while (constructorClass != null && ObjectStreamClass.isSerializable(constructorClass)) { in resolveConstructorClass() 831 private transient volatile List<ObjectStreamClass> cachedHierarchy; 833 List<ObjectStreamClass> getHierarchy() { in getHierarchy() [all …]
|
D | ObjectInputStream.java | 85 private ObjectStreamClass currentClass; 133 public abstract ObjectStreamClass getObjectStreamClass(); in getObjectStreamClass() 653 private ObjectStreamClass readClassDesc() throws ClassNotFoundException, IOException { in readClassDesc() 660 ObjectStreamClass streamClass = ObjectStreamClass.lookup(proxyClass); in readClassDesc() 661 streamClass.setLoadFields(ObjectStreamClass.NO_FIELDS); in readClassDesc() 666 return (ObjectStreamClass) readCyclicReference(); in readClassDesc() 882 private void readFieldDescriptors(ObjectStreamClass cDesc) in readFieldDescriptors() 895 boolean isPrimType = ObjectStreamClass.isPrimitiveType(typecode); in readFieldDescriptors() 1055 private void readFieldValues(Object obj, ObjectStreamClass classDesc) in readFieldValues() 1059 fields = (fields == null) ? ObjectStreamClass.NO_FIELDS : fields; in readFieldValues() [all …]
|
D | ObjectOutputStream.java | 90 private ObjectStreamClass currentClass; 112 private final ObjectStreamClass proxyClassDesc = ObjectStreamClass.lookup(Proxy.class); 725 private int writeClassDesc(ObjectStreamClass classDesc, boolean unshared) throws IOException { in writeClassDesc() 823 …private void writeFieldDescriptors(ObjectStreamClass classDesc, boolean externalizable) throws IOE… in writeFieldDescriptors() 830 if (!externalizable && loadedClass != ObjectStreamClass.STRINGCLASS) { in writeFieldDescriptors() 927 private void writeFieldValues(Object obj, ObjectStreamClass classDesc) throws IOException { in writeFieldValues() 1011 private void writeHierarchy(Object object, ObjectStreamClass classDesc) in writeHierarchy() 1019 List<ObjectStreamClass> hierarchy = classDesc.getHierarchy(); in writeHierarchy() 1021 ObjectStreamClass osc = hierarchy.get(i); in writeHierarchy() 1111 private int writeNewArray(Object array, Class<?> arrayClass, ObjectStreamClass arrayClDesc, in writeNewArray() [all …]
|
D | EmulatedFieldsForLoading.java | 31 private ObjectStreamClass streamClass; 43 EmulatedFieldsForLoading(ObjectStreamClass streamClass) { in EmulatedFieldsForLoading() 295 public ObjectStreamClass getObjectStreamClass() { in getObjectStreamClass()
|
D | EmulatedFieldsForDumping.java | 43 EmulatedFieldsForDumping(ObjectOutputStream oos, ObjectStreamClass streamClass) { in EmulatedFieldsForDumping()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | SerializationTest.java | 24 import java.io.ObjectStreamClass; 36 ObjectStreamClass osc = ObjectStreamClass.lookup(FieldMadeTransient.class); in testSerializeFieldMadeTransient() 58 ObjectStreamClass osc = ObjectStreamClass.lookup(FieldMadeStatic.class); in testSerializeFieldMadeStatic()
|
D | OldObjectStreamFieldTest.java | 20 import java.io.ObjectStreamClass; 60 ObjectStreamClass osc; 173 osc = ObjectStreamClass.lookup(DummyClass.class); in setUp()
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
D | ObjectInputStreamTest.java | 41 import java.io.ObjectStreamClass; 604 public ObjectStreamClass readClassDescriptor() throws IOException, in readClassDescriptor() 606 return ObjectStreamClass.lookup(returnClass); in readClassDescriptor() 1026 public void writeClassDescriptor(ObjectStreamClass desc) in writeClassDescriptor() 1040 public void writeClassDescriptor(ObjectStreamClass desc) in writeClassDescriptor() 1055 public ObjectStreamClass readClassDescriptor() throws IOException, in readClassDescriptor() 1069 protected Class resolveClass(ObjectStreamClass desc) in resolveClass() 1146 ObjectStreamClass desc = ObjectStreamClass in test_readClassDescriptor() 1255 public ObjectStreamClass readClassDescriptor() throws IOException, in readClassDescriptor() 1257 ObjectStreamClass osc = super.readClassDescriptor(); in readClassDescriptor() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SerializationBenchmark.java | 67 ObjectStreamClass osc = ObjectStreamClass.lookup(String.class); in timeReadObjectStreamClass() 79 ObjectStreamClass osc = ObjectStreamClass.lookup(String.class); in timeWriteObjectStreamClass()
|
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
D | PatternSyntaxExceptionTest.java | 19 import java.io.ObjectStreamClass; 113 ObjectStreamClass objectStreamClass = ObjectStreamClass.lookup(PatternSyntaxException.class); in test_objectStreamField()
|