Home
last modified time | relevance | path

Searched refs:PUBLIC (Results 1 – 25 of 29) sorted by relevance

12

/libcore/ojluni/src/main/java/java/lang/reflect/
DModifier.java69 return (mod & PUBLIC) != 0; in isPublic()
247 if ((mod & PUBLIC) != 0) sj.add("public"); in toString()
274 public static final int PUBLIC = 0x00000001; field in Modifier
397 Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE |
406 Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE |
415 Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE;
422 Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE |
431 Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE |
446 Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE;
DMember.java47 public static final int PUBLIC = 0; field
DProxy.java647 int accessFlags = Modifier.PUBLIC | Modifier.FINAL; in apply()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DModifierTest.java110 assertTrue("PUBLIC returned false", Modifier.isPublic(Modifier.PUBLIC)); in test_isPublicI()
179 + Modifier.toString(java.lang.reflect.Modifier.PUBLIC in test_toStringI()
182 java.lang.reflect.Modifier.PUBLIC in test_toStringI()
200 assertEquals(1, Modifier.PUBLIC); in test_Constants_Value()
320 assertEquals(Modifier.PUBLIC, PublicClazz.class.getModifiers()); in test_Class_Modifier()
324 assertEquals(Modifier.PUBLIC + Modifier.ABSTRACT, in test_Class_Modifier()
331 assertEquals(Modifier.PUBLIC + Modifier.FINAL, PublicFinalClazz.class in test_Class_Modifier()
338 assertEquals(Modifier.PUBLIC + Modifier.STATIC, PublicStaticClazz.class in test_Class_Modifier()
345 assertEquals(Modifier.PUBLIC + Modifier.INTERFACE + Modifier.STATIC in test_Class_Modifier()
354 assertEquals(Modifier.PUBLIC + Modifier.STATIC + Modifier.ABSTRACT, in test_Class_Modifier()
[all …]
DConstructorTest.java227 ((mod & Modifier.PUBLIC) == Modifier.PUBLIC) in test_getModifiers()
239 && ((mod & Modifier.PUBLIC) == 0)); in test_getModifiers()
250 && ((mod & Modifier.PUBLIC) == 0)); in test_getModifiers()
DMethodTest.java299 mask = Modifier.PUBLIC | Modifier.STATIC; in test_getModifiers()
315 mask = (Modifier.PUBLIC | Modifier.STATIC) | Modifier.SYNCHRONIZED; in test_getModifiers()
323 mask = ((Modifier.PUBLIC | Modifier.STATIC) | Modifier.SYNCHRONIZED) in test_getModifiers()
333 mask = Modifier.PUBLIC | Modifier.ABSTRACT; in test_getModifiers()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyRepTest.java41 assertNotNull(new KeyRep(KeyRep.Type.PUBLIC, "", "", new byte[] {})); in testKeyRep01()
62 new KeyRep(KeyRep.Type.PUBLIC, "", "", null); in testKeyRep02()
92 KeyRepChild kr = new KeyRepChild(KeyRep.Type.PUBLIC, "", "", new byte[] {}); in testReadResolve02()
99 kr = new KeyRepChild(KeyRep.Type.PUBLIC, "", "RAW", new byte[] {}); in testReadResolve02()
106 kr = new KeyRepChild(KeyRep.Type.PUBLIC, "bla-bla", "X.509", new byte[] {}); in testReadResolve02()
139 KeyRepChild kr = new KeyRepChild(KeyRep.Type.PUBLIC, algorithm, "X.509", in testReadResolve04()
DKeyRepTypeTest.java52 assertEquals(KeyRep.Type.PUBLIC, KeyRep.Type.valueOf(KeyRep.Type.PUBLIC in testValueOf()
63 KeyRep.Type.PUBLIC, KeyRep.Type.PRIVATE }; in testValues()
/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()
110 Modifier.toString(Modifier.PUBLIC | Modifier.ABSTRACT | Modifier.STRICT)); in test_toStringI()
DMethodTest.java359 assertEquals(Modifier.PUBLIC | Modifier.STATIC, method.getModifiers()); in testStaticInterfaceMethod_getMethod()
366 assertEquals(Modifier.PUBLIC | Modifier.STATIC, declaredMethod.getModifiers()); in testStaticInterfaceMethod_getDeclaredMethod()
/libcore/ojluni/src/main/java/sun/invoke/util/
DVerifyAccess.java43 private static final int ALL_ACCESS_MODES = (PUBLIC|PRIVATE|PROTECTED|PACKAGE_ONLY);
91 assert((allowedModes & PUBLIC) != 0 && in isMemberAccessible()
102 case PUBLIC: in isMemberAccessible()
/libcore/ojluni/src/test/java/security/KeyAgreement/
DKeySpecTest.java133 : getCompatibleKeySpecs(kpgAlgo, KeyType.PUBLIC)) { in testKeySpecs()
197 PUBLIC, PRIVATE; enumConstant
209 if (type == KeyType.PUBLIC) { in getCompatibleKeySpecs()
217 if (type == KeyType.PUBLIC) { in getCompatibleKeySpecs()
225 if (type == KeyType.PUBLIC) { in getCompatibleKeySpecs()
/libcore/ojluni/src/main/java/java/security/
DKeyRep.java73 PUBLIC, enumConstant
169 } else if (type == Type.PUBLIC && X509.equals(format)) { in readResolve()
/libcore/ojluni/annotations/sdk/nullability/java/lang/reflect/
DMember.annotated.java43 public static final int PUBLIC = 0; // 0x0 field
/libcore/ojluni/src/main/java/sun/reflect/misc/
DReflectUtil.java64 mods = mods | Modifier.PUBLIC; in ensureMemberAccess()
78 mods = mods & (~Modifier.PUBLIC); in ensureMemberAccess()
/libcore/ojluni/src/test/java/lang/invoke/
DMethodHandlesTest.java408 static final Lookup PUBLIC = MethodHandles.publicLookup(); field in MethodHandlesTest
485 …{ { false, PUBLIC }, { false, SUBCLASS }, { false, PACKAGE }, { false, PRIVATE }, { false, EXAMPLE…
486 …{ { false, PUBLIC }, { false, SUBCLASS }, { false, PACKAGE }, { true, PRIVATE }, { true, EXAMPLE }…
487 …{ { false, PUBLIC }, { false, SUBCLASS }, { true, PACKAGE }, { true, PRIVATE }, { true, EXAMPLE } …
488 …{ { false, PUBLIC }, { true, SUBCLASS }, { true, PACKAGE }, { true, PRIVATE }, { true, EXAMPLE } }…
489 …{ { true, PUBLIC }, { true, SUBCLASS }, { true, PACKAGE }, { true, PRIVATE }, { true, EXAMPLE } },…
518 if (lookup == PUBLIC || lookup == SUBCLASS || lookup == PACKAGE)
DMethodHandlesGeneralTest.java184 testFindVirtual(false, PUBLIC, Object.class, Object.class, "clone"); in testFindVirtualClone()
284 for (Lookup lookup : new Lookup[]{ PRIVATE, EXAMPLE, PACKAGE, PUBLIC }) { in testFindSpecial()
301 testFindSpecial(false, PUBLIC, specialCaller, defc, ret, name, params); in testFindSpecial()
308 testFindSpecial(false, PUBLIC, specialCaller, defc, ret, name, params); in testFindSpecial()
/libcore/ojluni/src/lambda/java/java/lang/invoke/
DMethodHandles.java45 public static final int PUBLIC = 0; field in MethodHandles.Lookup
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandles.java573 public static final int PUBLIC = Modifier.PUBLIC; field in MethodHandles.Lookup
596 private static final int ALL_MODES = (PUBLIC | PRIVATE | PROTECTED | PACKAGE);
702 if ((newModes & PUBLIC) != 0 in in()
721 static final Lookup PUBLIC_LOOKUP = new Lookup(Object.class, PUBLIC);
786 case PUBLIC: in toString()
788 case PUBLIC|PACKAGE: in toString()
2109 mods ^= Modifier.PROTECTED | Modifier.PUBLIC; in checkAccess()
/libcore/ojluni/src/main/java/java/io/
DObjectStreamClass.java1443 return ((cons.getModifiers() & Modifier.PUBLIC) != 0) ? in getExternalizableConstructor()
1466 ((mods & (Modifier.PUBLIC | Modifier.PROTECTED)) == 0 && in getSerializableConstructor()
1543 } else if ((mods & (Modifier.PUBLIC | Modifier.PROTECTED)) != 0) { in getInheritableMethod()
1820 (Modifier.PUBLIC | Modifier.FINAL | in computeDefaultSUID()
1865 (Modifier.PUBLIC | Modifier.PRIVATE | Modifier.PROTECTED | in computeDefaultSUID()
1916 (Modifier.PUBLIC | Modifier.PRIVATE | Modifier.PROTECTED | in computeDefaultSUID()
1943 (Modifier.PUBLIC | Modifier.PRIVATE | Modifier.PROTECTED | in computeDefaultSUID()
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandlesTest.java41 private static final int ALL_LOOKUP_MODES = (PUBLIC | PRIVATE | PACKAGE | PROTECTED);
46 assertEquals(PUBLIC, publicLookup.lookupModes()); in test_publicLookupClassAndModes()
66 assertEquals(PUBLIC, nonSibling.lookupModes()); in test_LookupIn()
70 assertEquals(PUBLIC | PRIVATE | PACKAGE, inner2.lookupModes()); in test_LookupIn()
/libcore/ojluni/src/main/java/java/lang/
DClass.java2487 return getConstructor0(parameterTypes, Member.PUBLIC); in getConstructor()
3393 … if (result == null || which == Member.PUBLIC && !Modifier.isPublic(result.getAccessFlags())) { in getConstructor0()
/libcore/xml/src/main/java/com/android/org/kxml2/io/
DKXmlParser.java71 private static final char[] PUBLIC = { 'P', 'U', 'B', 'L', 'I', 'C' }; field in KXmlParser
629 read(PUBLIC); in readExternalId()
/libcore/ojluni/annotations/hiddenapi/java/lang/invoke/
DMethodHandles.java620 public static final int PUBLIC = 1; // 0x1 field in MethodHandles.Lookup
/libcore/ojluni/src/test/
DLICENSE1 GNU GENERAL PUBLIC LICENSE
59 GNU GENERAL PUBLIC LICENSE

12