/libcore/ |
D | openjdk_java_files.mk | 2 ojluni/src/main/java/java/awt/font/NumericShaper.java \ 3 ojluni/src/main/java/java/awt/font/TextAttribute.java \ 4 ojluni/src/main/java/java/beans/IndexedPropertyChangeEvent.java \ 5 ojluni/src/main/java/java/beans/PropertyChangeEvent.java \ 6 ojluni/src/main/java/java/beans/PropertyChangeListener.java \ 7 ojluni/src/main/java/java/beans/PropertyChangeListenerProxy.java \ 8 ojluni/src/main/java/java/beans/PropertyChangeSupport.java \ 9 ojluni/src/main/java/java/io/Bits.java \ 10 ojluni/src/main/java/java/io/BufferedInputStream.java \ 11 ojluni/src/main/java/java/io/BufferedOutputStream.java \ [all …]
|
D | non_openjdk_java_files.mk | 2 luni/src/main/java/android/system/ErrnoException.java \ 3 luni/src/main/java/android/system/GaiException.java \ 4 luni/src/main/java/android/system/NetlinkSocketAddress.java \ 5 luni/src/main/java/android/system/Os.java \ 6 luni/src/main/java/android/system/OsConstants.java \ 7 luni/src/main/java/android/system/PacketSocketAddress.java \ 8 luni/src/main/java/android/system/StructAddrinfo.java \ 9 luni/src/main/java/android/system/StructFlock.java \ 10 luni/src/main/java/android/system/StructGroupReq.java \ 11 luni/src/main/java/android/system/StructGroupSourceReq.java \ [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | NormalizerTest.java | 80 String src = "\u00c1"; in test_isNormalized() local 81 assertTrue(Normalizer.isNormalized(src, Form.NFC)); in test_isNormalized() 82 assertFalse(Normalizer.isNormalized(src, Form.NFD)); in test_isNormalized() 83 assertTrue(Normalizer.isNormalized(src, Form.NFKC)); in test_isNormalized() 84 assertFalse(Normalizer.isNormalized(src, Form.NFKD)); in test_isNormalized() 86 src = "\u0041\u0301"; in test_isNormalized() 87 assertFalse(Normalizer.isNormalized(src, Form.NFC)); in test_isNormalized() 88 assertTrue(Normalizer.isNormalized(src, Form.NFD)); in test_isNormalized() 89 assertFalse(Normalizer.isNormalized(src, Form.NFKC)); in test_isNormalized() 90 assertTrue(Normalizer.isNormalized(src, Form.NFKD)); in test_isNormalized() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | ByteBufferBenchmark.java | 85 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); in timeByteBuffer_getByte() local 87 src.position(aligned ? 0 : 1); in timeByteBuffer_getByte() 89 src.get(); in timeByteBuffer_getByte() 95 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); in timeByteBuffer_getByteArray() local 99 src.position(aligned ? 0 : 1); in timeByteBuffer_getByteArray() 100 src.get(dst); in timeByteBuffer_getByteArray() 106 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); in timeByteBuffer_getByte_indexed() local 108 src.position(aligned ? 0 : 1); in timeByteBuffer_getByte_indexed() 110 src.get(i); in timeByteBuffer_getByte_indexed() 116 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); in timeByteBuffer_getChar() local [all …]
|
D | ByteBufferScalarVersusVectorBenchmark.java | 28 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); in timeManualByteBufferCopy() local 31 src.position(0); in timeManualByteBufferCopy() 34 dst.put(src.get()); in timeManualByteBufferCopy() 40 ByteBuffer src = ByteBuffer.allocate(aligned ? 8192 : 8192 + 1); in timeByteBufferBulkGet() local 43 src.position(aligned ? 0 : 1); in timeByteBufferBulkGet() 44 src.get(dst, 0, dst.length); in timeByteBufferBulkGet() 49 ByteBuffer src = ByteBuffer.allocateDirect(aligned ? 8192 : 8192 + 1); in timeDirectByteBufferBulkGet() local 52 src.position(aligned ? 0 : 1); in timeDirectByteBufferBulkGet() 53 src.get(dst, 0, dst.length); in timeDirectByteBufferBulkGet()
|
/libcore/luni/src/main/java/libcore/io/ |
D | Memory.java | 36 byte[] src, int srcOffset, int sizeofElements, boolean swap); in unsafeBulkGet() argument 43 Object src, int srcOffset, int sizeofElements, boolean swap); in unsafeBulkPut() argument 45 public static int peekInt(byte[] src, int offset, ByteOrder order) { in peekInt() argument 47 return (((src[offset++] & 0xff) << 24) | in peekInt() 48 ((src[offset++] & 0xff) << 16) | in peekInt() 49 ((src[offset++] & 0xff) << 8) | in peekInt() 50 ((src[offset ] & 0xff) << 0)); in peekInt() 52 return (((src[offset++] & 0xff) << 0) | in peekInt() 53 ((src[offset++] & 0xff) << 8) | in peekInt() 54 ((src[offset++] & 0xff) << 16) | in peekInt() [all …]
|
/libcore/benchmarks/src/benchmarks/ |
D | SystemArrayCopyBenchmark.java | 30 char[] src = new char[len]; in timeSystemCharArrayCopy() local 33 System.arraycopy(src, 0, dst, 0, len); in timeSystemCharArrayCopy() 39 byte[] src = new byte[len]; in timeSystemByteArrayCopy() 42 System.arraycopy(src, 0, dst, 0, len); in timeSystemByteArrayCopy() 48 short[] src = new short[len]; in timeSystemShortArrayCopy() local 51 System.arraycopy(src, 0, dst, 0, len); in timeSystemShortArrayCopy() 57 int[] src = new int[len]; in timeSystemIntArrayCopy() local 60 System.arraycopy(src, 0, dst, 0, len); in timeSystemIntArrayCopy() 66 long[] src = new long[len]; in timeSystemLongArrayCopy() local 69 System.arraycopy(src, 0, dst, 0, len); in timeSystemLongArrayCopy() [all …]
|
D | ArrayCopyBenchmark.java | 23 char[] src = new char[8192]; in timeManualArrayCopy() local 27 dst[i] = src[i]; in timeManualArrayCopy() 33 char[] src = new char[8192]; in time_System_arrayCopy() local 36 System.arraycopy(src, 0, dst, 0, 8192); in time_System_arrayCopy() 41 char[] src = new char[8192]; in time_Arrays_copyOf() local 43 char[] dst = Arrays.copyOf(src, 8192); in time_Arrays_copyOf() 48 char[] src = new char[8192]; in time_Arrays_copyOfRange() local 50 char[] dst = Arrays.copyOfRange(src, 0, 8192); in time_Arrays_copyOfRange()
|
/libcore/ojluni/src/main/java/javax/crypto/spec/ |
D | GCMParameterSpec.java | 83 public GCMParameterSpec(int tLen, byte[] src) { in GCMParameterSpec() argument 84 if (src == null) { in GCMParameterSpec() 88 init(tLen, src, 0, src.length); in GCMParameterSpec() 107 public GCMParameterSpec(int tLen, byte[] src, int offset, int len) { in GCMParameterSpec() argument 108 init(tLen, src, offset, len); in GCMParameterSpec() 114 private void init(int tLen, byte[] src, int offset, int len) { in init() argument 122 if ((src == null) ||(len < 0) || (offset < 0) in init() 123 || ((len + offset) > src.length)) { in init() 128 System.arraycopy(src, offset, iv, 0, len); in init()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | System.java | 431 public static native void arraycopy(Object src, int srcPos, in arraycopy() argument 449 public static void arraycopy(char[] src, int srcPos, char[] dst, int dstPos, int length) { in arraycopy() argument 450 if (src == null) { in arraycopy() 457 srcPos > src.length - length || dstPos > dst.length - length) { in arraycopy() 459 "src.length=" + src.length + " srcPos=" + srcPos + in arraycopy() 464 if (src == dst && srcPos < dstPos && dstPos < srcPos + length) { in arraycopy() 469 dst[dstPos + i] = src[srcPos + i]; in arraycopy() 474 dst[dstPos + i] = src[srcPos + i]; in arraycopy() 479 arraycopyCharUnchecked(src, srcPos, dst, dstPos, length); in arraycopy() 487 private static native void arraycopyCharUnchecked(char[] src, int srcPos, in arraycopyCharUnchecked() argument [all …]
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | DOMLocatorImpl.java | 30 public DOMLocatorImpl(DOMLocator src) { in DOMLocatorImpl() argument 31 this.lineNumber = src.getLineNumber(); in DOMLocatorImpl() 32 this.columnNumber = src.getColumnNumber(); in DOMLocatorImpl() 33 this.byteOffset = src.getByteOffset(); in DOMLocatorImpl() 34 this.utf16Offset = src.getUtf16Offset(); in DOMLocatorImpl() 35 this.relatedNode = src.getRelatedNode(); in DOMLocatorImpl() 36 this.uri = src.getUri(); in DOMLocatorImpl()
|
D | DOMErrorImpl.java | 36 public DOMErrorImpl(DOMError src) { in DOMErrorImpl() argument 37 this.severity = src.getSeverity(); in DOMErrorImpl() 38 this.message = src.getMessage(); in DOMErrorImpl() 39 this.type = src.getType(); in DOMErrorImpl() 40 this.relatedException = src.getRelatedException(); in DOMErrorImpl() 41 this.relatedData = src.getRelatedData(); in DOMErrorImpl() 42 this.location = new DOMLocatorImpl(src.getLocation()); in DOMErrorImpl()
|
D | UserDataNotification.java | 25 private final Node src; field in UserDataNotification 35 Node src, in UserDataNotification() argument 40 this.src = src; in UserDataNotification() 77 return src; in getSrc()
|
/libcore/luni/src/test/native/ |
D | libcore_io_Memory_test.cpp | 31 uint8_t* src = nullptr; in swap_align_test() local 34 ASSERT_EQ(0, posix_memalign(reinterpret_cast<void**>(&src), ALIGNMENT, in swap_align_test() 47 T* src_aligned = reinterpret_cast<T*>(&src[src_align]); in swap_align_test() 56 free(src); in swap_align_test() 62 swap_align_test<jshort, 9> (swapShorts, [] (jshort* src, jshort* dst, uint64_t i) { in TEST() argument 63 *src = ((2*i) << 8) | (2*(i+1)); in TEST() 69 swap_align_test<jint, 10> (swapInts, [] (jint* src, jint* dst, uint64_t i) { in TEST() argument 70 *src = ((4*i) << 24) | ((4*(i+1)) << 16) | ((4*(i+2)) << 8) | (4*(i+3)); in TEST() 76 swap_align_test<jlong, 10> (swapLongs, [] (jlong* src, jlong* dst, uint64_t i) { in TEST() argument 77 *src = ((8*i) << 56) | ((8*(i+1)) << 48) | ((8*(i+2)) << 40) | ((8*(i+3)) << 32) | in TEST() [all …]
|
/libcore/ojluni/src/main/java/sun/net/util/ |
D | IPAddressUtil.java | 40 public static byte[] textToNumericFormatV4(String src) in textToNumericFormatV4() argument 42 if (src.length() == 0) { in textToNumericFormatV4() 47 String[] s = src.split("\\.", -1); in textToNumericFormatV4() 133 public static byte[] textToNumericFormatV6(String src) in textToNumericFormatV6() argument 136 if (src.length() < 2) { in textToNumericFormatV6() 144 char[] srcb = src.toCharArray(); in textToNumericFormatV6() 148 int pc = src.indexOf ("%"); in textToNumericFormatV6() 196 String ia4 = src.substring(curtok, srcb_length); in textToNumericFormatV6() 250 public static boolean isIPv4LiteralAddress(String src) { in isIPv4LiteralAddress() argument 251 return textToNumericFormatV4(src) != null; in isIPv4LiteralAddress() [all …]
|
/libcore/ojluni/src/main/native/ |
D | ObjectInputStream.c | 50 jbyteArray src, in Java_java_io_ObjectInputStream_bytesToFloats() argument 69 if (src == NULL) { in Java_java_io_ObjectInputStream_bytesToFloats() 73 bytes = (*env)->GetPrimitiveArrayCritical(env, src, NULL); in Java_java_io_ObjectInputStream_bytesToFloats() 79 (*env)->ReleasePrimitiveArrayCritical(env, src, bytes, JNI_ABORT); in Java_java_io_ObjectInputStream_bytesToFloats() 85 (*env)->ReleasePrimitiveArrayCritical(env, src, bytes, JNI_ABORT); in Java_java_io_ObjectInputStream_bytesToFloats() 101 (*env)->ReleasePrimitiveArrayCritical(env, src, bytes, JNI_ABORT); in Java_java_io_ObjectInputStream_bytesToFloats() 117 jbyteArray src, in Java_java_io_ObjectInputStream_bytesToDoubles() argument 137 if (src == NULL) { in Java_java_io_ObjectInputStream_bytesToDoubles() 141 bytes = (*env)->GetPrimitiveArrayCritical(env, src, NULL); in Java_java_io_ObjectInputStream_bytesToDoubles() 147 (*env)->ReleasePrimitiveArrayCritical(env, src, bytes, JNI_ABORT); in Java_java_io_ObjectInputStream_bytesToDoubles() [all …]
|
D | ObjectOutputStream.c | 49 jfloatArray src, in Java_java_io_ObjectOutputStream_floatsToBytes() argument 69 if (src == NULL) { in Java_java_io_ObjectOutputStream_floatsToBytes() 73 floats = (*env)->GetPrimitiveArrayCritical(env, src, NULL); in Java_java_io_ObjectOutputStream_floatsToBytes() 79 (*env)->ReleasePrimitiveArrayCritical(env, src, floats, JNI_ABORT); in Java_java_io_ObjectOutputStream_floatsToBytes() 85 (*env)->ReleasePrimitiveArrayCritical(env, src, floats, JNI_ABORT); in Java_java_io_ObjectOutputStream_floatsToBytes() 105 (*env)->ReleasePrimitiveArrayCritical(env, src, floats, JNI_ABORT); in Java_java_io_ObjectOutputStream_floatsToBytes() 121 jdoubleArray src, in Java_java_io_ObjectOutputStream_doublesToBytes() argument 141 if (src == NULL) { in Java_java_io_ObjectOutputStream_doublesToBytes() 145 doubles = (*env)->GetPrimitiveArrayCritical(env, src, NULL); in Java_java_io_ObjectOutputStream_doublesToBytes() 151 (*env)->ReleasePrimitiveArrayCritical(env, src, doubles, JNI_ABORT); in Java_java_io_ObjectOutputStream_doublesToBytes() [all …]
|
/libcore/ojluni/src/main/java/java/nio/ |
D | ByteBuffer.java | 532 public ByteBuffer put(ByteBuffer src) { in put() argument 539 if (src == this) { in put() 542 int n = src.remaining(); in put() 550 if (this.hb != null && src.hb != null) { in put() 552 System.arraycopy(src.hb, src.position() + src.offset, hb, position() + offset, n); in put() 558 final Object srcObject = src.isDirect() ? src : src.array(); in put() 559 int srcOffset = src.position(); in put() 560 if (!src.isDirect()) { in put() 561 srcOffset += src.offset; in put() 572 src.position(src.limit()); in put() [all …]
|
D | CharBuffer.java | 515 public CharBuffer put(CharBuffer src) { in put() argument 516 if (src == this) in put() 518 int n = src.remaining(); in put() 522 put(src.get()); in put() 565 public CharBuffer put(char[] src, int offset, int length) { in put() argument 566 checkBounds(offset, length, src.length); in put() 571 this.put(src[i]); in put() 590 public final CharBuffer put(char[] src) { in put() argument 591 return put(src, 0, src.length); in put() 636 public CharBuffer put(String src, int start, int end) { in put() argument [all …]
|
D | HeapLongBuffer.java | 151 public LongBuffer put(long[] src, int offset, int length) { in put() argument 155 checkBounds(offset, length, src.length); in put() 158 System.arraycopy(src, offset, hb, ix(position()), length); in put() 163 public LongBuffer put(LongBuffer src) { in put() argument 167 if (src instanceof HeapLongBuffer) { in put() 168 if (src == this) in put() 170 HeapLongBuffer sb = (HeapLongBuffer) src; in put() 178 } else if (src.isDirect()) { in put() 179 int n = src.remaining(); in put() 182 src.get(hb, ix(position()), n); in put() [all …]
|
D | HeapShortBuffer.java | 150 public ShortBuffer put(short[] src, int offset, int length) { in put() argument 154 checkBounds(offset, length, src.length); in put() 157 System.arraycopy(src, offset, hb, ix(position()), length); in put() 162 public ShortBuffer put(ShortBuffer src) { in put() argument 166 if (src instanceof HeapShortBuffer) { in put() 167 if (src == this) in put() 169 HeapShortBuffer sb = (HeapShortBuffer)src; in put() 177 } else if (src.isDirect()) { in put() 178 int n = src.remaining(); in put() 181 src.get(hb, ix(position()), n); in put() [all …]
|
D | HeapDoubleBuffer.java | 150 public DoubleBuffer put(double[] src, int offset, int length) { in put() argument 154 checkBounds(offset, length, src.length); in put() 157 System.arraycopy(src, offset, hb, ix(position()), length); in put() 162 public DoubleBuffer put(DoubleBuffer src) { in put() argument 166 if (src instanceof HeapDoubleBuffer) { in put() 167 if (src == this) in put() 169 HeapDoubleBuffer sb = (HeapDoubleBuffer)src; in put() 177 } else if (src.isDirect()) { in put() 178 int n = src.remaining(); in put() 181 src.get(hb, ix(position()), n); in put() [all …]
|
D | HeapFloatBuffer.java | 149 public FloatBuffer put(float[] src, int offset, int length) { in put() argument 153 checkBounds(offset, length, src.length); in put() 156 System.arraycopy(src, offset, hb, ix(position()), length); in put() 161 public FloatBuffer put(FloatBuffer src) { in put() argument 165 if (src instanceof HeapFloatBuffer) { in put() 166 if (src == this) in put() 168 HeapFloatBuffer sb = (HeapFloatBuffer) src; in put() 176 } else if (src.isDirect()) { in put() 177 int n = src.remaining(); in put() 180 src.get(hb, ix(position()), n); in put() [all …]
|
D | HeapIntBuffer.java | 150 public IntBuffer put(int[] src, int offset, int length) { in put() argument 154 checkBounds(offset, length, src.length); in put() 157 System.arraycopy(src, offset, hb, ix(position()), length); in put() 162 public IntBuffer put(IntBuffer src) { in put() argument 166 if (src instanceof HeapIntBuffer) { in put() 167 if (src == this) in put() 169 HeapIntBuffer sb = (HeapIntBuffer) src; in put() 177 } else if (src.isDirect()) { in put() 178 int n = src.remaining(); in put() 181 src.get(hb, ix(position()), n); in put() [all …]
|
/libcore/luni/src/main/native/ |
D | libcore_io_Memory.cpp | 64 const jint* src = reinterpret_cast<const jint*>(srcShorts); in swapShorts() local 66 jint v = get_unaligned<jint>(src++); in swapShorts() 70 jshort v = get_unaligned<jshort>(reinterpret_cast<const jshort*>(src)); in swapShorts() 84 const jint* src = reinterpret_cast<const jint*>(srcLongs); in swapLongs() local 86 jint v1 = get_unaligned<jint>(src++); in swapLongs() 87 jint v2 = get_unaligned<jint>(src++); in swapLongs() 126 const SWAP_TYPE* src = cast<const SWAP_TYPE*>(srcAddress); \ 127 SWAP_FN(reinterpret_cast<SWAP_TYPE*>(elements.get()) + dstOffset, src, count); \ 129 const SCALAR_TYPE* src = cast<const SCALAR_TYPE*>(srcAddress); \ 130 env->Set ## JNI_NAME ## ArrayRegion(dst, dstOffset, count, src); \ [all …]
|