Home
last modified time | relevance | path

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

12345678910>>...25

/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherTest.java46 put("Cipher.FOO", MockCipherSpi.AllKeyTypes.class.getName()); in testCipher_getInstance_SuppliedProviderNotRegistered_Success()
60 put("Cipher.FOO", MockCipherSpi.AllKeyTypes.class.getName()); in testCipher_getInstance_DoesNotSupportKeyClass_Success()
71 Security.removeProvider(mockProvider.getName()); in testCipher_getInstance_DoesNotSupportKeyClass_Success()
79 put("Cipher.FOO", MockCipherSpi.AllKeyTypes.class.getName()); in testCipher_getInstance_SuppliedProviderNotRegistered_MultipartTransform_Success()
94 put("Cipher.FOO", MockCipherSpi.AllKeyTypes.class.getName()); in testCipher_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
103 put("Cipher.FOO", MockCipherSpi.AllKeyTypes.class.getName()); in testCipher_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
110 Security.removeProvider(mockProvider.getName()); in testCipher_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
117 put("Cipher.FOO", MockCipherSpi.SpecificKeyTypes.class.getName()); in testCipher_getInstance_DelayedInitialization_KeyType()
118 put("Cipher.FOO SupportedKeyClasses", MockKey.class.getName()); in testCipher_getInstance_DelayedInitialization_KeyType()
123 put("Cipher.FOO", MockCipherSpi.SpecificKeyTypes2.class.getName()); in testCipher_getInstance_DelayedInitialization_KeyType()
[all …]
DKeyAgreementTest.java42 put("KeyAgreement.FOO", MockKeyAgreementSpi.AllKeyTypes.class.getName()); in testKeyAgreement_getInstance_SuppliedProviderNotRegistered_Success()
58 put("KeyAgreement.FOO", MockKeyAgreementSpi.AllKeyTypes.class.getName()); in testKeyAgreement_getInstance_DoesNotSupportKeyClass_Success()
69 Security.removeProvider(mockProvider.getName()); in testKeyAgreement_getInstance_DoesNotSupportKeyClass_Success()
83 put("KeyAgreement.FOO", MockKeyAgreementSpi.AllKeyTypes.class.getName()); in testKeyAgreement_init_DoesNotSupportKeyClass_throwsInvalidKeyException()
95 Security.removeProvider(mockProvider.getName()); in testKeyAgreement_init_DoesNotSupportKeyClass_throwsInvalidKeyException()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DIllegalStateExceptionTest.java51 assertEquals(emptyThrowable.getClass().getName(), emptyException.getMessage()); in test_ConstructorLjava_lang_Throwable()
52 assertEquals(emptyThrowable.getClass().getName(), emptyException.getLocalizedMessage()); in test_ConstructorLjava_lang_Throwable()
53 assertEquals(emptyThrowable.getClass().getName(), emptyException.getCause().toString()); in test_ConstructorLjava_lang_Throwable()
57 assertEquals(throwable.getClass().getName() + ": " + "msg", exception.getMessage()); in test_ConstructorLjava_lang_Throwable()
58 assertEquals(throwable.getClass().getName(), emptyException.getLocalizedMessage()); in test_ConstructorLjava_lang_Throwable()
59 assertEquals(throwable.getClass().getName(), emptyException.getCause().toString()); in test_ConstructorLjava_lang_Throwable()
70 assertEquals(emptyThrowable.getClass().getName(), emptyException.getCause().toString()); in test_ConstructorLjava_lang_StringLjava_lang_Throwable()
76 assertEquals(throwable.getClass().getName() + ": " + throwable.getMessage(), exception in test_ConstructorLjava_lang_StringLjava_lang_Throwable()
DUnsupportedOperationExceptionTest.java52 assertEquals(emptyThrowable.getClass().getName(), emptyException.getMessage()); in test_ConstructorLjava_lang_Throwable()
53 assertEquals(emptyThrowable.getClass().getName(), emptyException.getLocalizedMessage()); in test_ConstructorLjava_lang_Throwable()
54 assertEquals(emptyThrowable.getClass().getName(), emptyException.getCause().toString()); in test_ConstructorLjava_lang_Throwable()
58 assertEquals(throwable.getClass().getName() + ": " + "msg", exception.getMessage()); in test_ConstructorLjava_lang_Throwable()
59 assertEquals(throwable.getClass().getName(), emptyException.getLocalizedMessage()); in test_ConstructorLjava_lang_Throwable()
60 assertEquals(throwable.getClass().getName(), emptyException.getCause().toString()); in test_ConstructorLjava_lang_Throwable()
72 assertEquals(emptyThrowable.getClass().getName(), emptyException.getCause().toString()); in test_ConstructorLjava_lang_StringLjava_lang_Throwable()
79 assertEquals(throwable.getClass().getName() + ": " + throwable.getMessage(), exception in test_ConstructorLjava_lang_StringLjava_lang_Throwable()
DRuntimeExceptionTest.java49 assertEquals(emptyThrowable.getClass().getName(), emptyException.getMessage()); in test_ConstructorLjava_lang_Throwable()
50 assertEquals(emptyThrowable.getClass().getName(), emptyException.getLocalizedMessage()); in test_ConstructorLjava_lang_Throwable()
51 assertEquals(emptyThrowable.getClass().getName(), emptyException.getCause().toString()); in test_ConstructorLjava_lang_Throwable()
55 assertEquals(throwable.getClass().getName() + ": " + "msg", exception.getMessage()); in test_ConstructorLjava_lang_Throwable()
56 assertEquals(throwable.getClass().getName(), emptyException.getLocalizedMessage()); in test_ConstructorLjava_lang_Throwable()
57 assertEquals(throwable.getClass().getName(), emptyException.getCause().toString()); in test_ConstructorLjava_lang_Throwable()
DIllegalArgumentExceptionTest.java51 assertEquals(emptyThrowable.getClass().getName(), emptyException.getMessage()); in test_ConstructorLjava_lang_Throwable()
52 assertEquals(emptyThrowable.getClass().getName(), emptyException.getLocalizedMessage()); in test_ConstructorLjava_lang_Throwable()
53 assertEquals(emptyThrowable.getClass().getName(), emptyException.getCause().toString()); in test_ConstructorLjava_lang_Throwable()
57 assertEquals(exception.getClass().getName() + ": " + "msg", e.getMessage()); in test_ConstructorLjava_lang_Throwable()
58 assertEquals(exception.getClass().getName(), emptyException.getLocalizedMessage()); in test_ConstructorLjava_lang_Throwable()
59 assertEquals(exception.getClass().getName(), emptyException.getCause().toString()); in test_ConstructorLjava_lang_Throwable()
DTypeNotPresentExceptionTest.java32 e = new TypeNotPresentException(getClass().getName(), null); in test_constructorLjava_lang_StringLjava_lang_Throwable()
38 e = new TypeNotPresentException(getClass().getName(), npe); in test_constructorLjava_lang_StringLjava_lang_Throwable()
50 e = new TypeNotPresentException(getClass().getName(), null); in test_typeName()
51 assertEquals(getClass().getName(), e.typeName()); in test_typeName()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DOldAndroidClassTest.java32 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testNewInstance()
54 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testGetDeclaredMethod()
60 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testGetDeclaredMethodWithArgs()
70 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testGetDeclaredMethodPrivate()
76 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testGetSuperclass()
82 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testIsAssignableFrom()
89 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testGetConstructor()
95 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testGetModifiers()
100 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testGetMethod()
204 assertEquals(packageName, getClass().getPackage().getName()); in testClassGetPackage()
[all …]
DGenericExceptionsTest.java58 assertEquals("T", typeVariable.getName()); in testConstructorThrowingTypeVariable()
66 assertEquals("T", typeVariable.getName()); in testMethodThrowingTypeVariable()
74 assertEquals("X", typeVariable.getName()); in testThrowingMethodTypeParameter()
83 assertEquals("T", t.getName()); in testThrowingMethodThrowsEverything()
87 assertEquals("X", x.getName()); in testThrowingMethodThrowsEverything()
92 assertEquals("Expected a " + expectedType.getName() + " but was " + Arrays.toString(array), in getOnlyValue()
94 assertTrue("Expected a " + expectedType.getName() + " but was " + array[0], in getOnlyValue()
/libcore/ojluni/src/main/java/java/lang/reflect/
DMethod.java72 int comparison = a.getName().compareTo(b.getName());
82 comparison = aReturnType.getName().compareTo(bReturnType.getName());
113 public String getName() { in getName() method in Method
245 && (getName() == other.getName())) { in equals()
262 return getDeclaringClass().getName().hashCode() ^ getName().hashCode(); in hashCode()
303 sb.append(getName()); in specificToStringHeader()
355 sb.append(getName()); in specificToGenericStringHeader()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
DAttributeListImplTest.java74 assertEquals(multi.getName(i), attrs.getName(i)); in testSetAttributeList()
93 assertEquals("doe", multi.getName(3)); in testAddAttribute()
100 assertEquals("doe", multi.getName(4)); in testAddAttribute()
106 assertEquals(null, multi.getName(5)); in testAddAttribute()
114 assertEquals("bar", multi.getName(0)); in testRemoveAttribute()
141 ai.removeAttribute(ai.getName(i)); in testGetLength()
148 assertEquals("foo", multi.getName(0)); in testGetName()
149 assertEquals("bar", multi.getName(1)); in testGetName()
150 assertEquals("answer", multi.getName(2)); in testGetName()
153 assertEquals(null, multi.getName(-1)); in testGetName()
[all …]
/libcore/luni/src/test/java/libcore/java/security/
DProviderTest.java102 String providerName = provider.getName(); in test_Provider_getServices()
238 assertEquals(name, p.getName()); in assertProviderProperties()
239 assertEquals(className, p.getClass().getName()); in assertProviderProperties()
259 assertEquals(provider.getName(), in test_Provider_Properties()
265 assertEquals(provider.getClass().getName(), in test_Provider_Properties()
310 + " [provider=" + provider.getName() + "]"); in test_Provider_Properties()
320 " [provider=" + provider.getName() + "]", in test_Provider_Properties()
501 put("Fake.FOO", MockSpi.class.getName()); in testProviderService_supportsParameter_UnknownService_Success()
510 Security.removeProvider(provider.getName()); in testProviderService_supportsParameter_UnknownService_Success()
519 put("Signature.FOO", MockSpi.class.getName()); in testProviderService_supportsParameter_KnownService_NoClassInitialization_Success()
[all …]
DSecureRandomTest.java58 SecureRandom sr3 = SecureRandom.getInstance(algorithm, provider.getName()); in test_getInstance()
64 + provider.getName()); in test_getInstance()
67 + ", provider: " + provider.getName(), e); in test_getInstance()
99 assertEquals(EXPECTED_PROVIDER, sr.getProvider().getClass().getName()); in testGetCommonInstances_Success()
105 assertEquals(EXPECTED_PROVIDER, sr1.getProvider().getClass().getName()); in testNewConstructors_Success()
109 assertEquals(EXPECTED_PROVIDER, sr2.getProvider().getClass().getName()); in testNewConstructors_Success()
120 if (p.getClass().getName().equals("com.android.org.conscrypt.OpenSSLProvider")) { in testGetInstanceStrong()
134 weakProvider.put("SecureRandom.SHA1PRNG", ProviderTest.SecureRandom1.class.getName()); in testGetInstanceStrong()
145 Security.removeProvider(weakProvider.getName()); in testGetInstanceStrong()
DSignatureTest.java77 put("Signature.FOO", MockSignatureSpi.AllKeyTypes.class.getName()); in testSignature_getInstance_SuppliedProviderNotRegistered_Success()
92 put("Signature.FOO", MockSignatureSpi.AllKeyTypes.class.getName()); in testSignature_getInstance_DoesNotSupportKeyClass_Success()
103 Security.removeProvider(mockProvider.getName()); in testSignature_getInstance_DoesNotSupportKeyClass_Success()
117 put("Signature.FOO", MockSignatureSpi.AllKeyTypes.class.getName()); in testSignature_init_DoesNotSupportKeyClass_throwsInvalidKeyException()
129 Security.removeProvider(mockProvider.getName()); in testSignature_init_DoesNotSupportKeyClass_throwsInvalidKeyException()
138 put("Signature.FOO", MockSignatureSpi.AllKeyTypes.class.getName()); in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
148 put("Signature.FOO", MockSignatureSpi.AllKeyTypes.class.getName()); in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
155 Security.removeProvider(mockProvider.getName()); in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
163 put("Signature.FOO", MockSignatureSpi.SpecificKeyTypes.class.getName()); in testSignature_getInstance_DelayedInitialization_KeyType()
164 put("Signature.FOO SupportedKeyClasses", MockPrivateKey.class.getName()); in testSignature_getInstance_DelayedInitialization_KeyType()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DTypeVariableTest.java37 assertEquals("T", typeVariable.getName()); in testSimpleTypeVariableOnClass()
55 assertEquals("T", typeVariable.getName()); in testSimpleTypeVariableOnMethod()
73 assertEquals("T", typeVariable.getName()); in testSimpleTypeVariableOnConstructor()
86 assertEquals("Q", typeParameters[0].getName()); in testMultipleTypeVariablesOnClass()
91 assertEquals("R", typeParameters[1].getName()); in testMultipleTypeVariablesOnClass()
96 assertEquals("S", typeParameters[2].getName()); in testMultipleTypeVariablesOnClass()
111 assertEquals("Q", typeParameters[0].getName()); in testMultipleTypeVariablesOnMethod()
116 assertEquals("R", typeParameters[1].getName()); in testMultipleTypeVariablesOnMethod()
121 assertEquals("S", typeParameters[2].getName()); in testMultipleTypeVariablesOnMethod()
136 assertEquals("Q", typeParameters[0].getName()); in testMultipleTypeVariablesOnConstructor()
[all …]
/libcore/luni/src/test/java/tests/security/cert/
DPKIXCertPathValidatorResultTest.java75 fail(getName() + ": not performed (could not create test TrustAnchor)"); in testPKIXCertPathValidatorResult01()
110 fail(getName() + ": not performed (could not create test TrustAnchor)"); in testPKIXCertPathValidatorResult03()
131 fail(getName() + ": not performed (could not create test TrustAnchor)"); in testPKIXCertPathValidatorResult04()
149 fail(getName() + ": not performed (could not create test TrustAnchor)"); in testGetTrustAnchor()
172 fail(getName() + ": not performed (could not create test TrustAnchor)"); in testGetPublicKey()
198 fail(getName() + ": not performed (could not create test TrustAnchor)"); in testGetPolicyTree01()
225 fail(getName() + ": not performed (could not create test TrustAnchor)"); in testGetPolicyTree02()
249 fail(getName() + ": not performed (could not create test TrustAnchor)"); in testClone()
300 fail(getName() + ": not performed (could not create test TrustAnchor)"); in testToString01()
321 fail(getName() + ": not performed (could not create test TrustAnchor)"); in testToString02()
DPKIXCertPathBuilderResultTest.java84 fail(getName() + ": not performed (could not create test TrustAnchor)"); in testPKIXCertPathBuilderResult01()
107 fail(getName() + ": not performed (could not create test TrustAnchor)"); in testPKIXCertPathBuilderResult02()
127 fail(getName() + ": not performed (could not create test TrustAnchor)"); in testPKIXCertPathBuilderResult03()
170 fail(getName() + ": not performed (could not create test TrustAnchor)"); in testPKIXCertPathBuilderResult05()
188 assertNotNull(getName() in test_clone()
213 fail(getName() + ": not performed (could not create test TrustAnchor)"); in testGetCertPath()
240 fail(getName() + ": not performed (could not create test TrustAnchor)"); in testToString()
/libcore/luni/src/test/java/libcore/xml/
DPullParserDtdTest.java87 assertEquals("foo", parser.getName()); in testExternalDtdIsSilentlyIgnored()
89 assertEquals("foo", parser.getName()); in testExternalDtdIsSilentlyIgnored()
142 assertEquals("p", parser.getName()); in testExpansionOfEntityAndCharacterReferences()
148 assertEquals("p", parser.getName()); in testExpansionOfEntityAndCharacterReferences()
171 assertEquals("foo", parser.getName()); in testStructuredEntityAndNextToken()
175 assertEquals("bb", parser.getName()); in testStructuredEntityAndNextToken()
178 assertEquals("bar", parser.getName()); in testStructuredEntityAndNextToken()
184 assertEquals("bar", parser.getName()); in testStructuredEntityAndNextToken()
239 assertEquals("foo", parser.getName()); in testDtdDoesNotInformIgnorableWhitespace()
243 assertEquals("bar", parser.getName()); in testDtdDoesNotInformIgnorableWhitespace()
[all …]
/libcore/luni/src/test/java/libcore/java/util/logging/
DOldLoggerTest.java65 assertEquals("global", Logger.global.getName()); in testGlobalLogger()
80 assertEquals("myname", mlog.getName()); in testConstructor_Normal()
93 assertNull(mlog.getName()); in testConstructor_Null()
103 assertEquals("...#$%%^&&()-_+=!@~./,[]{};:'\\\"?|", mlog.getName()); in testConstructor_InvalidName()
111 assertEquals("", mlog.getName()); in testConstructor_EmptyName()
145 assertEquals("testGetLogger_WithParent_ParentLogger", pLog.getName()); in testGetLogger_WithParent()
158 .getName()); in testGetLogger_WithParent()
171 .getName()); in testGetLogger_WithParent()
178 .getName()); in testGetLogger_WithParent()
190 childOfChild.getName()); in testGetLogger_WithParent()
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/
DAbstractTest.java90 if (field.getName().contains("$") == false) { in assertImmutable()
92 assertTrue(Modifier.isFinal(field.getModifiers()), "Field:" + field.getName()); in assertImmutable()
94 … assertTrue(Modifier.isPrivate(field.getModifiers()), "Field:" + field.getName()); in assertImmutable()
95 assertTrue(Modifier.isFinal(field.getModifiers()), "Field:" + field.getName()); in assertImmutable()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DObjectStreamClassTest.java97 "getName returned incorrect name: " + osc.getName(), in test_getName()
99 osc.getName()); in test_getName()
133 "lookup returned wrong class: " + osc.getName(), in test_lookupLjava_lang_Class()
135 osc.getName()); in test_lookupLjava_lang_Class()
217 assertEquals("lookup returned wrong class: " + osc.getName(), in test_lookupAnyLjava_lang_Class()
219 .getName()); in test_lookupAnyLjava_lang_Class()
222 assertEquals("lookup returned wrong class: " + osc.getName(), in test_lookupAnyLjava_lang_Class()
224 osc.getName()); in test_lookupAnyLjava_lang_Class()
227 assertEquals("lookup returned wrong class: " + osc.getName(), in test_lookupAnyLjava_lang_Class()
229 osc.getName()); in test_lookupAnyLjava_lang_Class()
/libcore/luni/src/test/java/libcore/java/text/
DOldNumberFormatFieldTest.java33 assertEquals("field has wrong name", name, field.getName()); in test_ConstructorLjava_lang_String()
36 assertEquals("field has wrong name", null, field.getName()); in test_ConstructorLjava_lang_String()
80 protected String getName() { in getName() method in OldNumberFormatFieldTest.MyNumberFormat
81 return super.getName(); in getName()
/libcore/luni/src/test/java/libcore/java/nio/charset/
DModifiedUtf8Test.java44 fail("Should throw " + UTFDataFormatException.class.getName()); in test_decode_unexpectedEndOfStreamAfterC2_throws()
55 fail("Should throw " + UTFDataFormatException.class.getName()); in test_decode_unexpectedEndOfStreamAfterE0_throws()
80 fail("Should throw " + UTFDataFormatException.class.getName()); in test_decode_invalidByte_characterUnknown()
152 fail("Should throw " + ArrayIndexOutOfBoundsException.class.getName()); in test_decode_insufficientOutputSpace_throws()
161 fail("Should throw " + UTFDataFormatException.class.getName()); in test_decode_checkBadSecondByteOfTwo()
171 fail("Should throw " + UTFDataFormatException.class.getName()); in test_decode_checkBadSecondByteOfThree()
181 fail("Should throw " + UTFDataFormatException.class.getName()); in test_decode_checkBadThirdByteOfThree()
190 fail("Should throw " + ArrayIndexOutOfBoundsException.class.getName()); in test_decode_insufficientInput_throws()
293 fail("Should throw " + UTFDataFormatException.class.getName()); in test_encode_throws()
/libcore/luni/src/test/java/libcore/javax/security/auth/x500/
DX500PrincipalTest.java101 assertEquals(certBC.getSubjectX500Principal().getName(format), in testGetName()
102 certOpenSSL.getSubjectX500Principal().getName(format)); in testGetName()
103 assertEquals(certBC.getIssuerX500Principal().getName(format), in testGetName()
104 certOpenSSL.getIssuerX500Principal().getName(format)); in testGetName()
112 certBC.getSubjectX500Principal().getName(X500Principal.CANONICAL)); in testGetName()
169 fail("Expected " + IllegalArgumentException.class.getName() in expectExceptionInDNConstructor()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DDigestInputStreamTest.java92 fail(getName() + ": no MessageDigest algorithms available - test not performed"); in testDigestInputStream01()
133 fail(getName() + ": no MessageDigest algorithms available - test not performed"); in testRead01()
168 fail(getName() + ": no MessageDigest algorithms available - test not performed"); in testRead02()
203 fail(getName() + ": no MessageDigest algorithms available - test not performed"); in testRead03()
234 fail(getName() + ": no MessageDigest algorithms available - test not performed"); in testRead04()
313 fail(getName() + ": no MessageDigest algorithms available - test not performed"); in testReadbyteArrayintint01()
352 fail(getName() + ": no MessageDigest algorithms available - test not performed"); in testReadbyteArrayintint02()
402 fail(getName() + ": no MessageDigest algorithms available - test not performed"); in testReadbyteArrayintint03()
435 fail(getName() + ": no MessageDigest algorithms available - test not performed"); in testReadbyteArrayintint04()
474 fail(getName() + ": no MessageDigest algorithms available - test not performed"); in testReadbyteArrayintint05()
[all …]

12345678910>>...25