Searched refs:IsInSamePackage (Results 1 – 5 of 5) sorted by relevance
106 TEST_F(ObjectTest, IsInSamePackage) { in TEST_F() argument108 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()
533 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()
306 bool Class::IsInSamePackage(const StringPiece& descriptor1, const StringPiece& descriptor2) { in IsInSamePackage() function in art::mirror::Class319 bool Class::IsInSamePackage(Class* that) { in IsInSamePackage() function in art::mirror::Class342 return IsInSamePackage(klass1->GetDescriptor(&temp1), klass2->GetDescriptor(&temp2)); in IsInSamePackage()
810 !declaring_class->IsInSamePackage(caller_class)) { in VerifyAccess()816 return declaring_class->IsInSamePackage(caller_class); in VerifyAccess()
204 EXPECT_TRUE(klass->IsInSamePackage(klass.Get())); in AssertClass()208 EXPECT_TRUE(mirror::Class::IsInSamePackage(klass->GetDescriptor(&temp), in AssertClass()