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.cc389 return WellKnownClasses::ToClass(WellKnownClasses::java_lang_Throwable)->IsAssignableFrom(this); in IsThrowableClass()
673 if (iface->IsAssignableFrom(possible_override->GetDeclaringClass())) { in FindVirtualMethodForInterfaceSuper()
976 while (!common_super_class->IsAssignableFrom(klass.Get())) { in GetCommonSuperClass()
Dclass-inl.h395 return GetComponentType()->IsAssignableFrom(src->GetComponentType()); in IsArrayAssignableFromArray()
1021 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.h114 bool result = lhs.GetClass()->IsAssignableFrom(rhs.GetClass()); in AssignableFrom()
130 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.cc742 } else if (s->IsAssignableFrom(t)) { in ClassJoin()
744 } else if (t->IsAssignableFrom(s)) { in ClassJoin()
911 if (cmp1.IsAssignableFrom(cmp2, verifier)) { in CanAssignArray()
Dverifier_deps.cc393 if (destination->IsAssignableFrom(boundary)) { in FindOneClassPathBoundaryForInterface()
456 DCHECK_EQ(is_assignable, destination->IsAssignableFrom(source)); in AddAssignability()
914 if (destination->IsAssignableFrom(source.Get()) != expected_assignability) { in VerifyAssignability()
Dmethod_verifier.cc2235 } else if (!return_type.IsAssignableFrom(reg_type, this)) { in CodeFlowVerifyInstruction()
2533 if (!reg_types_.JavaLangThrowable(false).IsAssignableFrom(res_type, this)) { in CodeFlowVerifyInstruction()
3786 if (!reg_types_.JavaLangThrowable(false).IsAssignableFrom(exception, this)) { in GetCaughtExceptionType()
3803 reg_types_.JavaLangThrowable(false).IsAssignableFrom( in GetCaughtExceptionType()
4047 if (!res_method_class->IsAssignableFrom(adjusted_type, this)) { in VerifyInvocationArgsFromIterator()
4525 if (!res_method_class.IsAssignableFrom(actual_arg_type, this)) { in VerifyInvokeVirtualQuickArgs()
4895 } else if (!field_klass.IsAssignableFrom(obj_type, this)) { in GetInstanceField()
5003 if (!insn_type.IsAssignableFrom(*field_type, this)) { in VerifyISFieldAccess()
5035 if (!insn_type.IsAssignableFrom(*field_type, this)) { in VerifyISFieldAccess()
5166 if (!insn_type.IsAssignableFrom(*field_type, this)) { in VerifyQuickFieldAccess()
[all …]
Dregister_line.cc79 if (!check_type1.IsAssignableFrom(src_type, verifier)) { in VerifyRegisterTypeWide()
Dreg_type.h216 bool IsAssignableFrom(const RegType& src, MethodVerifier* verifier) const
/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()
1204 EXPECT_TRUE(I->IsAssignableFrom(A.Get())); in TEST_F()
1205 EXPECT_TRUE(J->IsAssignableFrom(A.Get())); in TEST_F()
1206 EXPECT_TRUE(J->IsAssignableFrom(K.Get())); in TEST_F()
1207 EXPECT_TRUE(K->IsAssignableFrom(B.Get())); in TEST_F()
1208 EXPECT_TRUE(J->IsAssignableFrom(B.Get())); in TEST_F()
Ddebugger.cc406 if (!java_lang_Thread->IsAssignableFrom(thread_peer->GetClass())) { in DecodeThread()
448 if (thread_class->IsAssignableFrom(c)) { in TagFromClass()
455 if (thread_group_class->IsAssignableFrom(c)) { in TagFromClass()
462 if (class_loader_class->IsAssignableFrom(c)) { in TagFromClass()
1391 return expected_class->IsAssignableFrom(event_class); in MatchType()
1806 if (receiver_class != nullptr && !f->GetDeclaringClass()->IsAssignableFrom(receiver_class)) { in GetFieldValueImpl()
1905 if (!field_type->IsAssignableFrom(v->GetClass())) { in SetArtFieldValue()
1981 if (!java_lang_String->IsAssignableFrom(obj->GetClass())) { in StringToUtf8()
2074 if (!c->IsAssignableFrom(thread_group->GetClass())) { in DecodeThreadGroup()
3976 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.cc280 } else if (iter_exception_type->IsAssignableFrom(exception_type.Get())) { in FindCatchBlock()
/art/runtime/entrypoints/
Dentrypoint_utils-inl.h533 if (method_reference_class->IsAssignableFrom(h_referring_class.Get())) { in FindMethodFromCode()
554 if (!method_reference_class->IsAssignableFrom(h_this->GetClass())) { in FindMethodFromCode()
727 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.cc151 if (dstComponentType->IsAssignableFrom(srcComponentType)) { in System_arraycopy()
/art/test/004-JniTest/
Djni_test.cc285 return env->IsAssignableFrom(from, to); in Java_Main_nativeIsAssignableFrom()
/art/compiler/optimizing/
Dinliner.cc210 } else if (!resolved_method->GetDeclaringClass()->IsAssignableFrom(info.GetTypeHandle().Get())) { in FindVirtualOrInterfaceTarget()
722 if (!resolved_method->GetDeclaringClass()->IsAssignableFrom(klass.Get())) { in ResolveMethodFromInlineCache()

12