Home
last modified time | relevance | path

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

12

/art/runtime/entrypoints/portable/
Dportable_cast_entrypoints.cc28 return dest_type->IsAssignableFrom(src_type) ? 1 : 0; in art_portable_is_assignable_from_code()
36 if (UNLIKELY(!dest_type->IsAssignableFrom(src_type))) { in art_portable_check_cast_from_code()
52 if (UNLIKELY(!component_type->IsAssignableFrom(element_class))) { in art_portable_check_put_array_element_from_code()
Dportable_throw_entrypoints.cc107 } else if (iter_exception_type->IsAssignableFrom(exception_type)) { in art_portable_find_catch_block_from_code()
/art/runtime/mirror/
Dobject_test.cc560 TEST_F(ObjectTest, IsAssignableFrom) { in TEST_F() argument
568 EXPECT_TRUE(X->IsAssignableFrom(X)); in TEST_F()
569 EXPECT_TRUE(X->IsAssignableFrom(Y)); in TEST_F()
570 EXPECT_FALSE(Y->IsAssignableFrom(X)); in TEST_F()
571 EXPECT_TRUE(Y->IsAssignableFrom(Y)); in TEST_F()
577 EXPECT_TRUE(charseq->IsAssignableFrom(string)); in TEST_F()
579 EXPECT_FALSE(string->IsAssignableFrom(charseq)); in TEST_F()
590 EXPECT_TRUE(prim_types[i]->IsAssignableFrom(prim_types[j])); in TEST_F()
592 EXPECT_FALSE(prim_types[i]->IsAssignableFrom(prim_types[j])); in TEST_F()
635 EXPECT_TRUE(YAA->IsAssignableFrom(YAA)); // identity in TEST_F()
[all …]
Dobject.cc216 CHECK(fh.GetType()->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl()
236 CHECK(fh.GetType()->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl()
Dobject_array-inl.h217 } else if (LIKELY(dst_class->IsAssignableFrom(o_class))) { in AssignableCheckingMemcpy()
Dart_method.cc245 } else if (iter_exception_type->IsAssignableFrom(exception_type.Get())) { in FindCatchBlock()
Dclass.cc107 if (!eiie_class->IsAssignableFrom(exception_class)) { in SetStatus()
350 return WellKnownClasses::ToClass(WellKnownClasses::java_lang_Throwable)->IsAssignableFrom(this); in IsThrowableClass()
Dclass-inl.h230 return GetComponentType()->IsAssignableFrom(src->GetComponentType()); in IsArrayAssignableFromArray()
Dobject-inl.h190 return klass->IsAssignableFrom(GetClass<kVerifyFlags>()); in InstanceOf()
Dclass.h597 ALWAYS_INLINE bool IsAssignableFrom(Class* src) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in IsAssignableFrom() function
/art/runtime/entrypoints/quick/
Dquick_cast_entrypoints.cc27 return klass->IsAssignableFrom(ref_class) ? 1 : 0; in artIsAssignableFromCode()
Dquick_throw_entrypoints.cc106 CHECK(!dest_type->IsAssignableFrom(src_type)); in artThrowClassCastException()
/art/runtime/
Djni_internal_test.cc973 TEST_F(JniInternalTest, IsAssignableFrom) { in TEST_F() argument
981 ASSERT_TRUE(env_->IsAssignableFrom(string_class, object_class)); in TEST_F()
982 ASSERT_FALSE(env_->IsAssignableFrom(object_class, string_class)); in TEST_F()
989 ASSERT_TRUE(env_->IsAssignableFrom(string_class, charsequence_interface)); in TEST_F()
990 ASSERT_FALSE(env_->IsAssignableFrom(charsequence_interface, string_class)); in TEST_F()
997 ASSERT_TRUE(env_->IsAssignableFrom(string_array_class, object_array_class)); in TEST_F()
998 ASSERT_FALSE(env_->IsAssignableFrom(object_array_class, string_array_class)); in TEST_F()
1004 EXPECT_EQ(env_->IsAssignableFrom(nullptr, string_class), JNI_FALSE); in TEST_F()
1006 EXPECT_EQ(env_->IsAssignableFrom(object_class, nullptr), JNI_FALSE); in TEST_F()
Dclass_linker_test.cc262 EXPECT_TRUE(method->GetDeclaringClass()->IsAssignableFrom(klass.Get())); in AssertClass()
928 EXPECT_TRUE(I->IsAssignableFrom(A.Get())); in TEST_F()
929 EXPECT_TRUE(J->IsAssignableFrom(A.Get())); in TEST_F()
930 EXPECT_TRUE(J->IsAssignableFrom(K.Get())); in TEST_F()
931 EXPECT_TRUE(K->IsAssignableFrom(B.Get())); in TEST_F()
932 EXPECT_TRUE(J->IsAssignableFrom(B.Get())); in TEST_F()
Ddebugger.cc445 if (!java_lang_Thread->IsAssignableFrom(thread_peer->GetClass())) { in DecodeThread()
485 if (thread_class->IsAssignableFrom(c)) { in TagFromClass()
492 if (thread_group_class->IsAssignableFrom(c)) { in TagFromClass()
499 if (class_loader_class->IsAssignableFrom(c)) { in TagFromClass()
1477 return expected_class->IsAssignableFrom(event_class); in MatchType()
1818 if (receiver_class != NULL && !f->GetDeclaringClass()->IsAssignableFrom(receiver_class)) { in GetFieldValueImpl()
1913 if (!field_type->IsAssignableFrom(v->GetClass())) { in SetFieldValueImpl()
1941 if (!java_lang_String->IsAssignableFrom(obj->GetClass())) { in StringToUtf8()
2035 if (!c->IsAssignableFrom(thread_group->GetClass())) { in DecodeThreadGroup()
3656 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in InvokeMethod()
Dcheck_jni.cc336 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in CheckStaticMethod()
1142 static jboolean IsAssignableFrom(JNIEnv* env, jclass c1, jclass c2) { in IsAssignableFrom() function in art::CheckJNI
1144 return CHECK_JNI_EXIT("b", baseEnv(env)->IsAssignableFrom(env, c1, c2)); in IsAssignableFrom()
1797 CheckJNI::IsAssignableFrom,
Dreflection.cc812 } else if (declaring_class->IsAssignableFrom(caller_class)) { in VerifyAccess()
Djni_internal.cc668 static jboolean IsAssignableFrom(JNIEnv* env, jclass java_class1, jclass java_class2) { in IsAssignableFrom() function in art::JNI
674 return c2->IsAssignableFrom(c1) ? JNI_TRUE : JNI_FALSE; in IsAssignableFrom()
2152 if (UNLIKELY(!element_class->IsAssignableFrom(initial_object->GetClass()))) { in NewObjectArray()
2731 JNI::IsAssignableFrom,
/art/runtime/verifier/
Dreg_type.cc746 lhs.GetClass()->IsAssignableFrom(rhs.GetClass())) { in AssignableFrom()
757 bool RegType::IsAssignableFrom(RegType& src) { in IsAssignableFrom() function in art::verifier::RegType
917 } else if (s->IsAssignableFrom(t)) { in ClassJoin()
919 } else if (t->IsAssignableFrom(s)) { in ClassJoin()
Dregister_line.cc113 if (!(check_type.IsAssignableFrom(src_type))) { in VerifyRegisterType()
147 if (!check_type1.IsAssignableFrom(src_type)) { in VerifyRegisterTypeWide()
Dmethod_verifier.cc1636 } else if (!return_type.IsAssignableFrom(reg_type)) { in CodeFlowVerifyInstruction()
1879 if (!reg_types_.JavaLangThrowable(false).IsAssignableFrom(res_type)) { in CodeFlowVerifyInstruction()
3005 if (!reg_types_.JavaLangThrowable(false).IsAssignableFrom(exception)) { in GetCaughtExceptionType()
3021 reg_types_.JavaLangThrowable(false).IsAssignableFrom(*common_super), in GetCaughtExceptionType()
3196 if (!res_method_class->IsAssignableFrom(actual_arg_type)) { in VerifyInvocationArgsFromIterator()
3429 if (!res_method_class.IsAssignableFrom(actual_arg_type)) { in VerifyInvokeVirtualQuickArgs()
3747 } else if (!field_klass.IsAssignableFrom(obj_type)) { in GetInstanceField()
3813 if (!insn_type.IsAssignableFrom(*field_type)) { in VerifyISFieldAccess()
3840 if (!insn_type.IsAssignableFrom(*field_type)) { in VerifyISFieldAccess()
3971 if (!insn_type.IsAssignableFrom(*field_type)) { in VerifyQuickFieldAccess()
[all …]
Dreg_type.h237 bool IsAssignableFrom(RegType& src) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
/art/runtime/native/
Djava_lang_System.cc143 if (dstComponentType->IsAssignableFrom(srcComponentType)) { in System_arraycopy()
/art/runtime/entrypoints/
Dentrypoint_utils.cc334 declares_exception = declared_exception->IsAssignableFrom(exception_class); in InvokeProxyInvocationHandler()
/art/test/004-JniTest/
Djni_test.cc263 return env->IsAssignableFrom(from, to); in Java_Main_nativeIsAssignableFrom()

12