blob: 8c315c41e9cc5790b6742209a6937f7f8d895086 [file] [log] [blame]
Yohann Rousself820a572017-05-31 20:25:51 +02001// Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
2// for details. All rights reserved. Use of this source code is governed by a
3// BSD-style license that can be found in the LICENSE file.
4
5package multidex002;
6
7import multidexfakeframeworks.Activity;
8
9public class MainActivity extends Activity {
10
11 private static final String TAG = "MultidexLegacyTestApp";
12 private int instanceFieldNotInited;
13 private int instanceFieldInited =
14 new multidex002.manymethods.Big043().get43();
15 private static int staticField =
16 new multidex002.manymethods.Big044().get44();
17
18 public MainActivity() {
19 instanceFieldNotInited = new multidex002.manymethods.Big042().get42();
20 }
21
22 protected void onCreate() {
23 int value = getValue();
24
25 System.out.println("Here's the count " + value);
26 }
27
28 public int getValue() {
29 int value = new multidex002.manymethods.Big001().get1()
30 + new multidex002.manymethods.Big002().get2()
31 + new multidex002.manymethods.Big003().get3()
32 + new multidex002.manymethods.Big004().get4()
33 + new multidex002.manymethods.Big005().get5()
34 + new multidex002.manymethods.Big006().get6()
35 + new multidex002.manymethods.Big007().get7()
36 + new multidex002.manymethods.Big008().get8()
37 + new multidex002.manymethods.Big009().get9()
38 + new multidex002.manymethods.Big010().get10()
39 + new multidex002.manymethods.Big011().get11()
40 + new multidex002.manymethods.Big012().get12()
41 + new multidex002.manymethods.Big013().get13()
42 + new multidex002.manymethods.Big014().get14()
43 + new multidex002.manymethods.Big015().get15()
44 + new multidex002.manymethods.Big016().get16()
45 + new multidex002.manymethods.Big017().get17()
46 + new multidex002.manymethods.Big018().get18()
47 + new multidex002.manymethods.Big019().get19()
48 + new multidex002.manymethods.Big020().get20()
49 + new multidex002.manymethods.Big021().get21()
50 + new multidex002.manymethods.Big022().get22()
51 + new multidex002.manymethods.Big023().get23()
52 + new multidex002.manymethods.Big024().get24()
53 + new multidex002.manymethods.Big025().get25()
54 + new multidex002.manymethods.Big026().get26()
55 + new multidex002.manymethods.Big027().get27()
56 + new multidex002.manymethods.Big028().get28()
57 + new multidex002.manymethods.Big029().get29()
58 + new multidex002.manymethods.Big030().get30()
59 + new multidex002.manymethods.Big031().get31()
60 + new multidex002.manymethods.Big032().get32()
61 + new multidex002.manymethods.Big033().get33()
62 + new multidex002.manymethods.Big034().get34()
63 + new multidex002.manymethods.Big035().get35()
64 + new multidex002.manymethods.Big036().get36()
65 + new multidex002.manymethods.Big037().get37()
66 + new multidex002.manymethods.Big038().get38()
67 + new multidex002.manymethods.Big039().get39()
68 + new multidex002.manymethods.Big040().get40()
69 + new multidex002.manymethods.Big041().get41()
70 + instanceFieldNotInited + instanceFieldInited + staticField
71 + IntermediateClass.get() + Referenced.get(instanceFieldNotInited);
72 return value;
73 }
74
75 public int getAnnotation2Value() {
76 return ((AnnotationWithEnum2) TestApplication.annotation2).value().get();
77 }
78
79}