Home
last modified time | relevance | path

Searched refs:a (Results 51 – 75 of 1121) sorted by relevance

12345678910>>...45

/art/test/638-checker-inline-caches/src/
DMain.java50 public static int inlineMonomorphicSubA(Super a) { in inlineMonomorphicSubA() argument
51 return a.getValue(); in inlineMonomorphicSubA()
78 public static int inlinePolymophicSubASubB(Super a) { in inlinePolymophicSubASubB() argument
79 return a.getValue(); in inlinePolymophicSubASubB()
106 public static int inlinePolymophicCrossDexSubASubC(Super a) { in inlinePolymophicCrossDexSubASubC() argument
107 return a.getValue(); in inlinePolymophicCrossDexSubASubC()
115 public static int inlineMegamorphic(Super a) { in inlineMegamorphic() argument
116 return a.getValue(); in inlineMegamorphic()
124 public static int inlineMissingTypes(Super a) { in inlineMissingTypes() argument
125 return a.getValue(); in inlineMissingTypes()
[all …]
/art/test/003-omnibus-opcodes/src/
DSwitch.java8 int a = 1; in testSwitch() local
10 switch (a) { in testSwitch()
19 switch (a) { in testSwitch()
25 a = 0x12345678; in testSwitch()
27 switch (a) { in testSwitch()
32 switch (a) { in testSwitch()
40 switch (a) { in testSwitch()
46 a = -5; in testSwitch()
47 switch (a) { in testSwitch()
54 switch (a) { in testSwitch()
/art/test/422-instanceof/src/
DMain.java18 public static Object a; field in Main
33 return a instanceof Main; in $opt$InstanceOfMain()
37 return a instanceof FinalClass; in $opt$InstanceOfFinalClass()
46 a = new Main(); in $opt$TestMain()
48 a = null; in $opt$TestMain()
50 a = new MainChild(); in $opt$TestMain()
52 a = new Object(); in $opt$TestMain()
57 a = new FinalClass(); in $opt$TestFinalClass()
59 a = null; in $opt$TestFinalClass()
61 a = new Main(); in $opt$TestFinalClass()
[all …]
/art/test/441-checker-inliner/src/
DMain.java41 public static int InlineParameter(int a) { in InlineParameter() argument
42 return returnParameter(a); in InlineParameter()
54 public static long InlineWideParameter(long a) { in InlineWideParameter() argument
55 return returnWideParameter(a); in InlineWideParameter()
183 private static void returnVoidWithOneParameter(int a) { in returnVoidWithOneParameter() argument
187 private static int returnParameter(int a) { in returnParameter() argument
188 return a; in returnParameter()
191 private static long returnWideParameter(long a) { in returnWideParameter() argument
192 return a; in returnWideParameter()
207 private static int returnAdd(int a, int b) { in returnAdd() argument
[all …]
/art/test/684-checker-simd-dotprod/src/other/
DTestByte.java61 public static final int testDotProdSimple(byte[] a, byte[] b) { in testDotProdSimple() argument
64 int temp = a[i] * b[i]; in testDotProdSimple()
102 public static final int testDotProdComplex(byte[] a, byte[] b) { in testDotProdComplex() argument
105 int temp = ((byte)(a[i] + 1)) * ((byte)(b[i] + 1)); in testDotProdComplex()
145 public static final int testDotProdSimpleUnsigned(byte[] a, byte[] b) { in testDotProdSimpleUnsigned() argument
148 int temp = (a[i] & 0xff) * (b[i] & 0xff); in testDotProdSimpleUnsigned()
186 public static final int testDotProdComplexUnsigned(byte[] a, byte[] b) { in testDotProdComplexUnsigned() argument
189 int temp = (((a[i] & 0xff) + 1) & 0xff) * (((b[i] & 0xff) + 1) & 0xff); in testDotProdComplexUnsigned()
227 public static final int testDotProdComplexUnsignedCastedToSigned(byte[] a, byte[] b) { in testDotProdComplexUnsignedCastedToSigned() argument
230 int temp = ((byte)((a[i] & 0xff) + 1)) * ((byte)((b[i] & 0xff) + 1)); in testDotProdComplexUnsignedCastedToSigned()
[all …]
DTestCharShort.java51 public static final int testDotProdSimple(short[] a, short[] b) { in testDotProdSimple() argument
54 int temp = a[i] * b[i]; in testDotProdSimple()
92 public static final int testDotProdComplex(short[] a, short[] b) { in testDotProdComplex() argument
95 int temp = ((short)(a[i] + 1)) * ((short)(b[i] + 1)); in testDotProdComplex()
126 public static final int testDotProdSimpleUnsigned(char[] a, char[] b) { in testDotProdSimpleUnsigned() argument
129 int temp = a[i] * b[i]; in testDotProdSimpleUnsigned()
167 public static final int testDotProdComplexUnsigned(char[] a, char[] b) { in testDotProdComplexUnsigned() argument
170 int temp = ((char)(a[i] + 1)) * ((char)(b[i] + 1)); in testDotProdComplexUnsigned()
208 public static final int testDotProdComplexUnsignedCastedToSigned(char[] a, char[] b) { in testDotProdComplexUnsignedCastedToSigned() argument
211 int temp = ((short)(a[i] + 1)) * ((short)(b[i] + 1)); in testDotProdComplexUnsignedCastedToSigned()
[all …]
/art/test/dexdump/
Dcheckers.lst3 0x000014b4 66 com.google.android.checkers.Checkers a (Z)V (none) -1
13 0x00001f48 62 com.google.android.checkers.CheckersView a (Landroid/content/SharedPreferences$Editor…
14 0x00001f98 66 com.google.android.checkers.CheckersView a (Landroid/content/SharedPreferences;Ljava/…
15 0x00001fec 126 com.google.android.checkers.CheckersView a (Landroid/graphics/Canvas;IIII)V (none) -1
16 0x0000207c 162 com.google.android.checkers.CheckersView a (Landroid/graphics/Canvas;IIIILandroid/gr…
17 0x00002130 8 com.google.android.checkers.CheckersView a (Lcom/google/android/checkers/CheckersView;…
18 0x00002148 588 com.google.android.checkers.CheckersView a (Landroid/content/SharedPreferences;)Z (n…
19 0x000023d0 22 com.google.android.checkers.CheckersView a (Lcom/google/android/checkers/CheckersView…
20 0x000023f8 1290 com.google.android.checkers.CheckersView a (ZIIII)Z (none) -1
27 0x00002e38 128 com.google.android.checkers.CheckersView a ()V (none) -1
[all …]
/art/test/656-checker-simd-opt/src/
DMain.java63 private static void stencil(int[] a, int[] b, int n) { in stencil() argument
65 a[i] = b[i - 1] + b[i] + b[i + 1]; in stencil()
94 private static void stencilAddInt(int[] a, int[] b, int n) { in stencilAddInt() argument
97 a[i] = b[i + minus1] + b[i] + b[i + 1]; in stencilAddInt()
131 private static void stencilSubInt(int[] a, int[] b, int n) { in stencilSubInt() argument
134 a[i] = b[i - plus1] + b[i] + b[i + 1]; in stencilSubInt()
241 int[] a = new int[100]; in testStencil1() local
244 a[i] = 0; in testStencil1()
247 stencil(a, b, 100); in testStencil1()
250 expectEquals(e, a[i]); in testStencil1()
[all …]
/art/test/411-optimizing-arith/src/
DSubTest.java45 public static void expectApproxEquals(float a, float b) { in expectApproxEquals() argument
47 boolean aproxEquals = (a > b) ? ((a - b) < maxDelta) : ((b - a) < maxDelta); in expectApproxEquals()
49 … throw new Error("Expected: " + a + ", found: " + b + ", with delta: " + maxDelta + " " + (a - b)); in expectApproxEquals()
53 public static void expectApproxEquals(double a, double b) { in expectApproxEquals() argument
55 boolean aproxEquals = (a > b) ? ((a - b) < maxDelta) : ((b - a) < maxDelta); in expectApproxEquals()
57 … throw new Error("Expected: " + a + ", found: " + b + ", with delta: " + maxDelta + " " + (a - b)); in expectApproxEquals()
61 public static void expectNaN(float a) { in expectNaN() argument
62 if (a == a) { in expectNaN()
63 throw new Error("Expected NaN: " + a); in expectNaN()
67 public static void expectNaN(double a) { in expectNaN() argument
[all …]
DDivTest.java45 public static void expectApproxEquals(float a, float b) { in expectApproxEquals() argument
47 boolean aproxEquals = (a > b) ? ((a - b) < maxDelta) : ((b - a) < maxDelta); in expectApproxEquals()
49 throw new Error("Expected: " + a + ", found: " + b in expectApproxEquals()
50 + ", with delta: " + maxDelta + " " + (a - b)); in expectApproxEquals()
54 public static void expectApproxEquals(double a, double b) { in expectApproxEquals() argument
56 boolean aproxEquals = (a > b) ? ((a - b) < maxDelta) : ((b - a) < maxDelta); in expectApproxEquals()
58 throw new Error("Expected: " + a + ", found: " in expectApproxEquals()
59 + b + ", with delta: " + maxDelta + " " + (a - b)); in expectApproxEquals()
63 public static void expectNaN(float a) { in expectNaN() argument
64 if (a == a) { in expectNaN()
[all …]
DMulTest.java45 public static void expectApproxEquals(float a, float b, float maxDelta) { in expectApproxEquals() argument
46 boolean aproxEquals = (a > b) in expectApproxEquals()
47 ? ((a - b) < maxDelta) in expectApproxEquals()
48 : ((b - a) < maxDelta); in expectApproxEquals()
50 throw new Error("Expected: " + a + ", found: " + b + ", with delta: " + maxDelta); in expectApproxEquals()
54 public static void expectApproxEquals(double a, double b, double maxDelta) { in expectApproxEquals() argument
55 boolean aproxEquals = (a > b) in expectApproxEquals()
56 ? ((a - b) < maxDelta) in expectApproxEquals()
57 : ((b - a) < maxDelta); in expectApproxEquals()
59 throw new Error("Expected: " + a + ", found: " + b + ", with delta: " + maxDelta); in expectApproxEquals()
[all …]
/art/test/471-deopt-environment/src/
DMain.java19 private static int willInline(int a, int b) { in willInline() argument
20 return a & b; in willInline()
23 static int[] a = new int[4]; field in Main
37 int doAdds = a[0] + a[1] + a[2] + a[3]; in main()
/art/test/1961-checker-loop-vectorizer/src/
DMain.java27 int[] a = new int[10]; in $noinline$testDivZeroCheck() local
28 for (int i = 0; i < a.length; ++i) { in $noinline$testDivZeroCheck()
30 a[i] = 42; in $noinline$testDivZeroCheck()
45 int[] a = new int[10]; in $noinline$testCheckCast() local
46 for (int i = 0; i < a.length; ++i) { in $noinline$testCheckCast()
48 a[i] = 42; in $noinline$testCheckCast()
58 int[] a = new int[10]; in $noinline$testBoundsCheck() local
59 for (int i = 0; i < a.length; ++i) { in $noinline$testBoundsCheck()
60 int x = a[11]; // unused but throwing in $noinline$testBoundsCheck()
61 a[i] = 42; in $noinline$testBoundsCheck()
/art/libdexfile/dex/
Ddex_file_reference.h33 bool operator()(const DexFileReference& a, const DexFileReference& b) const { in operator()
34 if (a.dex_file != b.dex_file) { in operator()
35 return a.dex_file < b.dex_file; in operator()
37 return a.index < b.index; in operator()
43 inline bool operator<(const DexFileReference& a, const DexFileReference& b) {
44 return DexFileReference::Comparator()(a, b);
46 inline bool operator==(const DexFileReference& a, const DexFileReference& b) {
47 return a.dex_file == b.dex_file && a.index == b.index;
/art/test/530-checker-loops2/src/
DMain.java35 private static void bubble(int[] a) { in bubble() argument
36 for (int i = a.length; --i >= 0;) { in bubble()
38 if (a[j] > a[j+1]) { in bubble()
39 int tmp = a[j]; in bubble()
40 a[j] = a[j+1]; in bubble()
41 a[j+1] = tmp; in bubble()
329 int[] a = { 1 } ; in justRightTriangular1() local
332 sResult += a[j - (Integer.MIN_VALUE + 4)]; in justRightTriangular1()
344 int[] a = { 1 } ; in justRightTriangular2() local
347 sResult += a[j - 4]; in justRightTriangular2()
[all …]
/art/test/527-checker-array-access-simd/src/
DMain.java69 public static void checkIntCase(int[] a) { in checkIntCase() argument
71 a[i] += 5; in checkIntCase()
123 public static void checkByteCase(byte[] a) { in checkByteCase() argument
125 a[i] += 5; in checkByteCase()
148 public static void checkSingleAccess(int[] a) { in checkSingleAccess() argument
150 a[i] = 5; in checkSingleAccess()
195 public static void checkInt2Float(int[] a, float[] b) { in checkInt2Float() argument
197 b[i] = (float) a[i]; in checkInt2Float()
203 public static int calcArraySum(int[] a, byte[] b, float[] c) { in calcArraySum() argument
206 sum += a[i] + b[i] + (int) c[i]; in calcArraySum()
/art/test/646-checker-simd-hadd/src/
DHaddOther.java28 private static void test_no_hadd_short2short(short[] a, short[] out) { in test_no_hadd_short2short() argument
29 int min_length = Math.min(out.length, a.length); in test_no_hadd_short2short()
31 out[i] = (short) (a[i] >> 1); in test_no_hadd_short2short()
40 private static void test_no_hadd_short2short_logical(short[] a, short[] out) { in test_no_hadd_short2short_logical() argument
41 int min_length = Math.min(out.length, a.length); in test_no_hadd_short2short_logical()
43 out[i] = (short) (a[i] >>> 1); in test_no_hadd_short2short_logical()
52 private static void test_no_hadd_int2short(int[] a, short[] out) { in test_no_hadd_int2short() argument
53 int min_length = Math.min(out.length, a.length); in test_no_hadd_int2short()
55 out[i] = (short) (a[i] >> 1); in test_no_hadd_int2short()
66 private static void test_no_hadd_int2int(int[] a, int[] out) { in test_no_hadd_int2int() argument
[all …]
/art/test/684-select-condition/src/
DMain.java37 float a = (float)Integer.valueOf(s); in doFloatingPointTest() local
38 a = a < 2.0f ? a : 2.0f; in doFloatingPointTest()
39 checkValue("" + a, expected); in doFloatingPointTest()
72 float a = (float)one;
74 a = a < 2.0f ? a : 2.0f;
78 return a;
/art/test/574-irreducible-and-constant-area/src/
DMain.java30 public static void $inline$foo(float a, float b) { in $inline$foo() argument
31 Math.abs(a); in $inline$foo()
32 Math.max(a, b); in $inline$foo()
33 Math.min(a, b); in $inline$foo()
36 public static void $inline$foo(double a, double b) { in $inline$foo() argument
37 Math.abs(a); in $inline$foo()
38 Math.max(a, b); in $inline$foo()
39 Math.min(a, b); in $inline$foo()
/art/tools/ahat/src/main/com/android/ahat/heapdump/
DSort.java40 public int compare(Size a, Size b) {
41 return Long.compare(a.getSize(), b.getSize());
54 public int compare(AhatInstance a, AhatInstance b) {
55 return SIZE_BY_SIZE.compare(b.getTotalRetainedSize(), a.getTotalRetainedSize());
73 public int compare(AhatInstance a, AhatInstance b) { in compare() argument
74 return SIZE_BY_SIZE.compare(b.getRetainedSize(mHeap), a.getRetainedSize(mHeap)); in compare()
106 public int compare(T a, T b) { in compare() argument
110 res = iter.next().compare(a, b); in compare()
170 public int compare(Site a, Site b) { in compare() argument
171 return SIZE_BY_SIZE.compare(b.getSize(mHeap), a.getSize(mHeap)); in compare()
[all …]
/art/test/401-optimizing-compiler/src/
DMain.java40 Object a = new Object(); in main() local
41 Object b = $opt$TestInvokeObjectParameter(a); in main()
42 if (a != b) { in main()
43 throw new Error("Different object returned " + a + " " + b); in main()
133 static Object $opt$TestInvokeObjectParameter(Object a) { in $opt$TestInvokeObjectParameter() argument
135 return a; in $opt$TestInvokeObjectParameter()
138 static int $opt$TestInvokeWith2Parameters(int a, int b) { in $opt$TestInvokeWith2Parameters() argument
139 return a - b; in $opt$TestInvokeWith2Parameters()
142 static int $opt$TestInvokeWith3Parameters(int a, int b, int c) { in $opt$TestInvokeWith3Parameters() argument
143 return a - b - c; in $opt$TestInvokeWith3Parameters()
[all …]
/art/tools/ahat/src/test/com/android/ahat/
DDiffTest.java35 AhatHeap a = dump.getAhatSnapshot().getHeap("app"); in diffMatchedHeap() local
36 assertNotNull(a); in diffMatchedHeap()
39 assertEquals(a.getBaseline(), b); in diffMatchedHeap()
40 assertEquals(b.getBaseline(), a); in diffMatchedHeap() local
47 AhatInstance a = dump.getDumpedAhatInstance("unchangedObject"); in diffUnchanged() local
48 assertNotNull(a); in diffUnchanged()
52 assertEquals(a, b.getBaseline()); in diffUnchanged()
53 assertEquals(b, a.getBaseline()); in diffUnchanged()
54 assertEquals(a.getSite(), b.getSite().getBaseline()); in diffUnchanged()
55 assertEquals(b.getSite(), a.getSite().getBaseline()); in diffUnchanged()
[all …]
/art/test/551-checker-clinit/src/
DMain.java27 int[] a = new int[4];
28 a[0] = 42;
29 array2 = a;
49 int a = Main.foo; in invokeSuperClass() local
56 int a = foo; in invokeItself() local
62 int a = SubSub.foo; in invokeSubClass() local
70 int a = Main.foo; in bar() local
/art/test/510-checker-try-catch/src/
DMain.java117 public static void boundsCheckAndCatch(int x, int[] a, int[] b) { in boundsCheckAndCatch() argument
118 a[x] = 1; in boundsCheckAndCatch()
120 a[x] = 2; in boundsCheckAndCatch()
121 a[x + 1] = b[0] / x; in boundsCheckAndCatch()
123 a[x] = 1; in boundsCheckAndCatch()
136 int[] a = new int[ARRAY_SIZE]; in testBoundsCheckAndCatch() local
140 boundsCheckAndCatch(index, a, b); in testBoundsCheckAndCatch()
141 expectEquals(2, a[index]); in testBoundsCheckAndCatch()
144 boundsCheckAndCatch(index, a, b); in testBoundsCheckAndCatch()
145 expectEquals(1, a[index]); in testBoundsCheckAndCatch()
[all …]
/art/test/660-clinit/src/
DMain.java51 System.out.println("A.a: " + A.a); in main()
55 System.out.println("A.a: " + A.a); in main()
60 int aa = c.a; in main()
70 if (c.a != 101) { in main()
109 public static volatile int a = 100; field in ClInit
144 return a; in getA()
149 public static int a = 2; field in A
151 a = 5; // self-updating, pass
158 A.a = 10; // write other's static field, fail
159 b = A.a; // read other's static field, fail
[all …]

12345678910>>...45