Home
last modified time | relevance | path

Searched refs:TWO (Results 1 – 8 of 8) sorted by relevance

/art/test/712-varhandle-invocations/src/
DVarHandleArrayTests.java28 private static final Integer TWO = Integer.valueOf(2); field in VarHandleArrayTests.ArrayStoreTest
58 assertEquals(ONE, (Integer) vh.compareAndExchange(values, 0, ONE, TWO)); in testIntegerArrayVarHandle()
59 assertEquals(TWO, values[0]); in testIntegerArrayVarHandle()
60 assertEquals(TWO, (Integer) vh.compareAndExchange(values, 0, ONE, ZERO)); in testIntegerArrayVarHandle()
61 assertEquals(TWO, values[0]); in testIntegerArrayVarHandle()
70 assertEquals(true, (boolean) vh.compareAndSet(values, 0, TWO, ONE)); in testIntegerArrayVarHandle()
72 assertEquals(false, (boolean) vh.compareAndSet(values, 0, ZERO, TWO)); in testIntegerArrayVarHandle()
96 assertEquals(ONE, vho.getAndSetAcquire(values, 0, TWO)); in testObjectArrayVarHandle()
105 assertEquals(TWO, vho.compareAndExchange(values, 0, TWO, ZERO)); in testObjectArrayVarHandle()
106 assertThrowsAIOBE(() -> vho.compareAndExchange(values, values.length, ONE, TWO)); in testObjectArrayVarHandle()
[all …]
DWidget.java40 public static final Widget TWO = new Widget(2); field in Widget
DVarHandleTypeConversionTests.java1126 public static final WidgetChild TWO = new WidgetChild(2, 2000); field in VarHandleTypeConversionTests.SubtypeTest.WidgetChild
1138 vh.compareAndExchangeRelease(this, WidgetChild.ONE, WidgetChild.TWO); in doTest()
1139 assertEquals(WidgetChild.TWO, w); in doTest()
1140 rwc = (WidgetChild) vh.compareAndExchangeAcquire(this, WidgetChild.TWO, Widget.ONE); in doTest()
1143 assertEquals(true, vh.compareAndSet(this, Widget.ONE, Widget.TWO)); in doTest()
1144 assertEquals(Widget.TWO, w); in doTest()
1150 vh.setOpaque(this, WidgetChild.TWO); in doTest()
1151 assertEquals(WidgetChild.TWO, vh.getOpaque(this)); in doTest()
1152 assertEquals(WidgetChild.TWO, w); in doTest()
1158 assertEquals(WidgetChild.ONE, (WidgetChild) vh.getAndSetRelease(this, WidgetChild.TWO)); in doTest()
[all …]
/art/test/055-enum-performance/src/
DSamePackagePublicEnum.java2 ZERO, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, enumConstant
DSamePackagePrivateEnum.java2 ZERO, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, enumConstant
/art/test/055-enum-performance/src/otherpackage/
DOtherPackagePublicEnum.java4 ZERO, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, enumConstant
/art/test/721-osr/src/
DMain.java23 TWO enumConstant
/art/test/715-clinit-implicit-parameter-annotations/src/
DMain.java76 TWO(2.0), enumConstant