Home
last modified time | relevance | path

Searched refs:PROTECTED (Results 1 – 10 of 10) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/reflect/
DModifier.java78 return (mod & PROTECTED) != 0; in isProtected()
233 if ((mod & PROTECTED) != 0) sb.append("protected "); in toString()
273 public static final int PROTECTED = 0x00000004; field in Modifier
381 Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE |
390 Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE |
399 Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE;
406 Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE |
415 Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE |
430 Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DModifierTest.java99 .isProtected(Modifier.PROTECTED)); in test_isProtectedI()
199 assertEquals(4, Modifier.PROTECTED); in test_Constants_Value()
321 assertEquals(Modifier.PROTECTED, ProtectedClazz.class.getModifiers()); in test_Class_Modifier()
326 assertEquals(Modifier.PROTECTED + Modifier.ABSTRACT, in test_Class_Modifier()
333 assertEquals(Modifier.PROTECTED + Modifier.FINAL, in test_Class_Modifier()
340 assertEquals(Modifier.PROTECTED + Modifier.STATIC, in test_Class_Modifier()
356 assertEquals(Modifier.PROTECTED + Modifier.STATIC + Modifier.ABSTRACT, in test_Class_Modifier()
365 assertEquals(Modifier.PROTECTED + Modifier.STATIC + Modifier.FINAL, in test_Class_Modifier()
374 assertEquals(Modifier.PROTECTED + Modifier.INTERFACE + Modifier.STATIC in test_Class_Modifier()
386 assertEquals(Modifier.PROTECTED + Modifier.INTERFACE + Modifier.STATIC in test_Class_Modifier()
DConstructorTest.java249 ((mod & Modifier.PROTECTED) == Modifier.PROTECTED) in test_getModifiers()
DFieldTest.java966 int mask = (Modifier.PROTECTED | Modifier.STATIC) in test_getModifiers()
/libcore/ojluni/src/main/java/sun/invoke/util/
DVerifyAccess.java42 private static final int PROTECTED_OR_PACKAGE_ALLOWED = (PACKAGE_ALLOWED|PROTECTED);
43 private static final int ALL_ACCESS_MODES = (PUBLIC|PRIVATE|PROTECTED|PACKAGE_ONLY);
104 case PROTECTED: in isMemberAccessible()
109 if ((allowedModes & PROTECTED) == 0) in isMemberAccessible()
117 if ((allowedModes & PROTECTED) != 0 && in isMemberAccessible()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DModifierTest.java72 assertTrue(Modifier.isProtected(Modifier.PROTECTED)); in test_isProtectedI()
73 assertTrue(!Modifier.isProtected(-1 & ~Modifier.PROTECTED)); in test_isProtectedI()
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandles.java532 public static final int PROTECTED = Modifier.PROTECTED; field in MethodHandles.Lookup
541 private static final int ALL_MODES = (PUBLIC | PRIVATE | PROTECTED | PACKAGE);
637 int newModes = (allowedModes & (ALL_MODES & ~PROTECTED)); in in()
729 case ALL_MODES & ~PROTECTED: in toString()
1604 mods ^= Modifier.PROTECTED | Modifier.PUBLIC; in checkAccess()
1609 mods ^= Modifier.PROTECTED; in checkAccess()
1620 if ((requestedModes & PROTECTED) != 0 && (allowedModes & PACKAGE) != 0 in checkAccess()
/libcore/ojluni/src/lambda/java/java/lang/invoke/
DMethodHandles.java49 public static final int PROTECTED = 0; field in MethodHandles.Lookup
/libcore/ojluni/src/main/java/java/io/
DObjectStreamClass.java1360 ((mods & (Modifier.PUBLIC | Modifier.PROTECTED)) == 0 && in getSerializableConstructor()
1403 } else if ((mods & (Modifier.PUBLIC | Modifier.PROTECTED)) != 0) { in getInheritableMethod()
1722 (Modifier.PUBLIC | Modifier.PRIVATE | Modifier.PROTECTED | in computeDefaultSUID()
1755 (Modifier.PUBLIC | Modifier.PRIVATE | Modifier.PROTECTED | in computeDefaultSUID()
1782 (Modifier.PUBLIC | Modifier.PRIVATE | Modifier.PROTECTED | in computeDefaultSUID()
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandlesTest.java40 private static final int ALL_LOOKUP_MODES = (PUBLIC | PRIVATE | PACKAGE | PROTECTED);
60 assertEquals(ALL_LOOKUP_MODES & ~(PROTECTED | PRIVATE), siblingLookup.lookupModes()); in test_LookupIn()