/libcore/ |
D | openjdk_java_files.bp | 6 "ojluni/src/main/java/java/awt/font/NumericShaper.java", 7 "ojluni/src/main/java/java/awt/font/TextAttribute.java", 8 "ojluni/src/main/java/java/beans/IndexedPropertyChangeEvent.java", 9 "ojluni/src/main/java/java/beans/PropertyChangeEvent.java", 10 "ojluni/src/main/java/java/beans/PropertyChangeListener.java", 11 "ojluni/src/main/java/java/beans/PropertyChangeListenerProxy.java", 12 "ojluni/src/main/java/java/beans/PropertyChangeSupport.java", 13 "ojluni/src/main/java/java/io/Bits.java", 14 "ojluni/src/main/java/java/io/BufferedInputStream.java", 15 "ojluni/src/main/java/java/io/BufferedOutputStream.java", [all …]
|
D | non_openjdk_java_files.bp | 4 "luni/src/main/java/android/system/ErrnoException.java", 5 "luni/src/main/java/android/system/GaiException.java", 6 "luni/src/main/java/android/system/Int32Ref.java", 7 "luni/src/main/java/android/system/Int64Ref.java", 8 "luni/src/main/java/android/system/NetlinkSocketAddress.java", 9 "luni/src/main/java/android/system/Os.java", 10 "luni/src/main/java/android/system/OsConstants.java", 11 "luni/src/main/java/android/system/PacketSocketAddress.java", 12 "luni/src/main/java/android/system/StructAddrinfo.java", 13 "luni/src/main/java/android/system/StructCapUserData.java", [all …]
|
D | PREUPLOAD.cfg | 3 # * luni/src/main/java 4 # * json/src/main/java 5 # * xml/src/main/java 6 ….jar -c tools/checkstyle/checkstyle-forbid-gpl.xml luni/src/main/java json/src/main/java xml/src/m… 9 # * ojluni/src/main/java 10 …lts/checkstyle/checkstyle.jar -c tools/checkstyle/checkstyle-forbid-apache.xml ojluni/src/main/java
|
/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 | 41 byte[] src, int srcOffset, int sizeofElements, boolean swap); in unsafeBulkGet() argument 48 Object src, int srcOffset, int sizeofElements, boolean swap); in unsafeBulkPut() argument 51 public static int peekInt(byte[] src, int offset, ByteOrder order) { in peekInt() argument 53 return (((src[offset++] & 0xff) << 24) | in peekInt() 54 ((src[offset++] & 0xff) << 16) | in peekInt() 55 ((src[offset++] & 0xff) << 8) | in peekInt() 56 ((src[offset ] & 0xff) << 0)); in peekInt() 58 return (((src[offset++] & 0xff) << 0) | in peekInt() 59 ((src[offset++] & 0xff) << 8) | in peekInt() 60 ((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 | 440 public static native void arraycopy(Object src, int srcPos, in arraycopy() argument 459 private static void arraycopy(char[] src, int srcPos, char[] dst, int dstPos, int length) { in arraycopy() argument 460 if (src == null) { in arraycopy() 467 srcPos > src.length - length || dstPos > dst.length - length) { in arraycopy() 469 "src.length=" + src.length + " srcPos=" + srcPos + in arraycopy() 474 if (src == dst && srcPos < dstPos && dstPos < srcPos + length) { in arraycopy() 479 dst[dstPos + i] = src[srcPos + i]; in arraycopy() 484 dst[dstPos + i] = src[srcPos + i]; in arraycopy() 489 arraycopyCharUnchecked(src, srcPos, dst, dstPos, length); in arraycopy() 498 private static native void arraycopyCharUnchecked(char[] src, int srcPos, in arraycopyCharUnchecked() argument [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | Base64.java | 260 public byte[] encode(byte[] src) { in encode() argument 261 int len = outLength(src.length); // dst array size in encode() 263 int ret = encode0(src, 0, src.length, dst); in encode() 288 public int encode(byte[] src, byte[] dst) { in encode() argument 289 int len = outLength(src.length); // dst array size in encode() 293 return encode0(src, 0, src.length, dst); in encode() 314 public String encodeToString(byte[] src) { in encodeToString() argument 315 byte[] encoded = encode(src); in encodeToString() 344 byte[] src = new byte[buffer.remaining()]; in encode() 345 buffer.get(src); in encode() [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/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/sun/net/util/ |
D | IPAddressUtil.java | 41 public static byte[] textToNumericFormatV4(String src) in textToNumericFormatV4() argument 49 int len = src.length(); in textToNumericFormatV4() 79 char c = src.charAt(i); in textToNumericFormatV4() 131 public static byte[] textToNumericFormatV6(String src) in textToNumericFormatV6() argument 134 if (src.length() < 2) { in textToNumericFormatV6() 142 char[] srcb = src.toCharArray(); in textToNumericFormatV6() 146 int pc = src.indexOf ("%"); in textToNumericFormatV6() 194 String ia4 = src.substring(curtok, srcb_length); in textToNumericFormatV6() 248 public static boolean isIPv4LiteralAddress(String src) { in isIPv4LiteralAddress() argument 249 return textToNumericFormatV4(src) != null; in isIPv4LiteralAddress() [all …]
|
/libcore/luni/src/main/native/ |
D | libcore_io_Memory.cpp | 66 const jint* src = reinterpret_cast<const jint*>(srcShorts); in swapShorts() local 68 jint v = get_unaligned<jint>(src++); in swapShorts() 72 jshort v = get_unaligned<jshort>(reinterpret_cast<const jshort*>(src)); in swapShorts() 86 const jint* src = reinterpret_cast<const jint*>(srcLongs); in swapLongs() local 88 jint v1 = get_unaligned<jint>(src++); in swapLongs() 89 jint v2 = get_unaligned<jint>(src++); in swapLongs() 128 const SWAP_TYPE* src = cast<const SWAP_TYPE*>(srcAddress); \ 129 SWAP_FN(reinterpret_cast<SWAP_TYPE*>(elements.get()) + dstOffset, src, count); /*NOLINT*/ \ 131 const SCALAR_TYPE* src = cast<const SCALAR_TYPE*>(srcAddress); \ 132 env->Set ## JNI_NAME ## ArrayRegion(dst, dstOffset, count, src); \ [all …]
|
/libcore/ojluni/src/main/java/java/nio/ |
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 163 if (src == this) { in put() 169 if (src instanceof HeapIntBuffer) { in put() 170 HeapIntBuffer sb = (HeapIntBuffer) 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 | 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 164 if (src == this) { in put() 170 if (src instanceof HeapLongBuffer) { in put() 171 HeapLongBuffer sb = (HeapLongBuffer) src; in put() 179 } else if (src.isDirect()) { in put() 180 int n = src.remaining(); in put() 183 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 163 if (src == this) { in put() 169 if (src instanceof HeapDoubleBuffer) { in put() 170 HeapDoubleBuffer sb = (HeapDoubleBuffer)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 | 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 162 if (src == this) { in put() 168 if (src instanceof HeapFloatBuffer) { in put() 169 HeapFloatBuffer sb = (HeapFloatBuffer) 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 | 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 163 if (src == this) { in put() 169 if (src instanceof HeapShortBuffer) { in put() 170 HeapShortBuffer sb = (HeapShortBuffer)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 …]
|