Home
last modified time | relevance | path

Searched refs:Modifier (Results 1 – 25 of 37) sorted by relevance

12

/cts/tests/signature-tests/src/android/signature/cts/tests/
DJDiffClassDescriptionTest.java26 import java.lang.reflect.Modifier;
85 clz.setModifier(Modifier.PUBLIC); in createNormalClass()
107 new JDiffClassDescription.JDiffConstructor("NormalClass", Modifier.PUBLIC); in testSimpleConstructor()
116 new JDiffClassDescription.JDiffConstructor("NormalClass", Modifier.PRIVATE); in testOneArgConstructor()
126 new JDiffClassDescription.JDiffConstructor("NormalClass", Modifier.PROTECTED); in testConstructorThrowsException()
153 "staticMethod", Modifier.STATIC | Modifier.PUBLIC, "void"); in testStaticMethod()
162 "syncMethod", Modifier.SYNCHRONIZED | Modifier.PUBLIC, "void"); in testSyncMethod()
180 "privateMethod", Modifier.PRIVATE, "void"); in testPrivateMethod()
189 "protectedMethod", Modifier.PROTECTED, "java.lang.String"); in testProtectedMethod()
198 "throwsMethod", Modifier.PUBLIC, "void"); in testThrowsMethod()
[all …]
/cts/tools/dex-tools/test/dex/reader/
DDexTestsCommon.java38 import java.lang.reflect.Modifier;
58 assertTrue(Modifier.isPublic(withMod.getModifiers())); in assertPublic()
59 assertFalse(Modifier.isPrivate(withMod.getModifiers()) in assertPublic()
60 || Modifier.isProtected(withMod.getModifiers())); in assertPublic()
64 assertTrue(Modifier.isProtected(withMod.getModifiers())); in assertProtected()
65 assertFalse(Modifier.isPrivate(withMod.getModifiers()) in assertProtected()
66 || Modifier.isPublic(withMod.getModifiers())); in assertProtected()
70 assertTrue(Modifier.isPrivate(withMod.getModifiers())); in assertPrivate()
71 assertFalse(Modifier.isProtected(withMod.getModifiers()) in assertPrivate()
72 || Modifier.isPublic(withMod.getModifiers())); in assertPrivate()
[all …]
/cts/tools/signature-tools/src/signature/compare/model/impl/
DSigModifierDelta.java20 import signature.model.Modifier;
22 public class SigModifierDelta extends SigDelta<Modifier> implements
25 public SigModifierDelta(Modifier from, Modifier to) { in SigModifierDelta()
/cts/tools/signature-tools/src/signature/converter/dex/
DDexUtil.java29 import signature.model.Modifier;
152 public static Set<Modifier> getModifier(int mod) { in getModifier()
153 Set<Modifier> modifiers = EnumSet.noneOf(Modifier.class); in getModifier()
154 if (java.lang.reflect.Modifier.isAbstract(mod)) in getModifier()
155 modifiers.add(Modifier.ABSTRACT); in getModifier()
156 if (java.lang.reflect.Modifier.isFinal(mod)) in getModifier()
157 modifiers.add(Modifier.FINAL); in getModifier()
160 if (java.lang.reflect.Modifier.isPrivate(mod)) in getModifier()
161 modifiers.add(Modifier.PRIVATE); in getModifier()
162 if (java.lang.reflect.Modifier.isProtected(mod)) in getModifier()
[all …]
/cts/tools/signature-tools/src/signature/model/
DModifier.java24 public enum Modifier { enum
32 private Modifier(String printableName) { in Modifier() method in Modifier
41 public static String toString(Set<Modifier> modifiers) { in toString()
44 for (Modifier modifier : values()) { in toString()
DIField.java45 Set<Modifier> getModifiers(); in getModifiers()
DIExecutableMember.java55 Set<Modifier> getModifiers(); in getModifiers()
DIClassDefinition.java93 Set<Modifier> getModifiers(); in getModifiers()
/cts/tools/signature-tools/src/signature/model/impl/
DSigField.java21 import signature.model.Modifier;
33 private Set<Modifier> modifiers = Uninitialized.unset();
44 public Set<Modifier> getModifiers() { in getModifiers()
48 public void setModifiers(Set<Modifier> modifiers) { in setModifiers()
68 builder.append(Modifier.toString(getModifiers())); in toString()
DSigExecutableMember.java24 import signature.model.Modifier;
37 private Set<Modifier> modifiers = Uninitialized.unset();
66 public Set<Modifier> getModifiers() { in getModifiers()
70 public void setModifiers(Set<Modifier> modifiers) { in setModifiers()
DSigConstructor.java22 import signature.model.Modifier;
38 builder.append(Modifier.toString(getModifiers())); in toString()
DSigMethod.java23 import signature.model.Modifier;
52 builder.append(Modifier.toString(method.getModifiers())); in toString()
DSigClassDefinition.java33 import signature.model.Modifier;
44 private Set<Modifier> modifiers = Uninitialized.unset();
85 public Set<Modifier> getModifiers() { in getModifiers()
89 public void setModifiers(Set<Modifier> modifiers) { in setModifiers()
/cts/tests/signature/src/android/signature/cts/
DJDiffClassDescription.java23 import java.lang.reflect.Modifier;
146 if ((modifiers & Modifier.PUBLIC) != 0) { in convertModifiersToAccessLevel()
148 } else if ((modifiers & Modifier.PRIVATE) != 0) { in convertModifiersToAccessLevel()
150 } else if ((modifiers & Modifier.PROTECTED) != 0) { in convertModifiersToAccessLevel()
163 if ((modifiers & Modifier.ABSTRACT) != 0) { in convertModifersToModifierString()
171 if ((modifiers & Modifier.STATIC) != 0) { in convertModifersToModifierString()
179 if ((modifiers & Modifier.FINAL) != 0) { in convertModifersToModifierString()
187 if ((modifiers & Modifier.TRANSIENT) != 0) { in convertModifersToModifierString()
195 if ((modifiers & Modifier.VOLATILE) != 0) { in convertModifersToModifierString()
203 if ((modifiers & Modifier.SYNCHRONIZED) != 0) { in convertModifersToModifierString()
[all …]
DSignatureTest.java32 import java.lang.reflect.Modifier;
296 return value.equals("true") ? Modifier.ABSTRACT : 0; in modifierDescriptionToReflectedType()
298 return value.equals("true") ? Modifier.FINAL : 0; in modifierDescriptionToReflectedType()
300 return value.equals("true") ? Modifier.NATIVE : 0; in modifierDescriptionToReflectedType()
302 return value.equals("true") ? Modifier.STATIC : 0; in modifierDescriptionToReflectedType()
304 return value.equals("true") ? Modifier.SYNCHRONIZED : 0; in modifierDescriptionToReflectedType()
306 return value.equals("true") ? Modifier.TRANSIENT : 0; in modifierDescriptionToReflectedType()
308 return value.equals("true") ? Modifier.VOLATILE : 0; in modifierDescriptionToReflectedType()
313 return Modifier.PROTECTED; in modifierDescriptionToReflectedType()
315 return Modifier.PUBLIC; in modifierDescriptionToReflectedType()
/cts/tools/signature-tools/src/signature/compare/model/
DIModifierDelta.java19 import signature.model.Modifier;
25 public interface IModifierDelta extends IDelta<Modifier> {
/cts/tools/signature-tools/src/signature/converter/doclet/
DDocletToSigConverter.java47 import signature.model.Modifier;
147 c.getModifiers().add(Modifier.ABSTRACT); in convertClass()
444 Set<Modifier> modifiers = convertModifiers(member.modifierSpecifier()); in convertExecutableMember()
449 modifiers.add(Modifier.FINAL); in convertExecutableMember()
453 modifiers.add(Modifier.ABSTRACT); in convertExecutableMember()
608 private Set<Modifier> convertModifiers(int mod) { in convertModifiers()
609 Set<Modifier> modifiers = EnumSet.noneOf(Modifier.class); in convertModifiers()
610 if (java.lang.reflect.Modifier.isAbstract(mod)) in convertModifiers()
611 modifiers.add(Modifier.ABSTRACT); in convertModifiers()
612 if (java.lang.reflect.Modifier.isFinal(mod)) in convertModifiers()
[all …]
/cts/tools/signature-tools/test/signature/converter/
DConvertEnumTest.java46 import signature.model.Modifier;
143 assertTrue(c.getModifiers().contains(Modifier.PUBLIC)); in testEnum3()
144 assertFalse(c.getModifiers().contains(Modifier.STATIC)); in testEnum3()
145 assertTrue(c.getModifiers().contains(Modifier.FINAL)); in testEnum3()
186 assertTrue(c.getModifiers().contains(Modifier.PUBLIC)); in testEnum4()
187 assertFalse(c.getModifiers().contains(Modifier.STATIC)); in testEnum4()
188 assertFalse(c.getModifiers().contains(Modifier.FINAL)); in testEnum4()
DConvertClassTest.java49 import signature.model.Modifier;
74 assertTrue(sigClass.getModifiers().contains(Modifier.PUBLIC)); in convertClassClassTest()
85 assertTrue(sigClass.getModifiers().contains(Modifier.PUBLIC)); in convertClassInterfaceTest()
96 assertTrue(sigClass.getModifiers().contains(Modifier.PUBLIC)); in convertClassEnumTest()
107 assertTrue(sigClass.getModifiers().contains(Modifier.PUBLIC)); in convertClassAnnotationTest()
118 assertTrue(sigClass.getModifiers().contains(Modifier.PUBLIC)); in convertAnnotationTest()
137 assertTrue(sigClass.getModifiers().contains(Modifier.PUBLIC)); in convertAnnotationOnFieldTest()
154 assertTrue(sigClass.getModifiers().contains(Modifier.PUBLIC)); in convertGenericClass0()
173 assertTrue(sigClass.getModifiers().contains(Modifier.PUBLIC)); in convertGenericClass00()
192 assertTrue(sigClass.getModifiers().contains(Modifier.PUBLIC)); in convertGenericClass1()
[all …]
/cts/tools/signature-tools/src/signature/compare/model/subst/
DExecutableMemberProjection.java25 import signature.model.Modifier;
56 public Set<Modifier> getModifiers() { in getModifiers()
DClassProjection.java35 import signature.model.Modifier;
119 public Set<Modifier> getModifiers() { in getModifiers()
/cts/tools/dex-tools/src/dex/structure/
DWithModifiers.java19 import java.lang.reflect.Modifier;
/cts/tools/dex-tools/src/dex/reader/
DDexFieldImpl.java25 import java.lang.reflect.Modifier;
97 builder.append(Modifier.toString(getModifiers())); in toString()
DDexMethodImpl.java19 import java.lang.reflect.Modifier;
143 builder.append(Modifier.toString(getModifiers())); in toString()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DSensorCtsVerifierTestActivity.java26 import java.lang.reflect.Modifier;
76 if (Modifier.isPublic(method.getModifiers()) in findTestMethods()

12