Home
last modified time | relevance | path

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

12

/art/runtime/mirror/
Dobject_test.cc623 TEST_F(ObjectTest, IsAssignableFrom) { in TEST_F() argument
631 EXPECT_TRUE(X->IsAssignableFrom(X.Get())); in TEST_F()
632 EXPECT_TRUE(X->IsAssignableFrom(Y.Get())); in TEST_F()
633 EXPECT_FALSE(Y->IsAssignableFrom(X.Get())); in TEST_F()
634 EXPECT_TRUE(Y->IsAssignableFrom(Y.Get())); in TEST_F()
642 EXPECT_TRUE(charseq->IsAssignableFrom(string.Get())); in TEST_F()
644 EXPECT_FALSE(string->IsAssignableFrom(charseq.Get())); in TEST_F()
655 EXPECT_TRUE(prim_types[i]->IsAssignableFrom(prim_types[j])); in TEST_F()
657 EXPECT_FALSE(prim_types[i]->IsAssignableFrom(prim_types[j])); in TEST_F()
706 EXPECT_TRUE(YAA->IsAssignableFrom(YAA.Get())); // identity in TEST_F()
[all …]
Dobject.cc258 CHECK(field_type->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl()
276 CHECK(field_type->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl()
Dobject_array-inl.h267 } else if (LIKELY(dst_class->IsAssignableFrom(o_class))) { in AssignableCheckingMemcpy()
292 } else if (LIKELY(dst_class->IsAssignableFrom(o_class))) { in AssignableCheckingMemcpy()
Dmethod_type.cc224 return to->IsAssignableFrom(from); in IsParameterInPlaceConvertible()
Dclass-inl.h449 return GetComponentType()->IsAssignableFrom(src->GetComponentType()); in IsArrayAssignableFromArray()
1074 inline bool Class::IsAssignableFrom(ObjPtr<Class> src) { in IsAssignableFrom() function
1181 if (access_to->IsAssignableFrom(this)) { in CanAccessMember()
Dclass.cc510 return GetClassRoot<mirror::Throwable>()->IsAssignableFrom(this); in IsThrowableClass()
1001 if (iface->IsAssignableFrom(possible_override->GetDeclaringClass())) { in FindVirtualMethodForInterfaceSuper()
1560 while (!common_super_class->IsAssignableFrom(klass.Get())) { in GetCommonSuperClass()
/art/runtime/verifier/
Dreg_type-inl.h115 bool result = lhs.GetClass()->IsAssignableFrom(rhs.GetClass()); in AssignableFrom()
153 inline bool RegType::IsAssignableFrom(const RegType& src, MethodVerifier* verifier) const { in IsAssignableFrom() function
Dregister_line-inl.h126 if (UNLIKELY(!check_type.IsAssignableFrom(src_type, verifier))) { in VerifyRegisterType()
Dreg_type.cc450 } else if (s->IsAssignableFrom(t)) { in ClassJoin()
452 } else if (t->IsAssignableFrom(s)) { in ClassJoin()
Dmethod_verifier.cc2178 } else if (!return_type.IsAssignableFrom(reg_type, this)) { in CodeFlowVerifyInstruction()
2499 if (!reg_types_.JavaLangThrowable().IsAssignableFrom(res_type, this)) { in CodeFlowVerifyInstruction()
3678 if (!reg_types_.JavaLangThrowable().IsAssignableFrom(exception, this)) { in HandleMoveException()
3697 if (FailOrAbort(reg_types_.JavaLangThrowable().IsAssignableFrom( in HandleMoveException()
3940 if (!res_method_class->IsAssignableFrom(adjusted_type, this)) { in VerifyInvocationArgsFromIterator()
4604 } else if (!field_klass.IsAssignableFrom(obj_type, this)) { in GetInstanceField()
4755 if (!insn_type.IsAssignableFrom(*field_type, this)) { in VerifyISFieldAccess()
4784 if (!insn_type.IsAssignableFrom(*field_type, this)) { in VerifyISFieldAccess()
Dregister_line.cc79 if (!check_type1.IsAssignableFrom(src_type, verifier)) { in VerifyRegisterTypeWide()
Dverifier_deps.cc736 if (!destination->IsAssignableFrom(source.Get())) { in VerifyDexFileAndUpdateStatus()
/art/runtime/entrypoints/quick/
Dquick_cast_entrypoints.cc27 return klass->IsAssignableFrom(ref_class) ? 1 : 0; in artIsAssignableFromCode()
Dquick_throw_entrypoints.cc132 CHECK(!dest_type->IsAssignableFrom(src_type)) in artThrowClassCastException()
138 DCHECK(!dest_type->IsAssignableFrom(src_type)); in artThrowClassCastException()
/art/runtime/
Dmethod_handles.cc154 return to->IsAssignableFrom(GetBoxedPrimitiveClass(from_primitive)); in IsParameterTypeConvertible()
242 if (UNLIKELY(!h_obj.IsNull() && !to->IsAssignableFrom(h_obj->GetClass()))) { in ConvertJValueCommon()
307 if (from->IsAssignableFrom(GetBoxedPrimitiveClass(to_type))) { in ConvertJValueCommon()
705 !mh_ptypes->Get(0)->IsAssignableFrom(callsite_ptypes->Get(0)) || in DoVarHandleInvokeTranslation()
720 DCHECK(GetClassRoot<mirror::VarHandle>()->IsAssignableFrom(vh->GetClass())); in DoVarHandleInvokeTranslation()
Dclass_linker_test.cc343 EXPECT_TRUE(method.GetDeclaringClass()->IsAssignableFrom(klass.Get())) in AssertClass()
1272 EXPECT_TRUE(I->IsAssignableFrom(A.Get())); in TEST_F()
1273 EXPECT_TRUE(J->IsAssignableFrom(A.Get())); in TEST_F()
1274 EXPECT_TRUE(J->IsAssignableFrom(K.Get())); in TEST_F()
1275 EXPECT_TRUE(K->IsAssignableFrom(B.Get())); in TEST_F()
1276 EXPECT_TRUE(J->IsAssignableFrom(B.Get())); in TEST_F()
Dvdex_file.cc523 if (!destination->IsAssignableFrom(source.Get())) { in ComputeClassStatus()
Dart_method-inl.h575 interface_method->GetDeclaringClass()->IsAssignableFrom(GetDeclaringClass()));
/art/runtime/jni/
Djni_internal_test.cc1408 TEST_F(JniInternalTest, IsAssignableFrom) { in TEST_F() argument
1416 ASSERT_TRUE(env_->IsAssignableFrom(string_class, object_class)); in TEST_F()
1417 ASSERT_FALSE(env_->IsAssignableFrom(object_class, string_class)); in TEST_F()
1424 ASSERT_TRUE(env_->IsAssignableFrom(string_class, charsequence_interface)); in TEST_F()
1425 ASSERT_FALSE(env_->IsAssignableFrom(charsequence_interface, string_class)); in TEST_F()
1432 ASSERT_TRUE(env_->IsAssignableFrom(string_array_class, object_array_class)); in TEST_F()
1433 ASSERT_FALSE(env_->IsAssignableFrom(object_array_class, string_array_class)); in TEST_F()
1440 EXPECT_EQ(env_->IsAssignableFrom(nullptr, string_class), JNI_FALSE); in TEST_F()
1442 EXPECT_EQ(env_->IsAssignableFrom(object_class, nullptr), JNI_FALSE); in TEST_F()
1445 EXPECT_EQ(env_->IsAssignableFrom(nullptr, string_class), JNI_FALSE); in TEST_F()
[all …]
Dcheck_jni.cc431 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in CheckMethodAndSig()
463 if (!f->GetDeclaringClass()->IsAssignableFrom(c)) { in CheckStaticFieldID()
487 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in CheckStaticMethod()
805 if (!field->GetDeclaringClass()->IsAssignableFrom(c)) { in CheckFieldAccess()
812 if (o == nullptr || !field->GetDeclaringClass()->IsAssignableFrom(o->GetClass())) { in CheckFieldAccess()
1930 static jboolean IsAssignableFrom(JNIEnv* env, jclass c1, jclass c2) { in IsAssignableFrom() function in art::__anon846bc2ca0111::CheckJNI
1937 result.b = baseEnv(env)->IsAssignableFrom(env, c1, c2); in IsAssignableFrom()
3836 CheckJNI::IsAssignableFrom,
/art/runtime/native/
Djava_lang_System.cc158 if (dstComponentType->IsAssignableFrom(srcComponentType)) { in System_arraycopy()
/art/runtime/entrypoints/
Dentrypoint_utils.cc163 declares_exception = declared_exception->IsAssignableFrom(exception_class); in InvokeProxyInvocationHandler()
Dentrypoint_utils-inl.h625 if (!referenced_class->IsAssignableFrom(referrer->GetDeclaringClass())) { in FindSuperMethodToCall()
/art/runtime/gc/
Dheap.cc2171 return klass != nullptr && klass->IsAssignableFrom(instance_class); in MatchesClass()
4787 if (GetClassRoot<mirror::Method>()->IsAssignableFrom(klass) || in VisitReflectiveTargets()
4788 GetClassRoot<mirror::Constructor>()->IsAssignableFrom(klass)) { in VisitReflectiveTargets()
4792 } else if (art::GetClassRoot<art::mirror::MethodHandle>()->IsAssignableFrom(klass)) { in VisitReflectiveTargets()
4794 } else if (art::GetClassRoot<art::mirror::StaticFieldVarHandle>()->IsAssignableFrom(klass)) { in VisitReflectiveTargets()
4796 } else if (art::GetClassRoot<art::mirror::FieldVarHandle>()->IsAssignableFrom(klass)) { in VisitReflectiveTargets()
4798 } else if (art::GetClassRoot<art::mirror::DexCache>()->IsAssignableFrom(klass)) { in VisitReflectiveTargets()
/art/compiler/optimizing/
Dinliner.cc253 } else if (!resolved_method->GetDeclaringClass()->IsAssignableFrom(info.GetTypeHandle().Get())) { in FindVirtualOrInterfaceTarget()
827 if (!resolved_method->GetDeclaringClass()->IsAssignableFrom(klass.Get())) { in ResolveMethodFromInlineCache()
2375 (declared_class != actual_class && declared_class->IsAssignableFrom(actual_class)); in IsReferenceTypeRefinement()

12