Home
last modified time | relevance | path

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

12345678910>>...29

/libcore/ojluni/src/test/java/lang/StackWalker/
DReflectionFrames.java94 List.of(StackInspector.class.getName() in testNewStackInspector()
96 StackInspector.Caller.class.getName() in testNewStackInspector()
98 ReflectionFrames.class.getName() in testNewStackInspector()
116 List.of(StackInspector.class.getName() in testNewStackInspector()
118 StackInspector.Caller.class.getName() in testNewStackInspector()
120 StackInspector.Caller.class.getName() in testNewStackInspector()
122 ReflectionFrames.class.getName() in testNewStackInspector()
140 List.of(StackInspector.class.getName() in testNewStackInspector()
142 StackInspector.Caller.class.getName() in testNewStackInspector()
144 StackInspector.Caller.class.getName() in testNewStackInspector()
[all …]
/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/javax/security/auth/x500/
DX500PrincipalTest.java52 String resName = xpr.getName(); in test_X500Principal_01()
153 String resName = xpr.getName(); in test_getName()
168 String resName = xpr.getName(X500Principal.CANONICAL); in test_getName_Format()
176 String resName = xpr.getName(X500Principal.RFC1779); in test_getName_Format()
183 String resName = xpr.getName(X500Principal.RFC2253); in test_getName_Format()
190 String resName = xpr.getName(null); in test_getName_Format()
195 String resName = xpr.getName("RFC2254"); in test_getName_Format()
283 String name = principal.getName(); in test_ConstructorLjava_lang_String()
297 String name = X500p.getName(); in test_ConstructorLjava_lang_String_java_util_Map()
308 String canonical = principal.getName(X500Principal.CANONICAL); in test_getNameLjava_lang_String()
[all …]
/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/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/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.java93 String providerName = provider.getName(); in test_Provider_getServices()
248 assertEquals(name, p.getName()); in assertProviderProperties()
249 assertEquals(className, p.getClass().getName()); in assertProviderProperties()
269 assertEquals(provider.getName(), in test_Provider_Properties()
275 assertEquals(provider.getClass().getName(), in test_Provider_Properties()
320 + " [provider=" + provider.getName() + "]"); in test_Provider_Properties()
330 " [provider=" + provider.getName() + "]", in test_Provider_Properties()
511 put("Fake.FOO", MockSpi.class.getName()); in testProviderService_supportsParameter_UnknownService_Success()
520 Security.removeProvider(provider.getName()); in testProviderService_supportsParameter_UnknownService_Success()
529 put("Signature.FOO", MockSpi.class.getName()); in testProviderService_supportsParameter_KnownService_NoClassInitialization_Success()
[all …]
DSignatureTest.java67 put("Signature.FOO", MockSignatureSpi.AllKeyTypes.class.getName()); in testSignature_getInstance_SuppliedProviderNotRegistered_Success()
82 put("Signature.FOO", MockSignatureSpi.AllKeyTypes.class.getName()); in testSignature_getInstance_DoesNotSupportKeyClass_Success()
93 Security.removeProvider(mockProvider.getName()); in testSignature_getInstance_DoesNotSupportKeyClass_Success()
107 put("Signature.FOO", MockSignatureSpi.AllKeyTypes.class.getName()); in testSignature_init_DoesNotSupportKeyClass_throwsInvalidKeyException()
119 Security.removeProvider(mockProvider.getName()); in testSignature_init_DoesNotSupportKeyClass_throwsInvalidKeyException()
128 put("Signature.FOO", MockSignatureSpi.AllKeyTypes.class.getName()); in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
138 put("Signature.FOO", MockSignatureSpi.AllKeyTypes.class.getName()); in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
145 Security.removeProvider(mockProvider.getName()); in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
153 put("Signature.FOO", MockSignatureSpi.SpecificKeyTypes.class.getName()); in testSignature_getInstance_DelayedInitialization_KeyType()
154 put("Signature.FOO SupportedKeyClasses", MockPrivateKey.class.getName()); in testSignature_getInstance_DelayedInitialization_KeyType()
[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()
/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/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/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/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DObjectStreamClassTest.java100 "getName returned incorrect name: " + osc.getName(), in test_getName()
102 osc.getName()); in test_getName()
136 "lookup returned wrong class: " + osc.getName(), in test_lookupLjava_lang_Class()
138 osc.getName()); in test_lookupLjava_lang_Class()
220 assertEquals("lookup returned wrong class: " + osc.getName(), in test_lookupAnyLjava_lang_Class()
222 .getName()); in test_lookupAnyLjava_lang_Class()
225 assertEquals("lookup returned wrong class: " + osc.getName(), in test_lookupAnyLjava_lang_Class()
227 osc.getName()); in test_lookupAnyLjava_lang_Class()
230 assertEquals("lookup returned wrong class: " + osc.getName(), in test_lookupAnyLjava_lang_Class()
232 osc.getName()); in test_lookupAnyLjava_lang_Class()
/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 …]
/libcore/luni/src/test/java/libcore/java/security/cert/
DX509CertificateTest.java315 out.append("Error encountered checking " + p.getName() + "\n"); in test_Provider()
362 if (p.getName().startsWith("AndroidKeyStore")) { in verify()
366 c.verify(signer, p.getName()); in verify()
369 c.verify(invalidKey, p.getName()); in verify()
489 princ.getName()); in getIssuerDN()
491 if ("BC".equals(f.getProvider().getName())) { in getIssuerDN()
493 assertEquals(f.getProvider().getName(), in getIssuerDN()
495 princ.getName()); in getIssuerDN()
498 princ.getName()); in getIssuerDN()
524 princ.getName()); in getIssuerX500Principal()
[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()

12345678910>>...29