Home
last modified time | relevance | path

Searched refs:dest (Results 1 – 16 of 16) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
DComparableTimSort.java653 int dest = base1; // Indexes int a
657 a[dest++] = a[cursor2++];
659 System.arraycopy(tmp, cursor1, a, dest, len1);
663 System.arraycopy(a, cursor2, a, dest, len2);
664 a[dest + len2] = tmp[cursor1]; // Last elt of run 1 to end of merge
681 a[dest++] = a[cursor2++];
687 a[dest++] = tmp[cursor1++];
704 System.arraycopy(tmp, cursor1, a, dest, count1);
705 dest += count1;
711 a[dest++] = a[cursor2++];
[all …]
DTimSort.java685 int dest = base1; // Indexes int a
689 a[dest++] = a[cursor2++];
691 System.arraycopy(tmp, cursor1, a, dest, len1);
695 System.arraycopy(a, cursor2, a, dest, len2);
696 a[dest + len2] = tmp[cursor1]; // Last elt of run 1 to end of merge
714 a[dest++] = a[cursor2++];
720 a[dest++] = tmp[cursor1++];
737 System.arraycopy(tmp, cursor1, a, dest, count1);
738 dest += count1;
744 a[dest++] = a[cursor2++];
[all …]
DArrays.java1352 Object[] dest, in mergeSort() argument
1362 ((Comparable) dest[j-1]).compareTo(dest[j])>0; j--) in mergeSort()
1363 swap(dest, j, j-1); in mergeSort()
1373 mergeSort(dest, src, low, mid, -off); in mergeSort()
1374 mergeSort(dest, src, mid, high, -off); in mergeSort()
1379 System.arraycopy(src, low, dest, destLow, length); in mergeSort()
1386 dest[i] = src[p++]; in mergeSort()
1388 dest[i] = src[q++]; in mergeSort()
1547 Object[] dest, in mergeSort() argument
1555 for (int j=i; j>low && c.compare(dest[j-1], dest[j])>0; j--) in mergeSort()
[all …]
DWeakHashMap.java493 private void transfer(Entry<K,V>[] src, Entry<K,V>[] dest) { in transfer() argument
505 int i = indexFor(e.hash, dest.length); in transfer()
506 e.next = dest[i]; in transfer()
507 dest[i] = e; in transfer()
DCollections.java626 public static <T> void copy(List<? super T> dest, List<? extends T> src) { in copy() argument
628 if (srcSize > dest.size()) in copy()
632 (src instanceof RandomAccess && dest instanceof RandomAccess)) { in copy()
634 dest.set(i, src.get(i)); in copy()
636 ListIterator<? super T> di=dest.listIterator(); in copy()
3223 Object[] dest = (CheckedEntry.class.isInstance(
3228 dest[i] = checkedEntry((Map.Entry<K,V>)source[i],
3230 return dest;
/libcore/support/src/test/java/tests/support/resource/
DSupport_Resources.java109 File dest = new File(f.toString() + "/" + file); in copyFile() local
114 copyLocalFileto(dest, in); in copyFile()
117 "Unable to copy file from resource " + resourceName + " to file " + dest, e); in copyFile()
120 return dest; in copyFile()
127 public static void copyLocalFileto(File dest, InputStream in) throws IOException { in copyLocalFileto() argument
128 if (!dest.exists()) { in copyLocalFileto()
129 FileOutputStream out = new FileOutputStream(dest); in copyLocalFileto()
132 dest.deleteOnExit(); in copyLocalFileto()
196 public static void copyLocalFileTo(File dest, InputStream in) throws IOException { in copyLocalFileTo() argument
197 if (!dest.exists()) { in copyLocalFileTo()
[all …]
/libcore/ojluni/src/main/java/sun/net/ftp/
DFtpClient.java121 … public static FtpClient create(InetSocketAddress dest) throws FtpProtocolException, IOException { in create() argument
123 if (dest != null) { in create()
124 client.connect(dest); in create()
139 public static FtpClient create(String dest) throws FtpProtocolException, IOException { in create() argument
140 return create(new InetSocketAddress(dest, FTP_PORT)); in create()
241 public abstract FtpClient connect(SocketAddress dest) throws FtpProtocolException, IOException; in connect() argument
254 …public abstract FtpClient connect(SocketAddress dest, int timeout) throws FtpProtocolException, IO… in connect() argument
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DSpliteratorTestHelper.java267 ArrayList<T> dest = new ArrayList<>(); in testMixedTryAdvanceForEach() local
269 Consumer<T> addToDest = boxingAdapter.apply(dest::add); in testMixedTryAdvanceForEach()
281 assertEquals(sizeIfKnown, dest.size()); in testMixedTryAdvanceForEach()
283 assertEquals(dest.size(), exp.size()); in testMixedTryAdvanceForEach()
285 asserter.assertContents(dest, exp, isOrdered); in testMixedTryAdvanceForEach()
298 ArrayList<T> dest = new ArrayList<>(); in testMixedTraverseAndSplit() local
300 Consumer<T> b = boxingAdapter.apply(dest::add); in testMixedTraverseAndSplit()
325 assertEquals(sizeIfKnown, dest.size()); in testMixedTraverseAndSplit()
327 assertEquals(dest.size(), exp.size()); in testMixedTraverseAndSplit()
329 asserter.assertContents(dest, exp, isOrdered); in testMixedTraverseAndSplit()
[all …]
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DSpliteratorTestHelper.java267 ArrayList<T> dest = new ArrayList<>(); in testMixedTryAdvanceForEach() local
269 Consumer<T> addToDest = boxingAdapter.apply(dest::add); in testMixedTryAdvanceForEach()
281 assertEquals(sizeIfKnown, dest.size()); in testMixedTryAdvanceForEach()
283 assertEquals(dest.size(), exp.size()); in testMixedTryAdvanceForEach()
285 asserter.assertContents(dest, exp, isOrdered); in testMixedTryAdvanceForEach()
298 ArrayList<T> dest = new ArrayList<>(); in testMixedTraverseAndSplit() local
300 Consumer<T> b = boxingAdapter.apply(dest::add); in testMixedTraverseAndSplit()
325 assertEquals(sizeIfKnown, dest.size()); in testMixedTraverseAndSplit()
327 assertEquals(dest.size(), exp.size()); in testMixedTraverseAndSplit()
329 asserter.assertContents(dest, exp, isOrdered); in testMixedTraverseAndSplit()
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_ASimpleReader.java56 public int read(char[] dest, int offset, int count) throws IOException { in read() argument
63 System.arraycopy(buf, pos, dest, offset, readable); in read()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DSystemTest.java93 char[][] dest = new char[2][]; in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII() local
94 System.arraycopy(source, 0, dest, 0, dest.length); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
95 assertTrue("Invalid copy 2", dest[0] == source[0] in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
96 && dest[1] == source[1]); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
DFtpClient.java561 InetSocketAddress dest = null; in openPassiveDataConnection() local
597 dest = new InetSocketAddress(add, port); in openPassiveDataConnection()
603 dest = InetSocketAddress.createUnresolved(serverAddr.getHostName(), port); in openPassiveDataConnection()
633 dest = new InetSocketAddress(s, port); in openPassiveDataConnection()
666 s.connect(dest, connectTimeout); in openPassiveDataConnection()
669 s.connect(dest, defaultConnectTimeout); in openPassiveDataConnection()
671 s.connect(dest); in openPassiveDataConnection()
681 s = sslFact.createSocket(s, dest.getHostName(), dest.getPort(), true); in openPassiveDataConnection()
914 private void tryConnect(InetSocketAddress dest, int timeout) throws IOException { in tryConnect() argument
918 server = doConnect(dest, timeout); in tryConnect()
[all …]
/libcore/ojluni/src/main/java/java/io/
DFile.java1314 public boolean renameTo(File dest) { in renameTo() argument
1318 security.checkWrite(dest.path); in renameTo()
1320 if (dest == null) { in renameTo()
1323 if (this.isInvalid() || dest.isInvalid()) { in renameTo()
1326 return fs.rename(this, dest); in renameTo()
/libcore/ojluni/src/main/java/java/util/stream/
DNodes.java663 public void copyInto(T[] dest, int destOffset) { in copyInto() argument
664 System.arraycopy(array, 0, dest, destOffset, curSize); in copyInto()
1345 public void copyInto(int[] dest, int destOffset) {
1346 System.arraycopy(array, 0, dest, destOffset, curSize);
1399 public void copyInto(long[] dest, int destOffset) {
1400 System.arraycopy(array, 0, dest, destOffset, curSize);
1453 public void copyInto(double[] dest, int destOffset) {
1454 System.arraycopy(array, 0, dest, destOffset, curSize);
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLEngineTest.java284 SSLEngine dest, boolean needsRecordSplit) throws SSLException { in assertSendsCorrectly() argument
296 SSLSession destSession = dest.getSession(); in assertSendsCorrectly()
301 SSLEngineResult destRes = dest.unwrap(sourceToDest, destIn); in assertSendsCorrectly()
/libcore/ojluni/src/main/java/java/lang/
DSystem.java432 Object dest, int destPos, in arraycopy() argument