Searched refs:IsInSamePackage (Results 1 – 7 of 7) sorted by relevance
103 TEST_F(ObjectTest, IsInSamePackage) { in TEST_F() argument105 EXPECT_TRUE(Class::IsInSamePackage("Ljava/lang/Object;", "Ljava/lang/Class;")); in TEST_F()106 EXPECT_TRUE(Class::IsInSamePackage("LFoo;", "LBar;")); in TEST_F()109 EXPECT_FALSE(Class::IsInSamePackage("Ljava/lang/Object;", "Ljava/io/File;")); in TEST_F()110 EXPECT_FALSE(Class::IsInSamePackage("Ljava/lang/Object;", "Ljava/lang/reflect/Method;")); in TEST_F()
469 bool Class::IsInSamePackage(std::string_view descriptor1, std::string_view descriptor2) { in IsInSamePackage() function in art::mirror::Class483 bool Class::IsInSamePackage(ObjPtr<Class> that) { in IsInSamePackage() function in art::mirror::Class506 return IsInSamePackage(klass1->GetDescriptor(&temp1), klass2->GetDescriptor(&temp2)); in IsInSamePackage()608 if (!klass->IsInSamePackage(declaring_class)) { in IsInheritedMethod()
1153 return that->IsPublic() || this->IsInSamePackage(that); in CanAccess()1186 return this->IsInSamePackage(access_to); in CanAccessMember()
618 bool IsInSamePackage(ObjPtr<Class> that) REQUIRES_SHARED(Locks::mutator_lock_);620 static bool IsInSamePackage(std::string_view descriptor1, std::string_view descriptor2);
207 if ((declaring_class == lookup_class || declaring_class->IsInSamePackage(lookup_class)) && in GetReflectionCallerAccessContext()217 if (declaring_class->IsInSamePackage(proxy_class) && declaring_class != proxy_class) { in GetReflectionCallerAccessContext()
1046 !declaring_class->IsInSamePackage(calling_class)) { in VerifyAccess()1052 return declaring_class->IsInSamePackage(calling_class); in VerifyAccess()
280 EXPECT_TRUE(klass->IsInSamePackage(klass.Get())); in AssertClass()282 EXPECT_TRUE(mirror::Class::IsInSamePackage(klass->GetDescriptor(&temp), in AssertClass()