Home
last modified time | relevance | path

Searched refs:o (Results 1 – 25 of 396) sorted by relevance

12345678910>>...16

/libcore/ojluni/src/main/java/jdk/internal/misc/
DUnsafe.java148 public native int getInt(Object o, long offset); in getInt() argument
173 public native void putInt(Object o, long offset, int x); in putInt() argument
182 public native Object getReference(Object o, long offset); in getReference() argument
197 public native void putReference(Object o, long offset, Object x); in putReference() argument
203 public native boolean getBoolean(Object o, long offset); in getBoolean() argument
209 public native void putBoolean(Object o, long offset, boolean x); in putBoolean() argument
215 public native byte getByte(Object o, long offset); in getByte() argument
221 public native void putByte(Object o, long offset, byte x); in putByte() argument
227 public native short getShort(Object o, long offset); in getShort() argument
233 public native void putShort(Object o, long offset, short x); in putShort() argument
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DCollatorTest.java35 Object o, o2; in test_compareLjava_lang_ObjectLjava_lang_Object() local
38 o = "E"; in test_compareLjava_lang_ObjectLjava_lang_Object()
40 assertTrue("a) Failed on primary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object()
41 o = "e"; in test_compareLjava_lang_ObjectLjava_lang_Object()
43 assertTrue("a) Failed on secondary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object()
44 o = "e"; in test_compareLjava_lang_ObjectLjava_lang_Object()
46 assertTrue("a) Failed on tertiary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object()
47 o = "\u0001"; in test_compareLjava_lang_ObjectLjava_lang_Object()
49 assertTrue("a) Failed on identical", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object()
50 o = "e"; in test_compareLjava_lang_ObjectLjava_lang_Object()
[all …]
/libcore/support/src/test/java/org/apache/harmony/testframework/
DWrapperTester.java114 OutputStream o = create(delegate); in wrapperTestFlushThrowsViaFlushSuppressed() local
115 o.write(new byte[] { 8, 6, 7, 5 }); in wrapperTestFlushThrowsViaFlushSuppressed()
116 o.write(new byte[] { 3, 0, 9 }); in wrapperTestFlushThrowsViaFlushSuppressed()
117 o.flush(); in wrapperTestFlushThrowsViaFlushSuppressed()
123 OutputStream o = create(delegate); in wrapperTestFlushThrowsViaCloseSuppressed() local
124 o.write(new byte[] { 8, 6, 7, 5 }); in wrapperTestFlushThrowsViaCloseSuppressed()
125 o.write(new byte[] { 3, 0, 9 }); in wrapperTestFlushThrowsViaCloseSuppressed()
126 o.close(); in wrapperTestFlushThrowsViaCloseSuppressed()
133 OutputStream o = create(delegate); in wrapperTestFlushThrowsViaFlush() local
136 o.write(new byte[] { 8, 6, 7, 5 }); in wrapperTestFlushThrowsViaFlush()
[all …]
DCharWrapperTester.java113 Writer o = create(delegate); in wrapperTestFlushThrowsViaFlushSuppressed() local
114 o.write("BUT"); in wrapperTestFlushThrowsViaFlushSuppressed()
115 o.write("TERS"); in wrapperTestFlushThrowsViaFlushSuppressed()
116 o.flush(); in wrapperTestFlushThrowsViaFlushSuppressed()
122 Writer o = create(delegate); in wrapperTestFlushThrowsViaCloseSuppressed() local
123 o.write("BUT"); in wrapperTestFlushThrowsViaCloseSuppressed()
124 o.write("TERS"); in wrapperTestFlushThrowsViaCloseSuppressed()
125 o.close(); in wrapperTestFlushThrowsViaCloseSuppressed()
132 Writer o = create(delegate); in wrapperTestFlushThrowsViaFlush() local
135 o.write("BUT"); in wrapperTestFlushThrowsViaFlush()
[all …]
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/
DVarHandleTestAccessBoolean.java281 boolean o = (boolean) vh.getAndAdd(recv, true); in testInstanceFinalFieldUnsupported()
285 boolean o = (boolean) vh.getAndAddAcquire(recv, true); in testInstanceFinalFieldUnsupported()
289 boolean o = (boolean) vh.getAndAddRelease(recv, true); in testInstanceFinalFieldUnsupported()
341 boolean o = (boolean) vh.getAndAdd(true); in testStaticFinalFieldUnsupported()
345 boolean o = (boolean) vh.getAndAddAcquire(true); in testStaticFinalFieldUnsupported()
349 boolean o = (boolean) vh.getAndAddRelease(true); in testStaticFinalFieldUnsupported()
488 boolean o = (boolean) vh.getAndSet(recv, false); in testInstanceField()
489 assertEquals(o, true, "getAndSet boolean"); in testInstanceField()
497 boolean o = (boolean) vh.getAndSetAcquire(recv, false); in testInstanceField()
498 assertEquals(o, true, "getAndSetAcquire boolean"); in testInstanceField()
[all …]
DVarHandleTestAccessShort.java466 short o = (short) vh.getAndSet(recv, (short)0x4567); in testInstanceField() local
467 assertEquals(o, (short)0x0123, "getAndSet short"); in testInstanceField()
475 short o = (short) vh.getAndSetAcquire(recv, (short)0x4567); in testInstanceField() local
476 assertEquals(o, (short)0x0123, "getAndSetAcquire short"); in testInstanceField()
484 short o = (short) vh.getAndSetRelease(recv, (short)0x4567); in testInstanceField() local
485 assertEquals(o, (short)0x0123, "getAndSetRelease short"); in testInstanceField()
494 short o = (short) vh.getAndAdd(recv, (short)0x4567); in testInstanceField() local
495 assertEquals(o, (short)0x0123, "getAndAdd short"); in testInstanceField()
503 short o = (short) vh.getAndAddAcquire(recv, (short)0x4567); in testInstanceField() local
504 assertEquals(o, (short)0x0123, "getAndAddAcquire short"); in testInstanceField()
[all …]
DVarHandleTestAccessByte.java466 byte o = (byte) vh.getAndSet(recv, (byte)0x23); in testInstanceField()
467 assertEquals(o, (byte)0x01, "getAndSet byte"); in testInstanceField()
475 byte o = (byte) vh.getAndSetAcquire(recv, (byte)0x23); in testInstanceField()
476 assertEquals(o, (byte)0x01, "getAndSetAcquire byte"); in testInstanceField()
484 byte o = (byte) vh.getAndSetRelease(recv, (byte)0x23); in testInstanceField()
485 assertEquals(o, (byte)0x01, "getAndSetRelease byte"); in testInstanceField()
494 byte o = (byte) vh.getAndAdd(recv, (byte)0x23); in testInstanceField()
495 assertEquals(o, (byte)0x01, "getAndAdd byte"); in testInstanceField()
503 byte o = (byte) vh.getAndAddAcquire(recv, (byte)0x23); in testInstanceField()
504 assertEquals(o, (byte)0x01, "getAndAddAcquire byte"); in testInstanceField()
[all …]
DVarHandleTestAccessLong.java466 long o = (long) vh.getAndSet(recv, 0xCAFEBABECAFEBABEL); in testInstanceField() local
467 assertEquals(o, 0x0123456789ABCDEFL, "getAndSet long"); in testInstanceField()
475 long o = (long) vh.getAndSetAcquire(recv, 0xCAFEBABECAFEBABEL); in testInstanceField() local
476 assertEquals(o, 0x0123456789ABCDEFL, "getAndSetAcquire long"); in testInstanceField()
484 long o = (long) vh.getAndSetRelease(recv, 0xCAFEBABECAFEBABEL); in testInstanceField() local
485 assertEquals(o, 0x0123456789ABCDEFL, "getAndSetRelease long"); in testInstanceField()
494 long o = (long) vh.getAndAdd(recv, 0xCAFEBABECAFEBABEL); in testInstanceField() local
495 assertEquals(o, 0x0123456789ABCDEFL, "getAndAdd long"); in testInstanceField()
503 long o = (long) vh.getAndAddAcquire(recv, 0xCAFEBABECAFEBABEL); in testInstanceField() local
504 assertEquals(o, 0x0123456789ABCDEFL, "getAndAddAcquire long"); in testInstanceField()
[all …]
DVarHandleTestAccessInt.java466 int o = (int) vh.getAndSet(recv, 0x89ABCDEF); in testInstanceField() local
467 assertEquals(o, 0x01234567, "getAndSet int"); in testInstanceField()
475 int o = (int) vh.getAndSetAcquire(recv, 0x89ABCDEF); in testInstanceField() local
476 assertEquals(o, 0x01234567, "getAndSetAcquire int"); in testInstanceField()
484 int o = (int) vh.getAndSetRelease(recv, 0x89ABCDEF); in testInstanceField() local
485 assertEquals(o, 0x01234567, "getAndSetRelease int"); in testInstanceField()
494 int o = (int) vh.getAndAdd(recv, 0x89ABCDEF); in testInstanceField() local
495 assertEquals(o, 0x01234567, "getAndAdd int"); in testInstanceField()
503 int o = (int) vh.getAndAddAcquire(recv, 0x89ABCDEF); in testInstanceField() local
504 assertEquals(o, 0x01234567, "getAndAddAcquire int"); in testInstanceField()
[all …]
DVarHandleTestAccessChar.java466 char o = (char) vh.getAndSet(recv, '\u4567'); in testInstanceField() local
467 assertEquals(o, '\u0123', "getAndSet char"); in testInstanceField()
475 char o = (char) vh.getAndSetAcquire(recv, '\u4567'); in testInstanceField() local
476 assertEquals(o, '\u0123', "getAndSetAcquire char"); in testInstanceField()
484 char o = (char) vh.getAndSetRelease(recv, '\u4567'); in testInstanceField() local
485 assertEquals(o, '\u0123', "getAndSetRelease char"); in testInstanceField()
494 char o = (char) vh.getAndAdd(recv, '\u4567'); in testInstanceField() local
495 assertEquals(o, '\u0123', "getAndAdd char"); in testInstanceField()
503 char o = (char) vh.getAndAddAcquire(recv, '\u4567'); in testInstanceField() local
504 assertEquals(o, '\u0123', "getAndAddAcquire char"); in testInstanceField()
[all …]
DVarHandleTestByteArrayAsLong.java274 long o = (long) vh.getAndSet(array, ci, VALUE_1); in testArrayNPE() local
278 long o = (long) vh.getAndSetAcquire(array, ci, VALUE_1); in testArrayNPE() local
282 long o = (long) vh.getAndSetRelease(array, ci, VALUE_1); in testArrayNPE() local
286 long o = (long) vh.getAndAdd(array, ci, VALUE_1); in testArrayNPE() local
290 long o = (long) vh.getAndAddAcquire(array, ci, VALUE_1); in testArrayNPE() local
294 long o = (long) vh.getAndAddRelease(array, ci, VALUE_1); in testArrayNPE() local
298 long o = (long) vh.getAndBitwiseOr(array, ci, VALUE_1); in testArrayNPE() local
302 long o = (long) vh.getAndBitwiseOrAcquire(array, ci, VALUE_1); in testArrayNPE() local
306 long o = (long) vh.getAndBitwiseOrRelease(array, ci, VALUE_1); in testArrayNPE() local
310 long o = (long) vh.getAndBitwiseAnd(array, ci, VALUE_1); in testArrayNPE() local
[all …]
DVarHandleTestByteArrayAsInt.java274 int o = (int) vh.getAndSet(array, ci, VALUE_1); in testArrayNPE() local
278 int o = (int) vh.getAndSetAcquire(array, ci, VALUE_1); in testArrayNPE() local
282 int o = (int) vh.getAndSetRelease(array, ci, VALUE_1); in testArrayNPE() local
286 int o = (int) vh.getAndAdd(array, ci, VALUE_1); in testArrayNPE() local
290 int o = (int) vh.getAndAddAcquire(array, ci, VALUE_1); in testArrayNPE() local
294 int o = (int) vh.getAndAddRelease(array, ci, VALUE_1); in testArrayNPE() local
298 int o = (int) vh.getAndBitwiseOr(array, ci, VALUE_1); in testArrayNPE() local
302 int o = (int) vh.getAndBitwiseOrAcquire(array, ci, VALUE_1); in testArrayNPE() local
306 int o = (int) vh.getAndBitwiseOrRelease(array, ci, VALUE_1); in testArrayNPE() local
310 int o = (int) vh.getAndBitwiseAnd(array, ci, VALUE_1); in testArrayNPE() local
[all …]
DVarHandleTestAccessDouble.java282 double o = (double) vh.getAndBitwiseOr(recv, 1.0d); in testInstanceFinalFieldUnsupported() local
286 double o = (double) vh.getAndBitwiseOrAcquire(recv, 1.0d); in testInstanceFinalFieldUnsupported() local
290 double o = (double) vh.getAndBitwiseOrRelease(recv, 1.0d); in testInstanceFinalFieldUnsupported() local
294 double o = (double) vh.getAndBitwiseAnd(recv, 1.0d); in testInstanceFinalFieldUnsupported() local
298 double o = (double) vh.getAndBitwiseAndAcquire(recv, 1.0d); in testInstanceFinalFieldUnsupported() local
302 double o = (double) vh.getAndBitwiseAndRelease(recv, 1.0d); in testInstanceFinalFieldUnsupported() local
306 double o = (double) vh.getAndBitwiseXor(recv, 1.0d); in testInstanceFinalFieldUnsupported() local
310 double o = (double) vh.getAndBitwiseXorAcquire(recv, 1.0d); in testInstanceFinalFieldUnsupported() local
314 double o = (double) vh.getAndBitwiseXorRelease(recv, 1.0d); in testInstanceFinalFieldUnsupported() local
366 double o = (double) vh.getAndBitwiseOr(1.0d); in testStaticFinalFieldUnsupported() local
[all …]
DVarHandleTestAccessFloat.java282 float o = (float) vh.getAndBitwiseOr(recv, 1.0f); in testInstanceFinalFieldUnsupported() local
286 float o = (float) vh.getAndBitwiseOrAcquire(recv, 1.0f); in testInstanceFinalFieldUnsupported() local
290 float o = (float) vh.getAndBitwiseOrRelease(recv, 1.0f); in testInstanceFinalFieldUnsupported() local
294 float o = (float) vh.getAndBitwiseAnd(recv, 1.0f); in testInstanceFinalFieldUnsupported() local
298 float o = (float) vh.getAndBitwiseAndAcquire(recv, 1.0f); in testInstanceFinalFieldUnsupported() local
302 float o = (float) vh.getAndBitwiseAndRelease(recv, 1.0f); in testInstanceFinalFieldUnsupported() local
306 float o = (float) vh.getAndBitwiseXor(recv, 1.0f); in testInstanceFinalFieldUnsupported() local
310 float o = (float) vh.getAndBitwiseXorAcquire(recv, 1.0f); in testInstanceFinalFieldUnsupported() local
314 float o = (float) vh.getAndBitwiseXorRelease(recv, 1.0f); in testInstanceFinalFieldUnsupported() local
366 float o = (float) vh.getAndBitwiseOr(1.0f); in testStaticFinalFieldUnsupported() local
[all …]
DVarHandleTestMethodHandleAccessLong.java255 … long o = (long) hs.get(TestAccessMode.GET_AND_SET).invokeExact(recv, 0xCAFEBABECAFEBABEL); in testInstanceField() local
256 assertEquals(o, 0x0123456789ABCDEFL, "getAndSet long"); in testInstanceField()
265 … long o = (long) hs.get(TestAccessMode.GET_AND_ADD).invokeExact(recv, 0xCAFEBABECAFEBABEL); in testInstanceField() local
266 assertEquals(o, 0x0123456789ABCDEFL, "getAndAdd long"); in testInstanceField()
274 … long o = (long) hs.get(TestAccessMode.GET_AND_ADD_ACQUIRE).invokeExact(recv, 0xCAFEBABECAFEBABEL); in testInstanceField() local
275 assertEquals(o, 0x0123456789ABCDEFL, "getAndAddAcquire long"); in testInstanceField()
283 … long o = (long) hs.get(TestAccessMode.GET_AND_ADD_RELEASE).invokeExact(recv, 0xCAFEBABECAFEBABEL); in testInstanceField() local
284 assertEquals(o, 0x0123456789ABCDEFL, "getAndAddRelease long"); in testInstanceField()
293 … long o = (long) hs.get(TestAccessMode.GET_AND_BITWISE_OR).invokeExact(recv, 0xCAFEBABECAFEBABEL); in testInstanceField() local
294 assertEquals(o, 0x0123456789ABCDEFL, "getAndBitwiseOr long"); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessByte.java255 byte o = (byte) hs.get(TestAccessMode.GET_AND_SET).invokeExact(recv, (byte)0x23); in testInstanceField()
256 assertEquals(o, (byte)0x01, "getAndSet byte"); in testInstanceField()
265 byte o = (byte) hs.get(TestAccessMode.GET_AND_ADD).invokeExact(recv, (byte)0x23); in testInstanceField()
266 assertEquals(o, (byte)0x01, "getAndAdd byte"); in testInstanceField()
274 … byte o = (byte) hs.get(TestAccessMode.GET_AND_ADD_ACQUIRE).invokeExact(recv, (byte)0x23); in testInstanceField()
275 assertEquals(o, (byte)0x01, "getAndAddAcquire byte"); in testInstanceField()
283 … byte o = (byte) hs.get(TestAccessMode.GET_AND_ADD_RELEASE).invokeExact(recv, (byte)0x23); in testInstanceField()
284 assertEquals(o, (byte)0x01, "getAndAddRelease byte"); in testInstanceField()
293 byte o = (byte) hs.get(TestAccessMode.GET_AND_BITWISE_OR).invokeExact(recv, (byte)0x23); in testInstanceField()
294 assertEquals(o, (byte)0x01, "getAndBitwiseOr byte"); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessInt.java255 int o = (int) hs.get(TestAccessMode.GET_AND_SET).invokeExact(recv, 0x89ABCDEF); in testInstanceField() local
256 assertEquals(o, 0x01234567, "getAndSet int"); in testInstanceField()
265 int o = (int) hs.get(TestAccessMode.GET_AND_ADD).invokeExact(recv, 0x89ABCDEF); in testInstanceField() local
266 assertEquals(o, 0x01234567, "getAndAdd int"); in testInstanceField()
274 int o = (int) hs.get(TestAccessMode.GET_AND_ADD_ACQUIRE).invokeExact(recv, 0x89ABCDEF); in testInstanceField() local
275 assertEquals(o, 0x01234567, "getAndAddAcquire int"); in testInstanceField()
283 int o = (int) hs.get(TestAccessMode.GET_AND_ADD_RELEASE).invokeExact(recv, 0x89ABCDEF); in testInstanceField() local
284 assertEquals(o, 0x01234567, "getAndAddRelease int"); in testInstanceField()
293 int o = (int) hs.get(TestAccessMode.GET_AND_BITWISE_OR).invokeExact(recv, 0x89ABCDEF); in testInstanceField() local
294 assertEquals(o, 0x01234567, "getAndBitwiseOr int"); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessChar.java255 char o = (char) hs.get(TestAccessMode.GET_AND_SET).invokeExact(recv, '\u4567'); in testInstanceField() local
256 assertEquals(o, '\u0123', "getAndSet char"); in testInstanceField()
265 char o = (char) hs.get(TestAccessMode.GET_AND_ADD).invokeExact(recv, '\u4567'); in testInstanceField() local
266 assertEquals(o, '\u0123', "getAndAdd char"); in testInstanceField()
274 char o = (char) hs.get(TestAccessMode.GET_AND_ADD_ACQUIRE).invokeExact(recv, '\u4567'); in testInstanceField() local
275 assertEquals(o, '\u0123', "getAndAddAcquire char"); in testInstanceField()
283 char o = (char) hs.get(TestAccessMode.GET_AND_ADD_RELEASE).invokeExact(recv, '\u4567'); in testInstanceField() local
284 assertEquals(o, '\u0123', "getAndAddRelease char"); in testInstanceField()
293 char o = (char) hs.get(TestAccessMode.GET_AND_BITWISE_OR).invokeExact(recv, '\u4567'); in testInstanceField() local
294 assertEquals(o, '\u0123', "getAndBitwiseOr char"); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessShort.java255 short o = (short) hs.get(TestAccessMode.GET_AND_SET).invokeExact(recv, (short)0x4567); in testInstanceField() local
256 assertEquals(o, (short)0x0123, "getAndSet short"); in testInstanceField()
265 short o = (short) hs.get(TestAccessMode.GET_AND_ADD).invokeExact(recv, (short)0x4567); in testInstanceField() local
266 assertEquals(o, (short)0x0123, "getAndAdd short"); in testInstanceField()
274 … short o = (short) hs.get(TestAccessMode.GET_AND_ADD_ACQUIRE).invokeExact(recv, (short)0x4567); in testInstanceField() local
275 assertEquals(o, (short)0x0123, "getAndAddAcquire short"); in testInstanceField()
283 … short o = (short) hs.get(TestAccessMode.GET_AND_ADD_RELEASE).invokeExact(recv, (short)0x4567); in testInstanceField() local
284 assertEquals(o, (short)0x0123, "getAndAddRelease short"); in testInstanceField()
293 … short o = (short) hs.get(TestAccessMode.GET_AND_BITWISE_OR).invokeExact(recv, (short)0x4567); in testInstanceField() local
294 assertEquals(o, (short)0x0123, "getAndBitwiseOr short"); in testInstanceField()
[all …]
DVarHandleTestAccessString.java288 String o = (String) vh.getAndAdd(recv, "foo"); in testInstanceFinalFieldUnsupported() local
292 String o = (String) vh.getAndAddAcquire(recv, "foo"); in testInstanceFinalFieldUnsupported() local
296 String o = (String) vh.getAndAddRelease(recv, "foo"); in testInstanceFinalFieldUnsupported() local
300 String o = (String) vh.getAndBitwiseOr(recv, "foo"); in testInstanceFinalFieldUnsupported() local
304 String o = (String) vh.getAndBitwiseOrAcquire(recv, "foo"); in testInstanceFinalFieldUnsupported() local
308 String o = (String) vh.getAndBitwiseOrRelease(recv, "foo"); in testInstanceFinalFieldUnsupported() local
312 String o = (String) vh.getAndBitwiseAnd(recv, "foo"); in testInstanceFinalFieldUnsupported() local
316 String o = (String) vh.getAndBitwiseAndAcquire(recv, "foo"); in testInstanceFinalFieldUnsupported() local
320 String o = (String) vh.getAndBitwiseAndRelease(recv, "foo"); in testInstanceFinalFieldUnsupported() local
324 String o = (String) vh.getAndBitwiseXor(recv, "foo"); in testInstanceFinalFieldUnsupported() local
[all …]
DX-VarHandleTestByteArrayView.java.template307 $type$ o = ($type$) vh.getAndSet(array, ci, VALUE_1);
311 $type$ o = ($type$) vh.getAndSetAcquire(array, ci, VALUE_1);
315 $type$ o = ($type$) vh.getAndSetRelease(array, ci, VALUE_1);
321 $type$ o = ($type$) vh.getAndAdd(array, ci, VALUE_1);
325 $type$ o = ($type$) vh.getAndAddAcquire(array, ci, VALUE_1);
329 $type$ o = ($type$) vh.getAndAddRelease(array, ci, VALUE_1);
335 $type$ o = ($type$) vh.getAndBitwiseOr(array, ci, VALUE_1);
339 $type$ o = ($type$) vh.getAndBitwiseOrAcquire(array, ci, VALUE_1);
343 $type$ o = ($type$) vh.getAndBitwiseOrRelease(array, ci, VALUE_1);
347 $type$ o = ($type$) vh.getAndBitwiseAnd(array, ci, VALUE_1);
[all …]
DVarHandleTestMethodHandleAccessBoolean.java255 boolean o = (boolean) hs.get(TestAccessMode.GET_AND_SET).invokeExact(recv, false); in testInstanceField()
256 assertEquals(o, true, "getAndSet boolean"); in testInstanceField()
266 … boolean o = (boolean) hs.get(TestAccessMode.GET_AND_BITWISE_OR).invokeExact(recv, false); in testInstanceField()
267 assertEquals(o, true, "getAndBitwiseOr boolean"); in testInstanceField()
275 … boolean o = (boolean) hs.get(TestAccessMode.GET_AND_BITWISE_OR_ACQUIRE).invokeExact(recv, false); in testInstanceField()
276 assertEquals(o, true, "getAndBitwiseOrAcquire boolean"); in testInstanceField()
284 … boolean o = (boolean) hs.get(TestAccessMode.GET_AND_BITWISE_OR_RELEASE).invokeExact(recv, false); in testInstanceField()
285 assertEquals(o, true, "getAndBitwiseOrRelease boolean"); in testInstanceField()
294 … boolean o = (boolean) hs.get(TestAccessMode.GET_AND_BITWISE_AND).invokeExact(recv, false); in testInstanceField()
295 assertEquals(o, true, "getAndBitwiseAnd boolean"); in testInstanceField()
[all …]
/libcore/ojluni/src/main/java/java/net/
DAbstractPlainDatagramSocketImpl.java279 public void setOption(int optID, Object o) throws SocketException { in setOption() argument
289 if (o == null || !(o instanceof Integer)) { in setOption()
292 int tmp = ((Integer) o).intValue(); in setOption()
298 if (o == null || !(o instanceof Integer)) { in setOption()
301 trafficClass = ((Integer)o).intValue(); in setOption()
304 if (o == null || !(o instanceof Boolean)) { in setOption()
309 if (o == null || !(o instanceof Boolean)) { in setOption()
317 if (o == null || !(o instanceof Integer) || in setOption()
318 ((Integer)o).intValue() < 0) { in setOption()
324 if (o == null || !(o instanceof InetAddress)) in setOption()
[all …]
/libcore/ojluni/src/main/java/java/lang/
DProcessEnvironment.java169 public boolean equals(Object o) { in equals() argument
170 return o instanceof ExternalData in equals()
171 && arrayEquals(getBytes(), ((ExternalData) o).getBytes()); in equals()
207 public boolean equals(Object o) { in equals() argument
208 return o instanceof Variable && super.equals(o); in equals()
240 public boolean equals(Object o) { in equals() argument
241 return o instanceof Value && super.equals(o); in equals()
338 public boolean equals(Object o) { in equals() argument
339 return o instanceof StringEntry in equals()
340 && e.equals(((StringEntry)o).e); in equals()
[all …]
/libcore/ojluni/src/test/java/nio/Buffer/
DByteBufferViews.java162 static ByteBuffer allocate(IntFunction<ByteBuffer> f, IntUnaryOperator o) { in allocate() argument
163 return fill(f.apply(SIZE), o); in allocate()
166 static ByteBuffer fill(ByteBuffer bb, IntUnaryOperator o) { in fill() argument
168 bb.put(i, (byte) o.applyAsInt(i)); in fill()
198 int o = bb.position(); in testShortGet() local
201 short fromBytes = getShortFromBytes(bb, o + i * 2); in testShortGet()
202 short fromMethodView = bb.getShort(o + i * 2); in testShortGet()
210 short v = getShortFromBytes(bb, o + i * 2); in testShortGet()
226 int o = bb.position(); in testShortPut() local
229 short fromFilled = bbfilled.getShort(o + i * 2); in testShortPut()
[all …]

12345678910>>...16