Home
last modified time | relevance | path

Searched refs:get (Results 1 – 25 of 1319) sorted by relevance

12345678910>>...53

/libcore/ojluni/src/test/java/lang/invoke/VarHandles/
DVarHandleTestMethodHandleAccessShort.java116 T t = atc.get(); in testAccess()
127 hs.get(TestAccessMode.SET).invokeExact(recv, (short)0x0123); in testInstanceField()
128 short x = (short) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, (short)0x4567); in testInstanceField()
136 short x = (short) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, (short)0x0123); in testInstanceField()
143 short x = (short) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, (short)0x4567); in testInstanceField()
150 short x = (short) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, (short)0x0123); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessLong.java116 T t = atc.get(); in testAccess()
127 hs.get(TestAccessMode.SET).invokeExact(recv, 0x0123456789ABCDEFL); in testInstanceField()
128 long x = (long) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, 0xCAFEBABECAFEBABEL); in testInstanceField()
136 long x = (long) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, 0x0123456789ABCDEFL); in testInstanceField()
143 long x = (long) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, 0xCAFEBABECAFEBABEL); in testInstanceField()
150 long x = (long) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, 0x0123456789ABCDEFL); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessInt.java116 T t = atc.get(); in testAccess()
127 hs.get(TestAccessMode.SET).invokeExact(recv, 0x01234567); in testInstanceField()
128 int x = (int) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, 0x89ABCDEF); in testInstanceField()
136 int x = (int) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, 0x01234567); in testInstanceField()
143 int x = (int) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, 0x89ABCDEF); in testInstanceField()
150 int x = (int) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, 0x01234567); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessByte.java116 T t = atc.get(); in testAccess()
127 hs.get(TestAccessMode.SET).invokeExact(recv, (byte)0x01); in testInstanceField()
128 byte x = (byte) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, (byte)0x23); in testInstanceField()
136 byte x = (byte) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, (byte)0x01); in testInstanceField()
143 byte x = (byte) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, (byte)0x23); in testInstanceField()
150 byte x = (byte) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, (byte)0x01); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessChar.java116 T t = atc.get(); in testAccess()
127 hs.get(TestAccessMode.SET).invokeExact(recv, '\u0123'); in testInstanceField()
128 char x = (char) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, '\u4567'); in testInstanceField()
136 char x = (char) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, '\u0123'); in testInstanceField()
143 char x = (char) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, '\u4567'); in testInstanceField()
150 char x = (char) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, '\u0123'); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessBoolean.java116 T t = atc.get(); in testAccess()
127 hs.get(TestAccessMode.SET).invokeExact(recv, true); in testInstanceField()
128 boolean x = (boolean) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, false); in testInstanceField()
136 boolean x = (boolean) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, true); in testInstanceField()
143 boolean x = (boolean) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, false); in testInstanceField()
150 boolean x = (boolean) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, true); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessFloat.java116 T t = atc.get(); in testAccess()
127 hs.get(TestAccessMode.SET).invokeExact(recv, 1.0f); in testInstanceField()
128 float x = (float) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, 2.0f); in testInstanceField()
136 float x = (float) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, 1.0f); in testInstanceField()
143 float x = (float) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, 2.0f); in testInstanceField()
150 float x = (float) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, 1.0f); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessDouble.java116 T t = atc.get(); in testAccess()
127 hs.get(TestAccessMode.SET).invokeExact(recv, 1.0d); in testInstanceField()
128 double x = (double) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, 2.0d); in testInstanceField()
136 double x = (double) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, 1.0d); in testInstanceField()
143 double x = (double) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, 2.0d); in testInstanceField()
150 double x = (double) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, 1.0d); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessString.java116 T t = atc.get(); in testAccess()
127 hs.get(TestAccessMode.SET).invokeExact(recv, "foo"); in testInstanceField()
128 String x = (String) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, "bar"); in testInstanceField()
136 String x = (String) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, "foo"); in testInstanceField()
143 String x = (String) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, "bar"); in testInstanceField()
150 String x = (String) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, "foo"); in testInstanceField()
[all …]
DX-VarHandleTestMethodHandleAccess.java.template116 T t = atc.get();
127 hs.get(TestAccessMode.SET).invokeExact(recv, $value1$);
128 $type$ x = ($type$) hs.get(TestAccessMode.GET).invokeExact(recv);
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, $value2$);
136 $type$ x = ($type$) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv);
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, $value1$);
143 $type$ x = ($type$) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv);
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, $value2$);
150 $type$ x = ($type$) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv);
155 hs.get(TestAccessMode.SET).invokeExact(recv, $value1$);
[all …]
/libcore/luni/src/test/java/libcore/java/nio/
DOldAndroidNIOTest.java138 assertEquals((byte) 0xA7, b.get(7)); in byteBufferTest()
140 b.get(12); in byteBufferTest()
146 b.get(-10); in byteBufferTest()
154 assertEquals((byte) 0xA0, b.get()); in byteBufferTest()
155 assertEquals((byte) 0xA1, b.get()); in byteBufferTest()
156 assertEquals((byte) 0xA2, b.get()); in byteBufferTest()
157 assertEquals((byte) 0xA3, b.get()); in byteBufferTest()
158 assertEquals((byte) 0xA4, b.get()); in byteBufferTest()
159 assertEquals((byte) 0xA5, b.get()); in byteBufferTest()
160 assertEquals((byte) 0xA6, b.get()); in byteBufferTest()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/file/
DLinuxPathTest.java65 private static final Path fakePath = Paths.get("fakePath");
82 assertEquals(Paths.get("/"), fakePath.toAbsolutePath().getRoot()); in test_getRoot()
91 assertEquals(Paths.get("data"), Paths.get("/data").getFileName()); in test_getFileName()
92 assertEquals(Paths.get("data"), Paths.get("/data/").getFileName()); in test_getFileName()
93 assertEquals(Paths.get(".."), Paths.get("/data/dir1/..").getFileName()); in test_getFileName()
99 assertEquals(Paths.get("rootDir"), Paths.get("rootDir/dir").getParent()); in test_getParent()
104 assertEquals(0, Paths.get("/").getNameCount()); in test_getNameCount()
105 assertEquals(1, Paths.get("/dir").getNameCount()); in test_getNameCount()
106 assertEquals(2, Paths.get("/dir/dir").getNameCount()); in test_getNameCount()
107 assertEquals(2, Paths.get("/dir/..").getNameCount()); in test_getNameCount()
[all …]
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DAtomicLongTest.java34 assertEquals(42, val.get()); in testCompareAndExchange()
36 assertEquals(1, val.get()); in testCompareAndExchange()
38 assertEquals(-1, val.get()); in testCompareAndExchange()
40 assertEquals(-1, val.get()); in testCompareAndExchange()
47 assertEquals(42, val.get()); in testCompareAndExchangeAcquire()
49 assertEquals(1, val.get()); in testCompareAndExchangeAcquire()
51 assertEquals(-1, val.get()); in testCompareAndExchangeAcquire()
53 assertEquals(-1, val.get()); in testCompareAndExchangeAcquire()
60 assertEquals(42, val.get()); in testCompareAndExchangeRelease()
62 assertEquals(1, val.get()); in testCompareAndExchangeRelease()
[all …]
DAtomicIntegerTest.java34 assertEquals(42, val.get()); in testCompareAndExchange()
36 assertEquals(1, val.get()); in testCompareAndExchange()
38 assertEquals(-1, val.get()); in testCompareAndExchange()
40 assertEquals(-1, val.get()); in testCompareAndExchange()
47 assertEquals(42, val.get()); in testCompareAndExchangeAcquire()
49 assertEquals(1, val.get()); in testCompareAndExchangeAcquire()
51 assertEquals(-1, val.get()); in testCompareAndExchangeAcquire()
53 assertEquals(-1, val.get()); in testCompareAndExchangeAcquire()
60 assertEquals(42, val.get()); in testCompareAndExchangeRelease()
62 assertEquals(1, val.get()); in testCompareAndExchangeRelease()
[all …]
DAtomicBooleanTest.java36 assertEquals(true, val.get()); in testCompareAndExchange()
38 assertEquals(true, val.get()); in testCompareAndExchange()
41 assertEquals(false, val.get()); in testCompareAndExchange()
43 assertEquals(false, val.get()); in testCompareAndExchange()
47 assertEquals(true, val.get()); in testCompareAndExchange()
56 assertEquals(true, val.get()); in testCompareAndExchangeAcquire()
58 assertEquals(true, val.get()); in testCompareAndExchangeAcquire()
61 assertEquals(false, val.get()); in testCompareAndExchangeAcquire()
63 assertEquals(false, val.get()); in testCompareAndExchangeAcquire()
67 assertEquals(true, val.get()); in testCompareAndExchangeAcquire()
[all …]
DAtomicReferenceTest.java41 assertSame(currentValue, val.get()); in testCompareAndExchange()
48 assertSame(currentValue, val.get()); in testCompareAndExchange()
54 assertSame(newValue, val.get()); in testCompareAndExchange()
55 currentValue = val.get(); in testCompareAndExchange()
64 assertSame(currentValue, val.get()); in testCompareAndExchange()
71 assertSame(newValue, val.get()); in testCompareAndExchange()
72 currentValue = val.get(); in testCompareAndExchange()
86 assertSame(currentValue, val.get()); in testCompareAndExchangeAcquire()
93 assertSame(currentValue, val.get()); in testCompareAndExchangeAcquire()
99 assertSame(newValue, val.get()); in testCompareAndExchangeAcquire()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DBitSetTest.java93 assertTrue("Clear didn't clear bit " + i, !eightbs.get(i)); in test_clear()
109 assertFalse("Failed to clear bit", eightbs.get(7)); in test_clearI()
113 assertTrue("Clear cleared incorrect bits", eightbs.get(i)); in test_clearI()
117 assertFalse("Failed to clear bit", eightbs.get(165)); in test_clearI()
180 assertFalse("Shouldn't have flipped bit " + i, bs.get(i)); in test_clearII()
182 assertTrue("Shouldn't have cleared bit " + i, bs.get(i)); in test_clearII()
186 assertFalse("Failed to clear bit " + i, bs.get(i)); in test_clearII()
191 assertFalse("Shouldn't have flipped bit " + i, bs.get(i)); in test_clearII()
193 assertTrue("Shouldn't have cleared bit " + i, bs.get(i)); in test_clearII()
198 assertFalse("Shouldn't have flipped bit " + i, bs.get(i)); in test_clearII()
[all …]
DGregorianCalendarTest.java66 1972, gc.get(Calendar.YEAR)); in test_ConstructorIII()
68 gc.get(Calendar.MONTH) == Calendar.OCTOBER); in test_ConstructorIII()
70 .get(Calendar.DAY_OF_MONTH)); in test_ConstructorIII()
84 1972, gc.get(Calendar.YEAR)); in test_ConstructorIIIII()
86 gc.get(Calendar.MONTH) == Calendar.OCTOBER); in test_ConstructorIIIII()
88 .get(Calendar.DAY_OF_MONTH)); in test_ConstructorIIIII()
89 assertEquals("Incorrect calendar constructed", 7, gc.get(Calendar.HOUR)); in test_ConstructorIIIII()
91 1, gc.get(Calendar.AM_PM)); in test_ConstructorIIIII()
93 9, gc.get(Calendar.MINUTE)); in test_ConstructorIIIII()
100 5983, gc.get(Calendar.YEAR)); in test_ConstructorIIIII()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DAtomicBooleanTest.java31 assertTrue(new AtomicBoolean(true).get()); in testConstructor()
32 assertFalse(new AtomicBoolean(false).get()); in testConstructor()
40 assertFalse(ai.get()); in testConstructor2()
48 assertTrue(ai.get()); in testGetSet()
50 assertFalse(ai.get()); in testGetSet()
52 assertTrue(ai.get()); in testGetSet()
60 assertTrue(ai.get()); in testGetLazySet()
62 assertFalse(ai.get()); in testGetLazySet()
64 assertTrue(ai.get()); in testGetLazySet()
73 assertFalse(ai.get()); in testCompareAndSet()
[all …]
DAtomicLongTest.java38 assertEquals(1, ai.get()); in testConstructor()
46 assertEquals(0, ai.get()); in testConstructor2()
54 assertEquals(1, ai.get()); in testGetSet()
56 assertEquals(2, ai.get()); in testGetSet()
58 assertEquals(-3, ai.get()); in testGetSet()
66 assertEquals(1, ai.get()); in testGetLazySet()
68 assertEquals(2, ai.get()); in testGetLazySet()
70 assertEquals(-3, ai.get()); in testGetLazySet()
80 assertEquals(-4, ai.get()); in testCompareAndSet()
82 assertEquals(-4, ai.get()); in testCompareAndSet()
[all …]
DAtomicIntegerTest.java36 assertEquals(1, ai.get()); in testConstructor()
44 assertEquals(0, ai.get()); in testConstructor2()
52 assertEquals(1, ai.get()); in testGetSet()
54 assertEquals(2, ai.get()); in testGetSet()
56 assertEquals(-3, ai.get()); in testGetSet()
64 assertEquals(1, ai.get()); in testGetLazySet()
66 assertEquals(2, ai.get()); in testGetLazySet()
68 assertEquals(-3, ai.get()); in testGetLazySet()
78 assertEquals(-4, ai.get()); in testCompareAndSet()
80 assertEquals(-4, ai.get()); in testCompareAndSet()
[all …]
DAtomicLongFieldUpdaterTest.java52 assertEquals(-4, a.get(this)); in checkCompareAndSetProtectedSub()
54 assertEquals(-4, a.get(this)); in checkCompareAndSetProtectedSub()
56 assertEquals(7, a.get(this)); in checkCompareAndSetProtectedSub()
66 assertEquals(72L, a.get(obj)); in checkPackageAccess()
68 assertEquals(73L, a.get(obj)); in checkPackageAccess()
145 assertEquals(1, a.get(this)); in testGetSet()
147 assertEquals(2, a.get(this)); in testGetSet()
149 assertEquals(-3, a.get(this)); in testGetSet()
159 assertEquals(1, a.get(this)); in testGetLazySet()
161 assertEquals(2, a.get(this)); in testGetLazySet()
[all …]
/libcore/ojluni/src/test/java/util/concurrent/tck/
DAtomicBooleanTest.java54 assertTrue(new AtomicBoolean(true).get()); in testConstructor()
55 assertFalse(new AtomicBoolean(false).get()); in testConstructor()
63 assertFalse(ai.get()); in testConstructor2()
71 assertTrue(ai.get()); in testGetSet()
73 assertFalse(ai.get()); in testGetSet()
75 assertTrue(ai.get()); in testGetSet()
83 assertTrue(ai.get()); in testGetLazySet()
85 assertFalse(ai.get()); in testGetLazySet()
87 assertTrue(ai.get()); in testGetLazySet()
96 assertFalse(ai.get()); in testCompareAndSet()
[all …]
/libcore/ojluni/src/main/java/java/nio/
DBufferMismatch.java37 if (a.get(aOff) != b.get(bOff)) in mismatch()
48 if (a.get(aOff + i) != b.get(bOff + i)) in mismatch()
61 if (a.get(aOff) != b.get(bOff)) in mismatch()
72 if (a.get(aOff + i) != b.get(bOff + i)) in mismatch()
81 if (a.get(aOff) != b.get(bOff)) in mismatch()
92 if (a.get(aOff + i) != b.get(bOff + i)) in mismatch()
101 if (a.get(aOff) != b.get(bOff)) in mismatch()
112 if (a.get(aOff + i) != b.get(bOff + i)) in mismatch()
121 if (Float.floatToRawIntBits(a.get(aOff)) == Float.floatToRawIntBits(b.get(bOff))) { in mismatch()
132 float av = a.get(aOff + i); in mismatch()
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestIsoChronoImpl.java100 cal.set(Calendar.YEAR, isoDate.get(YEAR)); in test_IsoChrono_vsCalendar()
101 cal.set(Calendar.MONTH, isoDate.get(MONTH_OF_YEAR) - 1); in test_IsoChrono_vsCalendar()
102 cal.set(Calendar.DAY_OF_MONTH, isoDate.get(DAY_OF_MONTH)); in test_IsoChrono_vsCalendar()
105 …assertEquals(isoDate.get(DAY_OF_MONTH), cal.get(Calendar.DAY_OF_MONTH), "Day mismatch in " + isoDa… in test_IsoChrono_vsCalendar()
106 …assertEquals(isoDate.get(MONTH_OF_YEAR), cal.get(Calendar.MONTH) + 1, "Month mismatch in " + isoDa… in test_IsoChrono_vsCalendar()
107 … assertEquals(isoDate.get(YEAR_OF_ERA), cal.get(Calendar.YEAR), "Year mismatch in " + isoDate); in test_IsoChrono_vsCalendar()
131 cal.set(Calendar.YEAR, isoDate.get(YEAR)); in test_DayOfWeek_IsoChronology_vsCalendar()
132 cal.set(Calendar.MONTH, isoDate.get(MONTH_OF_YEAR) - 1); in test_DayOfWeek_IsoChronology_vsCalendar()
133 cal.set(Calendar.DAY_OF_MONTH, isoDate.get(DAY_OF_MONTH)); in test_DayOfWeek_IsoChronology_vsCalendar()
137 …assertEquals(isoDate.get(DAY_OF_MONTH), cal.get(Calendar.DAY_OF_MONTH), "Day mismatch in " + isoDa… in test_DayOfWeek_IsoChronology_vsCalendar()
[all …]

12345678910>>...53