Lines Matching refs:index

33                              int[] ints, Object[] objects, long[] longs, int index) {  in $opt$testReads()  argument
35 assertEquals(false, bools[index]); in $opt$testReads()
38 assertEquals(0, bytes[index]); in $opt$testReads()
41 assertEquals(0, chars[index]); in $opt$testReads()
44 assertEquals(0, shorts[index]); in $opt$testReads()
47 assertEquals(0, ints[index]); in $opt$testReads()
50 assertNull(objects[index]); in $opt$testReads()
53 assertEquals(0, longs[index]); in $opt$testReads()
57 int[] ints, Object[] objects, long[] longs, int index) { in $opt$testWrites() argument
61 assertEquals(true, bools[index]); in $opt$testWrites()
65 bytes[index] = -8; in $opt$testWrites()
66 assertEquals(-8, bytes[index]); in $opt$testWrites()
70 chars[index] = 'd'; in $opt$testWrites()
71 assertEquals('d', chars[index]); in $opt$testWrites()
75 shorts[index] = -84; in $opt$testWrites()
76 assertEquals(-84, shorts[index]); in $opt$testWrites()
80 ints[index] = -64; in $opt$testWrites()
81 assertEquals(-64, ints[index]); in $opt$testWrites()
87 objects[index] = o2; in $opt$testWrites()
88 assertEquals(o2, objects[index]); in $opt$testWrites()
94 longs[index] = l; in $opt$testWrites()
95 assertEquals(l, longs[index]); in $opt$testWrites()
98 public static void ensureThrows(boolean[] array, int index) { in ensureThrows() argument
101 $opt$doArrayLoad(array, index); in ensureThrows()
107 assertTrue(exception.toString().contains(Integer.toString(index))); in ensureThrows()
111 $opt$doArrayStore(array, index); in ensureThrows()
117 assertTrue(exception.toString().contains(Integer.toString(index))); in ensureThrows()
120 public static void $opt$doArrayLoad(boolean[] array, int index) { in $opt$doArrayLoad() argument
121 boolean res = array[index]; in $opt$doArrayLoad()
124 public static void $opt$doArrayStore(boolean[] array, int index) { in $opt$doArrayStore() argument
125 array[index] = false; in $opt$doArrayStore()