Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/security/cert/
DPKIXParametersTest.java92 PKIXParameters parameters = newPkixParameters(); in addCertPathChecker() local
94 parameters.addCertPathChecker(pathChecker); in addCertPathChecker()
97 List<PKIXCertPathChecker> actualCheckers = parameters.getCertPathCheckers(); in addCertPathChecker()
103 PKIXParameters parameters = newPkixParameters(); in addCertPathChecker_Null() local
105 parameters.addCertPathChecker(null); in addCertPathChecker_Null()
106 assertEquals(0, parameters.getCertPathCheckers().size()); in addCertPathChecker_Null()
111 PKIXParameters parameters = newPkixParameters(); in setCertPathCheckers() local
112 parameters.setCertPathCheckers(CHECK_LIST); in setCertPathCheckers()
114 List<PKIXCertPathChecker> actualCheckers = parameters.getCertPathCheckers(); in setCertPathCheckers()
121 PKIXParameters parameters = newPkixParameters(); in setCertPathCheckers_NullEmpty() local
[all …]
/libcore/ojluni/src/main/java/javax/net/ssl/
DKeyStoreBuilderParameters.java44 private final List<Builder> parameters; field in KeyStoreBuilderParameters
54 parameters = Collections.singletonList(Objects.requireNonNull(builder)); in KeyStoreBuilderParameters()
66 public KeyStoreBuilderParameters(List<Builder> parameters) { in KeyStoreBuilderParameters() argument
67 if (parameters.isEmpty()) { in KeyStoreBuilderParameters()
71 this.parameters = Collections.unmodifiableList( in KeyStoreBuilderParameters()
72 new ArrayList<Builder>(parameters)); in KeyStoreBuilderParameters()
85 return parameters; in getParameters()
DSSLServerSocket.java485 SSLParameters parameters = new SSLParameters(); in getSSLParameters() local
487 parameters.setCipherSuites(getEnabledCipherSuites()); in getSSLParameters()
488 parameters.setProtocols(getEnabledProtocols()); in getSSLParameters()
490 parameters.setNeedClientAuth(true); in getSSLParameters()
492 parameters.setWantClientAuth(true); in getSSLParameters()
495 return parameters; in getSSLParameters()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DCertPathTrustManagerParametersTest.java41 CertPathParameters parameters = new MyCertPathParameters(); in test_ConstructorLjava_security_cert_CertPathParameters() local
43 new CertPathTrustManagerParameters(parameters); in test_ConstructorLjava_security_cert_CertPathParameters()
45 parameters, p.getParameters()); in test_ConstructorLjava_security_cert_CertPathParameters()
63 CertPathParameters parameters = new MyCertPathParameters(); in test_getParameters() local
65 parameters); in test_getParameters()
70 parameters, p.getParameters()); in test_getParameters()
/libcore/ojluni/src/main/java/java/util/logging/
DLogRecord.java140 private transient Object parameters[]; field in LogRecord
387 return parameters; in getParameters()
395 public void setParameters(Object parameters[]) { in setParameters() argument
396 this.parameters = parameters; in setParameters()
477 if (parameters == null) { in writeObject()
481 out.writeInt(parameters.length); in writeObject()
483 for (int i = 0; i < parameters.length; i++) { in writeObject()
484 if (parameters[i] == null) { in writeObject()
487 out.writeObject(parameters[i].toString()); in writeObject()
507 parameters = null; in readObject()
[all …]
DFormatter.java126 Object parameters[] = record.getParameters(); in formatMessage() local
127 if (parameters == null || parameters.length == 0) { in formatMessage()
138 return java.text.MessageFormat.format(format, parameters); in formatMessage()
DXMLFormatter.java177 Object parameters[] = record.getParameters(); in format() local
180 if ( parameters != null && parameters.length != 0 in format()
182 for (int i = 0; i < parameters.length; i++) { in format()
185 escape(sb, parameters[i].toString()); in format()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DConstructorTest.java44 Class[] parameters = constructor.getParameterTypes(); in test_getParameterTypes() local
45 assertEquals(1, parameters.length); in test_getParameterTypes()
46 assertEquals(expectedParameters[0], parameters[0]); in test_getParameterTypes()
48 parameters[0] = String.class; in test_getParameterTypes()
49 parameters = constructor.getParameterTypes(); in test_getParameterTypes()
50 assertEquals(1, parameters.length); in test_getParameterTypes()
51 assertEquals(expectedParameters[0], parameters[0]); in test_getParameterTypes()
75 Parameter[] parameters = constructor.getParameters(); in test_getParameters() local
76 assertEquals(1, parameters.length); in test_getParameters()
77 assertEquals(Object.class, parameters[0].getType()); in test_getParameters()
[all …]
DMethodTest.java51 Class[] parameters = method.getParameterTypes(); in test_getParameterTypes() local
52 assertEquals(1, parameters.length); in test_getParameterTypes()
53 assertEquals(expectedParameters[0], parameters[0]); in test_getParameterTypes()
55 parameters[0] = String.class; in test_getParameterTypes()
56 parameters = method.getParameterTypes(); in test_getParameterTypes()
57 assertEquals(1, parameters.length); in test_getParameterTypes()
58 assertEquals(expectedParameters[0], parameters[0]); in test_getParameterTypes()
82 Parameter[] parameters = method.getParameters(); in test_getParameters() local
83 assertEquals(1, parameters.length); in test_getParameters()
84 assertEquals(Object.class, parameters[0].getType()); in test_getParameters()
[all …]
DParameterTest.java808 Parameter[] parameters = method.getParameters(); in testManyParameters_withMetadata() local
809 assertEquals(expectedParameterCount, parameters.length); in testManyParameters_withMetadata()
813 for (int i = 0; i < parameters.length; i++) { in testManyParameters_withMetadata()
814 assertEquals(true, parameters[i].isNamePresent()); in testManyParameters_withMetadata()
815 assertEquals(Modifier.FINAL, parameters[i].getModifiers()); in testManyParameters_withMetadata()
816 assertEquals("a" + format.format(i), parameters[i].getName()); in testManyParameters_withMetadata()
949 Parameter[] parameters = executable.getParameters(); in checkParametersEquals() local
950 for (int i = 0; i < parameters.length; i++) { in checkParametersEquals()
951 assertEquals(parameters[i], parameters[i]); in checkParametersEquals()
953 assertFalse(parameters[0].equals(parameters[i])); in checkParametersEquals()
[all …]
DClassLoaderReflectionTest.java109 Type[] parameters = constructor.getGenericParameterTypes(); in testConstructorGenericType() local
110 assertParameterizedType(parameters[0], bClass, String.class); in testConstructorGenericType()
111 assertParameterizedType(parameters[1], List.class, aClass); in testConstructorGenericType()
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
DAnnotatedElementParameterTest.java54 Parameter[] parameters = c.getDeclaredMethod( in testMethodParameterAnnotations() local
56 Parameter parameter0 = parameters[0]; in testMethodParameterAnnotations()
59 Parameter parameter1 = parameters[1]; in testMethodParameterAnnotations()
63 Parameter[] parameters = c.getDeclaredMethod( in testMethodParameterAnnotations() local
66 Parameter parameter0 = parameters[0]; in testMethodParameterAnnotations()
69 Parameter parameter1 = parameters[1]; in testMethodParameterAnnotations()
86 Parameter[] parameters = in testConstructorParameterAnnotations() local
88 Parameter parameter0 = parameters[0]; in testConstructorParameterAnnotations()
91 Parameter parameter1 = parameters[1]; in testConstructorParameterAnnotations()
95 Parameter[] parameters = in testConstructorParameterAnnotations() local
[all …]
DExecutableParameterTest.java278 Parameter[] parameters = constructor.getParameters(); in testImplicitConstructorParameters_staticInnerClass() local
279 assertEquals(1, parameters.length); in testImplicitConstructorParameters_staticInnerClass()
/libcore/ojluni/src/main/java/java/security/
DAlgorithmConstraints.java70 String algorithm, AlgorithmParameters parameters); in permits() argument
106 String algorithm, Key key, AlgorithmParameters parameters); in permits() argument
/libcore/luni/src/test/java/tests/targets/security/cert/
DCertPathBuilderTestPKIX.java62 PKIXBuilderParameters parameters = new PKIXBuilderParameters(keyStore, targetConstraints); in getCertPathParameters() local
63 parameters.addCertStore(certStore); in getCertPathParameters()
64 parameters.setRevocationEnabled(false); in getCertPathParameters()
65 return parameters; in getCertPathParameters()
DCertPathValidatorTestPKIX.java77 PKIXBuilderParameters parameters = new PKIXBuilderParameters(keyStore, in setUp() local
79 parameters.addCertStore(certStore); in setUp()
80 parameters.setRevocationEnabled(false); in setUp()
84 CertPathBuilderResult builderResult = pathBuilder.build(parameters); in setUp()
/libcore/luni/src/test/java/tests/security/cert/
DCertStore2Test.java42 CertStoreParameters parameters = new MyCertStoreParameters(); in testGetInstanceStringCertStoreParameters() local
44 parameters); in testGetInstanceStringCertStoreParameters()
47 assertNotSame(parameters, certStore.getCertStoreParameters()); in testGetInstanceStringCertStoreParameters()
86 CertStoreParameters parameters = new MyCertStoreParameters(); in testGetInstanceStringCertStoreParametersString() local
88 parameters, CERT_STORE_PROVIDER_NAME); in testGetInstanceStringCertStoreParametersString()
91 assertNotSame(parameters, certStore.getCertStoreParameters()); in testGetInstanceStringCertStoreParametersString()
157 CertStoreParameters parameters = new MyCertStoreParameters(); in testGetInstanceStringCertStoreParametersProvider() local
159 parameters, provider); in testGetInstanceStringCertStoreParametersProvider()
162 assertNotSame(parameters, certStore.getCertStoreParameters()); in testGetInstanceStringCertStoreParametersProvider()
/libcore/ojluni/src/main/java/sun/nio/fs/
DAbstractPoller.java175 Object[] parameters() { in parameters() method in AbstractPoller.Request
254 Object[] params = req.parameters(); in processRequests()
267 Object[] params = req.parameters(); in processRequests()
/libcore/ojluni/src/main/java/sun/security/util/
DDisabledAlgorithmConstraints.java97 String algorithm, AlgorithmParameters parameters) { in permits() argument
122 String algorithm, Key key, AlgorithmParameters parameters) { in permits() argument
128 return checkConstraints(primitives, algorithm, key, parameters); in permits()
165 String algorithm, Key key, AlgorithmParameters parameters) { in checkConstraints() argument
174 if (!permits(primitives, algorithm, parameters)) { in checkConstraints()
/libcore/luni/src/test/parameter_metadata/
DAndroid.bp17 // This is a separate library so it can use the -parameters javac flag (to add parameter information
38 javacflags: ["-parameters"],
/libcore/ojluni/annotations/hiddenapi/java/lang/reflect/
DExecutable.java98 private void verifyParameters(java.lang.reflect.Parameter[] parameters) { in verifyParameters() argument
232 private transient volatile java.lang.reflect.Parameter[] parameters; field in Executable
239 libcore.reflect.ListOfTypes parameters, in GenericInfo() argument
/libcore/ojluni/src/main/java/sun/util/logging/
DPlatformLogger.java494 private String formatMessage(String format, Object... parameters) { in formatMessage() argument
497 if (parameters == null || parameters.length == 0) { in formatMessage()
508 return java.text.MessageFormat.format(format, parameters); in formatMessage()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyFactoryTest.java60 String[] parameters = { in testGetInstanceString() local
70 for (int i = 0; i < parameters.length; i++) { in testGetInstanceString()
71 String algorithm = parameters[i]; in testGetInstanceString()
/libcore/support/src/test/java/tests/resources/
Djunit4-4.3.1.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/ ...
/libcore/expectations/
Dknownfailures.txt368 description: "First Exception test fails: parameters not cleared.",