Home
last modified time | relevance | path

Searched refs:getChar (Results 1 – 25 of 33) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/lang/reflect/
DArrayTest.java69 try { Array.getChar(booleans, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetChar()
70 try { Array.getChar(bytes, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetChar()
71 assertEquals(chars[0], Array.getChar(chars, 0)); in testGetChar()
72 try { Array.getChar(doubles, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetChar()
73 try { Array.getChar(floats, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetChar()
74 try { Array.getChar(ints, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetChar()
75 try { Array.getChar(longs, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetChar()
76 try { Array.getChar(shorts, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetChar()
77 try { Array.getChar(null, 0); fail(); } catch (NullPointerException expected) {} in testGetChar()
/libcore/ojluni/src/main/java/java/lang/
DStringUTF16.java65 static char getChar(String val, int index) { in getChar() method in StringUTF16
203 char ch = getChar(value, current); in indexOfLineSeparator()
213 if (getChar(value, start) == '\r') { in skipLineSeparator()
215 if (next < fence && getChar(value, next) == '\n') { in skipLineSeparator()
513 return getChar(value, index); in charAt()
/libcore/ojluni/src/main/java/java/nio/
DHeapByteBuffer.java209 public char getChar() { in getChar() method in HeapByteBuffer
210 return Bits.getChar(this, ix(nextGetIndex(2)), bigEndian); in getChar()
214 public char getChar(int i) { in getChar() method in HeapByteBuffer
215 return Bits.getChar(this, ix(checkIndex(i, 2)), bigEndian); in getChar()
220 return Bits.getChar(this, ix(i), bigEndian); in getCharUnchecked()
DByteBuffer.java1237 public abstract char getChar(); in getChar() method in ByteBuffer
1277 public abstract char getChar(int index); in getChar() method in ByteBuffer
DBits.java88 static char getChar(ByteBuffer bb, int bi, boolean bigEndian) { in getChar() method in Bits
92 static char getChar(long a, boolean bigEndian) { in getChar() method in Bits
/libcore/ojluni/src/main/java/sun/nio/ch/
DNativeObject.java229 final char getChar(int offset) { in getChar() method in NativeObject
230 return unsafe.getChar(offset + address); in getChar()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DArrayTest.java195 ret = Array.getChar(x, 0); in test_getCharLjava_lang_ObjectI()
201 ret = Array.getChar(new Object(), 0); in test_getCharLjava_lang_ObjectI()
211 ret = Array.getChar(x, 4); in test_getCharLjava_lang_ObjectI()
221 ret = Array.getChar(null, 0); in test_getCharLjava_lang_ObjectI()
725 assertEquals("Get returned incorrect value", 1, Array.getChar(x, 0)); in test_setCharLjava_lang_ObjectIC()
DFieldTest.java263 res = new Character(f.getChar(o)); in getField()
670 val = f.getChar(x); in test_getCharLjava_lang_Object()
679 f.getChar(x); in test_getCharLjava_lang_Object()
692 f.getChar(null); in test_getCharLjava_lang_Object()
705 char staticValue = f.getChar(null); in test_getCharLjava_lang_Object()
1221 val = f.getChar(x); in test_setCharLjava_lang_ObjectC()
1254 val = f.getChar(x); in test_setCharLjava_lang_ObjectC()
/libcore/ojluni/annotations/mmodule/java/nio/
DByteBuffer.annotated.java92 public abstract char getChar(); in getChar() method in ByteBuffer
96 public abstract char getChar(int index); in getChar() method in ByteBuffer
DDirectByteBuffer.annotated.java90 public final char getChar() { throw new RuntimeException("Stub!"); } in getChar() method in DirectByteBuffer
93 public final char getChar(int i) { throw new RuntimeException("Stub!"); } in getChar() method in DirectByteBuffer
/libcore/ojluni/annotations/hiddenapi/java/nio/
DByteBuffer.java149 public abstract char getChar(); in getChar() method in ByteBuffer
153 public abstract char getChar(int index); in getChar() method in ByteBuffer
DDirectByteBuffer.java163 public final char getChar() { in getChar() method in DirectByteBuffer
167 public final char getChar(int i) { in getChar() method in DirectByteBuffer
/libcore/ojluni/src/main/java/sun/misc/
DUnsafe.java376 public native char getChar(Object obj, long offset); in getChar() method in Unsafe
568 public native char getChar(long address); in getChar() method in Unsafe
/libcore/ojluni/annotations/sdk/nullability/java/nio/
DByteBuffer.annotated.java105 public abstract char getChar(); in getChar() method in ByteBuffer
109 public abstract char getChar(int index); in getChar() method in ByteBuffer
/libcore/ojluni/src/main/java/java/io/
DBits.java43 static char getChar(byte[] b, int off) { in getChar() method in Bits
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DUnsafe.java140 public native char getChar(java.lang.Object obj, long offset); in getChar() method in Unsafe
204 public native char getChar(long address); in getChar() method in Unsafe
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandleAccessorsTest.java138 static void getChar(MethodHandle m, ValueHolder v, char value, boolean expectFailure) in getChar() method in MethodHandleAccessorsTest
156 static void getChar(MethodHandle m, char value, boolean expectFailure) throws Throwable { in getChar() method in MethodHandleAccessorsTest
157 getChar(m, null, value, expectFailure); in getChar()
470 getChar(methodHandle, valueHolder, charValue, in tryAccessor()
472 getChar(methodHandle, charValue, in tryAccessor()
/libcore/benchmarks/src/benchmarks/regression/
DByteBufferBenchmark.java120 src.getChar(); in timeByteBuffer_getChar()
141 src.getChar(i * 2); in timeByteBuffer_getChar_indexed()
/libcore/ojluni/src/main/java/java/lang/reflect/
DField.java426 public native char getChar(Object obj) in getChar() method in Field
/libcore/ojluni/annotations/sdk/nullability/java/lang/reflect/
DArray.annotated.java48 public static char getChar(@libcore.util.NonNull java.lang.Object array, int index) throws java.lan… in getChar() method in Array
DField.annotated.java64 public native char getChar(@libcore.util.Nullable java.lang.Object obj) throws java.lang.IllegalAcc… in getChar() method in Field
/libcore/ojluni/annotations/hiddenapi/java/lang/reflect/
DField.java100 public native char getChar(java.lang.Object obj) in getChar() method in Field
/libcore/ojluni/annotations/mmodule/sun/misc/
DUnsafe.annotated.java130 public native char getChar(java.lang.Object obj, long offset); in getChar() method in Unsafe
196 public native char getChar(long address); in getChar() method in Unsafe
/libcore/ojluni/src/main/java/jdk/internal/misc/
DUnsafe.java596 public native char getChar(Object obj, long offset); in getChar() method in Unsafe
788 public native char getChar(long address); in getChar() method in Unsafe
/libcore/luni/src/test/java/libcore/java/nio/
DBufferTest.java497 b.getChar(); in testRelativePositions()
1155 b.getChar(); in testGetMethods()
1156 b.getChar(0); in testGetMethods()
1195 b.getChar(); in testFailForGetMethods()
1200 b.getChar(0); in testFailForGetMethods()

12