Searched refs:getClass (Results 1 - 25 of 388) sorted by relevance

1234567891011>>

/libcore/luni/src/test/java/libcore/libcore/reflect/
H A DInternalNamesTest.java28 InternalNames.getClass(loader, null);
43 assertEquals(byte.class, InternalNames.getClass(loader, "B"));
44 assertEquals(char.class, InternalNames.getClass(loader, "C"));
45 assertEquals(double.class, InternalNames.getClass(loader, "D"));
46 assertEquals(float.class, InternalNames.getClass(loader, "F"));
47 assertEquals(int.class, InternalNames.getClass(loader, "I"));
48 assertEquals(long.class, InternalNames.getClass(loader, "J"));
49 assertEquals(short.class, InternalNames.getClass(loader, "S"));
50 assertEquals(boolean.class, InternalNames.getClass(loader, "Z"));
51 assertEquals(void.class, InternalNames.getClass(loade
[all...]
/libcore/luni/src/main/java/libcore/util/
H A DObjects.java32 Class<?> c = o.getClass();
51 if (value.getClass().isArray()) {
52 if (value.getClass() == boolean[].class) {
54 } else if (value.getClass() == byte[].class) {
56 } else if (value.getClass() == char[].class) {
58 } else if (value.getClass() == double[].class) {
60 } else if (value.getClass() == float[].class) {
62 } else if (value.getClass() == int[].class) {
64 } else if (value.getClass() == long[].class) {
66 } else if (value.getClass()
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DTypeNotPresentExceptionTest.java32 e = new TypeNotPresentException(getClass().getName(), null);
38 e = new TypeNotPresentException(getClass().getName(), npe);
50 e = new TypeNotPresentException(getClass().getName(), null);
51 assertEquals(getClass().getName(), e.typeName());
H A DIllegalStateExceptionTest.java51 assertEquals(emptyThrowable.getClass().getName(), emptyException.getMessage());
52 assertEquals(emptyThrowable.getClass().getName(), emptyException.getLocalizedMessage());
53 assertEquals(emptyThrowable.getClass().getName(), emptyException.getCause().toString());
57 assertEquals(throwable.getClass().getName() + ": " + "msg", exception.getMessage());
58 assertEquals(throwable.getClass().getName(), emptyException.getLocalizedMessage());
59 assertEquals(throwable.getClass().getName(), emptyException.getCause().toString());
70 assertEquals(emptyThrowable.getClass().getName(), emptyException.getCause().toString());
76 assertEquals(throwable.getClass().getName() + ": " + throwable.getMessage(), exception
H A DUnsupportedOperationExceptionTest.java52 assertEquals(emptyThrowable.getClass().getName(), emptyException.getMessage());
53 assertEquals(emptyThrowable.getClass().getName(), emptyException.getLocalizedMessage());
54 assertEquals(emptyThrowable.getClass().getName(), emptyException.getCause().toString());
58 assertEquals(throwable.getClass().getName() + ": " + "msg", exception.getMessage());
59 assertEquals(throwable.getClass().getName(), emptyException.getLocalizedMessage());
60 assertEquals(throwable.getClass().getName(), emptyException.getCause().toString());
72 assertEquals(emptyThrowable.getClass().getName(), emptyException.getCause().toString());
79 assertEquals(throwable.getClass().getName() + ": " + throwable.getMessage(), exception
H A DIllegalArgumentExceptionTest.java51 assertEquals(emptyThrowable.getClass().getName(), emptyException.getMessage());
52 assertEquals(emptyThrowable.getClass().getName(), emptyException.getLocalizedMessage());
53 assertEquals(emptyThrowable.getClass().getName(), emptyException.getCause().toString());
57 assertEquals(exception.getClass().getName() + ": " + "msg", e.getMessage());
58 assertEquals(exception.getClass().getName(), emptyException.getLocalizedMessage());
59 assertEquals(exception.getClass().getName(), emptyException.getCause().toString());
H A DRuntimeExceptionTest.java49 assertEquals(emptyThrowable.getClass().getName(), emptyException.getMessage());
50 assertEquals(emptyThrowable.getClass().getName(), emptyException.getLocalizedMessage());
51 assertEquals(emptyThrowable.getClass().getName(), emptyException.getCause().toString());
55 assertEquals(throwable.getClass().getName() + ": " + "msg", exception.getMessage());
56 assertEquals(throwable.getClass().getName(), emptyException.getLocalizedMessage());
57 assertEquals(throwable.getClass().getName(), emptyException.getCause().toString());
/libcore/ojluni/src/main/java/java/text/
H A DAnnotation.java84 return getClass().getName() + "[value=" + value + "]";
/libcore/luni/src/main/java/javax/xml/parsers/
H A DDocumentBuilderFactory.java378 + this.getClass().getPackage().getSpecificationTitle()
380 + this.getClass().getPackage().getSpecificationVersion()
444 + this.getClass().getPackage().getSpecificationTitle()
446 + this.getClass().getPackage().getSpecificationVersion()
473 + this.getClass().getPackage().getSpecificationTitle()
475 + this.getClass().getPackage().getSpecificationVersion()
495 + this.getClass().getPackage().getSpecificationTitle()
497 + this.getClass().getPackage().getSpecificationVersion()
H A DSAXParserFactory.java261 + this.getClass().getPackage().getSpecificationTitle()
263 + this.getClass().getPackage().getSpecificationVersion()
320 + this.getClass().getPackage().getSpecificationTitle()
322 + this.getClass().getPackage().getSpecificationVersion()
349 + this.getClass().getPackage().getSpecificationTitle()
351 + this.getClass().getPackage().getSpecificationVersion()
371 + this.getClass().getPackage().getSpecificationTitle()
373 + this.getClass().getPackage().getSpecificationVersion()
H A DDocumentBuilder.java80 "This DocumentBuilder, \"" + this.getClass().getName() + "\", does not support the reset functionality."
81 + " Specification \"" + this.getClass().getPackage().getSpecificationTitle() + "\""
82 + " version \"" + this.getClass().getPackage().getSpecificationVersion() + "\""
282 + this.getClass().getPackage().getSpecificationTitle()
284 + this.getClass().getPackage().getSpecificationVersion()
310 + this.getClass().getPackage().getSpecificationTitle()
312 + this.getClass().getPackage().getSpecificationVersion()
/libcore/luni/src/main/java/javax/xml/transform/
H A DTransformer.java72 "This Transformer, \"" + this.getClass().getName() + "\", does not support the reset functionality."
73 + " Specification \"" + this.getClass().getPackage().getSpecificationTitle() + "\""
74 + " version \"" + this.getClass().getPackage().getSpecificationVersion() + "\""
/libcore/ojluni/src/main/java/java/util/
H A DPrimitiveIterator.java127 Tripwire.trip(getClass(), "{0} calling PrimitiveIterator.OfInt.nextInt()");
149 Tripwire.trip(getClass(), "{0} calling PrimitiveIterator.OfInt.forEachRemainingInt(action::accept)");
201 Tripwire.trip(getClass(), "{0} calling PrimitiveIterator.OfLong.nextLong()");
223 Tripwire.trip(getClass(), "{0} calling PrimitiveIterator.OfLong.forEachRemainingLong(action::accept)");
274 Tripwire.trip(getClass(), "{0} calling PrimitiveIterator.OfDouble.nextLong()");
297 Tripwire.trip(getClass(), "{0} calling PrimitiveIterator.OfDouble.forEachRemainingDouble(action::accept)");
H A DEventObject.java76 return getClass().getName() + "[source=" + source + "]";
/libcore/benchmarks/src/benchmarks/
H A DClassLoaderResourceBenchmark.java27 ClassLoader currentClassLoader = getClass().getClassLoader();
36 ClassLoader currentClassLoader = getClass().getClassLoader();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DDateFormatTest.java56 f1.format(new Date()).getClass() == String.class);
76 assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class);
81 f2.format(new Date()).getClass() == String.class);
93 assertTrue("Wrong class1", f2.getClass() == SimpleDateFormat.class);
99 f2.format(new Date()).getClass() == String.class);
102 assertTrue("Wrong class2", f2.getClass() == SimpleDateFormat.class);
108 f2.format(new Date()).getClass() == String.class);
111 assertTrue("Wrong class3", f2.getClass() == SimpleDateFormat.class);
117 f2.format(new Date()).getClass() == String.class);
120 assertTrue("Wrong class4", f2.getClass()
[all...]
/libcore/luni/src/test/java/libcore/javax/net/ssl/
H A DSSLSocketFactoryTest.java140 assertTrue(SSLSocketFactory.class.isAssignableFrom(sf1.getClass()));
152 assertTrue(SSLSocketFactory.class.isAssignableFrom(sf4.getClass()));
154 assertFalse(sf1.getClass() + " should not be " + sf4.getClass(),
155 sf1.getClass().equals(sf4.getClass()));
163 assertTrue(SSLSocketFactory.class.isAssignableFrom(sf3.getClass()));
165 assertTrue(sf1.getClass() + " should be " + sf3.getClass(),
166 sf1.getClass()
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/support/
H A DA.java7 pp.setClazz(getClass());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/support/
H A DA.java24 pp.setClazz(getClass());
/libcore/luni/src/test/java/libcore/java/lang/
H A DPackageTest.java31 assertEquals(1, getClass().getPackage().getAnnotations().length);
32 assertEquals(1, getClass().getPackage().getDeclaredAnnotations().length);
38 assertEquals(getClass().getPackage(), libcoreJavaLang);
61 assertTrue(packages.contains(getClass().getPackage()));
/libcore/luni/src/main/java/android/system/
H A DStructTimespec.java60 if (o == null || getClass() != o.getClass()) return false;
/libcore/support/src/test/java/libcore/tlswire/handshake/
H A DCompressionMethod.java67 if (getClass() != obj.getClass()) {
/libcore/ojluni/src/main/java/java/security/
H A DPrivilegedActionException.java106 String s = getClass().getName();
/libcore/ojluni/src/main/java/java/util/stream/
H A DTerminalOp.java83 Tripwire.trip(getClass(), "{0} triggering TerminalOp.evaluateParallel serial default");
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
H A DIntermediateTestOp.java39 throw new IllegalStateException("Unknown test op type: " + op.getClass().getName());

Completed in 586 milliseconds

1234567891011>>