Home
last modified time | relevance | path

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

12

/art/runtime/mirror/
Dobject_test.cc574 TEST_F(ObjectTest, IsAssignableFrom) { in TEST_F() argument
582 EXPECT_TRUE(X->IsAssignableFrom(X.Get())); in TEST_F()
583 EXPECT_TRUE(X->IsAssignableFrom(Y.Get())); in TEST_F()
584 EXPECT_FALSE(Y->IsAssignableFrom(X.Get())); in TEST_F()
585 EXPECT_TRUE(Y->IsAssignableFrom(Y.Get())); in TEST_F()
593 EXPECT_TRUE(charseq->IsAssignableFrom(string.Get())); in TEST_F()
595 EXPECT_FALSE(string->IsAssignableFrom(charseq.Get())); in TEST_F()
606 EXPECT_TRUE(prim_types[i]->IsAssignableFrom(prim_types[j])); in TEST_F()
608 EXPECT_FALSE(prim_types[i]->IsAssignableFrom(prim_types[j])); in TEST_F()
657 EXPECT_TRUE(YAA->IsAssignableFrom(YAA.Get())); // identity in TEST_F()
[all …]
Dobject.cc249 CHECK(field_type->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl()
267 CHECK(field_type->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl()
Dobject_array-inl.h266 } else if (LIKELY(dst_class->IsAssignableFrom(o_class))) { in AssignableCheckingMemcpy()
291 } else if (LIKELY(dst_class->IsAssignableFrom(o_class))) { in AssignableCheckingMemcpy()
Dclass.cc433 return GetClassRoot<mirror::Throwable>()->IsAssignableFrom(this); in IsThrowableClass()
778 if (iface->IsAssignableFrom(possible_override->GetDeclaringClass())) { in FindVirtualMethodForInterfaceSuper()
1093 while (!common_super_class->IsAssignableFrom(klass.Get())) { in GetCommonSuperClass()
Dclass-inl.h431 return GetComponentType()->IsAssignableFrom(src->GetComponentType()); in IsArrayAssignableFromArray()
1061 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.cc132 CHECK(!dest_type->IsAssignableFrom(src_type)) in artThrowClassCastException()
138 DCHECK(!dest_type->IsAssignableFrom(src_type)); in artThrowClassCastException()
/art/runtime/verifier/
Dreg_type-inl.h115 bool result = lhs.GetClass()->IsAssignableFrom(rhs.GetClass()); in AssignableFrom()
137 inline bool RegType::IsAssignableFrom(const RegType& src, MethodVerifier* verifier) const { in IsAssignableFrom() function
Dregister_line-inl.h136 if (UNLIKELY(!check_type.IsAssignableFrom(src_type, verifier))) { in VerifyRegisterType()
Dreg_type.cc792 } else if (s->IsAssignableFrom(t)) { in ClassJoin()
794 } else if (t->IsAssignableFrom(s)) { in ClassJoin()
970 if (cmp1.IsAssignableFrom(cmp2, verifier)) { in CanAssignArray()
Dverifier_deps.cc403 if (destination->IsAssignableFrom(boundary)) { in FindOneClassPathBoundaryForInterface()
466 DCHECK_EQ(is_assignable, destination->IsAssignableFrom(source)); in AddAssignability()
973 if (destination->IsAssignableFrom(source.Get()) != expected_assignability) { in VerifyAssignability()
Dmethod_verifier.cc2217 } else if (!return_type.IsAssignableFrom(reg_type, this)) { in CodeFlowVerifyInstruction()
2563 if (!reg_types_.JavaLangThrowable(false).IsAssignableFrom(res_type, this)) { in CodeFlowVerifyInstruction()
3786 if (!reg_types_.JavaLangThrowable(false).IsAssignableFrom(exception, this)) { in GetCaughtExceptionType()
3802 if (FailOrAbort(reg_types_.JavaLangThrowable(false).IsAssignableFrom( in GetCaughtExceptionType()
4037 if (!res_method_class->IsAssignableFrom(adjusted_type, this)) { in VerifyInvocationArgsFromIterator()
4751 } else if (!field_klass.IsAssignableFrom(obj_type, this)) { in GetInstanceField()
4887 if (!insn_type.IsAssignableFrom(*field_type, this)) { in VerifyISFieldAccess()
4919 if (!insn_type.IsAssignableFrom(*field_type, this)) { in VerifyISFieldAccess()
Dregister_line.cc79 if (!check_type1.IsAssignableFrom(src_type, verifier)) { in VerifyRegisterTypeWide()
/art/runtime/
Dmethod_handles.cc148 return to->IsAssignableFrom(GetBoxedPrimitiveClass(from_primitive)); in IsParameterTypeConvertible()
237 if (UNLIKELY(!h_obj.IsNull() && !to->IsAssignableFrom(h_obj->GetClass()))) { in ConvertJValueCommon()
295 if (from->IsAssignableFrom(GetBoxedPrimitiveClass(to_type))) { in ConvertJValueCommon()
1026 !mh_ptypes->Get(0)->IsAssignableFrom(callsite_ptypes->Get(0)) || in DoVarHandleInvokeTranslation()
1041 DCHECK(GetClassRoot<mirror::VarHandle>()->IsAssignableFrom(vh->GetClass())); in DoVarHandleInvokeTranslation()
Dclass_linker_test.cc346 EXPECT_TRUE(method.GetDeclaringClass()->IsAssignableFrom(klass.Get())) in AssertClass()
1250 EXPECT_TRUE(I->IsAssignableFrom(A.Get())); in TEST_F()
1251 EXPECT_TRUE(J->IsAssignableFrom(A.Get())); in TEST_F()
1252 EXPECT_TRUE(J->IsAssignableFrom(K.Get())); in TEST_F()
1253 EXPECT_TRUE(K->IsAssignableFrom(B.Get())); in TEST_F()
1254 EXPECT_TRUE(J->IsAssignableFrom(B.Get())); in TEST_F()
Dart_method-inl.h332 interface_method->GetDeclaringClass()->IsAssignableFrom(GetDeclaringClass())); in GetInterfaceMethodIfProxy()
Ddebugger.cc460 if (!java_lang_Thread->IsAssignableFrom(thread_peer->GetClass())) { in DecodeThread()
502 if (thread_class->IsAssignableFrom(c)) { in TagFromClass()
509 if (thread_group_class->IsAssignableFrom(c)) { in TagFromClass()
516 if (class_loader_class->IsAssignableFrom(c)) { in TagFromClass()
1463 return expected_class->IsAssignableFrom(event_class); in MatchType()
1855 if (receiver_class != nullptr && !f->GetDeclaringClass()->IsAssignableFrom(receiver_class)) { in GetFieldValueImpl()
1954 if (!field_type->IsAssignableFrom(v->GetClass())) { in SetArtFieldValue()
2030 if (!java_lang_String->IsAssignableFrom(obj->GetClass())) { in StringToUtf8()
2123 if (!c->IsAssignableFrom(thread_group->GetClass())) { in DecodeThreadGroup()
3920 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in PrepareInvokeMethod()
Dart_method.cc287 } else if (iter_exception_type->IsAssignableFrom(exception_type.Get())) { in FindCatchBlock()
/art/runtime/entrypoints/
Dentrypoint_utils-inl.h494 if (method_reference_class->IsAssignableFrom(h_referring_class.Get())) { in FindMethodToCall()
515 if (!method_reference_class->IsAssignableFrom(h_this->GetClass())) { in FindMethodToCall()
687 if (!method_reference_class->IsAssignableFrom(referring_class)) { in FindMethodFast()
Dentrypoint_utils.cc149 declares_exception = declared_exception->IsAssignableFrom(exception_class); in InvokeProxyInvocationHandler()
/art/runtime/jni/
Djni_internal_test.cc1407 TEST_F(JniInternalTest, IsAssignableFrom) { in TEST_F() argument
1415 ASSERT_TRUE(env_->IsAssignableFrom(string_class, object_class)); in TEST_F()
1416 ASSERT_FALSE(env_->IsAssignableFrom(object_class, string_class)); in TEST_F()
1423 ASSERT_TRUE(env_->IsAssignableFrom(string_class, charsequence_interface)); in TEST_F()
1424 ASSERT_FALSE(env_->IsAssignableFrom(charsequence_interface, string_class)); in TEST_F()
1431 ASSERT_TRUE(env_->IsAssignableFrom(string_array_class, object_array_class)); in TEST_F()
1432 ASSERT_FALSE(env_->IsAssignableFrom(object_array_class, string_array_class)); in TEST_F()
1439 EXPECT_EQ(env_->IsAssignableFrom(nullptr, string_class), JNI_FALSE); in TEST_F()
1441 EXPECT_EQ(env_->IsAssignableFrom(object_class, nullptr), JNI_FALSE); in TEST_F()
1444 EXPECT_EQ(env_->IsAssignableFrom(nullptr, string_class), JNI_FALSE); in TEST_F()
[all …]
Dcheck_jni.cc410 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in CheckMethodAndSig()
442 if (!f->GetDeclaringClass()->IsAssignableFrom(c)) { in CheckStaticFieldID()
466 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in CheckStaticMethod()
781 if (!field->GetDeclaringClass()->IsAssignableFrom(c)) { in CheckFieldAccess()
788 if (o == nullptr || !field->GetDeclaringClass()->IsAssignableFrom(o->GetClass())) { in CheckFieldAccess()
1872 static jboolean IsAssignableFrom(JNIEnv* env, jclass c1, jclass c2) { in IsAssignableFrom() function in art::__anon01b981930111::CheckJNI
1879 result.b = baseEnv(env)->IsAssignableFrom(env, c1, c2); in IsAssignableFrom()
3782 CheckJNI::IsAssignableFrom,
/art/runtime/native/
Djava_lang_System.cc158 if (dstComponentType->IsAssignableFrom(srcComponentType)) { in System_arraycopy()
/art/test/004-JniTest/
Djni_test.cc296 return env->IsAssignableFrom(from, to); in Java_Main_nativeIsAssignableFrom()
/art/compiler/optimizing/
Dinliner.cc237 } else if (!resolved_method->GetDeclaringClass()->IsAssignableFrom(info.GetTypeHandle().Get())) { in FindVirtualOrInterfaceTarget()
819 if (!resolved_method->GetDeclaringClass()->IsAssignableFrom(klass.Get())) { in ResolveMethodFromInlineCache()

12