blob: ee5b0c74c53e523bd2cf25e5557b7d855cf0b633 [file] [log] [blame]
jeffhao5d1ac922011-09-29 17:41:15 -07001TestAnnotations...
2java.lang.String android.test.anno.TestAnnotations.thing1: @android.test.anno.AnnoArrayField(bb=[], cc=[a, b], dd=[0.987654321], ff=[3.1415927], ii=[], jj=[], ss=[], str=[], zz=[])
3java.lang.String android.test.anno.TestAnnotations.thing2: @android.test.anno.AnnoArrayField(bb=[-1, 0, 1], cc=[Q], dd=[0.3, 0.6, 0.9], ff=[1.1, 1.2, 1.3], ii=[1, 2, 3, 4], jj=[-5, 0, 5], ss=[12, 13, 14, 15, 16, 17], str=[hickory, dickory, dock], zz=[true, false, true])
4mapping is class [Landroid.test.anno.IntToString;
5 0='@android.test.anno.IntToString(from=0, to=NORMAL_FOCUS)'
6 1='@android.test.anno.IntToString(from=2, to=WEAK_FOCUS)'
7present(getFocusType, ExportedProperty): true
8present(getFocusType, AnnoSimpleType): false
9
10AnnoSimpleField true, SimplyNoted false
11annotations on TYPE class android.test.anno.SimplyNoted(2):
12 @android.test.anno.AnnoSimpleType()
13 interface android.test.anno.AnnoSimpleType
14 @android.test.anno.AnnoSimpleType2()
15 interface android.test.anno.AnnoSimpleType2
16
17 annotations on CTOR android.test.anno.SimplyNoted():
18 @android.test.anno.AnnoSimpleConstructor()
19 interface android.test.anno.AnnoSimpleConstructor
20 constructor parameter annotations:
21 annotations on CTOR android.test.anno.SimplyNoted(int):
22 @android.test.anno.AnnoSimpleConstructor()
23 interface android.test.anno.AnnoSimpleConstructor
24 constructor parameter annotations:
25 @android.test.anno.AnnoSimpleParameter()
26 interface android.test.anno.AnnoSimpleParameter
27 annotations on METH public int android.test.anno.SimplyNoted.foo():
28 @android.test.anno.AnnoSimpleMethod()
29 interface android.test.anno.AnnoSimpleMethod
30 method parameter annotations:
Jesse Wilsond81cdcc2011-10-17 14:36:48 -040031 annotations on FIELD public int android.test.anno.SimplyNoted.mFoo:
jeffhao5d1ac922011-09-29 17:41:15 -070032 @android.test.anno.AnnoSimpleField()
33 interface android.test.anno.AnnoSimpleField
Jesse Wilsond81cdcc2011-10-17 14:36:48 -040034 annotations on FIELD public static int android.test.anno.SimplyNoted.mOneFoo:
jeffhao5d1ac922011-09-29 17:41:15 -070035 @android.test.anno.AnnoSimpleField()
36 interface android.test.anno.AnnoSimpleField
37
38annotations on TYPE interface android.test.anno.INoted(1):
39 @android.test.anno.AnnoSimpleType2()
40 interface android.test.anno.AnnoSimpleType2
41
42 annotations on METH public abstract int android.test.anno.INoted.bar():
43 @android.test.anno.AnnoSimpleMethod()
44 interface android.test.anno.AnnoSimpleMethod
45 method parameter annotations:
46
47annotations on TYPE class android.test.anno.SubNoted(3):
48 @android.test.anno.AnnoFancyType(name=unknown, num=5)
49 interface android.test.anno.AnnoFancyType
50 @android.test.anno.AnnoSimpleType()
51 interface android.test.anno.AnnoSimpleType
52 @android.test.anno.AnnoSimpleType2()
53 interface android.test.anno.AnnoSimpleType2
54
55 annotations on CTOR public android.test.anno.SubNoted():
56 constructor parameter annotations:
57 annotations on METH public int android.test.anno.SubNoted.bar():
58 method parameter annotations:
59 annotations on FIELD int android.test.anno.SubNoted.mBar:
60
61annotations on TYPE class android.test.anno.FullyNoted(1):
62 @android.test.anno.AnnoFancyType(name=full, num=5)
63 interface android.test.anno.AnnoFancyType
64
65 annotations on CTOR android.test.anno.FullyNoted(int):
66 @android.test.anno.AnnoFancyConstructor(numArgs=1)
67 interface android.test.anno.AnnoFancyConstructor
68 constructor parameter annotations:
69 @android.test.anno.AnnoFancyParameter(factor=0.5)
70 interface android.test.anno.AnnoFancyParameter
71 annotations on METH public int android.test.anno.FullyNoted.bar(int,long) throws java.io.IOException,java.io.EOFException:
72 @android.test.anno.AnnoFancyMethod(biteMe=false, callMe=true, enumerated=FOO, someClass=class android.test.anno.SomeClass)
73 interface android.test.anno.AnnoFancyMethod
74 method parameter annotations:
75 @android.test.anno.AnnoSimpleParameter()
76 interface android.test.anno.AnnoSimpleParameter
77 @android.test.anno.AnnoFancyParameter(factor=3.7879912899761)
78 interface android.test.anno.AnnoFancyParameter
79 annotations on METH public int android.test.anno.FullyNoted.bar1(int,long) throws java.io.IOException:
80 @android.test.anno.AnnoFancyMethod(biteMe=true, callMe=false, enumerated=BAR, someClass=class android.test.anno.SomeClass)
81 interface android.test.anno.AnnoFancyMethod
82 method parameter annotations:
83 @android.test.anno.AnnoSimpleParameter()
84 interface android.test.anno.AnnoSimpleParameter
85 @android.test.anno.AnnoFancyParameter(factor=3.7879912899761)
86 interface android.test.anno.AnnoFancyParameter
87 annotations on METH public int android.test.anno.FullyNoted.notAnnotated():
88 method parameter annotations:
89 annotations on FIELD int android.test.anno.FullyNoted.mBar:
90 @android.test.anno.AnnoFancyField(nombre=fubar)
91 interface android.test.anno.AnnoFancyField
Hiroshi Yamauchi75d50532015-12-04 16:18:49 -080092 aff: @android.test.anno.AnnoFancyField(nombre=fubar) / true
jeffhao5d1ac922011-09-29 17:41:15 -070093 --> nombre is 'fubar'
94
95SimplyNoted.get(AnnoSimpleType) = @android.test.anno.AnnoSimpleType()
Jeff Hao1133db72016-04-04 19:50:14 -070096SimplyNoted.get(AnnoSimpleTypeInvis) = null
jeffhao5d1ac922011-09-29 17:41:15 -070097SubNoted.get(AnnoSimpleType) = @android.test.anno.AnnoSimpleType()
Elliott Hughesdb1e3902013-02-20 15:16:06 -080098
99Package annotations:
100 @android.test.anno.AnnoSimplePackage()
101 interface android.test.anno.AnnoSimplePackage
102Package declared annotations:
103 @android.test.anno.AnnoSimplePackage()
104 interface android.test.anno.AnnoSimplePackage
Jeff Haofc8d2472015-09-02 13:52:20 -0700105
106Inner Classes:
107Canonical:android.test.anno.ClassWithInnerClasses.InnerClass Simple:InnerClass
108Canonical:null Simple:
109
110Get annotation with missing class should not throw
111Got expected TypeNotPresentException
Jeff Hao67f02612015-11-24 19:12:57 -0800112Got expected NoSuchFieldError