Home
last modified time | relevance | path

Searched refs:IsAssignableFrom (Results 1 – 25 of 35) sorted by relevance

12

/art/runtime/mirror/
Dobject_test.cc562 TEST_F(ObjectTest, IsAssignableFrom) { in TEST_F() argument
570 EXPECT_TRUE(X->IsAssignableFrom(X)); in TEST_F()
571 EXPECT_TRUE(X->IsAssignableFrom(Y)); in TEST_F()
572 EXPECT_FALSE(Y->IsAssignableFrom(X)); in TEST_F()
573 EXPECT_TRUE(Y->IsAssignableFrom(Y)); in TEST_F()
579 EXPECT_TRUE(charseq->IsAssignableFrom(string)); in TEST_F()
581 EXPECT_FALSE(string->IsAssignableFrom(charseq)); in TEST_F()
592 EXPECT_TRUE(prim_types[i]->IsAssignableFrom(prim_types[j])); in TEST_F()
594 EXPECT_FALSE(prim_types[i]->IsAssignableFrom(prim_types[j])); in TEST_F()
637 EXPECT_TRUE(YAA->IsAssignableFrom(YAA)); // identity in TEST_F()
[all …]
Dobject.cc244 CHECK(field_type->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl()
261 CHECK(field_type->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl()
Dobject_array-inl.h294 } else if (LIKELY(dst_class->IsAssignableFrom(o_class))) { in AssignableCheckingMemcpy()
319 } else if (LIKELY(dst_class->IsAssignableFrom(o_class))) { in AssignableCheckingMemcpy()
Dclass.cc388 return WellKnownClasses::ToClass(WellKnownClasses::java_lang_Throwable)->IsAssignableFrom(this); in IsThrowableClass()
738 if (iface->IsAssignableFrom(possible_override->GetDeclaringClass())) { in FindVirtualMethodForInterfaceSuper()
1041 while (!common_super_class->IsAssignableFrom(klass.Get())) { in GetCommonSuperClass()
Dclass-inl.h396 return GetComponentType()->IsAssignableFrom(src->GetComponentType()); in IsArrayAssignableFromArray()
1015 inline bool Class::IsAssignableFrom(ObjPtr<Class> src) { in IsAssignableFrom() function
/art/runtime/entrypoints/quick/
Dquick_cast_entrypoints.cc27 return klass->IsAssignableFrom(ref_class) ? 1 : 0; in artIsAssignableFromCode()
Dquick_throw_entrypoints.cc114 DCHECK(!dest_type->IsAssignableFrom(src_type)); in artThrowClassCastException()
/art/runtime/verifier/
Dreg_type-inl.h112 bool result = lhs.GetClass()->IsAssignableFrom(rhs.GetClass()); in AssignableFrom()
133 inline bool RegType::IsAssignableFrom(const RegType& src, MethodVerifier* verifier) const { in IsAssignableFrom() function
Dregister_line-inl.h134 if (UNLIKELY(!check_type.IsAssignableFrom(src_type, verifier))) { in VerifyRegisterType()
Dreg_type.cc765 } else if (s->IsAssignableFrom(t)) { in ClassJoin()
767 } else if (t->IsAssignableFrom(s)) { in ClassJoin()
942 if (cmp1.IsAssignableFrom(cmp2, verifier)) { in CanAssignArray()
Dverifier_deps.cc385 if (destination->IsAssignableFrom(boundary)) { in FindOneClassPathBoundaryForInterface()
448 DCHECK_EQ(is_assignable, destination->IsAssignableFrom(source)); in AddAssignability()
903 if (destination->IsAssignableFrom(source.Get()) != expected_assignability) { in VerifyAssignability()
Dmethod_verifier.cc2234 } else if (!return_type.IsAssignableFrom(reg_type, this)) { in CodeFlowVerifyInstruction()
2532 if (!reg_types_.JavaLangThrowable(false).IsAssignableFrom(res_type, this)) { in CodeFlowVerifyInstruction()
3785 if (!reg_types_.JavaLangThrowable(false).IsAssignableFrom(exception, this)) { in GetCaughtExceptionType()
3802 reg_types_.JavaLangThrowable(false).IsAssignableFrom( in GetCaughtExceptionType()
4051 if (!res_method_class->IsAssignableFrom(adjusted_type, this)) { in VerifyInvocationArgsFromIterator()
4530 if (!res_method_class.IsAssignableFrom(actual_arg_type, this)) { in VerifyInvokeVirtualQuickArgs()
4900 } else if (!field_klass.IsAssignableFrom(obj_type, this)) { in GetInstanceField()
5008 if (!insn_type.IsAssignableFrom(*field_type, this)) { in VerifyISFieldAccess()
5040 if (!insn_type.IsAssignableFrom(*field_type, this)) { in VerifyISFieldAccess()
5171 if (!insn_type.IsAssignableFrom(*field_type, this)) { in VerifyQuickFieldAccess()
[all …]
Dregister_line.cc79 if (!check_type1.IsAssignableFrom(src_type, verifier)) { in VerifyRegisterTypeWide()
/art/runtime/
Djni_internal_test.cc1341 TEST_F(JniInternalTest, IsAssignableFrom) { in TEST_F() argument
1349 ASSERT_TRUE(env_->IsAssignableFrom(string_class, object_class)); in TEST_F()
1350 ASSERT_FALSE(env_->IsAssignableFrom(object_class, string_class)); in TEST_F()
1357 ASSERT_TRUE(env_->IsAssignableFrom(string_class, charsequence_interface)); in TEST_F()
1358 ASSERT_FALSE(env_->IsAssignableFrom(charsequence_interface, string_class)); in TEST_F()
1365 ASSERT_TRUE(env_->IsAssignableFrom(string_array_class, object_array_class)); in TEST_F()
1366 ASSERT_FALSE(env_->IsAssignableFrom(object_array_class, string_array_class)); in TEST_F()
1373 EXPECT_EQ(env_->IsAssignableFrom(nullptr, string_class), JNI_FALSE); in TEST_F()
1375 EXPECT_EQ(env_->IsAssignableFrom(object_class, nullptr), JNI_FALSE); in TEST_F()
1378 EXPECT_EQ(env_->IsAssignableFrom(nullptr, string_class), JNI_FALSE); in TEST_F()
[all …]
Dclass_linker_test.cc344 EXPECT_TRUE(method.GetDeclaringClass()->IsAssignableFrom(klass.Get())) in AssertClass()
1196 EXPECT_TRUE(I->IsAssignableFrom(A.Get())); in TEST_F()
1197 EXPECT_TRUE(J->IsAssignableFrom(A.Get())); in TEST_F()
1198 EXPECT_TRUE(J->IsAssignableFrom(K.Get())); in TEST_F()
1199 EXPECT_TRUE(K->IsAssignableFrom(B.Get())); in TEST_F()
1200 EXPECT_TRUE(J->IsAssignableFrom(B.Get())); in TEST_F()
Ddebugger.cc411 if (!java_lang_Thread->IsAssignableFrom(thread_peer->GetClass())) { in DecodeThread()
453 if (thread_class->IsAssignableFrom(c)) { in TagFromClass()
460 if (thread_group_class->IsAssignableFrom(c)) { in TagFromClass()
467 if (class_loader_class->IsAssignableFrom(c)) { in TagFromClass()
1397 return expected_class->IsAssignableFrom(event_class); in MatchType()
1812 if (receiver_class != nullptr && !f->GetDeclaringClass()->IsAssignableFrom(receiver_class)) { in GetFieldValueImpl()
1911 if (!field_type->IsAssignableFrom(v->GetClass())) { in SetArtFieldValue()
1987 if (!java_lang_String->IsAssignableFrom(obj->GetClass())) { in StringToUtf8()
2080 if (!c->IsAssignableFrom(thread_group->GetClass())) { in DecodeThreadGroup()
3987 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in PrepareInvokeMethod()
Dmethod_handles.cc145 return to->IsAssignableFrom(GetBoxedPrimitiveClass(from_primitive)); in IsParameterTypeConvertible()
234 if (h_obj != nullptr && !to->IsAssignableFrom(h_obj->GetClass())) { in ConvertJValueCommon()
Dcheck_jni.cc342 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in CheckMethodAndSig()
398 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in CheckStaticMethod()
718 if (o == nullptr || !field->GetDeclaringClass()->IsAssignableFrom(o->GetClass())) { in CheckFieldAccess()
1743 static jboolean IsAssignableFrom(JNIEnv* env, jclass c1, jclass c2) { in IsAssignableFrom() function in art::CheckJNI
1749 result.b = baseEnv(env)->IsAssignableFrom(env, c1, c2); in IsAssignableFrom()
3599 CheckJNI::IsAssignableFrom,
Dart_method.cc294 } else if (iter_exception_type->IsAssignableFrom(exception_type.Get())) { in FindCatchBlock()
Dreflection.cc910 } else if (declaring_class->IsAssignableFrom(calling_class)) { in VerifyAccess()
/art/runtime/entrypoints/
Dentrypoint_utils-inl.h513 if (method_reference_class->IsAssignableFrom(h_referring_class.Get())) { in FindMethodFromCode()
534 if (!method_reference_class->IsAssignableFrom(h_this->GetClass())) { in FindMethodFromCode()
694 if (!method_reference_class->IsAssignableFrom(referring_class)) { in FindMethodFast()
Dentrypoint_utils.cc146 declares_exception = declared_exception->IsAssignableFrom(exception_class); in InvokeProxyInvocationHandler()
/art/runtime/native/
Djava_lang_System.cc154 if (dstComponentType->IsAssignableFrom(srcComponentType)) { in System_arraycopy()
/art/compiler/optimizing/
Dinliner.cc221 } else if (!resolved_method->GetDeclaringClass()->IsAssignableFrom(info.GetTypeHandle().Get())) { in FindVirtualOrInterfaceTarget()
733 if (!resolved_method->GetDeclaringClass()->IsAssignableFrom(klass.Get())) { in ResolveMethodFromInlineCache()
/art/test/004-JniTest/
Djni_test.cc285 return env->IsAssignableFrom(from, to); in Java_Main_nativeIsAssignableFrom()

12