Home
last modified time | relevance | path

Searched refs:IsInSamePackage (Results 1 – 7 of 7) sorted by relevance

/art/runtime/mirror/
Dobject_test.cc99 TEST_F(ObjectTest, IsInSamePackage) { in TEST_F() argument
101 EXPECT_TRUE(Class::IsInSamePackage("Ljava/lang/Object;", "Ljava/lang/Class;")); in TEST_F()
102 EXPECT_TRUE(Class::IsInSamePackage("LFoo;", "LBar;")); in TEST_F()
105 EXPECT_FALSE(Class::IsInSamePackage("Ljava/lang/Object;", "Ljava/io/File;")); in TEST_F()
106 EXPECT_FALSE(Class::IsInSamePackage("Ljava/lang/Object;", "Ljava/lang/reflect/Method;")); in TEST_F()
Dclass.cc513 bool Class::IsInSamePackage(std::string_view descriptor1, std::string_view descriptor2) { in IsInSamePackage() function in art::mirror::Class
527 bool Class::IsInSamePackage(ObjPtr<Class> that) { in IsInSamePackage() function in art::mirror::Class
550 return IsInSamePackage(klass1->GetDescriptor(&temp1), klass2->GetDescriptor(&temp2)); in IsInSamePackage()
652 if (!klass->IsInSamePackage(declaring_class)) { in IsInheritedMethod()
Dclass-inl.h1167 return that->IsPublic() || this->IsInSamePackage(that); in CanAccess()
1191 return this->IsInSamePackage(access_to); in CanAccessMember()
Dclass.h602 bool IsInSamePackage(ObjPtr<Class> that) REQUIRES_SHARED(Locks::mutator_lock_);
604 static bool IsInSamePackage(std::string_view descriptor1, std::string_view descriptor2);
/art/runtime/
Dreflection.cc1024 !declaring_class->IsInSamePackage(calling_class)) { in VerifyAccess()
1030 return declaring_class->IsInSamePackage(calling_class); in VerifyAccess()
Dclass_linker_test.cc285 EXPECT_TRUE(klass->IsInSamePackage(klass.Get())); in AssertClass()
287 EXPECT_TRUE(mirror::Class::IsInSamePackage(klass->GetDescriptor(&temp), in AssertClass()
/art/runtime/native/
Djava_lang_Class.cc98 if ((declaring_class == lookup_class || declaring_class->IsInSamePackage(lookup_class)) in GetReflectionCaller()
107 if (declaring_class->IsInSamePackage(proxy_class) && declaring_class != proxy_class) { in GetReflectionCaller()