/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | ConstructorTest.java | 169 Constructor<GenericConstructorTestHelper> ctor = GenericConstructorTestHelper.class in test_toGenericString() local 174 ctor.toGenericString()); in test_toGenericString() 193 Constructor<? extends ConstructorTestHelper> ctor = pclass.getConstructor(new Class[0]); in test_getDeclaringClass() local 194 val = ctor.getDeclaringClass().equals(pclass); in test_getDeclaringClass() 207 … Constructor<? extends ConstructorTestHelper> ctor = new ConstructorTestHelper().getClass() in test_getExceptionTypes() local 209 exceptions = ctor.getExceptionTypes(); in test_getExceptionTypes() 223 … Constructor<? extends ConstructorTestHelper> ctor = new ConstructorTestHelper().getClass() in test_getModifiers() local 225 mod = ctor.getModifiers(); in test_getModifiers() 234 … Constructor<? extends ConstructorTestHelper> ctor = new ConstructorTestHelper().getClass() in test_getModifiers() local 236 mod = ctor.getModifiers(); in test_getModifiers() [all …]
|
D | MalformedParameterizedTypeExceptionTests.java | 13 … Constructor<MalformedParameterizedTypeException> ctor = MalformedParameterizedTypeException.class in test_Constructor() local 15 assertNotNull("Parameterless constructor does not exist.", ctor); in test_Constructor() 16 assertTrue("Constructor is not protected", Modifier.isPublic(ctor in test_Constructor() 18 assertNotNull(ctor.newInstance()); in test_Constructor()
|
D | InvocationTargetExceptionTest.java | 118 Constructor<InvocationTargetException> ctor = InvocationTargetException.class in test_Constructor() local 120 assertNotNull("Parameterless constructor does not exist.", ctor); in test_Constructor() 121 assertTrue("Constructor is not protected", Modifier.isProtected(ctor in test_Constructor()
|
/libcore/benchmarks/src/benchmarks/ |
D | XmlSerializeBenchmark.java | 40 private void serializeRandomXml(Constructor<? extends XmlSerializer> ctor, long seed) in serializeRandomXml() argument 49 XmlSerializer serializer = (XmlSerializer) ctor.newInstance(); in serializeRandomXml() 95 private void internalTimeSerializer(Constructor<? extends XmlSerializer> ctor, int reps) in internalTimeSerializer() argument 98 serializeRandomXml(ctor, seed); in internalTimeSerializer()
|
/libcore/luni/src/main/native/ |
D | libcore_io_Posix.cpp | 369 static jmethodID ctor = env->GetMethodID(JniConstants::inetSocketAddressClass, in makeSocketAddress() local 371 return env->NewObject(JniConstants::inetSocketAddressClass, ctor, inetAddress, port); in makeSocketAddress() 373 static jmethodID ctor = env->GetMethodID(JniConstants::unixSocketAddressClass, in makeSocketAddress() local 380 return env->NewObject(JniConstants::unixSocketAddressClass, ctor, javaSunPath); in makeSocketAddress() 383 static jmethodID ctor = env->GetMethodID(JniConstants::netlinkSocketAddressClass, in makeSocketAddress() local 385 return env->NewObject(JniConstants::netlinkSocketAddressClass, ctor, in makeSocketAddress() 390 static jmethodID ctor = env->GetMethodID(JniConstants::packetSocketAddressClass, in makeSocketAddress() local 398 jobject packetSocketAddress = env->NewObject(JniConstants::packetSocketAddressClass, ctor, in makeSocketAddress() 415 static jmethodID ctor = env->GetMethodID(JniConstants::structPasswdClass, "<init>", in makeStructPasswd() local 417 return env->NewObject(JniConstants::structPasswdClass, ctor, in makeStructPasswd() [all …]
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
D | Constructor.java | 77 public Constructor<T> serializationCopy(Class<?> ctor, Class<?> cl) { in serializationCopy() argument 78 return new Constructor<T>(ctor, cl); in serializationCopy()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/lang/invoke/ |
D | SerializedLambdaTest.java | 275 Supplier<ForCtorRef> ctor = (Supplier<ForCtorRef> & Serializable) ForCtorRef::new; in testCtorRef() local 282 assertSerial(ctor, b); in testCtorRef()
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | BufferTest.java | 797 Constructor<?> ctor = c.getDeclaredConstructor(long.class, int.class); in testHasArrayOnJniDirectByteBuffer() local 798 ctor.setAccessible(true); in testHasArrayOnJniDirectByteBuffer() 799 ByteBuffer bb = (ByteBuffer) ctor.newInstance(0, 0); in testHasArrayOnJniDirectByteBuffer()
|