Home
last modified time | relevance | path

Searched refs:isInstance (Results 1 – 25 of 70) sorted by relevance

123

/libcore/ojluni/src/test/java/lang/StackWalker/
DLocalsAndOperands.java187 } else if (primitiveSlotClass.isInstance(observed)) { // single slot primitive in checkFrameLocals()
192 assertTrue(((Class)expected).isInstance(observed), in checkFrameLocals()
241 assertFalse(liveStackFrameClass.isInstance(f), in noLocalsSanityCheck()
440 if (primitiveSlot64Class.isInstance(locals[i])) { in printLocals()
443 } else if (primitiveSlot32Class.isInstance(locals[i])) { in printLocals()
469 } else if (primitiveSlotClass.isInstance(o)) { in type()
486 assertTrue(primitiveSlot64Class.isInstance(primVal)); in primitiveValueEquals()
492 assertTrue(primitiveSlot32Class.isInstance(primVal), in primitiveValueEquals()
497 assertTrue(primitiveSlot64Class.isInstance(primVal), in primitiveValueEquals()
/libcore/luni/src/main/java/libcore/reflect/
DAnnotatedElements.java57 if (annotationClass.isInstance(annotations[i])) { in getDirectOrIndirectAnnotationsByType()
61 repeatableAnnotationClass.isInstance(annotations[i])) { in getDirectOrIndirectAnnotationsByType()
/libcore/ojluni/src/main/java/java/net/
DContentHandler.java104 if (classes[i].isInstance(obj)) { in getContent()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DThrowableHelper.java39 assertTrue(ce.isInstance(caught)); in checkException()
/libcore/ojluni/src/test/java/lang/Character/
DSupplementary.java749 if (expectedException.isInstance(e)) { in callToChars1()
765 if (expectedException.isInstance(e)) { in callToChars3()
780 if (expectedException.isInstance(e)) { in callCodePoint()
795 if (expectedException.isInstance(e)) { in callCodePoint()
810 if (expectedException.isInstance(e)) { in callCodePoint()
827 if (expectedException.isInstance(e)) { in callCodePointCount()
841 if (expectedException.isInstance(e)) { in callOffsetByCodePoints()
857 if (expectedException.isInstance(e)) { in callOffsetByCodePoints()
870 if (expectedException.isInstance(e)) { in callToString()
/libcore/luni/src/test/java/tests/security/spec/
DECFieldF2mTest.java142 if (tp.x == null || !e.getClass().isInstance(tp.x)) { in testECFieldF2mint()
267 if (tp.x == null || !e.getClass().isInstance(tp.x)) { in testECFieldF2mintintArray()
306 if (tp.x == null || !e.getClass().isInstance(tp.x)) { in testECFieldF2mintBigInteger()
/libcore/ojluni/src/test/java/lang/StringBuffer/
DSupplementary.java343 if (expectedException.isInstance(e)) { in testAppendCodePoint()
357 if (expectedException.isInstance(e)) { in testCodePointCount()
370 if (expectedException.isInstance(e)) { in testOffsetByCodePoints()
/libcore/ojluni/src/test/java/lang/StringBuilder/
DSupplementary.java358 if (expectedException.isInstance(e)) { in testAppendCodePoint()
372 if (expectedException.isInstance(e)) { in testCodePointCount()
385 if (expectedException.isInstance(e)) { in testOffsetByCodePoints()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DGenericReflectionTestsBase.java67 .isInstance(actual)); in assertInstanceOf()
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandleNatives.java540 if (Eclass.isInstance(th)) in initCauseFrom()
/libcore/ojluni/src/test/java/util/Objects/
DCheckIndex.java109 assertTrue(ec.isInstance(e));
171 assertTrue(ec.isInstance(e));
240 assertTrue(ec.isInstance(e));
DCheckLongIndex.java108 assertTrue(ec.isInstance(e));
170 assertTrue(ec.isInstance(e));
234 assertTrue(ec.isInstance(e));
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DAtomicReferenceFieldUpdater.java421 if (!cclass.isInstance(obj)) in accessCheck()
444 if (v != null && !(vclass.isInstance(v))) in valueCheck()
DAtomicLongFieldUpdater.java450 if (!cclass.isInstance(obj)) in accessCheck()
602 if (!cclass.isInstance(obj)) in accessCheck()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestCharLiteralParser.java135 assertTrue(expected.isInstance(ex)); in test_parse_error()
DTestStringLiteralParser.java138 assertTrue(expected.isInstance(ex)); in test_parse_error()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKResolverStyle.java135 assertTrue(expectedEx.isInstance(ex)); in test_resolverStyle()
DTCKSignStyle.java132 assertTrue(expectedEx.isInstance(ex)); in test_signStyle()
DTCKDateTimeFormatters.java237 assertTrue(expectedEx.isInstance(ex)); in test_print_isoLocalDate()
331 assertTrue(expectedEx.isInstance(ex)); in test_print_isoOffsetDate()
389 assertTrue(expectedEx.isInstance(ex)); in test_print_isoDate()
461 assertTrue(expectedEx.isInstance(ex)); in test_print_isoLocalTime()
531 assertTrue(expectedEx.isInstance(ex)); in test_print_isoOffsetTime()
601 assertTrue(expectedEx.isInstance(ex)); in test_print_isoTime()
682 assertTrue(expectedEx.isInstance(ex)); in test_print_isoLocalDateTime()
761 assertTrue(expectedEx.isInstance(ex)); in test_print_isoOffsetDateTime()
850 assertTrue(expectedEx.isInstance(ex)); in test_print_isoZonedDateTime()
934 assertTrue(expectedEx.isInstance(ex)); in test_print_isoDateTime()
[all …]
/libcore/dalvik/src/main/java/dalvik/system/
DEmulatedStackFrame.java210 if (reference != null && !ptypes[idx].isInstance(reference)) { in setReference()
269 if (reference != null && !returnType.isInstance(reference)) { in setReturnValueTo()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DGenericExceptionsTest.java95 expectedType.isInstance(array[0])); in getOnlyValue()
/libcore/ojluni/src/main/java/java/lang/runtime/
DObjectMethods.java214 …MethodHandle isInstance = MethodHandles.dropArguments(CLASS_IS_INSTANCE.bindTo(receiverClass), 0, … in makeEquals() local
225 … MethodHandles.guardWithTest(isInstance, accumulator.asType(ro), instanceFalse)); in makeEquals()
/libcore/ojluni/src/test/java/io/InputStream/
DTransferTo.java312 if (!throwable.isInstance(thrown)) {
/libcore/benchmarks/src/benchmarks/regression/
DReflectionBenchmark.java169 klass.isInstance(d); in timeClass_isInstance()
/libcore/ojluni/src/test/java/io/Reader/
DTransferTo.java336 if (!throwable.isInstance(thrown)) {

123