/external/mockito/src/org/mockito/internal/configuration/ |
InjectingAnnotationEngine.java | 12 import java.lang.annotation.Annotation;
31 * @see org.mockito.configuration.AnnotationEngine#createMockFor(java.lang.annotation.Annotation, java.lang.reflect.Field)
34 public Object createMockFor(Annotation annotation, Field field) {
35 return delegate.createMockFor(annotation, field);
|
SpyAnnotationEngine.java | 15 import java.lang.annotation.Annotation;
41 public Object createMockFor(Annotation annotation, Field field) {
78 void assertNoIncompatibleAnnotations(Class annotation, Field field, Class... undesiredAnnotations) {
81 new Reporter().unsupportedCombinationOfAnnotations(annotation.getSimpleName(), annotation.getClass().getSimpleName());
|
/external/proguard/examples/annotations/ |
examples.pro | 32 -keepattributes *Annotation*
|
/external/proguard/examples/ |
applets.pro | 24 -keepattributes *Annotation*
|
applications.pro | 30 -keepattributes *Annotation*
|
servlets.pro | 25 -keepattributes *Annotation*
|
/prebuilts/tools/common/proguard/proguard4.7/examples/annotations/ |
examples.pro | 31 -keepattributes *Annotation*
|
/prebuilts/tools/common/proguard/proguard4.7/examples/ |
applets.pro | 25 -keepattributes *Annotation*
|
applications.pro | 29 -keepattributes *Annotation*
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/ |
XmlQuickAssistManager.java | 25 import org.eclipse.jface.text.source.Annotation; 60 public boolean canFix(Annotation annotation) { 62 if (processor.canFix(annotation)) {
|
/libcore/libart/src/main/java/java/lang/reflect/ |
Field.java | 36 import java.lang.annotation.Annotation; 233 @Override public Annotation[] getDeclaredAnnotations() { 234 List<Annotation> result = AnnotationAccess.getDeclaredAnnotations(this); 235 return result.toArray(new Annotation[result.size()]); 238 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { 245 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { [all...] |
/libcore/libdvm/src/main/java/java/lang/reflect/ |
Constructor.java | 35 import java.lang.annotation.Annotation; 113 Object[] annotation = Method.getSignatureAnnotation(declaringClass, slot); local 115 if (annotation == null) { 119 return StringUtils.combineStrings(annotation); 208 public Annotation[] getDeclaredAnnotations() { 212 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { 219 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { 232 * @return an array of arrays of {@code Annotation} instances 234 public Annotation[][] getParameterAnnotations() [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
RecipientsEditor.java | 26 import android.text.Annotation; 87 * is marked up with Annotation objects to tie it back to the 94 private Annotation[] mAffected; 100 Annotation.class); 119 for (Annotation a : mAffected) { 244 s.setSpan(new Annotation("number", c.getNumber()), 0, len, 267 // the number annotation to get deleted and the whole address (name + number) will 356 // - we lose the annotation and can no longer get the span. 358 Annotation[] a = sp.getSpans(start, end, Annotation.class) [all...] |
/external/proguard/src/proguard/optimize/peephole/ |
TargetClassChanger.java | 26 import proguard.classfile.attribute.annotation.*; 27 import proguard.classfile.attribute.annotation.visitor.*; 261 // Change the references of the annotation. 286 public void visitAnnotation(Clazz clazz, Annotation annotation) 289 updateReferencedClasses(annotation.referencedClasses); 292 annotation.elementValuesAccept(clazz, this); 298 public void visitAnyElementValue(Clazz clazz, Annotation annotation, ElementValue elementValue) 304 // Change the referenced annotation class [all...] |
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
AnnotationTest.java | 18 package org.apache.harmony.annotation.tests.java.lang.annotation; 22 import java.lang.annotation.Annotation; 31 * Test case of java.lang.annotation.Annotation 36 Annotation [] annotations = AnnotatedClass.class.getDeclaredAnnotations(); 38 Annotation anno = annotations[0]; 48 assertFalse("other annotation class type", 75 Annotation a1 = me1.getDeclaredAnnotations()[0] [all...] |
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
AnnotationItem.java | 19 import com.android.dexgen.rop.annotation.Annotation; 20 import com.android.dexgen.rop.annotation.AnnotationVisibility; 21 import com.android.dexgen.rop.annotation.NameValuePair; 33 * Single annotation, which consists of a type and a set of name-value 37 /** annotation visibility constant: visible at build time only */ 40 /** annotation visibility constant: visible at runtime */ 43 /** annotation visibility constant: visible at runtime only to system */ 52 /** {@code non-null;} the annotation to represent */ 53 private final Annotation annotation field in class:AnnotationItem [all...] |
AnnotationSetItem.java | 19 import com.android.dexgen.rop.annotation.Annotation; 20 import com.android.dexgen.rop.annotation.Annotations; 25 * Set of annotations, where no annotation type appears more than once. 56 for (Annotation a : annotations.getAnnotations()) { 138 out.annotate(0, offsetString() + " annotation set");
|
/dalvik/dx/src/com/android/dx/dex/file/ |
AnnotationItem.java | 19 import com.android.dx.rop.annotation.Annotation; 20 import com.android.dx.rop.annotation.AnnotationVisibility; 21 import com.android.dx.rop.annotation.NameValuePair; 30 * Single annotation, which consists of a type and a set of name-value 34 /** annotation visibility constant: visible at build time only */ 37 /** annotation visibility constant: visible at runtime */ 40 /** annotation visibility constant: visible at runtime only to system */ 49 /** {@code non-null;} the annotation to represent */ 50 private final Annotation annotation field in class:AnnotationItem [all...] |
/external/dexmaker/src/dx/java/com/android/dx/dex/file/ |
AnnotationItem.java | 19 import com.android.dx.rop.annotation.Annotation; 20 import com.android.dx.rop.annotation.AnnotationVisibility; 21 import com.android.dx.rop.annotation.NameValuePair; 31 * Single annotation, which consists of a type and a set of name-value 35 /** annotation visibility constant: visible at build time only */ 38 /** annotation visibility constant: visible at runtime */ 41 /** annotation visibility constant: visible at runtime only to system */ 50 /** {@code non-null;} the annotation to represent */ 51 private final Annotation annotation field in class:AnnotationItem [all...] |
/external/junit/src/org/junit/internal/runners/ |
JUnit4ClassRunner.java | 3 import java.lang.annotation.Annotation; 73 protected Annotation[] classAnnotations() { 120 protected Annotation[] testAnnotations(Method method) {
|
/libcore/libdvm/src/main/java/java/lang/ |
Class.java | 39 import java.lang.annotation.Annotation; 40 import java.lang.annotation.Inherited; 285 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { 290 A annotation = getDeclaredAnnotation(annotationType); local 291 if (annotation != null) { 292 return annotation; 297 annotation = sup.getDeclaredAnnotation(annotationType); 298 if (annotation != null) { 299 return annotation; [all...] |
/libcore/luni/src/test/java/tests/api/java/lang/reflect/ |
AccessibleObjectTest.java | 20 import java.lang.annotation.Annotation; 21 import java.lang.annotation.ElementType; 22 import java.lang.annotation.Inherited; 23 import java.lang.annotation.Retention; 24 import java.lang.annotation.RetentionPolicy; 25 import java.lang.annotation.Target; 150 //test ordinary runtime annotation 157 Annotation[] annotations = ao.getAnnotations(); 172 Annotation[] annotations = ao.getDeclaredAnnotations() [all...] |
/dalvik/dx/src/com/android/dx/cf/direct/ |
AnnotationParser.java | 21 import com.android.dx.rop.annotation.Annotation; 22 import com.android.dx.rop.annotation.AnnotationVisibility; 23 import com.android.dx.rop.annotation.Annotations; 24 import com.android.dx.rop.annotation.AnnotationsList; 25 import com.android.dx.rop.annotation.NameValuePair; 95 * Parses an annotation value ({@code element_value}) attribute. 117 * Parses a parameter annotation attribute. 141 * Parses an annotation attribute, per se. 166 * Parses a list of annotation lists 223 Annotation annotation = parseAnnotation(visibility); local 255 Annotation annotation = new Annotation(type, visibility); local 378 Annotation annotation = local [all...] |
/external/guava/guava-testlib/src/com/google/common/testing/ |
NullPointerTester.java | 33 import java.lang.annotation.Annotation; 52 import javax.annotation.Nullable; 204 @Override public Annotation[][] getParameterAnnotations() { 231 @Override public Annotation[][] getParameterAnnotations() { 279 Annotation[] annotations = func.getParameterAnnotations()[paramIndex]; 280 for (Annotation annotation : annotations) { 281 if (annotation instanceof Nullable) { 306 Annotation[][] getParameterAnnotations() [all...] |
/external/proguard/src/proguard/obfuscate/ |
Utf8UsageMarker.java | 25 import proguard.classfile.attribute.annotation.*; 26 import proguard.classfile.attribute.annotation.visitor.*; 290 public void visitAnnotation(Clazz clazz, Annotation annotation) 292 markCpUtf8Entry(clazz, annotation.u2typeIndex); 295 annotation.elementValuesAccept(clazz, this); 301 public void visitConstantElementValue(Clazz clazz, Annotation annotation, ConstantElementValue constantElementValue) 316 public void visitEnumConstantElementValue(Clazz clazz, Annotation annotation, EnumConstantElementValue enumConstantElementValue [all...] |