Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 25 of 66) sorted by relevance

123

/libcore/luni/src/main/java/libcore/io/
DMemory.java35 public static native void unsafeBulkGet(Object dst, int dstOffset, int byteCount, in unsafeBulkGet() argument
42 public static native void unsafeBulkPut(byte[] dst, int dstOffset, int byteCount, in unsafeBulkPut() argument
91 public static void pokeInt(byte[] dst, int offset, int value, ByteOrder order) { in pokeInt() argument
93 dst[offset++] = (byte) ((value >> 24) & 0xff); in pokeInt()
94 dst[offset++] = (byte) ((value >> 16) & 0xff); in pokeInt()
95 dst[offset++] = (byte) ((value >> 8) & 0xff); in pokeInt()
96 dst[offset ] = (byte) ((value >> 0) & 0xff); in pokeInt()
98 dst[offset++] = (byte) ((value >> 0) & 0xff); in pokeInt()
99 dst[offset++] = (byte) ((value >> 8) & 0xff); in pokeInt()
100 dst[offset++] = (byte) ((value >> 16) & 0xff); in pokeInt()
[all …]
DNioBufferIterator.java48 public void readByteArray(byte[] dst, int dstOffset, int byteCount) { in readByteArray() argument
49 Memory.peekByteArray(address + position, dst, dstOffset, byteCount); in readByteArray()
65 public void readIntArray(int[] dst, int dstOffset, int intCount) { in readIntArray() argument
66 Memory.peekIntArray(address + position, dst, dstOffset, intCount, swap); in readIntArray()
DStreams.java59 public static void readFully(InputStream in, byte[] dst) throws IOException { in readFully() argument
60 readFully(in, dst, 0, dst.length); in readFully()
69 …public static void readFully(InputStream in, byte[] dst, int offset, int byteCount) throws IOExcep… in readFully() argument
76 if (dst == null) { in readFully()
79 Arrays.checkOffsetAndCount(dst.length, offset, byteCount); in readFully()
81 int bytesRead = in.read(dst, offset, byteCount); in readFully()
DHeapBufferIterator.java50 public void readByteArray(byte[] dst, int dstOffset, int byteCount) { in readByteArray() argument
51 System.arraycopy(buffer, offset + position, dst, dstOffset, byteCount); in readByteArray()
67 public void readIntArray(int[] dst, int dstOffset, int intCount) { in readIntArray() argument
69 …Memory.unsafeBulkGet(dst, dstOffset, byteCount, buffer, offset + position, SizeOf.INT, order.needs… in readIntArray()
/libcore/benchmarks/src/benchmarks/
DSystemArrayCopyBenchmark.java32 char[] dst = new char[len]; in timeSystemCharArrayCopy() local
34 System.arraycopy(src, 0, dst, 0, len); in timeSystemCharArrayCopy()
41 byte[] dst = new byte[len]; in timeSystemByteArrayCopy()
43 System.arraycopy(src, 0, dst, 0, len); in timeSystemByteArrayCopy()
50 short[] dst = new short[len]; in timeSystemShortArrayCopy() local
52 System.arraycopy(src, 0, dst, 0, len); in timeSystemShortArrayCopy()
59 int[] dst = new int[len]; in timeSystemIntArrayCopy() local
61 System.arraycopy(src, 0, dst, 0, len); in timeSystemIntArrayCopy()
68 long[] dst = new long[len]; in timeSystemLongArrayCopy() local
70 System.arraycopy(src, 0, dst, 0, len); in timeSystemLongArrayCopy()
[all …]
DArrayCopyBenchmark.java29 char[] dst = new char[8192]; in timeManualArrayCopy() local
31 dst[i] = src[i]; in timeManualArrayCopy()
39 char[] dst = new char[8192]; in time_System_arrayCopy() local
40 System.arraycopy(src, 0, dst, 0, 8192); in time_System_arrayCopy()
47 char[] dst = Arrays.copyOf(src, 8192); in time_Arrays_copyOf() local
54 char[] dst = Arrays.copyOfRange(src, 0, 8192); in time_Arrays_copyOfRange() local
/libcore/luni/src/main/java/java/lang/
DSystem.java176 Object dst, int dstPos, int length); in arraycopy() argument
190 public static void arraycopy(char[] src, int srcPos, char[] dst, int dstPos, int length) { in arraycopy() argument
194 if (dst == null) { in arraycopy()
198 srcPos > src.length - length || dstPos > dst.length - length) { in arraycopy()
201 " dst.length=" + dst.length + " dstPos=" + dstPos + " length=" + length); in arraycopy()
205 if (src == dst && srcPos < dstPos && dstPos < srcPos + length) { in arraycopy()
210 dst[dstPos + i] = src[srcPos + i]; in arraycopy()
215 dst[dstPos + i] = src[srcPos + i]; in arraycopy()
220 arraycopyCharUnchecked(src, srcPos, dst, dstPos, length); in arraycopy()
229 char[] dst, int dstPos, int length); in arraycopyCharUnchecked() argument
[all …]
/libcore/luni/src/main/native/
Dlibcore_icu_NativeIDN.cpp40 UChar dst[256]; in NativeIDN_convertImpl() local
43 ? uidna_IDNToASCII(src.get(), src.size(), &dst[0], sizeof(dst), flags, NULL, &status) in NativeIDN_convertImpl()
44 : uidna_IDNToUnicode(src.get(), src.size(), &dst[0], sizeof(dst), flags, NULL, &status); in NativeIDN_convertImpl()
54 if (isLabelSeparator(dst[i])) { in NativeIDN_convertImpl()
55 dst[i] = '.'; in NativeIDN_convertImpl()
59 return env->NewString(&dst[0], resultLength); in NativeIDN_convertImpl()
Dlibcore_io_Memory.cpp83 jint* dst = reinterpret_cast<jint*>(dstShorts); in swapShorts() local
86 if ((reinterpret_cast<uintptr_t>(dst) & INT_ALIGNMENT_MASK) == 0 && in swapShorts()
90 *dst++ = bswap_2x16(v); in swapShorts()
95 *reinterpret_cast<jshort*>(dst) = bswap_16(v); in swapShorts()
100 put_unaligned<jint>(dst++, bswap_2x16(v)); in swapShorts()
104 put_unaligned<jshort>(reinterpret_cast<jshort*>(dst), bswap_16(v)); in swapShorts()
125 jint* dst = reinterpret_cast<jint*>(dstLongs); in swapLongs() local
132 *dst++ = bswap_32(v2); in swapLongs()
133 *dst++ = bswap_32(v1); in swapLongs()
139 put_unaligned<jint>(dst++, bswap_32(v2)); in swapLongs()
[all …]
Dlibcore_icu_NativeNormalizer.cpp33 UnicodeString dst; in NativeNormalizer_normalizeImpl() local
34 Normalizer::normalize(src.unicodeString(), mode, 0, dst, status); in NativeNormalizer_normalizeImpl()
36 return dst.isBogus() ? NULL : env->NewString(dst.getBuffer(), dst.length()); in NativeNormalizer_normalizeImpl()
DNetworkUtilities.cpp147 jbyte* dst = reinterpret_cast<jbyte*>(&sun.sun_path); in inetAddressToSockaddr() local
148 memset(dst, 0, sizeof(sun.sun_path)); in inetAddressToSockaddr()
149 env->GetByteArrayRegion(addressBytes.get(), 0, path_length, dst); in inetAddressToSockaddr()
165 jbyte* dst = reinterpret_cast<jbyte*>(&sin6.sin6_addr.s6_addr); in inetAddressToSockaddr() local
166 env->GetByteArrayRegion(addressBytes.get(), 0, 16, dst); in inetAddressToSockaddr()
180 jbyte* dst = reinterpret_cast<jbyte*>(&sin6.sin6_addr.s6_addr[12]); in inetAddressToSockaddr() local
181 env->GetByteArrayRegion(addressBytes.get(), 0, 4, dst); in inetAddressToSockaddr()
192 jbyte* dst = reinterpret_cast<jbyte*>(&sin.sin_addr.s_addr); in inetAddressToSockaddr() local
193 env->GetByteArrayRegion(addressBytes.get(), 0, 4, dst); in inetAddressToSockaddr()
/libcore/benchmarks/src/benchmarks/regression/
DByteBufferScalarVersusVectorBenchmark.java36 ByteBuffer dst = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); in timeManualByteBufferCopy() local
39 dst.position(0); in timeManualByteBufferCopy()
41 dst.put(src.get()); in timeManualByteBufferCopy()
48 byte[] dst = new byte[8192]; in timeByteBufferBulkGet()
51 src.get(dst, 0, dst.length); in timeByteBufferBulkGet()
57 byte[] dst = new byte[8192]; in timeDirectByteBufferBulkGet()
60 src.get(dst, 0, dst.length); in timeDirectByteBufferBulkGet()
DByteBufferBenchmark.java92 byte[] dst = new byte[1024]; in timeByteBuffer_getByteArray()
96 src.get(dst); in timeByteBuffer_getByteArray()
123 char[] dst = new char[1024]; in timeCharBuffer_getCharArray() local
127 src.get(dst); in timeCharBuffer_getCharArray()
154 double[] dst = new double[1024]; in timeDoubleBuffer_getDoubleArray() local
158 src.get(dst); in timeDoubleBuffer_getDoubleArray()
175 float[] dst = new float[1024]; in timeFloatBuffer_getFloatArray() local
179 src.get(dst); in timeFloatBuffer_getFloatArray()
196 int[] dst = new int[1024]; in timeIntBuffer_getIntArray() local
200 src.get(dst); in timeIntBuffer_getIntArray()
[all …]
/libcore/dom/src/test/java/org/w3c/domts/
DUserDataNotification.java26 private final Node dst; field in UserDataNotification
36 Node dst) { in UserDataNotification() argument
41 this.dst = dst; in UserDataNotification()
86 return dst; in getDst()
/libcore/dex/src/main/java/com/android/dex/
DMutf8.java89 public static void encode(byte[] dst, int offset, String s) { in encode() argument
94 dst[offset++] = (byte) ch; in encode()
96 dst[offset++] = (byte) (0xc0 | (0x1f & (ch >> 6))); in encode()
97 dst[offset++] = (byte) (0x80 | (0x3f & ch)); in encode()
99 dst[offset++] = (byte) (0xe0 | (0x0f & (ch >> 12))); in encode()
100 dst[offset++] = (byte) (0x80 | (0x3f & (ch >> 6))); in encode()
101 dst[offset++] = (byte) (0x80 | (0x3f & ch)); in encode()
/libcore/luni/src/main/java/java/nio/
DByteBuffer.java375 public ByteBuffer get(byte[] dst) { in get() argument
376 return get(dst, 0, dst.length); in get()
396 public ByteBuffer get(byte[] dst, int dstOffset, int byteCount) { in get() argument
397 Arrays.checkOffsetAndCount(dst.length, dstOffset, byteCount); in get()
402 dst[i] = get(); in get()
796 ByteBuffer dst = this; in put() local
797 Object dstObject = dst.isDirect() ? dst : NioUtils.unsafeArray(dst); in put()
798 int dstOffset = dst.position(); in put()
799 if (!dst.isDirect()) { in put()
800 dstOffset += NioUtils.unsafeArrayOffset(dst); in put()
[all …]
DMemoryBlock.java205 public final void peekByteArray(int offset, byte[] dst, int dstOffset, int byteCount) { in peekByteArray() argument
206 Memory.peekByteArray(address + offset, dst, dstOffset, byteCount); in peekByteArray()
209 …public final void peekCharArray(int offset, char[] dst, int dstOffset, int charCount, boolean swap… in peekCharArray() argument
210 Memory.peekCharArray(address + offset, dst, dstOffset, charCount, swap); in peekCharArray()
213 …public final void peekDoubleArray(int offset, double[] dst, int dstOffset, int doubleCount, boolea… in peekDoubleArray() argument
214 Memory.peekDoubleArray(address + offset, dst, dstOffset, doubleCount, swap); in peekDoubleArray()
217 …public final void peekFloatArray(int offset, float[] dst, int dstOffset, int floatCount, boolean s… in peekFloatArray() argument
218 Memory.peekFloatArray(address + offset, dst, dstOffset, floatCount, swap); in peekFloatArray()
221 … public final void peekIntArray(int offset, int[] dst, int dstOffset, int intCount, boolean swap) { in peekIntArray() argument
222 Memory.peekIntArray(address + offset, dst, dstOffset, intCount, swap); in peekIntArray()
[all …]
DByteArrayBuffer.java107 @Override public final ByteBuffer get(byte[] dst, int dstOffset, int byteCount) { in get() argument
108 checkGetBounds(1, dst.length, dstOffset, byteCount); in get()
109 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, byteCount); in get()
114 final void get(char[] dst, int dstOffset, int charCount) { in get() argument
115 int byteCount = checkGetBounds(SizeOf.CHAR, dst.length, dstOffset, charCount); in get()
116 …Memory.unsafeBulkGet(dst, dstOffset, byteCount, backingArray, arrayOffset + position, SizeOf.CHAR,… in get()
120 final void get(double[] dst, int dstOffset, int doubleCount) { in get() argument
121 int byteCount = checkGetBounds(SizeOf.DOUBLE, dst.length, dstOffset, doubleCount); in get()
122 …Memory.unsafeBulkGet(dst, dstOffset, byteCount, backingArray, arrayOffset + position, SizeOf.DOUBL… in get()
126 final void get(float[] dst, int dstOffset, int floatCount) { in get() argument
[all …]
DDirectByteBuffer.java111 @Override public final ByteBuffer get(byte[] dst, int dstOffset, int byteCount) { in get() argument
113 checkGetBounds(1, dst.length, dstOffset, byteCount); in get()
114 this.block.peekByteArray(offset + position, dst, dstOffset, byteCount); in get()
119 final void get(char[] dst, int dstOffset, int charCount) { in get() argument
121 int byteCount = checkGetBounds(SizeOf.CHAR, dst.length, dstOffset, charCount); in get()
122 this.block.peekCharArray(offset + position, dst, dstOffset, charCount, order.needsSwap); in get()
126 final void get(double[] dst, int dstOffset, int doubleCount) { in get() argument
128 int byteCount = checkGetBounds(SizeOf.DOUBLE, dst.length, dstOffset, doubleCount); in get()
129 this.block.peekDoubleArray(offset + position, dst, dstOffset, doubleCount, order.needsSwap); in get()
133 final void get(float[] dst, int dstOffset, int floatCount) { in get() argument
[all …]
DLongBuffer.java233 public LongBuffer get(long[] dst) { in get() argument
234 return get(dst, 0, dst.length); in get()
256 public LongBuffer get(long[] dst, int dstOffset, int longCount) { in get() argument
257 Arrays.checkOffsetAndCount(dst.length, dstOffset, longCount); in get()
262 dst[i] = get(); in get()
DShortBuffer.java234 public ShortBuffer get(short[] dst) { in get() argument
235 return get(dst, 0, dst.length); in get()
257 public ShortBuffer get(short[] dst, int dstOffset, int shortCount) { in get() argument
258 Arrays.checkOffsetAndCount(dst.length, dstOffset, shortCount); in get()
263 dst[i] = get(); in get()
DIntBuffer.java231 public IntBuffer get(int[] dst) { in get() argument
232 return get(dst, 0, dst.length); in get()
254 public IntBuffer get(int[] dst, int dstOffset, int intCount) { in get() argument
255 Arrays.checkOffsetAndCount(dst.length, dstOffset, intCount); in get()
260 dst[i] = get(); in get()
DDoubleBuffer.java244 public DoubleBuffer get(double[] dst) { in get() argument
245 return get(dst, 0, dst.length); in get()
267 public DoubleBuffer get(double[] dst, int dstOffset, int doubleCount) { in get() argument
268 Arrays.checkOffsetAndCount(dst.length, dstOffset, doubleCount); in get()
273 dst[i] = get(); in get()
/libcore/luni/src/main/java/java/nio/charset/
DModifiedUtf8.java96 public static void encode(byte[] dst, int offset, String s) { in encode() argument
101 dst[offset++] = (byte) ch; in encode()
103 dst[offset++] = (byte) (0xc0 | (0x1f & (ch >> 6))); in encode()
104 dst[offset++] = (byte) (0x80 | (0x3f & ch)); in encode()
106 dst[offset++] = (byte) (0xe0 | (0x0f & (ch >> 12))); in encode()
107 dst[offset++] = (byte) (0x80 | (0x3f & (ch >> 6))); in encode()
108 dst[offset++] = (byte) (0x80 | (0x3f & ch)); in encode()
/libcore/luni/src/main/java/javax/net/ssl/
DSSLEngine.java982 public abstract SSLEngineResult wrap(ByteBuffer[] srcs, int offset, int length, ByteBuffer dst) in wrap() argument
1005 public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer dst) throws SSLException { in unwrap() argument
1006 return unwrap(src, new ByteBuffer[] { dst }, 0, 1); in unwrap()
1057 public SSLEngineResult wrap(ByteBuffer[] srcs, ByteBuffer dst) throws SSLException { in wrap() argument
1061 return wrap(srcs, 0, srcs.length, dst); in wrap()
1084 public SSLEngineResult wrap(ByteBuffer src, ByteBuffer dst) throws SSLException { in wrap() argument
1085 return wrap(new ByteBuffer[] { src }, 0, 1, dst); in wrap()

123