Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/java/lang/
DStringUTF16.java64 public static char getChar(byte[] val, int index) { in getChar() method in StringUTF16
82 static char getChar(String val, int index) {
106 char c1 = getChar(value, index);
111 char c2 = getChar(value, index);
128 char c2 = getChar(value, index);
134 char c1 = getChar(value, index);
154 if (Character.isHighSurrogate(getChar(value, i++)) &&
155 Character.isLowSurrogate(getChar(value, i))) {
221 char c = getChar(src, srcOff);
279 dst[dstBegin++] = getChar(value, i);
[all …]
DStringLatin1.java116 return getChar(value, k) - getChar(other, k); in compareTo()
142 char c1 = getChar(value, k); in compareToUTF16Values()
143 char c2 = StringUTF16.getChar(other, k); in compareToUTF16Values()
160 char c1 = (char) Character.toUpperCase(getChar(value, k)); in compareToCI()
161 char c2 = (char) Character.toUpperCase(getChar(other, k)); in compareToCI()
179 char c1 = getChar(value, k); in compareToCI_UTF16()
180 char c2 = StringUTF16.getChar(other, k); in compareToCI_UTF16()
714 public static char getChar(byte[] val, int index) { in getChar() method in StringLatin1
/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/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 = Character.valueOf(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.java93 public final char getChar() { throw new RuntimeException("Stub!"); } in getChar() method in DirectByteBuffer
96 public final char getChar(int i) { throw new RuntimeException("Stub!"); } in getChar() method in DirectByteBuffer
/libcore/ojluni/src/main/java/java/nio/
DHeapByteBuffer.java445 public char getChar() { in getChar() method in HeapByteBuffer
448 return Bits.getChar(this, ix(nextGetIndex(2)), bigEndian); in getChar()
452 public char getChar(int i) { in getChar() method in HeapByteBuffer
455 return Bits.getChar(this, ix(checkIndex(i, 2)), bigEndian); in getChar()
477 return Bits.getChar(this, ix(i), bigEndian); in getCharUnchecked()
DByteBuffer.java2435 public abstract char getChar(); in getChar() method in ByteBuffer
2475 public abstract char getChar(int index); in getChar() method in ByteBuffer
/libcore/ojluni/annotations/flagged_api/java/nio/
DByteBuffer.annotated.java129 public abstract char getChar(); in getChar() method in ByteBuffer
133 public abstract char getChar(int index); in getChar() method in ByteBuffer
/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.java170 public final char getChar() { in getChar() method in DirectByteBuffer
174 public final char getChar(int i) { in getChar() method in DirectByteBuffer
/libcore/ojluni/src/test/java/nio/Buffer/
DByteBufferViews.java306 char fromMethodView = bb.getChar(o + i * 2); in testCharGet()
315 char fromMethodView = bb.getChar(); in testCharGet()
333 char fromFilled = bbfilled.getChar(o + i * 2); in testCharPut()
336 char fromMethodView = bb.getChar(o + i * 2); in testCharPut()
341 char fromFilled = bbfilled.getChar(o + i * 2); in testCharPut()
344 char fromMethodView = bb.getChar(); in testCharPut()
354 char fromFilled = bbfilled.getChar(o + i * 2); in testCharPut()
362 char fromFilled = bbfilled.getChar(o + i * 2); in testCharPut()
/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/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/ojluni/annotations/sdk/nullability/java/nio/
DByteBuffer.annotated.java119 public abstract char getChar(); in getChar() method in ByteBuffer
123 public abstract char getChar(int index); in getChar() method in ByteBuffer
/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/annotations/hiddenapi/java/lang/reflect/
DField.java100 public native char getChar(java.lang.Object obj) in getChar() method in Field
/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/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

12