Home
last modified time | relevance | path

Searched refs:IsAssignableFrom (Results 1 – 25 of 38) 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.cc246 CHECK(field_type->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl()
264 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.cc440 return WellKnownClasses::ToClass(WellKnownClasses::java_lang_Throwable)->IsAssignableFrom(this); in IsThrowableClass()
790 if (iface->IsAssignableFrom(possible_override->GetDeclaringClass())) { in FindVirtualMethodForInterfaceSuper()
1091 while (!common_super_class->IsAssignableFrom(klass.Get())) { in GetCommonSuperClass()
Dclass-inl.h416 return GetComponentType()->IsAssignableFrom(src->GetComponentType()); in IsArrayAssignableFromArray()
1066 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.cc115 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.cc771 } else if (s->IsAssignableFrom(t)) { in ClassJoin()
773 } else if (t->IsAssignableFrom(s)) { in ClassJoin()
948 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.cc2189 } else if (!return_type.IsAssignableFrom(reg_type, this)) { in CodeFlowVerifyInstruction()
2500 if (!reg_types_.JavaLangThrowable(false).IsAssignableFrom(res_type, this)) { in CodeFlowVerifyInstruction()
3728 if (!reg_types_.JavaLangThrowable(false).IsAssignableFrom(exception, this)) { in GetCaughtExceptionType()
3744 if (FailOrAbort(reg_types_.JavaLangThrowable(false).IsAssignableFrom( in GetCaughtExceptionType()
3975 if (!res_method_class->IsAssignableFrom(adjusted_type, this)) { in VerifyInvocationArgsFromIterator()
4726 } else if (!field_klass.IsAssignableFrom(obj_type, this)) { in GetInstanceField()
4859 if (!insn_type.IsAssignableFrom(*field_type, this)) { in VerifyISFieldAccess()
4891 if (!insn_type.IsAssignableFrom(*field_type, this)) { in VerifyISFieldAccess()
Dregister_line.cc79 if (!check_type1.IsAssignableFrom(src_type, verifier)) { in VerifyRegisterTypeWide()
/art/runtime/
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 …]
Dmethod_handles.cc146 return to->IsAssignableFrom(GetBoxedPrimitiveClass(from_primitive)); in IsParameterTypeConvertible()
235 if (UNLIKELY(!h_obj.IsNull() && !to->IsAssignableFrom(h_obj->GetClass()))) { in ConvertJValueCommon()
293 if (from->IsAssignableFrom(GetBoxedPrimitiveClass(to_type))) { in ConvertJValueCommon()
1024 !mh_ptypes->Get(0)->IsAssignableFrom(callsite_ptypes->Get(0)) || in DoVarHandleInvokeTranslation()
1039 DCHECK(mirror::VarHandle::StaticClass()->IsAssignableFrom(vh->GetClass())); in DoVarHandleInvokeTranslation()
Dclass_linker_test.cc340 EXPECT_TRUE(method.GetDeclaringClass()->IsAssignableFrom(klass.Get())) in AssertClass()
1234 EXPECT_TRUE(I->IsAssignableFrom(A.Get())); in TEST_F()
1235 EXPECT_TRUE(J->IsAssignableFrom(A.Get())); in TEST_F()
1236 EXPECT_TRUE(J->IsAssignableFrom(K.Get())); in TEST_F()
1237 EXPECT_TRUE(K->IsAssignableFrom(B.Get())); in TEST_F()
1238 EXPECT_TRUE(J->IsAssignableFrom(B.Get())); in TEST_F()
Dart_method-inl.h357 interface_method->GetDeclaringClass()->IsAssignableFrom(GetDeclaringClass())); in GetInterfaceMethodIfProxy()
Ddebugger.cc466 if (!java_lang_Thread->IsAssignableFrom(thread_peer->GetClass())) { in DecodeThread()
508 if (thread_class->IsAssignableFrom(c)) { in TagFromClass()
515 if (thread_group_class->IsAssignableFrom(c)) { in TagFromClass()
522 if (class_loader_class->IsAssignableFrom(c)) { in TagFromClass()
1466 return expected_class->IsAssignableFrom(event_class); in MatchType()
1888 if (receiver_class != nullptr && !f->GetDeclaringClass()->IsAssignableFrom(receiver_class)) { in GetFieldValueImpl()
1987 if (!field_type->IsAssignableFrom(v->GetClass())) { in SetArtFieldValue()
2063 if (!java_lang_String->IsAssignableFrom(obj->GetClass())) { in StringToUtf8()
2156 if (!c->IsAssignableFrom(thread_group->GetClass())) { in DecodeThreadGroup()
4065 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in PrepareInvokeMethod()
Dcheck_jni.cc407 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in CheckMethodAndSig()
439 if (!f->GetDeclaringClass()->IsAssignableFrom(c)) { in CheckStaticFieldID()
463 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in CheckStaticMethod()
776 if (!field->GetDeclaringClass()->IsAssignableFrom(c)) { in CheckFieldAccess()
783 if (o == nullptr || !field->GetDeclaringClass()->IsAssignableFrom(o->GetClass())) { in CheckFieldAccess()
1867 static jboolean IsAssignableFrom(JNIEnv* env, jclass c1, jclass c2) { in IsAssignableFrom() function in art::__anona1964fb70111::CheckJNI
1874 result.b = baseEnv(env)->IsAssignableFrom(env, c1, c2); in IsAssignableFrom()
3777 CheckJNI::IsAssignableFrom,
Dart_method.cc302 } else if (iter_exception_type->IsAssignableFrom(exception_type.Get())) { in FindCatchBlock()
/art/runtime/entrypoints/
Dentrypoint_utils-inl.h509 if (method_reference_class->IsAssignableFrom(h_referring_class.Get())) { in FindMethodFromCode()
530 if (!method_reference_class->IsAssignableFrom(h_this->GetClass())) { in FindMethodFromCode()
690 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/test/004-JniTest/
Djni_test.cc296 return env->IsAssignableFrom(from, to); in Java_Main_nativeIsAssignableFrom()
/art/compiler/optimizing/
Dinliner.cc222 } else if (!resolved_method->GetDeclaringClass()->IsAssignableFrom(info.GetTypeHandle().Get())) { in FindVirtualOrInterfaceTarget()
795 if (!resolved_method->GetDeclaringClass()->IsAssignableFrom(klass.Get())) { in ResolveMethodFromInlineCache()

12