Home
last modified time | relevance | path

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

/art/runtime/mirror/
Dobject_test.cc106 TEST_F(ObjectTest, IsInSamePackage) { in TEST_F() argument
108 EXPECT_TRUE(Class::IsInSamePackage("Ljava/lang/Object;", "Ljava/lang/Class;")); in TEST_F()
109 EXPECT_TRUE(Class::IsInSamePackage("LFoo;", "LBar;")); in TEST_F()
112 EXPECT_FALSE(Class::IsInSamePackage("Ljava/lang/Object;", "Ljava/io/File;")); in TEST_F()
113 EXPECT_FALSE(Class::IsInSamePackage("Ljava/lang/Object;", "Ljava/lang/reflect/Method;")); in TEST_F()
Dclass.h533 bool IsInSamePackage(Class* that) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
535 static bool IsInSamePackage(const StringPiece& descriptor1, const StringPiece& descriptor2);
539 return that->IsPublic() || this->IsInSamePackage(that); in CanAccess()
566 return this->IsInSamePackage(access_to); in CanAccessMember()
Dclass.cc306 bool Class::IsInSamePackage(const StringPiece& descriptor1, const StringPiece& descriptor2) { in IsInSamePackage() function in art::mirror::Class
319 bool Class::IsInSamePackage(Class* that) { in IsInSamePackage() function in art::mirror::Class
342 return IsInSamePackage(klass1->GetDescriptor(&temp1), klass2->GetDescriptor(&temp2)); in IsInSamePackage()
/art/runtime/
Dreflection.cc810 !declaring_class->IsInSamePackage(caller_class)) { in VerifyAccess()
816 return declaring_class->IsInSamePackage(caller_class); in VerifyAccess()
Dclass_linker_test.cc204 EXPECT_TRUE(klass->IsInSamePackage(klass.Get())); in AssertClass()
208 EXPECT_TRUE(mirror::Class::IsInSamePackage(klass->GetDescriptor(&temp), in AssertClass()