1 /* 2 * Copyright (C) 2016 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 class Second { getX()18 public String getX() { 19 return "X"; 20 } getY()21 public String getY() { 22 return "Y"; 23 } getZ()24 public String getZ() { 25 return "Z"; 26 } 27 } 28 29 class SubC extends Super { getValue()30 int getValue() { return 24; } 31 } 32 33 class TestIntrinsicOatdump { valueOf(int i)34 Integer valueOf(int i) { 35 // ProfileTestMultiDex is used also for testing oatdump for apps. 36 // This is a regression test that oatdump can handle .data.bimg.rel.ro 37 // entries pointing to the middle of the "boot image live objects" array. 38 return Integer.valueOf(i); 39 } 40 } 41 42 // Add a class with lots of methods so we can test profile guided compilation triggers. 43 // Start the name with 'Z' so that the class is added at the end of the dex file. 44 class ZLotsOfMethodsSecond { m1()45 public void m1() {} m2()46 public void m2() {} m3()47 public void m3() {} m4()48 public void m4() {} m5()49 public void m5() {} m6()50 public void m6() {} m7()51 public void m7() {} m8()52 public void m8() {} m9()53 public void m9() {} m10()54 public void m10() {} m11()55 public void m11() {} m12()56 public void m12() {} m13()57 public void m13() {} m14()58 public void m14() {} m15()59 public void m15() {} m16()60 public void m16() {} m17()61 public void m17() {} m18()62 public void m18() {} m19()63 public void m19() {} m20()64 public void m20() {} m21()65 public void m21() {} m22()66 public void m22() {} m23()67 public void m23() {} m24()68 public void m24() {} m25()69 public void m25() {} m26()70 public void m26() {} m27()71 public void m27() {} m28()72 public void m28() {} m29()73 public void m29() {} m30()74 public void m30() {} m31()75 public void m31() {} m32()76 public void m32() {} m33()77 public void m33() {} m34()78 public void m34() {} m35()79 public void m35() {} m36()80 public void m36() {} m37()81 public void m37() {} m38()82 public void m38() {} m39()83 public void m39() {} m40()84 public void m40() {} m41()85 public void m41() {} m42()86 public void m42() {} m43()87 public void m43() {} m44()88 public void m44() {} m45()89 public void m45() {} m46()90 public void m46() {} m47()91 public void m47() {} m48()92 public void m48() {} m49()93 public void m49() {} m50()94 public void m50() {} m51()95 public void m51() {} m52()96 public void m52() {} m53()97 public void m53() {} m54()98 public void m54() {} m55()99 public void m55() {} m56()100 public void m56() {} m57()101 public void m57() {} m58()102 public void m58() {} m59()103 public void m59() {} m60()104 public void m60() {} m61()105 public void m61() {} m62()106 public void m62() {} m63()107 public void m63() {} m64()108 public void m64() {} m65()109 public void m65() {} m66()110 public void m66() {} m67()111 public void m67() {} m68()112 public void m68() {} m69()113 public void m69() {} m70()114 public void m70() {} m71()115 public void m71() {} m72()116 public void m72() {} m73()117 public void m73() {} m74()118 public void m74() {} m75()119 public void m75() {} m76()120 public void m76() {} m77()121 public void m77() {} m78()122 public void m78() {} m79()123 public void m79() {} m80()124 public void m80() {} m81()125 public void m81() {} m82()126 public void m82() {} m83()127 public void m83() {} m84()128 public void m84() {} m85()129 public void m85() {} m86()130 public void m86() {} m87()131 public void m87() {} m88()132 public void m88() {} m89()133 public void m89() {} m90()134 public void m90() {} m91()135 public void m91() {} m92()136 public void m92() {} m93()137 public void m93() {} m94()138 public void m94() {} m95()139 public void m95() {} m96()140 public void m96() {} m97()141 public void m97() {} m98()142 public void m98() {} m99()143 public void m99() {} m100()144 public void m100() {} m101()145 public void m101() {} m102()146 public void m102() {} m103()147 public void m103() {} m104()148 public void m104() {} m105()149 public void m105() {} m106()150 public void m106() {} m107()151 public void m107() {} m108()152 public void m108() {} m109()153 public void m109() {} m110()154 public void m110() {} m111()155 public void m111() {} m112()156 public void m112() {} m113()157 public void m113() {} m114()158 public void m114() {} m115()159 public void m115() {} m116()160 public void m116() {} m117()161 public void m117() {} m118()162 public void m118() {} m119()163 public void m119() {} m120()164 public void m120() {} m121()165 public void m121() {} m122()166 public void m122() {} m123()167 public void m123() {} m124()168 public void m124() {} m125()169 public void m125() {} m126()170 public void m126() {} m127()171 public void m127() {} m128()172 public void m128() {} m129()173 public void m129() {} m130()174 public void m130() {} m131()175 public void m131() {} m132()176 public void m132() {} m133()177 public void m133() {} m134()178 public void m134() {} m135()179 public void m135() {} m136()180 public void m136() {} m137()181 public void m137() {} m138()182 public void m138() {} m139()183 public void m139() {} m140()184 public void m140() {} m141()185 public void m141() {} m142()186 public void m142() {} m143()187 public void m143() {} m144()188 public void m144() {} m145()189 public void m145() {} m146()190 public void m146() {} m147()191 public void m147() {} m148()192 public void m148() {} m149()193 public void m149() {} m150()194 public void m150() {} 195 } 196