Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/java/util/
DComparableTimSort.java661 int dest = base1; // Indexes int a
665 a[dest++] = a[cursor2++];
667 System.arraycopy(tmp, cursor1, a, dest, len1);
671 System.arraycopy(a, cursor2, a, dest, len2);
672 a[dest + len2] = tmp[cursor1]; // Last elt of run 1 to end of merge
689 a[dest++] = a[cursor2++];
695 a[dest++] = tmp[cursor1++];
712 System.arraycopy(tmp, cursor1, a, dest, count1);
713 dest += count1;
719 a[dest++] = a[cursor2++];
[all …]
DTimSort.java693 int dest = base1; // Indexes int a
697 a[dest++] = a[cursor2++];
699 System.arraycopy(tmp, cursor1, a, dest, len1);
703 System.arraycopy(a, cursor2, a, dest, len2);
704 a[dest + len2] = tmp[cursor1]; // Last elt of run 1 to end of merge
722 a[dest++] = a[cursor2++];
728 a[dest++] = tmp[cursor1++];
745 System.arraycopy(tmp, cursor1, a, dest, count1);
746 dest += count1;
752 a[dest++] = a[cursor2++];
[all …]
DImmutableCollections.java1035 int dest = 0;
1038 array[dest++] = o;
1198 int dest = -(idx + 1);
1199 table[dest] = k;
1200 table[dest+1] = v;
1359 int dest = 0;
1362 array[dest++] = table[i];
1363 array[dest++] = table[i+1];
DWeakHashMap.java517 private void transfer(Entry<K,V>[] src, Entry<K,V>[] dest) { in transfer() argument
528 int i = indexFor(e.hash, dest.length); in transfer()
529 e.next = dest[i]; in transfer()
530 dest[i] = e; in transfer()
/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/net/Socks/
DSocksServer.java70 private Socket dest; field in SocksServer.ClientHandler
214 dest = new Socket(addr, port); in getRequestV4()
236 InputStream in2 = new BufferedInputStream(dest.getInputStream()); in getRequestV4()
237 OutputStream out2 = new BufferedOutputStream(dest.getOutputStream()); in getRequestV4()
298 dest = new Socket(); in doConnect()
300 dest.connect(addr, 10000); in doConnect()
330 InputStream in2 = new BufferedInputStream(dest.getInputStream()); in doConnect()
331 OutputStream out2 = new BufferedOutputStream(dest.getOutputStream()); in doConnect()
365 dest = svr.accept(); in doBind()
366 bad = (InetSocketAddress) dest.getRemoteSocketAddress(); in doBind()
[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/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/
DSpliteratorTestHelper.java318 ArrayList<T> dest = new ArrayList<>(); in testMixedTryAdvanceForEach() local
320 Consumer<T> addToDest = boxingAdapter.apply(dest::add); in testMixedTryAdvanceForEach()
332 assertEquals(sizeIfKnown, dest.size()); in testMixedTryAdvanceForEach()
334 assertEquals(dest.size(), exp.size()); in testMixedTryAdvanceForEach()
336 asserter.assertContents(dest, exp, isOrdered); in testMixedTryAdvanceForEach()
349 ArrayList<T> dest = new ArrayList<>(); in testMixedTraverseAndSplit() local
351 Consumer<T> b = boxingAdapter.apply(dest::add); in testMixedTraverseAndSplit()
376 assertEquals(sizeIfKnown, dest.size()); in testMixedTraverseAndSplit()
378 assertEquals(dest.size(), exp.size()); in testMixedTraverseAndSplit()
380 asserter.assertContents(dest, exp, isOrdered); in testMixedTraverseAndSplit()
[all …]
/libcore/ojluni/src/test/java/util/EnumSet/
DInsertWrongType.java108 EnumSet dest = EnumSet.noneOf(destClass); in addAllEmptyMistypedEnumSet() local
110 dest.addAll(src); in addAllEmptyMistypedEnumSet()
167 EnumMap dest = new EnumMap(enumClass); in putAllIllTypedKey() local
171 dest.putAll(src); in putAllIllTypedKey()
177 EnumMap dest = new EnumMap(enumClass); in putAllIllTypedKeyEnumMap() local
181 dest.putAll(src); in putAllIllTypedKeyEnumMap()
187 EnumMap dest = new EnumMap(destClass); in putAllEmptyMistypedEnumMap() local
189 dest.putAll(src); in putAllEmptyMistypedEnumMap()
/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/ojluni/src/main/java/sun/net/ftp/impl/
DFtpClient.java573 InetSocketAddress dest = null; in openPassiveDataConnection() local
609 dest = new InetSocketAddress(add, port); in openPassiveDataConnection()
615 dest = InetSocketAddress.createUnresolved(serverAddr.getHostName(), port); in openPassiveDataConnection()
645 dest = new InetSocketAddress(s, port); in openPassiveDataConnection()
677 s.connect(dest, connectTimeout); in openPassiveDataConnection()
680 s.connect(dest, defaultConnectTimeout); in openPassiveDataConnection()
682 s.connect(dest); in openPassiveDataConnection()
692 s = sslFact.createSocket(s, dest.getHostName(), dest.getPort(), true); in openPassiveDataConnection()
926 private void tryConnect(InetSocketAddress dest, int timeout) throws IOException { in tryConnect() argument
930 server = doConnect(dest, timeout); in tryConnect()
[all …]
/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/tools/upstream/
Dmerge-from-upstream374 dest='base',
379 dest='target',
386 dest='resolve_dir',
389 parser.add_argument('--continue', action='store_true', dest='proceed',
/libcore/ojluni/annotations/hiddenapi/sun/net/ftp/
DFtpClient.java47 public static sun.net.ftp.FtpClient create(java.net.InetSocketAddress dest) in create() argument
52 public static sun.net.ftp.FtpClient create(java.lang.String dest) in create() argument
75 public abstract sun.net.ftp.FtpClient connect(java.net.SocketAddress dest) in connect() argument
78 public abstract sun.net.ftp.FtpClient connect(java.net.SocketAddress dest, int timeout) in connect() argument
/libcore/ojluni/src/main/java/java/io/
DFile.java1414 public boolean renameTo(File dest) { in renameTo() argument
1418 security.checkWrite(dest.path); in renameTo()
1420 if (dest == null) { in renameTo()
1423 if (this.isInvalid() || dest.isInvalid()) { in renameTo()
1426 return fs.rename(this, dest); in renameTo()
/libcore/ojluni/annotations/mmodule/java/lang/
DSystem.annotated.java59 public static native void arraycopy(java.lang.Object src, int srcPos, java.lang.Object dest, int de… in arraycopy() argument
/libcore/ojluni/src/main/java/java/util/stream/
DNodes.java671 public void copyInto(T[] dest, int destOffset) { in copyInto() argument
672 System.arraycopy(array, 0, dest, destOffset, curSize); in copyInto()
1353 public void copyInto(int[] dest, int destOffset) {
1354 System.arraycopy(array, 0, dest, destOffset, curSize);
1407 public void copyInto(long[] dest, int destOffset) {
1408 System.arraycopy(array, 0, dest, destOffset, curSize);
1461 public void copyInto(double[] dest, int destOffset) {
1462 System.arraycopy(array, 0, dest, destOffset, curSize);
/libcore/ojluni/src/main/native/
Dnet_util.c131 int getInet6Address_ipaddress(JNIEnv *env, jobject iaObj, char *dest) { in getInet6Address_ipaddress() argument
140 (*env)->GetByteArrayRegion(env, addr, 0, 16, (jbyte *)dest); in getInet6Address_ipaddress()
Dnet_util.h69 extern int getInet6Address_ipaddress(JNIEnv *env, jobject ia6Obj, char *dest);
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DSystem.annotated.java59 … java.lang.Object src, int srcPos, @libcore.util.NonNull java.lang.Object dest, int destPos, int l… in arraycopy() argument
/libcore/ojluni/annotations/hiddenapi/java/io/
DFile.java187 public boolean renameTo(java.io.File dest) { in renameTo() argument
/libcore/tools/expected_upstream/
Dojluni_modify_expectation.py105 dest='command', help='sub-command help')
/libcore/ojluni/annotations/sdk/nullability/java/io/
DFile.annotated.java106 public boolean renameTo(@libcore.util.NonNull java.io.File dest) { throw new RuntimeException("Stub… in renameTo() argument

12