Home
last modified time | relevance | path

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

12345678910>>...16

/libcore/luni/src/test/java/libcore/java/util/
DCurrencyTest.java35 assertEquals("AED", Currency.getInstance("AED").getSymbol(Locale.CANADA)); in test_getSymbol_fallback()
41 Currency.getInstance("USD"); in test_getInstance_illegal_currency_code()
43 Currency.getInstance("BOGO-DOLLARS"); in test_getInstance_illegal_currency_code()
52 assertTrue(all.toString(), all.contains(Currency.getInstance("CHF"))); in testGetAvailableCurrencies()
53 assertTrue(all.toString(), all.contains(Currency.getInstance("EUR"))); in testGetAvailableCurrencies()
54 assertTrue(all.toString(), all.contains(Currency.getInstance("GBP"))); in testGetAvailableCurrencies()
55 assertTrue(all.toString(), all.contains(Currency.getInstance("JPY"))); in testGetAvailableCurrencies()
56 assertTrue(all.toString(), all.contains(Currency.getInstance("USD"))); in testGetAvailableCurrencies()
60 assertEquals("Swiss Franc", Currency.getInstance("CHF").getDisplayName(Locale.US)); in test_getDisplayName()
61 …assertEquals("Schweizer Franken", Currency.getInstance("CHF").getDisplayName(new Locale("de", "CH"… in test_getDisplayName()
[all …]
/libcore/luni/src/test/java/tests/targets/security/
DSignatureTestMD2withRSA.java36 Signature signature = Signature.getInstance("MD2withRSA"); in testSignature()
43 Signature signature = Signature.getInstance("MD2WithRSA"); in testSignature()
50 Signature signature = Signature.getInstance("MD2WITHRSA"); in testSignature()
57 Signature signature = Signature.getInstance("MD2withRSAEncryption"); in testSignature()
64 Signature signature = Signature.getInstance("MD2WithRSAEncryption"); in testSignature()
71 Signature signature = Signature.getInstance("MD2WITHRSAENCRYPTION"); in testSignature()
78 Signature signature = Signature.getInstance("MD2/RSA"); in testSignature()
85 Signature signature = Signature.getInstance("1.2.840.113549.1.1.2"); in testSignature()
97 Signature signature = Signature.getInstance("MD2withRSA"); in testSignature2()
98 signature = Signature.getInstance("MD2WithRSA"); in testSignature2()
[all …]
/libcore/luni/src/test/java/libcore/icu/
DTransliteratorTest.java29 Transliterator t = Transliterator.getInstance(id); in testAll()
36 Transliterator t = Transliterator.getInstance("Unknown"); in test_Unknown()
44 Transliterator t = Transliterator.getInstance(null); in test_null_id()
51 Transliterator t = Transliterator.getInstance("Any-Upper"); in test_Any_Upper()
57 Transliterator t = Transliterator.getInstance("Any-Lower"); in test_Any_Lower()
65 Transliterator t = Transliterator.getInstance("Greek-Latin"); in test_Greek_Latin()
67 t = Transliterator.getInstance("Latin-Ascii"); in test_Greek_Latin()
73 t = Transliterator.getInstance("Greek-Latin/BGN"); in test_Greek_Latin()
75 t = Transliterator.getInstance("Greek-Latin/UNGEGN"); in test_Greek_Latin()
80 Transliterator t = Transliterator.getInstance("Han-Latin"); in test_Han_Latin()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyPairGenerator4Test.java34 KeyPairGenerator gen = KeyPairGenerator.getInstance("DSA"); in test_genKeyPair()
43 String alg = KeyPairGenerator.getInstance("DSA").getAlgorithm(); in test_getAlgorithm()
51 KeyPairGenerator.getInstance("DSA"); in test_getInstanceLjava_lang_String()
65 KeyPairGenerator.getInstance("DSA", providers[i].getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
71 KeyPairGenerator.getInstance("DSA", ""); in test_getInstanceLjava_lang_StringLjava_lang_String()
82 Provider p = KeyPairGenerator.getInstance("DSA").getProvider(); in test_getProvider()
90 KeyPairGenerator keyPair = KeyPairGenerator.getInstance("DSA"); in test_initializeI()
99 KeyPairGenerator keyPair = KeyPairGenerator.getInstance("DSA"); in test_initializeILjava_security_SecureRandom()
110 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("DSA"); in test_initializeLjava_security_spec_AlgorithmParameterSpec()
116 KeyPairGenerator keyPair = KeyPairGenerator.getInstance("DSA"); in test_initializeLjava_security_spec_AlgorithmParameterSpec()
[all …]
DSignature2Test.java50 KeyPairGenerator keyGen = KeyPairGenerator.getInstance("DSA"); in getDsaKeys()
59 KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA"); in getRsaKeys()
71 Signature s = Signature.getInstance("DSA", new MySignatureProvider()); in test_clone()
78 s = Signature.getInstance("DSA"); in test_clone()
90 String alg = Signature.getInstance("DSA").getAlgorithm(); in test_getAlgorithm()
99 Signature.getInstance("DSA"); in test_getInstanceLjava_lang_String()
102 Signature.getInstance("bogus"); in test_getInstanceLjava_lang_String()
117 Signature signature = Signature.getInstance("DSA", providers[i]); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider()
123 Signature.getInstance((String) null, (Provider) null); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider()
129 Signature.getInstance("DSA", (Provider) null); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider()
[all …]
DKeyStore2Test.java61 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("DSA"); in getPrivateKey()
139 CertificateFactory cf = CertificateFactory.getInstance("X.509"); in creatCertificate()
143 KeyStore keyTest = KeyStore.getInstance(KeyStore.getDefaultType()); in creatCertificate()
168 CertificateFactory cf = CertificateFactory.getInstance("X.509"); in test_aliases()
172 KeyStore keyTest = KeyStore.getInstance(KeyStore.getDefaultType()); in test_aliases()
213 CertificateFactory cf = CertificateFactory.getInstance("X.509"); in test_containsAliasLjava_lang_String()
217 KeyStore keyTest = KeyStore.getInstance(KeyStore.getDefaultType()); in test_containsAliasLjava_lang_String()
250 CertificateFactory cf = CertificateFactory.getInstance("X.509"); in test_getCertificateLjava_lang_String()
254 KeyStore keyTest = KeyStore.getInstance(KeyStore.getDefaultType()); in test_getCertificateLjava_lang_String()
290 CertificateFactory cf = CertificateFactory.getInstance("X.509"); in test_getCertificateAliasLjava_security_cert_Certificate()
[all …]
DAlgorithmParameterGenerator1Test.java76 apg[0] = AlgorithmParameterGenerator.getInstance(validAlgName); in createAPGen()
77 apg[1] = AlgorithmParameterGenerator.getInstance(validAlgName, in createAPGen()
79 apg[2] = AlgorithmParameterGenerator.getInstance(validAlgName, in createAPGen()
98 AlgorithmParameterGenerator.getInstance(null); in testAlgorithmParameterGenerator01()
105 AlgorithmParameterGenerator.getInstance(invalidValues[i]); in testAlgorithmParameterGenerator01()
125 apg = AlgorithmParameterGenerator.getInstance(algs[i]); in testAlgorithmParameterGenerator02()
145 AlgorithmParameterGenerator.getInstance(algs[i], provider); in testAlgorithmParameterGenerator03()
150 AlgorithmParameterGenerator.getInstance(algs[i], ""); in testAlgorithmParameterGenerator03()
172 AlgorithmParameterGenerator.getInstance(algs[i], in testAlgorithmParameterGenerator04()
196 AlgorithmParameterGenerator.getInstance(null, validProviderName); in testAlgorithmParameterGenerator05()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherTest.java92 Cipher cipher = Cipher.getInstance("DESede/CBC/PKCS5Padding"); in test_getInstanceLjava_lang_String()
96 Cipher.getInstance("WrongAlgorithmName"); in test_getInstanceLjava_lang_String()
114 Cipher cipher = Cipher.getInstance("DES", providers[i].getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
118 cipher = Cipher.getInstance("DoBeDoBeDo", providers[i]); in test_getInstanceLjava_lang_StringLjava_lang_String()
125 Cipher.getInstance("DES", (String) null); in test_getInstanceLjava_lang_StringLjava_lang_String()
131 Cipher.getInstance("DES", "IHaveNotBeenConfigured"); in test_getInstanceLjava_lang_StringLjava_lang_String()
148 Cipher cipher = Cipher.getInstance("DES", providers[i]); in test_getInstanceLjava_lang_StringLjava_security_Provider()
153 Cipher.getInstance("DES", (Provider) null); in test_getInstanceLjava_lang_StringLjava_security_Provider()
159 Cipher.getInstance("WrongAlg", providers[0]); in test_getInstanceLjava_lang_StringLjava_security_Provider()
176 Cipher cipher = Cipher.getInstance("AES", provider.getName()); in test_getProvider()
[all …]
DKeyGeneratorTest.java100 kg[0] = KeyGenerator.getInstance(defaultAlgorithm); in createKGs()
101 kg[1] = KeyGenerator.getInstance(defaultAlgorithm, defaultProvider); in createKGs()
102 kg[2] = KeyGenerator.getInstance(defaultAlgorithm, defaultProviderName); in createKGs()
159 KeyGenerator.getInstance(null); in testGetInstanceString01()
166 KeyGenerator.getInstance(invalidValues[i]); in testGetInstanceString01()
184 keyG = KeyGenerator.getInstance(validValues[i]); in testGetInstanceString02()
203 KeyGenerator.getInstance(null, defaultProviderName); in testGetInstanceStringString01()
210 KeyGenerator.getInstance(invalidValues[i], defaultProviderName); in testGetInstanceStringString01()
232 KeyGenerator.getInstance(validValues[i], provider); in testGetInstanceStringString02()
237 KeyGenerator.getInstance(validValues[i], ""); in testGetInstanceStringString02()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCurrencyTest.java59 Currency c0 = Currency.getInstance("CAD"); in test_getInstanceLjava_util_Locale()
60 Currency c1 = Currency.getInstance(new Locale("en", "CA")); in test_getInstanceLjava_util_Locale()
64 Currency c2 = Currency.getInstance(new Locale("fr", "CA")); in test_getInstanceLjava_util_Locale()
68 Currency c3 = Currency.getInstance(new Locale("", "CA")); in test_getInstanceLjava_util_Locale()
73 c0 = Currency.getInstance("JPY"); in test_getInstanceLjava_util_Locale()
74 c1 = Currency.getInstance(new Locale("ja", "JP")); in test_getInstanceLjava_util_Locale()
78 c2 = Currency.getInstance(new Locale("", "JP")); in test_getInstanceLjava_util_Locale()
82 c3 = Currency.getInstance(new Locale("bogus", "JP")); in test_getInstanceLjava_util_Locale()
88 Currency cGu = Currency.getInstance(localeGu); in test_getInstanceLjava_util_Locale()
90 Currency cKn = Currency.getInstance(localeKn); in test_getInstanceLjava_util_Locale()
[all …]
/libcore/luni/src/test/java/libcore/java/security/
DSignatureTest.java87 Signature s = Signature.getInstance("FOO", mockProvider); in testSignature_getInstance_SuppliedProviderNotRegistered_Success()
103 Signature s = Signature.getInstance("FOO", mockProvider); in testSignature_getInstance_DoesNotSupportKeyClass_Success()
127 Signature s = Signature.getInstance("FOO"); in testSignature_init_DoesNotSupportKeyClass_throwsInvalidKeyException()
152 Signature s = Signature.getInstance("FOO", mockProvider2); in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
185 Signature s = Signature.getInstance("FOO"); in testSignature_getInstance_DelayedInitialization_KeyType()
203 Signature s = Signature.getInstance("FOO"); in testSignature_getInstance_DelayedInitialization_KeyType()
224 Signature s = Signature.getInstance("FOO"); in testSignature_getInstance_DelayedInitialization_KeyType()
319 Signature sig1 = Signature.getInstance(algorithm); in test_getInstance()
324 Signature sig2 = Signature.getInstance(algorithm, provider); in test_getInstance()
330 Signature sig3 = Signature.getInstance(algorithm, provider.getName()); in test_getInstance()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DTrustManagerFactory1Test.java93 TrustManagerFactory.getInstance(getDefaultAlgorithm()), in createTMFac()
94 TrustManagerFactory.getInstance(getDefaultAlgorithm(), getDefaultProvider()), in createTMFac()
95 TrustManagerFactory.getInstance(getDefaultAlgorithm(), getDefaultProviderName()) in createTMFac()
132 .getInstance(getDefaultAlgorithm()).getAlgorithm()); in test_getAlgorithm()
136 .getInstance(getDefaultAlgorithm(), getDefaultProviderName()) in test_getAlgorithm()
140 TrustManagerFactory.getInstance(getDefaultAlgorithm(), getDefaultProvider()) in test_getAlgorithm()
174 TrustManagerFactory trustMF = TrustManagerFactory.getInstance(validValue); in test_getInstanceLjava_lang_String01()
189 TrustManagerFactory.getInstance(null); in test_getInstanceLjava_lang_String02()
196 TrustManagerFactory.getInstance(invalidValues[i]); in test_getInstanceLjava_lang_String02()
213 TrustManagerFactory.getInstance(validValue, (String) null); in test_getInstanceLjava_lang_StringLjava_lang_String01()
[all …]
DKeyManagerFactory1Test.java85 kMF[0] = KeyManagerFactory.getInstance(defaultAlgorithm); in createKMFac()
86 kMF[1] = KeyManagerFactory.getInstance(defaultAlgorithm, in createKMFac()
88 kMF[2] = KeyManagerFactory.getInstance(defaultAlgorithm, in createKMFac()
106 .getInstance(defaultAlgorithm).getAlgorithm()); in test_getAlgorithm()
110 .getInstance(defaultAlgorithm, defaultProviderName) in test_getAlgorithm()
114 KeyManagerFactory.getInstance(defaultAlgorithm, defaultProvider) in test_getAlgorithm()
158 keyMF = KeyManagerFactory.getInstance(validValues[i]); in test_getInstanceLjava_lang_String01()
173 KeyManagerFactory.getInstance(null); in test_getInstanceLjava_lang_String02()
180 KeyManagerFactory.getInstance(invalidValues[i]); in test_getInstanceLjava_lang_String02()
202 KeyManagerFactory.getInstance(validValues[i], provider); in test_getInstanceLjava_lang_StringLjava_lang_String01()
[all …]
DSSLContext1Test.java81 sslC[0] = SSLContext.getInstance(defaultProtocol); in createSSLCon()
82 sslC[1] = SSLContext.getInstance(defaultProtocol, defaultProvider); in createSSLCon()
83 sslC[2] = SSLContext.getInstance(defaultProtocol, in createSSLCon()
202 sslContext = SSLContext.getInstance(validValues[i]); in test_getInstanceLjava_lang_String01()
216 SSLContext.getInstance(null); in test_getInstanceLjava_lang_String02()
223 SSLContext.getInstance(invalidValues[i]); in test_getInstanceLjava_lang_String02()
245 SSLContext.getInstance(defaultProtocol, provider); in test_getInstanceLjava_lang_StringLjava_lang_String01()
250 SSLContext.getInstance(defaultProtocol, ""); in test_getInstanceLjava_lang_StringLjava_lang_String01()
268 SSLContext.getInstance(null, defaultProviderName); in test_getInstanceLjava_lang_StringLjava_lang_String02()
275 SSLContext.getInstance(invalidValues[i], defaultProviderName); in test_getInstanceLjava_lang_StringLjava_lang_String02()
[all …]
DKeyManagerFactory2Test.java103 kStore = KeyStore.getInstance(KeyStore.getDefaultType()); in checkResult()
129 KeyManagerFactory.getInstance(null); in test_getInstanceLjava_lang_String()
136 KeyManagerFactory.getInstance(invalidValues[i]); in test_getInstanceLjava_lang_String()
144 keyMF = KeyManagerFactory.getInstance(validValues[i]); in test_getInstanceLjava_lang_String()
166 KeyManagerFactory.getInstance(null, mProv.getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
174 .getInstance(invalidValues[i], mProv.getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
183 KeyManagerFactory.getInstance(validValues[i], prov); in test_getInstanceLjava_lang_StringLjava_lang_String()
189 KeyManagerFactory.getInstance(validValues[i], ""); in test_getInstanceLjava_lang_StringLjava_lang_String()
198 KeyManagerFactory.getInstance(validValues[i], in test_getInstanceLjava_lang_StringLjava_lang_String()
209 keyMF = KeyManagerFactory.getInstance(validValues[i], mProv in test_getInstanceLjava_lang_StringLjava_lang_String()
[all …]
DTrustManagerFactory2Test.java92 kStore = KeyStore.getInstance(KeyStore.getDefaultType()); in checkResult()
119 TrustManagerFactory.getInstance(null); in test_getInstanceLjava_lang_String()
126 TrustManagerFactory.getInstance(invalidValues[i]); in test_getInstanceLjava_lang_String()
134 tmf = TrustManagerFactory.getInstance(validValues[i]); in test_getInstanceLjava_lang_String()
156 TrustManagerFactory.getInstance(null, mProv.getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
163 TrustManagerFactory.getInstance(invalidValues[i], mProv in test_getInstanceLjava_lang_StringLjava_lang_String()
173 TrustManagerFactory.getInstance(validValues[i], prov); in test_getInstanceLjava_lang_StringLjava_lang_String()
179 TrustManagerFactory.getInstance(validValues[i], ""); in test_getInstanceLjava_lang_StringLjava_lang_String()
188 TrustManagerFactory.getInstance(validValues[i], in test_getInstanceLjava_lang_StringLjava_lang_String()
199 tmf = TrustManagerFactory.getInstance(validValues[i], mProv in test_getInstanceLjava_lang_StringLjava_lang_String()
[all …]
/libcore/ojluni/src/main/java/sun/security/ssl/
DJsseJce.java58 private final static Debug debug = Debug.getInstance("ssl");
224 return Cipher.getInstance(transformation); in getCipher()
226 return Cipher.getInstance(transformation, cryptoProvider); in getCipher()
241 return Signature.getInstance(algorithm); in getSignature()
254 return Signature.getInstance(algorithm, "SunJSSE"); in getSignature()
260 return Signature.getInstance(algorithm, cryptoProvider); in getSignature()
267 return KeyGenerator.getInstance(algorithm); in getKeyGenerator()
269 return KeyGenerator.getInstance(algorithm, cryptoProvider); in getKeyGenerator()
276 return KeyPairGenerator.getInstance(algorithm); in getKeyPairGenerator()
278 return KeyPairGenerator.getInstance(algorithm, cryptoProvider); in getKeyPairGenerator()
[all …]
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLContextTest.java74 SSLContext newContext = SSLContext.getInstance(protocol); in test_SSLContext_setDefault()
87 SSLContext sslContext = SSLContext.getInstance(protocol); in test_SSLContext_defaultConfiguration()
98 SSLContext sslContext = SSLContext.getInstance("TLS"); in test_SSLContext_pskOnlyConfiguration_defaultProviderOnly()
113 SSLContext sslContext = SSLContext.getInstance("TLS"); in test_SSLContext_x509AndPskConfiguration_defaultProviderOnly()
126 sslContext = SSLContext.getInstance("TLS"); in test_SSLContext_x509AndPskConfiguration_defaultProviderOnly()
141 SSLContext sslContext = SSLContext.getInstance("TLS"); in test_SSLContext_emptyConfiguration_defaultProviderOnly()
158 SSLContext context = SSLContext.getInstance(tlsVersion); in test_SSLContext_init_correctProtocolVersionsEnabled()
206 SSLContext.getInstance(null); in test_SSLContext_getInstance()
211 assertNotNull(SSLContext.getInstance(protocol)); in test_SSLContext_getInstance()
212 assertNotSame(SSLContext.getInstance(protocol), in test_SSLContext_getInstance()
[all …]
/libcore/luni/src/test/java/tests/security/cert/
DCertificateFactory4Test.java61 CertificateFactory fact = CertificateFactory.getInstance("X.509"); in test_generateCertificateLjava_io_InputStream()
90 CertificateFactory fact = CertificateFactory.getInstance("X.509"); in test_generateCertificatesLjava_io_InputStream()
112 CertificateFactory fact = CertificateFactory.getInstance("X.509"); in test_generateCRLLjava_io_InputStream()
133 CertificateFactory fact = CertificateFactory.getInstance("X.509"); in test_generateCRLsLjava_io_InputStream()
154 CertificateFactory fact = CertificateFactory.getInstance("X.509"); in test_getInstanceLjava_lang_String()
172 CertificateFactory fact = CertificateFactory.getInstance( in test_getInstanceLjava_lang_StringLjava_lang_String()
182 CertificateFactory.getInstance("X.509", "IHaventBeenConfigured"); in test_getInstanceLjava_lang_StringLjava_lang_String()
195 Provider p = CertificateFactory.getInstance("X.509").getProvider(); in test_getProvider()
206 CertificateFactory.getInstance("X.509").generateCRL( in testGenerateCRLs2()
219 CertificateFactory.getInstance("X.509").generateCertificate(null); in testGenerateCertificate()
[all …]
DCertPathBuilder1Test.java84 certPBs[0] = CertPathBuilder.getInstance(defaultType); in createCPBs()
85 certPBs[1] = CertPathBuilder.getInstance(defaultType, in createCPBs()
87 certPBs[2] = CertPathBuilder.getInstance(defaultType, in createCPBs()
116 CertPathBuilder.getInstance(null); in testCertPathBuilder02()
122 CertPathBuilder.getInstance(invalidValues[i]); in testCertPathBuilder02()
139 CertPathBuilder cpb = CertPathBuilder.getInstance(validValues[i]); in testCertPathBuilder03()
158 CertPathBuilder.getInstance(validValues[i], provider); in testCertPathBuilder04()
163 CertPathBuilder.getInstance(validValues[i], ""); in testCertPathBuilder04()
184 CertPathBuilder.getInstance(validValues[i], invalidValues[j]); in testCertPathBuilder05()
204 CertPathBuilder.getInstance(null, defaultProviderName); in testCertPathBuilder06()
[all …]
DCertPathValidator1Test.java81 certPVs[0] = CertPathValidator.getInstance(defaultType); in createCPVs()
82 certPVs[1] = CertPathValidator.getInstance(defaultType, in createCPVs()
84 certPVs[2] = CertPathValidator.getInstance(defaultType, in createCPVs()
131 CertPathValidator.getInstance(null); in testCertPathValidator02()
138 CertPathValidator.getInstance(invalidValues[i]); in testCertPathValidator02()
155 certPV = CertPathValidator.getInstance(validValues[i]); in testCertPathValidator03()
174 CertPathValidator.getInstance(validValues[i], provider); in testCertPathValidator04()
179 CertPathValidator.getInstance(validValues[i], ""); in testCertPathValidator04()
198 CertPathValidator.getInstance(validValues[t], in testCertPathValidator05()
220 CertPathValidator.getInstance(null, defaultProviderName); in testCertPathValidator06()
[all …]
DCertStore1Test.java116 ss[0] = CertStore.getInstance(dType, dParams); in createCS()
117 ss[1] = CertStore.getInstance(dType, dParams, dProv); in createCS()
118 ss[2] = CertStore.getInstance(dType, dParams, dName); in createCS()
192 CertStore.getInstance(null, dParams); in testCertStore03()
199 CertStore.getInstance(invalidValues[i], dParams); in testCertStore03()
217 certS = CertStore.getInstance(dValid[i], dParams); in testCertStore05()
237 CertStore.getInstance(dValid[i], dParams, provider); in testCertStore06()
242 CertStore.getInstance(dValid[i], dParams, ""); in testCertStore06()
261 CertStore.getInstance(dValid[i], dParams, invalidValues[j]); in testCertStore07()
282 CertStore.getInstance(invalidValues[i], dParams, dName); in testCertStore08()
[all …]
DCertPathBuilder2Test.java102 CertPathBuilder.getInstance(null); in testGetInstance01()
109 CertPathBuilder.getInstance(invalidValues[i]); in testGetInstance01()
117 cerPB = CertPathBuilder.getInstance(validValues[i]); in testGetInstance01()
137 CertPathBuilder.getInstance(null, mProv.getName()); in testGetInstance02()
144 CertPathBuilder.getInstance(invalidValues[i], mProv in testGetInstance02()
153 CertPathBuilder.getInstance(validValues[i], (Provider) null); in testGetInstance02()
159 CertPathBuilder.getInstance(validValues[i], ""); in testGetInstance02()
168 CertPathBuilder.getInstance(validValues[i], in testGetInstance02()
179 cerPB = CertPathBuilder.getInstance(validValues[i], mProv in testGetInstance02()
200 CertPathBuilder.getInstance(null, mProv); in testGetInstance03()
[all …]
/libcore/ojluni/src/main/java/sun/security/jca/
DGetInstance.java152 public static Instance getInstance(String type, Class clazz, in getInstance() method in GetInstance
164 return getInstance(firstService, clazz); in getInstance()
176 return getInstance(s, clazz); in getInstance()
184 public static Instance getInstance(String type, Class clazz, in getInstance() method in GetInstance
190 return getInstance(s, clazz, param); in getInstance()
203 public static Instance getInstance(String type, Class clazz, in getInstance() method in GetInstance
206 return getInstance(getService(type, algorithm, provider), clazz); in getInstance()
209 public static Instance getInstance(String type, Class clazz, in getInstance() method in GetInstance
212 return getInstance(getService(type, algorithm, provider), clazz, param); in getInstance()
215 public static Instance getInstance(String type, Class clazz, in getInstance() method in GetInstance
[all …]
/libcore/luni/src/test/java/libcore/java/text/
DOldNumberFormatTest.java66 NumberFormat format = NumberFormat.getInstance(); in test_setMaximumIntegerDigits()
77 Currency currA = Currency.getInstance("ARS"); in test_setCurrencyLjava_util_Currency()
78 NumberFormat format = NumberFormat.getInstance(new Locale("hu", "HU")); in test_setCurrencyLjava_util_Currency()
92 NumberFormat.getInstance().setCurrency(null); in test_setCurrencyLjava_util_Currency()
108 assertNull(NumberFormat.getInstance().parseObject("0", in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
111 parseObjectTest(NumberFormat.getInstance(), "123.123", in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
114 parseObjectTest(NumberFormat.getInstance(), "123.123abc123", in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
117 parseObjectTest(NumberFormat.getInstance(Locale.FRANCE), "asd123,123abc123", in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
120 parseObjectTest(NumberFormat.getInstance(Locale.FRANCE), "test test", in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
146 NumberFormat.getInstance().parseObject("test", null); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
[all …]

12345678910>>...16