/art/runtime/mirror/ |
D | object_test.cc | 562 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 …]
|
D | object.cc | 244 CHECK(field_type->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl() 261 CHECK(field_type->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl()
|
D | object_array-inl.h | 294 } else if (LIKELY(dst_class->IsAssignableFrom(o_class))) { in AssignableCheckingMemcpy() 319 } else if (LIKELY(dst_class->IsAssignableFrom(o_class))) { in AssignableCheckingMemcpy()
|
D | class.cc | 388 return WellKnownClasses::ToClass(WellKnownClasses::java_lang_Throwable)->IsAssignableFrom(this); in IsThrowableClass() 738 if (iface->IsAssignableFrom(possible_override->GetDeclaringClass())) { in FindVirtualMethodForInterfaceSuper() 1041 while (!common_super_class->IsAssignableFrom(klass.Get())) { in GetCommonSuperClass()
|
D | class-inl.h | 396 return GetComponentType()->IsAssignableFrom(src->GetComponentType()); in IsArrayAssignableFromArray() 1015 inline bool Class::IsAssignableFrom(ObjPtr<Class> src) { in IsAssignableFrom() function
|
/art/runtime/entrypoints/quick/ |
D | quick_cast_entrypoints.cc | 27 return klass->IsAssignableFrom(ref_class) ? 1 : 0; in artIsAssignableFromCode()
|
D | quick_throw_entrypoints.cc | 114 DCHECK(!dest_type->IsAssignableFrom(src_type)); in artThrowClassCastException()
|
/art/runtime/verifier/ |
D | reg_type-inl.h | 112 bool result = lhs.GetClass()->IsAssignableFrom(rhs.GetClass()); in AssignableFrom() 133 inline bool RegType::IsAssignableFrom(const RegType& src, MethodVerifier* verifier) const { in IsAssignableFrom() function
|
D | register_line-inl.h | 134 if (UNLIKELY(!check_type.IsAssignableFrom(src_type, verifier))) { in VerifyRegisterType()
|
D | reg_type.cc | 765 } else if (s->IsAssignableFrom(t)) { in ClassJoin() 767 } else if (t->IsAssignableFrom(s)) { in ClassJoin() 942 if (cmp1.IsAssignableFrom(cmp2, verifier)) { in CanAssignArray()
|
D | verifier_deps.cc | 385 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()
|
D | method_verifier.cc | 2234 } else if (!return_type.IsAssignableFrom(reg_type, this)) { in CodeFlowVerifyInstruction() 2532 if (!reg_types_.JavaLangThrowable(false).IsAssignableFrom(res_type, this)) { in CodeFlowVerifyInstruction() 3785 if (!reg_types_.JavaLangThrowable(false).IsAssignableFrom(exception, this)) { in GetCaughtExceptionType() 3802 reg_types_.JavaLangThrowable(false).IsAssignableFrom( in GetCaughtExceptionType() 4051 if (!res_method_class->IsAssignableFrom(adjusted_type, this)) { in VerifyInvocationArgsFromIterator() 4530 if (!res_method_class.IsAssignableFrom(actual_arg_type, this)) { in VerifyInvokeVirtualQuickArgs() 4900 } else if (!field_klass.IsAssignableFrom(obj_type, this)) { in GetInstanceField() 5008 if (!insn_type.IsAssignableFrom(*field_type, this)) { in VerifyISFieldAccess() 5040 if (!insn_type.IsAssignableFrom(*field_type, this)) { in VerifyISFieldAccess() 5171 if (!insn_type.IsAssignableFrom(*field_type, this)) { in VerifyQuickFieldAccess() [all …]
|
D | register_line.cc | 79 if (!check_type1.IsAssignableFrom(src_type, verifier)) { in VerifyRegisterTypeWide()
|
/art/runtime/ |
D | jni_internal_test.cc | 1341 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 …]
|
D | class_linker_test.cc | 344 EXPECT_TRUE(method.GetDeclaringClass()->IsAssignableFrom(klass.Get())) in AssertClass() 1196 EXPECT_TRUE(I->IsAssignableFrom(A.Get())); in TEST_F() 1197 EXPECT_TRUE(J->IsAssignableFrom(A.Get())); in TEST_F() 1198 EXPECT_TRUE(J->IsAssignableFrom(K.Get())); in TEST_F() 1199 EXPECT_TRUE(K->IsAssignableFrom(B.Get())); in TEST_F() 1200 EXPECT_TRUE(J->IsAssignableFrom(B.Get())); in TEST_F()
|
D | debugger.cc | 411 if (!java_lang_Thread->IsAssignableFrom(thread_peer->GetClass())) { in DecodeThread() 453 if (thread_class->IsAssignableFrom(c)) { in TagFromClass() 460 if (thread_group_class->IsAssignableFrom(c)) { in TagFromClass() 467 if (class_loader_class->IsAssignableFrom(c)) { in TagFromClass() 1397 return expected_class->IsAssignableFrom(event_class); in MatchType() 1812 if (receiver_class != nullptr && !f->GetDeclaringClass()->IsAssignableFrom(receiver_class)) { in GetFieldValueImpl() 1911 if (!field_type->IsAssignableFrom(v->GetClass())) { in SetArtFieldValue() 1987 if (!java_lang_String->IsAssignableFrom(obj->GetClass())) { in StringToUtf8() 2080 if (!c->IsAssignableFrom(thread_group->GetClass())) { in DecodeThreadGroup() 3987 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in PrepareInvokeMethod()
|
D | method_handles.cc | 145 return to->IsAssignableFrom(GetBoxedPrimitiveClass(from_primitive)); in IsParameterTypeConvertible() 234 if (h_obj != nullptr && !to->IsAssignableFrom(h_obj->GetClass())) { in ConvertJValueCommon()
|
D | check_jni.cc | 342 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,
|
D | art_method.cc | 294 } else if (iter_exception_type->IsAssignableFrom(exception_type.Get())) { in FindCatchBlock()
|
D | reflection.cc | 910 } else if (declaring_class->IsAssignableFrom(calling_class)) { in VerifyAccess()
|
/art/runtime/entrypoints/ |
D | entrypoint_utils-inl.h | 513 if (method_reference_class->IsAssignableFrom(h_referring_class.Get())) { in FindMethodFromCode() 534 if (!method_reference_class->IsAssignableFrom(h_this->GetClass())) { in FindMethodFromCode() 694 if (!method_reference_class->IsAssignableFrom(referring_class)) { in FindMethodFast()
|
D | entrypoint_utils.cc | 146 declares_exception = declared_exception->IsAssignableFrom(exception_class); in InvokeProxyInvocationHandler()
|
/art/runtime/native/ |
D | java_lang_System.cc | 154 if (dstComponentType->IsAssignableFrom(srcComponentType)) { in System_arraycopy()
|
/art/compiler/optimizing/ |
D | inliner.cc | 221 } else if (!resolved_method->GetDeclaringClass()->IsAssignableFrom(info.GetTypeHandle().Get())) { in FindVirtualOrInterfaceTarget() 733 if (!resolved_method->GetDeclaringClass()->IsAssignableFrom(klass.Get())) { in ResolveMethodFromInlineCache()
|
/art/test/004-JniTest/ |
D | jni_test.cc | 285 return env->IsAssignableFrom(from, to); in Java_Main_nativeIsAssignableFrom()
|