Home
last modified time | relevance | path

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

12

/art/runtime/mirror/
Dobject_test.cc579 TEST_F(ObjectTest, IsAssignableFrom) { in TEST_F() argument
587 EXPECT_TRUE(X->IsAssignableFrom(X)); in TEST_F()
588 EXPECT_TRUE(X->IsAssignableFrom(Y)); in TEST_F()
589 EXPECT_FALSE(Y->IsAssignableFrom(X)); in TEST_F()
590 EXPECT_TRUE(Y->IsAssignableFrom(Y)); in TEST_F()
596 EXPECT_TRUE(charseq->IsAssignableFrom(string)); in TEST_F()
598 EXPECT_FALSE(string->IsAssignableFrom(charseq)); in TEST_F()
609 EXPECT_TRUE(prim_types[i]->IsAssignableFrom(prim_types[j])); in TEST_F()
611 EXPECT_FALSE(prim_types[i]->IsAssignableFrom(prim_types[j])); in TEST_F()
654 EXPECT_TRUE(YAA->IsAssignableFrom(YAA)); // identity in TEST_F()
[all …]
Dobject.cc216 CHECK(field_type->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl()
235 CHECK(field_type->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl()
Dobject_array-inl.h222 } else if (LIKELY(dst_class->IsAssignableFrom(o_class))) { in AssignableCheckingMemcpy()
Dclass.cc104 if (!eiie_class->IsAssignableFrom(exception_class)) { in SetStatus()
337 return WellKnownClasses::ToClass(WellKnownClasses::java_lang_Throwable)->IsAssignableFrom(this); in IsThrowableClass()
Dclass-inl.h255 return GetComponentType()->IsAssignableFrom(src->GetComponentType()); in IsArrayAssignableFromArray()
Dobject-inl.h221 return klass->IsAssignableFrom(GetClass<kVerifyFlags>()); in InstanceOf()
Dclass.h619 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.cc99 DCHECK(!dest_type->IsAssignableFrom(src_type)); in artThrowClassCastException()
/art/runtime/verifier/
Dreg_type-inl.h103 lhs.GetClass()->IsAssignableFrom(rhs.GetClass())) { in AssignableFrom()
114 inline bool RegType::IsAssignableFrom(const RegType& src) const { in IsAssignableFrom() function
Dregister_line-inl.h132 if (UNLIKELY(!check_type.IsAssignableFrom(src_type))) { in VerifyRegisterType()
Dreg_type.cc715 } else if (s->IsAssignableFrom(t)) { in ClassJoin()
717 } else if (t->IsAssignableFrom(s)) { in ClassJoin()
834 if (cmp1.IsAssignableFrom(cmp2)) { in CanAssignArray()
Dmethod_verifier.cc1803 } else if (!return_type.IsAssignableFrom(reg_type)) { in CodeFlowVerifyInstruction()
2059 if (!reg_types_.JavaLangThrowable(false).IsAssignableFrom(res_type)) { in CodeFlowVerifyInstruction()
3197 if (!reg_types_.JavaLangThrowable(false).IsAssignableFrom(exception)) { in GetCaughtExceptionType()
3213 reg_types_.JavaLangThrowable(false).IsAssignableFrom(*common_super), in GetCaughtExceptionType()
3388 if (!res_method_class->IsAssignableFrom(actual_arg_type)) { in VerifyInvocationArgsFromIterator()
3622 if (!res_method_class.IsAssignableFrom(actual_arg_type)) { in VerifyInvokeVirtualQuickArgs()
3960 } else if (!field_klass.IsAssignableFrom(obj_type)) { in GetInstanceField()
4021 if (!insn_type.IsAssignableFrom(*field_type)) { in VerifyISFieldAccess()
4053 if (!insn_type.IsAssignableFrom(*field_type)) { in VerifyISFieldAccess()
4182 if (!insn_type.IsAssignableFrom(*field_type)) { in VerifyQuickFieldAccess()
[all …]
Dregister_line.cc76 if (!check_type1.IsAssignableFrom(src_type)) { in VerifyRegisterTypeWide()
Dreg_type.h207 bool IsAssignableFrom(const RegType& src) const
/art/runtime/
Djni_internal_test.cc1254 TEST_F(JniInternalTest, IsAssignableFrom) { in TEST_F() argument
1262 ASSERT_TRUE(env_->IsAssignableFrom(string_class, object_class)); in TEST_F()
1263 ASSERT_FALSE(env_->IsAssignableFrom(object_class, string_class)); in TEST_F()
1270 ASSERT_TRUE(env_->IsAssignableFrom(string_class, charsequence_interface)); in TEST_F()
1271 ASSERT_FALSE(env_->IsAssignableFrom(charsequence_interface, string_class)); in TEST_F()
1278 ASSERT_TRUE(env_->IsAssignableFrom(string_array_class, object_array_class)); in TEST_F()
1279 ASSERT_FALSE(env_->IsAssignableFrom(object_array_class, string_array_class)); in TEST_F()
1286 EXPECT_EQ(env_->IsAssignableFrom(nullptr, string_class), JNI_FALSE); in TEST_F()
1288 EXPECT_EQ(env_->IsAssignableFrom(object_class, nullptr), JNI_FALSE); in TEST_F()
1291 EXPECT_EQ(env_->IsAssignableFrom(nullptr, string_class), JNI_FALSE); in TEST_F()
[all …]
Dclass_linker_test.cc258 EXPECT_TRUE(method.GetDeclaringClass()->IsAssignableFrom(klass.Get())); in AssertClass()
967 EXPECT_TRUE(I->IsAssignableFrom(A.Get())); in TEST_F()
968 EXPECT_TRUE(J->IsAssignableFrom(A.Get())); in TEST_F()
969 EXPECT_TRUE(J->IsAssignableFrom(K.Get())); in TEST_F()
970 EXPECT_TRUE(K->IsAssignableFrom(B.Get())); in TEST_F()
971 EXPECT_TRUE(J->IsAssignableFrom(B.Get())); in TEST_F()
Ddebugger.cc485 if (!java_lang_Thread->IsAssignableFrom(thread_peer->GetClass())) { in DecodeThread()
526 if (thread_class->IsAssignableFrom(c)) { in TagFromClass()
533 if (thread_group_class->IsAssignableFrom(c)) { in TagFromClass()
540 if (class_loader_class->IsAssignableFrom(c)) { in TagFromClass()
1433 return expected_class->IsAssignableFrom(event_class); in MatchType()
1831 if (receiver_class != nullptr && !f->GetDeclaringClass()->IsAssignableFrom(receiver_class)) { in GetFieldValueImpl()
1922 if (!field_type->IsAssignableFrom(v->GetClass())) { in SetArtFieldValue()
1987 if (!java_lang_String->IsAssignableFrom(obj->GetClass())) { in StringToUtf8()
2082 if (!c->IsAssignableFrom(thread_group->GetClass())) { in DecodeThreadGroup()
3916 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in PrepareInvokeMethod()
Dart_method.cc281 } else if (iter_exception_type->IsAssignableFrom(exception_type.Get())) { in FindCatchBlock()
Dcheck_jni.cc224 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in CheckMethodAndSig()
278 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in CheckStaticMethod()
596 if (o == nullptr || !field->GetDeclaringClass()->IsAssignableFrom(o->GetClass())) { in CheckFieldAccess()
1547 static jboolean IsAssignableFrom(JNIEnv* env, jclass c1, jclass c2) { in IsAssignableFrom() function in art::CheckJNI
1553 result.b = baseEnv(env)->IsAssignableFrom(env, c1, c2); in IsAssignableFrom()
3392 CheckJNI::IsAssignableFrom,
Djni_internal.cc414 static jboolean IsAssignableFrom(JNIEnv* env, jclass java_class1, jclass java_class2) { in IsAssignableFrom() function in art::JNI
420 return c2->IsAssignableFrom(c1) ? JNI_TRUE : JNI_FALSE; in IsAssignableFrom()
1863 if (UNLIKELY(!element_class->IsAssignableFrom(initial_object->GetClass()))) { in NewObjectArray()
2498 JNI::IsAssignableFrom,
Dreflection.cc865 } else if (declaring_class->IsAssignableFrom(calling_class)) { in VerifyAccess()
/art/runtime/native/
Djava_lang_System.cc142 if (dstComponentType->IsAssignableFrom(srcComponentType)) { in System_arraycopy()
/art/runtime/entrypoints/
Dentrypoint_utils.cc311 declares_exception = declared_exception->IsAssignableFrom(exception_class); in InvokeProxyInvocationHandler()
/art/test/004-JniTest/
Djni_test.cc268 return env->IsAssignableFrom(from, to); in Java_Main_nativeIsAssignableFrom()

12