/libcore/ojluni/src/test/java/lang/invoke/VarHandles/ |
D | VarHandleTestByteArrayAsShort.java | 207 int ci = 1; in testArrayNPE() local 210 short x = (short) vh.get(array, ci); in testArrayNPE() 214 vh.set(array, ci, VALUE_1); in testArrayNPE() 218 short x = (short) vh.getVolatile(array, ci); in testArrayNPE() 222 short x = (short) vh.getAcquire(array, ci); in testArrayNPE() 226 short x = (short) vh.getOpaque(array, ci); in testArrayNPE() 230 vh.setVolatile(array, ci, VALUE_1); in testArrayNPE() 234 vh.setRelease(array, ci, VALUE_1); in testArrayNPE() 238 vh.setOpaque(array, ci, VALUE_1); in testArrayNPE() 248 int ci = 1; in testArrayNPE() local [all …]
|
D | VarHandleTestByteArrayAsChar.java | 207 int ci = 1; in testArrayNPE() local 210 char x = (char) vh.get(array, ci); in testArrayNPE() 214 vh.set(array, ci, VALUE_1); in testArrayNPE() 218 char x = (char) vh.getVolatile(array, ci); in testArrayNPE() 222 char x = (char) vh.getAcquire(array, ci); in testArrayNPE() 226 char x = (char) vh.getOpaque(array, ci); in testArrayNPE() 230 vh.setVolatile(array, ci, VALUE_1); in testArrayNPE() 234 vh.setRelease(array, ci, VALUE_1); in testArrayNPE() 238 vh.setOpaque(array, ci, VALUE_1); in testArrayNPE() 248 int ci = 1; in testArrayNPE() local [all …]
|
D | VarHandleTestByteArrayAsLong.java | 207 int ci = 1; in testArrayNPE() local 210 long x = (long) vh.get(array, ci); in testArrayNPE() 214 vh.set(array, ci, VALUE_1); in testArrayNPE() 218 long x = (long) vh.getVolatile(array, ci); in testArrayNPE() 222 long x = (long) vh.getAcquire(array, ci); in testArrayNPE() 226 long x = (long) vh.getOpaque(array, ci); in testArrayNPE() 230 vh.setVolatile(array, ci, VALUE_1); in testArrayNPE() 234 vh.setRelease(array, ci, VALUE_1); in testArrayNPE() 238 vh.setOpaque(array, ci, VALUE_1); in testArrayNPE() 242 boolean r = vh.compareAndSet(array, ci, VALUE_1, VALUE_2); in testArrayNPE() [all …]
|
D | VarHandleTestByteArrayAsInt.java | 207 int ci = 1; in testArrayNPE() local 210 int x = (int) vh.get(array, ci); in testArrayNPE() 214 vh.set(array, ci, VALUE_1); in testArrayNPE() 218 int x = (int) vh.getVolatile(array, ci); in testArrayNPE() 222 int x = (int) vh.getAcquire(array, ci); in testArrayNPE() 226 int x = (int) vh.getOpaque(array, ci); in testArrayNPE() 230 vh.setVolatile(array, ci, VALUE_1); in testArrayNPE() 234 vh.setRelease(array, ci, VALUE_1); in testArrayNPE() 238 vh.setOpaque(array, ci, VALUE_1); in testArrayNPE() 242 boolean r = vh.compareAndSet(array, ci, VALUE_1, VALUE_2); in testArrayNPE() [all …]
|
D | VarHandleTestByteArrayAsFloat.java | 207 int ci = 1; in testArrayNPE() local 210 float x = (float) vh.get(array, ci); in testArrayNPE() 214 vh.set(array, ci, VALUE_1); in testArrayNPE() 218 float x = (float) vh.getVolatile(array, ci); in testArrayNPE() 222 float x = (float) vh.getAcquire(array, ci); in testArrayNPE() 226 float x = (float) vh.getOpaque(array, ci); in testArrayNPE() 230 vh.setVolatile(array, ci, VALUE_1); in testArrayNPE() 234 vh.setRelease(array, ci, VALUE_1); in testArrayNPE() 238 vh.setOpaque(array, ci, VALUE_1); in testArrayNPE() 242 boolean r = vh.compareAndSet(array, ci, VALUE_1, VALUE_2); in testArrayNPE() [all …]
|
D | VarHandleTestByteArrayAsDouble.java | 207 int ci = 1; in testArrayNPE() local 210 double x = (double) vh.get(array, ci); in testArrayNPE() 214 vh.set(array, ci, VALUE_1); in testArrayNPE() 218 double x = (double) vh.getVolatile(array, ci); in testArrayNPE() 222 double x = (double) vh.getAcquire(array, ci); in testArrayNPE() 226 double x = (double) vh.getOpaque(array, ci); in testArrayNPE() 230 vh.setVolatile(array, ci, VALUE_1); in testArrayNPE() 234 vh.setRelease(array, ci, VALUE_1); in testArrayNPE() 238 vh.setOpaque(array, ci, VALUE_1); in testArrayNPE() 242 boolean r = vh.compareAndSet(array, ci, VALUE_1, VALUE_2); in testArrayNPE() [all …]
|
D | X-VarHandleTestByteArrayView.java.template | 239 int ci = 1; 242 $type$ x = ($type$) vh.get(array, ci); 246 vh.set(array, ci, VALUE_1); 250 $type$ x = ($type$) vh.getVolatile(array, ci); 254 $type$ x = ($type$) vh.getAcquire(array, ci); 258 $type$ x = ($type$) vh.getOpaque(array, ci); 262 vh.setVolatile(array, ci, VALUE_1); 266 vh.setRelease(array, ci, VALUE_1); 270 vh.setOpaque(array, ci, VALUE_1); 275 boolean r = vh.compareAndSet(array, ci, VALUE_1, VALUE_2); [all …]
|
D | VarHandleTestAccessByte.java | 1171 final int ci = i; in testArrayIndexOutOfBounds() local 1174 byte x = (byte) vh.get(array, ci); in testArrayIndexOutOfBounds() 1178 vh.set(array, ci, (byte)0x01); in testArrayIndexOutOfBounds() 1182 byte x = (byte) vh.getVolatile(array, ci); in testArrayIndexOutOfBounds() 1186 vh.setVolatile(array, ci, (byte)0x01); in testArrayIndexOutOfBounds() 1190 byte x = (byte) vh.getAcquire(array, ci); in testArrayIndexOutOfBounds() 1194 vh.setRelease(array, ci, (byte)0x01); in testArrayIndexOutOfBounds() 1198 byte x = (byte) vh.getOpaque(array, ci); in testArrayIndexOutOfBounds() 1202 vh.setOpaque(array, ci, (byte)0x01); in testArrayIndexOutOfBounds() 1206 boolean r = vh.compareAndSet(array, ci, (byte)0x01, (byte)0x23); in testArrayIndexOutOfBounds() [all …]
|
D | VarHandleTestAccessInt.java | 1171 final int ci = i; in testArrayIndexOutOfBounds() local 1174 int x = (int) vh.get(array, ci); in testArrayIndexOutOfBounds() 1178 vh.set(array, ci, 0x01234567); in testArrayIndexOutOfBounds() 1182 int x = (int) vh.getVolatile(array, ci); in testArrayIndexOutOfBounds() 1186 vh.setVolatile(array, ci, 0x01234567); in testArrayIndexOutOfBounds() 1190 int x = (int) vh.getAcquire(array, ci); in testArrayIndexOutOfBounds() 1194 vh.setRelease(array, ci, 0x01234567); in testArrayIndexOutOfBounds() 1198 int x = (int) vh.getOpaque(array, ci); in testArrayIndexOutOfBounds() 1202 vh.setOpaque(array, ci, 0x01234567); in testArrayIndexOutOfBounds() 1206 boolean r = vh.compareAndSet(array, ci, 0x01234567, 0x89ABCDEF); in testArrayIndexOutOfBounds() [all …]
|
D | VarHandleTestAccessShort.java | 1171 final int ci = i; in testArrayIndexOutOfBounds() local 1174 short x = (short) vh.get(array, ci); in testArrayIndexOutOfBounds() 1178 vh.set(array, ci, (short)0x0123); in testArrayIndexOutOfBounds() 1182 short x = (short) vh.getVolatile(array, ci); in testArrayIndexOutOfBounds() 1186 vh.setVolatile(array, ci, (short)0x0123); in testArrayIndexOutOfBounds() 1190 short x = (short) vh.getAcquire(array, ci); in testArrayIndexOutOfBounds() 1194 vh.setRelease(array, ci, (short)0x0123); in testArrayIndexOutOfBounds() 1198 short x = (short) vh.getOpaque(array, ci); in testArrayIndexOutOfBounds() 1202 vh.setOpaque(array, ci, (short)0x0123); in testArrayIndexOutOfBounds() 1206 boolean r = vh.compareAndSet(array, ci, (short)0x0123, (short)0x4567); in testArrayIndexOutOfBounds() [all …]
|
D | VarHandleTestAccessLong.java | 1171 final int ci = i; in testArrayIndexOutOfBounds() local 1174 long x = (long) vh.get(array, ci); in testArrayIndexOutOfBounds() 1178 vh.set(array, ci, 0x0123456789ABCDEFL); in testArrayIndexOutOfBounds() 1182 long x = (long) vh.getVolatile(array, ci); in testArrayIndexOutOfBounds() 1186 vh.setVolatile(array, ci, 0x0123456789ABCDEFL); in testArrayIndexOutOfBounds() 1190 long x = (long) vh.getAcquire(array, ci); in testArrayIndexOutOfBounds() 1194 vh.setRelease(array, ci, 0x0123456789ABCDEFL); in testArrayIndexOutOfBounds() 1198 long x = (long) vh.getOpaque(array, ci); in testArrayIndexOutOfBounds() 1202 vh.setOpaque(array, ci, 0x0123456789ABCDEFL); in testArrayIndexOutOfBounds() 1206 boolean r = vh.compareAndSet(array, ci, 0x0123456789ABCDEFL, 0xCAFEBABECAFEBABEL); in testArrayIndexOutOfBounds() [all …]
|
D | VarHandleTestAccessChar.java | 1171 final int ci = i; in testArrayIndexOutOfBounds() local 1174 char x = (char) vh.get(array, ci); in testArrayIndexOutOfBounds() 1178 vh.set(array, ci, '\u0123'); in testArrayIndexOutOfBounds() 1182 char x = (char) vh.getVolatile(array, ci); in testArrayIndexOutOfBounds() 1186 vh.setVolatile(array, ci, '\u0123'); in testArrayIndexOutOfBounds() 1190 char x = (char) vh.getAcquire(array, ci); in testArrayIndexOutOfBounds() 1194 vh.setRelease(array, ci, '\u0123'); in testArrayIndexOutOfBounds() 1198 char x = (char) vh.getOpaque(array, ci); in testArrayIndexOutOfBounds() 1202 vh.setOpaque(array, ci, '\u0123'); in testArrayIndexOutOfBounds() 1206 boolean r = vh.compareAndSet(array, ci, '\u0123', '\u4567'); in testArrayIndexOutOfBounds() [all …]
|
D | VarHandleTestAccessBoolean.java | 1145 final int ci = i; in testArrayIndexOutOfBounds() local 1148 boolean x = (boolean) vh.get(array, ci); in testArrayIndexOutOfBounds() 1152 vh.set(array, ci, true); in testArrayIndexOutOfBounds() 1156 boolean x = (boolean) vh.getVolatile(array, ci); in testArrayIndexOutOfBounds() 1160 vh.setVolatile(array, ci, true); in testArrayIndexOutOfBounds() 1164 boolean x = (boolean) vh.getAcquire(array, ci); in testArrayIndexOutOfBounds() 1168 vh.setRelease(array, ci, true); in testArrayIndexOutOfBounds() 1172 boolean x = (boolean) vh.getOpaque(array, ci); in testArrayIndexOutOfBounds() 1176 vh.setOpaque(array, ci, true); in testArrayIndexOutOfBounds() 1180 boolean r = vh.compareAndSet(array, ci, true, false); in testArrayIndexOutOfBounds() [all …]
|
D | VarHandleTestAccessDouble.java | 1097 final int ci = i; in testArrayIndexOutOfBounds() local 1100 double x = (double) vh.get(array, ci); in testArrayIndexOutOfBounds() 1104 vh.set(array, ci, 1.0d); in testArrayIndexOutOfBounds() 1108 double x = (double) vh.getVolatile(array, ci); in testArrayIndexOutOfBounds() 1112 vh.setVolatile(array, ci, 1.0d); in testArrayIndexOutOfBounds() 1116 double x = (double) vh.getAcquire(array, ci); in testArrayIndexOutOfBounds() 1120 vh.setRelease(array, ci, 1.0d); in testArrayIndexOutOfBounds() 1124 double x = (double) vh.getOpaque(array, ci); in testArrayIndexOutOfBounds() 1128 vh.setOpaque(array, ci, 1.0d); in testArrayIndexOutOfBounds() 1132 boolean r = vh.compareAndSet(array, ci, 1.0d, 2.0d); in testArrayIndexOutOfBounds() [all …]
|
D | VarHandleTestAccessFloat.java | 1097 final int ci = i; in testArrayIndexOutOfBounds() local 1100 float x = (float) vh.get(array, ci); in testArrayIndexOutOfBounds() 1104 vh.set(array, ci, 1.0f); in testArrayIndexOutOfBounds() 1108 float x = (float) vh.getVolatile(array, ci); in testArrayIndexOutOfBounds() 1112 vh.setVolatile(array, ci, 1.0f); in testArrayIndexOutOfBounds() 1116 float x = (float) vh.getAcquire(array, ci); in testArrayIndexOutOfBounds() 1120 vh.setRelease(array, ci, 1.0f); in testArrayIndexOutOfBounds() 1124 float x = (float) vh.getOpaque(array, ci); in testArrayIndexOutOfBounds() 1128 vh.setOpaque(array, ci, 1.0f); in testArrayIndexOutOfBounds() 1132 boolean r = vh.compareAndSet(array, ci, 1.0f, 2.0f); in testArrayIndexOutOfBounds() [all …]
|
D | VarHandleTestAccessString.java | 1078 final int ci = i; in testArrayIndexOutOfBounds() local 1081 String x = (String) vh.get(array, ci); in testArrayIndexOutOfBounds() 1085 vh.set(array, ci, "foo"); in testArrayIndexOutOfBounds() 1089 String x = (String) vh.getVolatile(array, ci); in testArrayIndexOutOfBounds() 1093 vh.setVolatile(array, ci, "foo"); in testArrayIndexOutOfBounds() 1097 String x = (String) vh.getAcquire(array, ci); in testArrayIndexOutOfBounds() 1101 vh.setRelease(array, ci, "foo"); in testArrayIndexOutOfBounds() 1105 String x = (String) vh.getOpaque(array, ci); in testArrayIndexOutOfBounds() 1109 vh.setOpaque(array, ci, "foo"); in testArrayIndexOutOfBounds() 1113 boolean r = vh.compareAndSet(array, ci, "foo", "bar"); in testArrayIndexOutOfBounds() [all …]
|
D | X-VarHandleTestAccess.java.template | 1711 final int ci = i; 1714 $type$ x = ($type$) vh.get(array, ci); 1718 vh.set(array, ci, $value1$); 1722 $type$ x = ($type$) vh.getVolatile(array, ci); 1726 vh.setVolatile(array, ci, $value1$); 1730 $type$ x = ($type$) vh.getAcquire(array, ci); 1734 vh.setRelease(array, ci, $value1$); 1738 $type$ x = ($type$) vh.getOpaque(array, ci); 1742 vh.setOpaque(array, ci, $value1$); 1747 boolean r = vh.compareAndSet(array, ci, $value1$, $value2$); [all …]
|
D | VarHandleTestMethodHandleAccessDouble.java | 710 final int ci = i; in testArrayIndexOutOfBounds() local 714 double x = (double) hs.get(am).invokeExact(array, ci); in testArrayIndexOutOfBounds() 720 hs.get(am).invokeExact(array, ci, 1.0d); in testArrayIndexOutOfBounds() 726 boolean r = (boolean) hs.get(am).invokeExact(array, ci, 1.0d, 2.0d); in testArrayIndexOutOfBounds() 732 double r = (double) hs.get(am).invokeExact(array, ci, 2.0d, 1.0d); in testArrayIndexOutOfBounds() 738 double o = (double) hs.get(am).invokeExact(array, ci, 1.0d); in testArrayIndexOutOfBounds() 744 double o = (double) hs.get(am).invokeExact(array, ci, 3.0d); in testArrayIndexOutOfBounds()
|
D | VarHandleTestMethodHandleAccessFloat.java | 710 final int ci = i; in testArrayIndexOutOfBounds() local 714 float x = (float) hs.get(am).invokeExact(array, ci); in testArrayIndexOutOfBounds() 720 hs.get(am).invokeExact(array, ci, 1.0f); in testArrayIndexOutOfBounds() 726 boolean r = (boolean) hs.get(am).invokeExact(array, ci, 1.0f, 2.0f); in testArrayIndexOutOfBounds() 732 float r = (float) hs.get(am).invokeExact(array, ci, 2.0f, 1.0f); in testArrayIndexOutOfBounds() 738 float o = (float) hs.get(am).invokeExact(array, ci, 1.0f); in testArrayIndexOutOfBounds() 744 float o = (float) hs.get(am).invokeExact(array, ci, 3.0f); in testArrayIndexOutOfBounds()
|
D | VarHandleTestMethodHandleAccessChar.java | 944 final int ci = i; in testArrayIndexOutOfBounds() local 948 char x = (char) hs.get(am).invokeExact(array, ci); in testArrayIndexOutOfBounds() 954 hs.get(am).invokeExact(array, ci, '\u0123'); in testArrayIndexOutOfBounds() 960 boolean r = (boolean) hs.get(am).invokeExact(array, ci, '\u0123', '\u4567'); in testArrayIndexOutOfBounds() 966 char r = (char) hs.get(am).invokeExact(array, ci, '\u4567', '\u0123'); in testArrayIndexOutOfBounds() 972 char o = (char) hs.get(am).invokeExact(array, ci, '\u0123'); in testArrayIndexOutOfBounds() 978 char o = (char) hs.get(am).invokeExact(array, ci, '\u89AB'); in testArrayIndexOutOfBounds() 984 char o = (char) hs.get(am).invokeExact(array, ci, '\u89AB'); in testArrayIndexOutOfBounds()
|
D | VarHandleTestMethodHandleAccessByte.java | 944 final int ci = i; in testArrayIndexOutOfBounds() local 948 byte x = (byte) hs.get(am).invokeExact(array, ci); in testArrayIndexOutOfBounds() 954 hs.get(am).invokeExact(array, ci, (byte)0x01); in testArrayIndexOutOfBounds() 960 boolean r = (boolean) hs.get(am).invokeExact(array, ci, (byte)0x01, (byte)0x23); in testArrayIndexOutOfBounds() 966 byte r = (byte) hs.get(am).invokeExact(array, ci, (byte)0x23, (byte)0x01); in testArrayIndexOutOfBounds() 972 byte o = (byte) hs.get(am).invokeExact(array, ci, (byte)0x01); in testArrayIndexOutOfBounds() 978 byte o = (byte) hs.get(am).invokeExact(array, ci, (byte)0x45); in testArrayIndexOutOfBounds() 984 byte o = (byte) hs.get(am).invokeExact(array, ci, (byte)0x45); in testArrayIndexOutOfBounds()
|
D | VarHandleTestMethodHandleAccessShort.java | 944 final int ci = i; in testArrayIndexOutOfBounds() local 948 short x = (short) hs.get(am).invokeExact(array, ci); in testArrayIndexOutOfBounds() 954 hs.get(am).invokeExact(array, ci, (short)0x0123); in testArrayIndexOutOfBounds() 960 … boolean r = (boolean) hs.get(am).invokeExact(array, ci, (short)0x0123, (short)0x4567); in testArrayIndexOutOfBounds() 966 … short r = (short) hs.get(am).invokeExact(array, ci, (short)0x4567, (short)0x0123); in testArrayIndexOutOfBounds() 972 short o = (short) hs.get(am).invokeExact(array, ci, (short)0x0123); in testArrayIndexOutOfBounds() 978 short o = (short) hs.get(am).invokeExact(array, ci, (short)0x89AB); in testArrayIndexOutOfBounds() 984 short o = (short) hs.get(am).invokeExact(array, ci, (short)0x89AB); in testArrayIndexOutOfBounds()
|
D | VarHandleTestMethodHandleAccessLong.java | 944 final int ci = i; in testArrayIndexOutOfBounds() local 948 long x = (long) hs.get(am).invokeExact(array, ci); in testArrayIndexOutOfBounds() 954 hs.get(am).invokeExact(array, ci, 0x0123456789ABCDEFL); in testArrayIndexOutOfBounds() 960 … boolean r = (boolean) hs.get(am).invokeExact(array, ci, 0x0123456789ABCDEFL, 0xCAFEBABECAFEBABEL); in testArrayIndexOutOfBounds() 966 … long r = (long) hs.get(am).invokeExact(array, ci, 0xCAFEBABECAFEBABEL, 0x0123456789ABCDEFL); in testArrayIndexOutOfBounds() 972 long o = (long) hs.get(am).invokeExact(array, ci, 0x0123456789ABCDEFL); in testArrayIndexOutOfBounds() 978 long o = (long) hs.get(am).invokeExact(array, ci, 0xDEADBEEFDEADBEEFL); in testArrayIndexOutOfBounds() 984 long o = (long) hs.get(am).invokeExact(array, ci, 0xDEADBEEFDEADBEEFL); in testArrayIndexOutOfBounds()
|
D | VarHandleTestMethodHandleAccessInt.java | 944 final int ci = i; in testArrayIndexOutOfBounds() local 948 int x = (int) hs.get(am).invokeExact(array, ci); in testArrayIndexOutOfBounds() 954 hs.get(am).invokeExact(array, ci, 0x01234567); in testArrayIndexOutOfBounds() 960 boolean r = (boolean) hs.get(am).invokeExact(array, ci, 0x01234567, 0x89ABCDEF); in testArrayIndexOutOfBounds() 966 int r = (int) hs.get(am).invokeExact(array, ci, 0x89ABCDEF, 0x01234567); in testArrayIndexOutOfBounds() 972 int o = (int) hs.get(am).invokeExact(array, ci, 0x01234567); in testArrayIndexOutOfBounds() 978 int o = (int) hs.get(am).invokeExact(array, ci, 0xCAFEBABE); in testArrayIndexOutOfBounds() 984 int o = (int) hs.get(am).invokeExact(array, ci, 0xCAFEBABE); in testArrayIndexOutOfBounds()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestZoneTextPrinterParser.java | 252 private void parseText(Set<String> zids, Locale locale, TextStyle style, boolean ci) { in parseText() argument 254 DateTimeFormatter fmt = getFormatter(locale, style, ci); in parseText() 262 parse(fmt, zid, expected, zid, locale, style, ci); in parseText() 265 parse(fmt, zid, expected, names[i], locale, style, ci); in parseText() 272 Locale locale, TextStyle style, boolean ci) { in parse() argument 273 if (ci) { in parse() 287 ci ? "ci" : " ", in parse() 292 private DateTimeFormatter getFormatter(Locale locale, TextStyle style, boolean ci) { in getFormatter() argument 294 if (ci) { in getFormatter()
|