Home
last modified time | relevance | path

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

12345678910>>...14

/libcore/luni/src/test/java/libcore/java/util/
DCurrencyTest.java33 assertEquals("AED", Currency.getInstance("AED").getSymbol(Locale.CANADA)); in test_getSymbol_fallback()
39 Currency.getInstance("USD"); in test_getInstance_illegal_currency_code()
41 Currency.getInstance("BOGO-DOLLARS"); in test_getInstance_illegal_currency_code()
50 assertTrue(all.toString(), all.contains(Currency.getInstance("CHF"))); in testGetAvailableCurrencies()
51 assertTrue(all.toString(), all.contains(Currency.getInstance("EUR"))); in testGetAvailableCurrencies()
52 assertTrue(all.toString(), all.contains(Currency.getInstance("GBP"))); in testGetAvailableCurrencies()
53 assertTrue(all.toString(), all.contains(Currency.getInstance("JPY"))); in testGetAvailableCurrencies()
54 assertTrue(all.toString(), all.contains(Currency.getInstance("USD"))); in testGetAvailableCurrencies()
58 assertEquals("Swiss Franc", Currency.getInstance("CHF").getDisplayName(Locale.US)); in test_getDisplayName()
59 …assertEquals("Schweizer Franken", Currency.getInstance("CHF").getDisplayName(new Locale("de", "CH"… in test_getDisplayName()
[all …]
/libcore/luni/src/test/java/tests/targets/security/
DSignatureTestMD2withRSA.java38 Signature signature = Signature.getInstance("MD2withRSA"); in testSignature()
45 Signature signature = Signature.getInstance("MD2WithRSA"); in testSignature()
52 Signature signature = Signature.getInstance("MD2WITHRSA"); in testSignature()
59 Signature signature = Signature.getInstance("MD2withRSAEncryption"); in testSignature()
66 Signature signature = Signature.getInstance("MD2WithRSAEncryption"); in testSignature()
73 Signature signature = Signature.getInstance("MD2WITHRSAENCRYPTION"); in testSignature()
80 Signature signature = Signature.getInstance("MD2/RSA"); in testSignature()
87 Signature signature = Signature.getInstance("1.2.840.113549.1.1.2"); in testSignature()
100 Signature signature = Signature.getInstance("MD2withRSA"); in testSignature2()
101 signature = Signature.getInstance("MD2WithRSA"); in testSignature2()
[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.java51 KeyPairGenerator keyGen = KeyPairGenerator.getInstance("DSA"); in getDsaKeys()
60 KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA"); in getRsaKeys()
74 Signature s = Signature.getInstance("DSA"); in test_clone()
93 String alg = Signature.getInstance("DSA").getAlgorithm(); in test_getAlgorithm()
102 Signature.getInstance("DSA"); in test_getInstanceLjava_lang_String()
105 Signature.getInstance("bogus"); in test_getInstanceLjava_lang_String()
120 Signature signature = Signature.getInstance("DSA", providers[i]); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider()
126 Signature.getInstance((String) null, (Provider) null); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider()
132 Signature.getInstance("DSA", (Provider) null); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider()
138 Signature.getInstance((String) null, providers[0]); 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 …]
DSealedObjectTest.java103 KeyGenerator kg = KeyGenerator.getInstance("DES"); in testSealedObject1()
109 Cipher cipher = Cipher.getInstance("DES/CBC/PKCS5Padding"); in testSealedObject1()
114 cipher = Cipher.getInstance("DES/CBC/NoPadding"); in testSealedObject1()
157 KeyGenerator kg = KeyGenerator.getInstance(algorithm); in testGetAlgorithm()
160 Cipher cipher = Cipher.getInstance(algorithm); in testGetAlgorithm()
172 KeyGenerator kg = KeyGenerator.getInstance(algorithm); in testGetAlgorithmAfterSerialization()
175 Cipher cipher = Cipher.getInstance(algorithm); in testGetAlgorithmAfterSerialization()
202 KeyGenerator kg = KeyGenerator.getInstance("DES"); in testGetObject1()
208 Cipher cipher = Cipher.getInstance("DES/CBC/PKCS5Padding"); in testGetObject1()
246 KeyGenerator kg = KeyGenerator.getInstance("DES"); in testGetObject2()
[all …]
DSecretKeyFactoryTest.java104 skF[0] = SecretKeyFactory.getInstance(defaultAlgorithm); in createSKFac()
105 skF[1] = SecretKeyFactory.getInstance(defaultAlgorithm, in createSKFac()
107 skF[2] = SecretKeyFactory.getInstance(defaultAlgorithm, in createSKFac()
153 SecretKeyFactory.getInstance(null); in testSecretKeyFactory02()
160 SecretKeyFactory.getInstance(invalidValues[i]); in testSecretKeyFactory02()
178 .getInstance(validValues[i]); in testSecretKeyFactory03()
198 SecretKeyFactory.getInstance(null, defaultProviderName); in testSecretKeyFactory04()
205 SecretKeyFactory.getInstance(invalidValues[i], in testSecretKeyFactory04()
230 SecretKeyFactory.getInstance(validValues[i], prov); in testSecretKeyFactory05()
236 SecretKeyFactory.getInstance(validValues[i], ""); in testSecretKeyFactory05()
[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/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/luni/src/test/java/libcore/java/security/
DSignatureTest.java68 Signature s = Signature.getInstance("FOO", mockProvider); in testSignature_getInstance_SuppliedProviderNotRegistered_Success()
90 Signature s = Signature.getInstance("FOO", mockProvider2); in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
123 Signature s = Signature.getInstance("FOO"); in testSignature_getInstance_DelayedInitialization_KeyType()
141 Signature s = Signature.getInstance("FOO"); in testSignature_getInstance_DelayedInitialization_KeyType()
162 Signature s = Signature.getInstance("FOO"); in testSignature_getInstance_DelayedInitialization_KeyType()
251 Signature sig1 = Signature.getInstance(algorithm); in test_getInstance()
256 Signature sig2 = Signature.getInstance(algorithm, provider); in test_getInstance()
262 Signature sig3 = Signature.getInstance(algorithm, provider.getName()); in test_getInstance()
296 kp = KeyPairGenerator.getInstance(kpAlgorithm).generateKeyPair(); in keyPair()
377 KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in test18566()
[all …]
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLContextTest.java75 SSLContext newContext = SSLContext.getInstance(protocol); in test_SSLContext_setDefault()
88 SSLContext sslContext = SSLContext.getInstance(protocol); in test_SSLContext_defaultConfiguration()
99 SSLContext sslContext = SSLContext.getInstance("TLS"); in test_SSLContext_pskOnlyConfiguration_defaultProviderOnly()
114 SSLContext sslContext = SSLContext.getInstance("TLS"); in test_SSLContext_x509AndPskConfiguration_defaultProviderOnly()
127 sslContext = SSLContext.getInstance("TLS"); in test_SSLContext_x509AndPskConfiguration_defaultProviderOnly()
142 SSLContext sslContext = SSLContext.getInstance("TLS"); in test_SSLContext_emptyConfiguration_defaultProviderOnly()
186 SSLContext.getInstance(null); in test_SSLContext_getInstance()
191 assertNotNull(SSLContext.getInstance(protocol)); in test_SSLContext_getInstance()
192 assertNotSame(SSLContext.getInstance(protocol), in test_SSLContext_getInstance()
193 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.java115 CertPathBuilder.getInstance(null); in testGetInstance01()
122 CertPathBuilder.getInstance(invalidValues[i]); in testGetInstance01()
130 cerPB = CertPathBuilder.getInstance(validValues[i]); in testGetInstance01()
150 CertPathBuilder.getInstance(null, mProv.getName()); in testGetInstance02()
157 CertPathBuilder.getInstance(invalidValues[i], mProv in testGetInstance02()
167 CertPathBuilder.getInstance(validValues[i], prov); in testGetInstance02()
173 CertPathBuilder.getInstance(validValues[i], ""); in testGetInstance02()
182 CertPathBuilder.getInstance(validValues[i], in testGetInstance02()
193 cerPB = CertPathBuilder.getInstance(validValues[i], mProv in testGetInstance02()
214 CertPathBuilder.getInstance(null, mProv); in testGetInstance03()
[all …]
DCertPathValidator2Test.java111 CertPathValidator.getInstance(null); in testGetInstance01()
118 CertPathValidator.getInstance(invalidValues[i]); in testGetInstance01()
126 cerPV = CertPathValidator.getInstance(validValues[i]); in testGetInstance01()
145 CertPathValidator.getInstance(null, mProv.getName()); in testGetInstance02()
152 CertPathValidator.getInstance(invalidValues[i], mProv.getName()); in testGetInstance02()
161 CertPathValidator.getInstance(validValues[i], prov); in testGetInstance02()
167 CertPathValidator.getInstance(validValues[i], ""); in testGetInstance02()
176 CertPathValidator.getInstance(validValues[i], invalidValues[j]); in testGetInstance02()
185 cerPV = CertPathValidator.getInstance(validValues[i], mProv.getName()); in testGetInstance02()
202 CertPathValidator.getInstance(null, mProv); in testGetInstance03()
[all …]
/libcore/luni/src/test/java/libcore/java/text/
DOldNumberFormatTest.java65 NumberFormat format = NumberFormat.getInstance(); in test_setMaximumIntegerDigits()
76 Currency currA = Currency.getInstance("ARS"); in test_setCurrencyLjava_util_Currency()
77 NumberFormat format = NumberFormat.getInstance(new Locale("hu", "HU")); in test_setCurrencyLjava_util_Currency()
91 NumberFormat.getInstance().setCurrency(null); in test_setCurrencyLjava_util_Currency()
107 assertNull(NumberFormat.getInstance().parseObject("0", in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
110 parseObjectTest(NumberFormat.getInstance(), "123.123", in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
113 parseObjectTest(NumberFormat.getInstance(), "123.123abc123", in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
116 parseObjectTest(NumberFormat.getInstance(Locale.FRANCE), "asd123,123abc123", in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
119 parseObjectTest(NumberFormat.getInstance(Locale.FRANCE), "test test", in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
145 NumberFormat.getInstance().parseObject("test", null); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
[all …]

12345678910>>...14