Home
last modified time | relevance | path

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

12345678910>>...17

/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/security/
DProviderTest.java72 String providerName = provider.getName(); in test_Provider_getServices()
171 assertEquals(provider.getName(), in test_Provider_Properties()
177 assertEquals(provider.getClass().getName(), in test_Provider_Properties()
307 put("Fake.FOO", MockSpi.class.getName()); in testProviderService_supportsParameter_UnknownService_Success()
316 Security.removeProvider(provider.getName()); in testProviderService_supportsParameter_UnknownService_Success()
325 put("Signature.FOO", MockSpi.class.getName()); in testProviderService_supportsParameter_KnownService_NoClassInitialization_Success()
326 put("Signature.FOO SupportedKeyClasses", getClass().getName() in testProviderService_supportsParameter_KnownService_NoClassInitialization_Success()
336 Security.removeProvider(provider.getName()); in testProviderService_supportsParameter_KnownService_NoClassInitialization_Success()
352 put("KeyFactory.FOO", MockSpi.class.getName()); in testProviderService_supportsParameter_TypeDoesNotSupportParameter_Failure()
365 Security.removeProvider(provider.getName()); in testProviderService_supportsParameter_TypeDoesNotSupportParameter_Failure()
[all …]
DSecureRandomTest.java59 SecureRandom sr3 = SecureRandom.getInstance(algorithm, provider.getName()); in test_getInstance()
65 + provider.getName()); in test_getInstance()
68 + ", provider: " + provider.getName(), e); in test_getInstance()
100 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()
/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/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/libart/src/main/java/java/lang/reflect/
DMethod.java58 int comparison = a.getName().compareTo(b.getName());
69 comparison = aReturnType.getName().compareTo(bReturnType.getName());
138 @Override public String getName() { in getName() method in Method
193 return getDeclaringClass().getName().hashCode() ^ getName().hashCode(); in hashCode()
212 return getName().equals(m.getName()) && in equalNameAndParameters()
406 result.append(getReturnType().getName()); in toString()
408 result.append(getDeclaringClass().getName()); in toString()
410 result.append(getName()); in toString()
DField.java60 int comparison = a.getName().compareTo(b.getName());
69 return aType.getName().compareTo(bType.getName());
121 @Override public String getName() { in getName() method in Field
122 return artField.getName(); in getName()
162 return getDeclaringClass().getName().hashCode() ^ getName().hashCode(); in hashCode()
194 sb.append(getDeclaringClass().getName()).append('.').append(getName()); in toGenericString()
870 result.append(getDeclaringClass().getName()); in toString()
872 result.append(getName()); in toString()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DTypeVariableTest.java37 assertEquals("T", typeVariable.getName()); in testSimpleTypeVariableOnClass()
53 assertEquals("T", typeVariable.getName()); in testSimpleTypeVariableOnMethod()
69 assertEquals("T", typeVariable.getName()); in testSimpleTypeVariableOnConstructor()
80 assertEquals("Q", typeParameters[0].getName()); in testMultipleTypeVariablesOnClass()
83 assertEquals("R", typeParameters[1].getName()); in testMultipleTypeVariablesOnClass()
86 assertEquals("S", typeParameters[2].getName()); in testMultipleTypeVariablesOnClass()
100 assertEquals("Q", typeParameters[0].getName()); in testMultipleTypeVariablesOnMethod()
103 assertEquals("R", typeParameters[1].getName()); in testMultipleTypeVariablesOnMethod()
106 assertEquals("S", typeParameters[2].getName()); in testMultipleTypeVariablesOnMethod()
119 assertEquals("Q", typeParameters[0].getName()); in testMultipleTypeVariablesOnConstructor()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DObjectStreamClassTest.java83 "getName returned incorrect name: " + osc.getName(), in test_getName()
85 osc.getName()); in test_getName()
119 "lookup returned wrong class: " + osc.getName(), in test_lookupLjava_lang_Class()
121 osc.getName()); in test_lookupLjava_lang_Class()
203 assertEquals("lookup returned wrong class: " + osc.getName(), in test_lookupAnyLjava_lang_Class()
205 .getName()); in test_lookupAnyLjava_lang_Class()
208 assertEquals("lookup returned wrong class: " + osc.getName(), in test_lookupAnyLjava_lang_Class()
210 osc.getName()); in test_lookupAnyLjava_lang_Class()
213 assertEquals("lookup returned wrong class: " + osc.getName(), in test_lookupAnyLjava_lang_Class()
215 osc.getName()); in test_lookupAnyLjava_lang_Class()
/libcore/luni/src/main/java/org/apache/harmony/security/x501/
DAttributeTypeAndValue.java143 RFC1779_NAMES.put(CN.getName(), CN); in CN.getName()
144 RFC1779_NAMES.put(L.getName(), L); in L.getName()
145 RFC1779_NAMES.put(ST.getName(), ST); in ST.getName()
146 RFC1779_NAMES.put(O.getName(), O); in O.getName()
147 RFC1779_NAMES.put(OU.getName(), OU); in OU.getName()
148 RFC1779_NAMES.put(C.getName(), C); in C.getName()
149 RFC1779_NAMES.put(STREET.getName(), STREET); in STREET.getName()
152 RFC2253_NAMES.put(DC.getName(), DC); in DC.getName()
153 RFC2253_NAMES.put(UID.getName(), UID); in UID.getName()
155 RFC2459_NAMES.put(DNQ.getName(), DNQ); in DNQ.getName()
[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/org/apache/harmony/security/tests/java/security/
DIdentityScopeTest.java71 assertEquals("Aleksei Semenov", is.getName()); in testIdentityScopeString()
81 assertEquals("Aleksei Semenov", is.getName()); in testIdentityScopeStringIdentityScope()
82 assertEquals(scope.getName(), is.getScope().getName()); in testIdentityScopeStringIdentityScope()
93 assertEquals(name, scope.getClass().getName()); in testGetSystemScope()
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/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/luni/src/test/java/libcore/javax/security/auth/x500/
DX500PrincipalTest.java82 assertEquals(certBC.getSubjectX500Principal().getName(format), in testGetName()
83 certOpenSSL.getSubjectX500Principal().getName(format)); in testGetName()
84 assertEquals(certBC.getIssuerX500Principal().getName(format), in testGetName()
85 certOpenSSL.getIssuerX500Principal().getName(format)); in testGetName()
93 certBC.getSubjectX500Principal().getName(X500Principal.CANONICAL)); in testGetName()
/libcore/luni/src/main/java/java/io/
DObjectStreamClass.java209 field = declaringClass.getDeclaredField(osf.getName()); in checkAndGetReflectionField()
264 result.setName(cl.getName()); in createClassDesc()
302 loadFields[i] = new ObjectStreamField(fields[i].getName(), in createClassDesc()
368 ObjectStreamField field = new ObjectStreamField(declaredField.getName(), in buildFieldDescriptors()
418 if (UID_FIELD_NAME.equals(field.getName())) { in computeSerialVersionUID()
445 output.writeUTF(cl.getName()); in computeSerialVersionUID()
475 return itf1.getName().compareTo(itf2.getName()); in computeSerialVersionUID()
483 output.writeUTF(interfaces[i].getName()); in computeSerialVersionUID()
493 return field1.getName().compareTo(field2.getName()); in computeSerialVersionUID()
509 output.writeUTF(field.getName()); in computeSerialVersionUID()
[all …]
/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()

12345678910>>...17