Searched refs:Widget (Results 1 – 4 of 4) sorted by relevance
/art/test/712-varhandle-invocations/src/ |
D | Widget.java | 18 public class Widget { class 21 public Widget(int requisitionNumber) { in Widget() method in Widget 30 if (!(o instanceof Widget)) { in equals() 33 Widget wo = (Widget) o; in equals() 37 public static final Widget ONE = new Widget(1); 38 public static final Widget TWO = new Widget(2);
|
D | VarHandleTypeConversionTests.java | 1086 private static final Widget INITIAL_VALUE = Widget.ONE; 1088 private Widget w = INITIAL_VALUE; 1092 vh = MethodHandles.lookup().findVarHandle(SubtypeTest.class, "w", Widget.class); 1103 public static class WidgetChild extends Widget { 1131 Widget rw = (Widget) vh.compareAndExchange(this, null, WidgetChild.ONE); in doTest() 1138 rwc = (WidgetChild) vh.compareAndExchangeAcquire(this, WidgetChild.TWO, Widget.ONE); in doTest() 1139 assertEquals(Widget.ONE, w); in doTest() 1141 assertEquals(true, vh.compareAndSet(this, Widget.ONE, Widget.TWO)); in doTest() 1142 assertEquals(Widget.TWO, w); in doTest() 1144 assertEquals(null, (Widget) vh.get(this)); in doTest() [all …]
|
/art/test/952-invoke-custom/src/ |
D | TestInvocationKinds.java | 174 static class Widget { class in TestInvocationKinds 176 public Widget(int value) {} in Widget() method in TestInvocationKinds.Widget 195 returnType = Widget.class, 198 private static Widget makeWidget(int v) { in makeWidget() 205 Widget receiver = makeWidget(3); in testConstructor() 206 assertEquals(Widget.class, receiver.getClass()); in testConstructor()
|
/art/test/952-invoke-custom/ |
D | expected.txt | 20 testConstructor => class TestInvocationKinds$Widget
|