Home
last modified time | relevance | path

Searched refs:isPublic (Results 1 – 17 of 17) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/reflect/
DModifierTest.java77 assertTrue(Modifier.isPublic(Modifier.PUBLIC)); in test_isPublicI()
78 assertTrue(!Modifier.isPublic(-1 & ~Modifier.PUBLIC)); in test_isPublicI()
DReflectionTest.java556 assertTrue(Modifier.isPublic(modifiers)); in testClassModifiers()
567 assertFalse(Modifier.isPublic(modifiers)); in testInnerClassModifiers()
578 assertFalse(Modifier.isPublic(modifiers)); in testAnonymousClassModifiers()
DOldAndroidClassTest.java96 assertTrue(Modifier.isPublic(helloClass.getModifiers())); in testGetModifiers()
/libcore/ojluni/src/main/java/sun/reflect/
DReflection.java155 if (!Modifier.isPublic(memberClass.getAccessFlags())) { in verifyMemberAccess()
165 if (Modifier.isPublic(modifiers)) { in verifyMemberAccess()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DMalformedParameterizedTypeExceptionTests.java16 assertTrue("Constructor is not protected", Modifier.isPublic(ctor in test_Constructor()
DModifierTest.java109 assertTrue("PUBLIC returned false", Modifier.isPublic(ALL_FLAGS)); in test_isPublicI()
110 assertTrue("PUBLIC returned false", Modifier.isPublic(Modifier.PUBLIC)); in test_isPublicI()
112 .isPublic(Modifier.TRANSIENT)); in test_isPublicI()
/libcore/ojluni/src/test/java/time/test/java/time/
DAbstractTest.java86 assertTrue(Modifier.isPublic(cls.getModifiers())); in assertImmutable()
DTestZoneId.java101 assertTrue(Modifier.isPublic(cls.getModifiers())); in test_immutable()
/libcore/ojluni/src/main/java/java/lang/
DClass.java1362 if (Modifier.isPublic(member.getModifiers())) { in getClasses()
2070 (recursivePublicMethods && !Modifier.isPublic(result.getAccessFlags()))) { in getMethod()
2080 if (result != null && Modifier.isPublic(result.getAccessFlags())) { in getPublicMethodRecursive()
2119 if (result != null && Modifier.isPublic(result.getAccessFlags())) { in findInterfaceMethod()
2330 … if (result == null || which == Member.PUBLIC && !Modifier.isPublic(result.getAccessFlags())) { in getConstructor0()
/libcore/ojluni/src/main/java/sun/invoke/util/
DVerifyAccess.java180 if (Modifier.isPublic(refc.getModifiers())) in isClassAccessible()
/libcore/ojluni/src/main/java/java/lang/reflect/
DModifier.java67 public static boolean isPublic(int mod) { in isPublic() method in Modifier
DProxy.java656 if (!Modifier.isPublic(flags)) { in apply()
888 if (!Modifier.isPublic(cl.getModifiers())) { in newProxyInstance()
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandles.java1901 … if (Modifier.isPublic(mods) && Modifier.isPublic(refc.getModifiers()) && allowedModes != 0) in checkAccess()
1919 boolean classOK = (Modifier.isPublic(defc.getModifiers()) && in accessFailedMessage()
1921 Modifier.isPublic(refc.getModifiers()))); in accessFailedMessage()
1929 if (Modifier.isPublic(mods)) in accessFailedMessage()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassTest.java398 assertFalse("default class is public", Modifier.isPublic(dcm)); in test_getModifiers()
403 assertTrue("public class is not public", Modifier.isPublic(ocm)); in test_getModifiers()
/libcore/luni/src/test/java/libcore/java/lang/
DLambdaImplementationTest.java282 if ((!Modifier.isStatic(modifiers) && Modifier.isPublic(modifiers))) { in addNonStaticPublicMethods()
/libcore/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java515 && Modifier.isPublic(method.getModifiers()) in testMethodNames()
/libcore/ojluni/src/main/java/java/security/
DProvider.java1678 if (!Modifier.isPublic(clazz.getModifiers())) { in getImplClass()