Home
last modified time | relevance | path

Searched refs:src (Results 1 – 25 of 158) sorted by relevance

1234567

/libcore/
Dopenjdk_java_files.bp6 "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 …]
Dnon_openjdk_java_files.bp16 "dalvik/src/main/java/dalvik/annotation/AnnotationDefault.java",
17 "dalvik/src/main/java/dalvik/annotation/EnclosingClass.java",
18 "dalvik/src/main/java/dalvik/annotation/EnclosingMethod.java",
19 "dalvik/src/main/java/dalvik/annotation/InnerClass.java",
20 "dalvik/src/main/java/dalvik/annotation/KnownFailure.java",
21 "dalvik/src/main/java/dalvik/annotation/MemberClasses.java",
22 "dalvik/src/main/java/dalvik/annotation/MethodParameters.java",
23 "dalvik/src/main/java/dalvik/annotation/Signature.java",
24 "dalvik/src/main/java/dalvik/annotation/TestTarget.java",
25 "dalvik/src/main/java/dalvik/annotation/TestTargetClass.java",
[all …]
DPREUPLOAD.cfg3 # * 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/
DNormalizerTest.java80 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/
DByteBufferBenchmark.java85 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 …]
DByteBufferScalarVersusVectorBenchmark.java28 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/
DMemory.java49 byte[] src, int srcOffset, int sizeofElements, boolean swap); in unsafeBulkGet() argument
57 Object src, int srcOffset, int sizeofElements, boolean swap); in unsafeBulkPut() argument
72 public static int peekInt(@NonNull byte[] src, int offset, @NonNull ByteOrder order) { in peekInt() argument
74 return (((src[offset++] & 0xff) << 24) | in peekInt()
75 ((src[offset++] & 0xff) << 16) | in peekInt()
76 ((src[offset++] & 0xff) << 8) | in peekInt()
77 ((src[offset ] & 0xff) << 0)); in peekInt()
79 return (((src[offset++] & 0xff) << 0) | in peekInt()
80 ((src[offset++] & 0xff) << 8) | in peekInt()
81 ((src[offset++] & 0xff) << 16) | in peekInt()
[all …]
/libcore/ojluni/src/main/java/java/lang/
DSystem.java439 public static native void arraycopy(Object src, int srcPos, in arraycopy() argument
458 private static void arraycopy(char[] src, int srcPos, char[] dst, int dstPos, int length) { in arraycopy() argument
459 if (src == null) { in arraycopy()
466 srcPos > src.length - length || dstPos > dst.length - length) { in arraycopy()
468 "src.length=" + src.length + " srcPos=" + srcPos + in arraycopy()
473 if (src == dst && srcPos < dstPos && dstPos < srcPos + length) { in arraycopy()
478 dst[dstPos + i] = src[srcPos + i]; in arraycopy()
483 dst[dstPos + i] = src[srcPos + i]; in arraycopy()
488 arraycopyCharUnchecked(src, srcPos, dst, dstPos, length); in arraycopy()
497 private static native void arraycopyCharUnchecked(char[] src, int srcPos, in arraycopyCharUnchecked() argument
[all …]
/libcore/benchmarks/src/benchmarks/
DSystemArrayCopyBenchmark.java30 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 …]
DArrayCopyBenchmark.java23 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/
DGCMParameterSpec.java83 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/util/
DBase64.java260 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/
DDOMLocatorImpl.java30 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()
DDOMErrorImpl.java36 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()
/libcore/luni/src/test/native/
Dlibcore_io_Memory_test.cpp31 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/luni/src/main/native/
Dlibcore_io_Memory.cpp67 const jint* src = reinterpret_cast<const jint*>(srcShorts); in swapShorts() local
69 jint v = get_unaligned<jint>(src++); in swapShorts()
73 jshort v = get_unaligned<jshort>(reinterpret_cast<const jshort*>(src)); in swapShorts()
87 const jint* src = reinterpret_cast<const jint*>(srcLongs); in swapLongs() local
89 jint v1 = get_unaligned<jint>(src++); in swapLongs()
90 jint v2 = get_unaligned<jint>(src++); in swapLongs()
129 const SWAP_TYPE* src = cast<const SWAP_TYPE*>(srcAddress); \
130 SWAP_FN(reinterpret_cast<SWAP_TYPE*>(elements.get()) + dstOffset, src, count); /*NOLINT*/ \
132 const SCALAR_TYPE* src = cast<const SCALAR_TYPE*>(srcAddress); \
133 env->Set ## JNI_NAME ## ArrayRegion(dst, dstOffset, count, src); \
[all …]
/libcore/ojluni/src/main/native/
DObjectInputStream.c50 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 …]
DObjectOutputStream.c49 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/
DIPAddressUtil.java41 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/ojluni/src/main/java/java/nio/
DByteBuffer.java604 public ByteBuffer put(ByteBuffer src) { in put() argument
605 if (src == this) in put()
609 int n = src.remaining(); in put()
621 if (this.hb != null && src.hb != null) { in put()
623 System.arraycopy(src.hb, src.position() + src.offset, hb, position() + offset, n); in put()
629 final Object srcObject = src.isDirect() ? src : src.hb; in put()
630 int srcOffset = src.position(); in put()
631 if (!src.isDirect()) { in put()
632 srcOffset += src.offset; in put()
643 src.position(src.limit()); in put()
[all …]
DHeapShortBuffer.java150 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 …]
DHeapDoubleBuffer.java150 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 …]
DHeapFloatBuffer.java149 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 …]
DHeapLongBuffer.java151 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 …]
DHeapIntBuffer.java150 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 …]

1234567