Searched refs:from (Results 1 - 25 of 35) sorted by relevance

12

/libcore/luni/src/main/java/java/util/concurrent/
H A DCopyOnWriteArrayList.java133 static boolean containsAll(Collection<?> collection, Object[] snapshot, int from, int to) { argument
135 if (indexOf(o, snapshot, from, to) == -1) {
144 * occurrence that is at or after {@code from}.
148 public int indexOf(E object, int from) { argument
150 return indexOf(object, snapshot, from, snapshot.length);
218 public List<E> subList(int from, int to) { argument
220 if (from < 0 || from > to || to > snapshot.length) {
221 throw new IndexOutOfBoundsException("from=" + from
375 replaceInRange(int from, int to, UnaryOperator<E> operator) argument
391 sortInRange(int from, int to, Comparator<? super E> c) argument
404 forInRange(int from, int to, Consumer<? super E> action) argument
417 removeOrRetain(Collection<?> collection, boolean retain, int from, int to) argument
464 removeRange(int from, int to) argument
471 lastIndexOf(Object o, Object[] data, int from, int to) argument
488 indexOf(Object o, Object[] data, int from, int to) argument
531 CowSubList(Object[] expectedElements, int from, int to) argument
599 subList(int from, int to) argument
724 private final int from; field in class:CopyOnWriteArrayList.Slice
727 Slice(Object[] expectedElements, int from, int to) argument
764 private final int from; field in class:CopyOnWriteArrayList.CowIterator
768 CowIterator(Object[] snapshot, int from, int to) argument
[all...]
/libcore/ojluni/src/main/java/java/util/stream/
H A DNode.java113 * @param from The (inclusive) starting offset of elements to include, must
121 default Node<T> truncate(long from, long to, IntFunction<T[]> generator) { argument
122 if (from == 0 && to == count())
125 long size = to - from;
128 for (int i = 0; i < from && spliterator.tryAdvance(e -> { }); i++) { }
253 T_NODE truncate(long from, long to, IntFunction<T[]> generator); argument
340 * obtain an int[] array then and copies the elements from that int[]
356 default Node.OfInt truncate(long from, long to, IntFunction<Integer[]> generator) { argument
357 if (from == 0 && to == count())
359 long size = to - from;
429 truncate(long from, long to, IntFunction<Long[]> generator) argument
504 truncate(long from, long to, IntFunction<Double[]> generator) argument
[all...]
H A DStreams.java64 // All elements are traversed if from == upTo & last == 0
65 private int from; field in class:Streams.RangeIntSpliterator
72 RangeIntSpliterator(int from, int upTo, boolean closed) { argument
73 this(from, upTo, closed ? 1 : 0);
76 private RangeIntSpliterator(int from, int upTo, int last) { argument
77 this.from = from;
86 final int i = from;
88 from++;
104 int i = from;
189 private long from; field in class:Streams.RangeLongSpliterator
196 RangeLongSpliterator(long from, long upTo, boolean closed) argument
200 RangeLongSpliterator(long from, long upTo, int last) argument
[all...]
H A DSpinedBuffer.java166 // the prior element count from the current spine
482 protected abstract void arrayForEach(T_ARR array, int from, int to, argument
763 int from, int to,
765 for (int i = from; i < to; i++)
777 // the prior element count from the current spine
877 int from, int to,
879 for (int i = from; i < to; i++)
891 // the prior element count from the current spine
993 int from, int to,
995 for (int i = from;
762 arrayForEach(int[] array, int from, int to, IntConsumer consumer) argument
876 arrayForEach(long[] array, int from, int to, LongConsumer consumer) argument
992 arrayForEach(double[] array, int from, int to, DoubleConsumer consumer) argument
[all...]
H A DNodes.java47 * for collecting output from a {@link PipelineHelper} to a {@link Node} and
98 * spliterator obtained from the concatenated node preserves the encounter
296 * Collect, in parallel, elements output from a pipeline and describe those
300 * If the exact size of the output from the pipeline is known and the source
334 * Collect, in parallel, elements output from an int-valued pipeline and
338 * If the exact size of the output from the pipeline is known and the source
348 * @param <P_IN> the type of elements from the source Spliterator
372 * Collect, in parallel, elements output from a long-valued pipeline and
376 * If the exact size of the output from the pipeline is known and the source
386 * @param <P_IN> the type of elements from th
817 truncate(long from, long to, IntFunction<T[]> generator) argument
[all...]
/libcore/ojluni/src/main/java/sun/reflect/misc/
H A DReflectUtil.java121 * access from a class loader 'from' to classes or members in
123 * if 'from' is not the same as or an ancestor of 'to'. All code
125 * method returns false if 'from' class loader is a class loader
130 public static boolean needsPackageAccessCheck(ClassLoader from, ClassLoader to) { argument
131 if (from == null || from == to)
137 return !isAncestor(from, to);
160 * {@code SecurityException} if it accesses a restricted package from
/libcore/ojluni/src/main/java/java/util/
H A DEnumSet.java31 * the elements in an enum set must come from a single enum type that is
132 * Adds all of the elements from the appropriate enum type to this enum
141 * @param s the enum set from which to initialize this enum set
149 * Creates an enum set initialized from the specified collection. If
155 * @param c the collection from which to initialize this enum set
180 * @param s the enum set from whose complement to initialize this enum set
334 * @param from the first element in the range
336 * @throws NullPointerException if {@code from} or {@code to} are null
337 * @throws IllegalArgumentException if {@code from.compareTo(to) > 0}
341 public static <E extends Enum<E>> EnumSet<E> range(E from, argument
353 addRange(E from, E to) argument
[all...]
H A DJumboEnumSet.java54 void addRange(E from, E to) { argument
55 int fromIndex = from.ordinal() >>> 6;
59 elements[fromIndex] = (-1L >>> (from.ordinal() - to.ordinal() - 1))
60 << from.ordinal();
62 elements[fromIndex] = (-1L << from.ordinal());
67 size = to.ordinal() - from.ordinal() + 1;
212 * Removes the specified element from this set if it is present.
214 * @param e element to be removed from this set, if present
286 * Removes from this set all of its elements that are contained in
289 * @param c elements to be removed from thi
[all...]
H A DRegularEnumSet.java48 void addRange(E from, E to) { argument
49 elements = (-1L >>> (from.ordinal() - to.ordinal() - 1)) << from.ordinal();
168 * Removes the specified element from this set if it is present.
170 * @param e element to be removed from this set, if present
234 * Removes from this set all of its elements that are contained in
237 * @param c elements to be removed from this set
279 * Removes all of the elements from this set.
H A DArrays.java131 * to be sorted extends from the index {@code fromIndex}, inclusive, to
171 * to be sorted extends from the index {@code fromIndex}, inclusive, to
211 * to be sorted extends from the index {@code fromIndex}, inclusive, to
251 * to be sorted extends from the index {@code fromIndex}, inclusive, to
291 * to be sorted extends from the index {@code fromIndex}, inclusive, to
339 * to be sorted extends from the index {@code fromIndex}, inclusive, to
395 * to be sorted extends from the index {@code fromIndex}, inclusive, to
458 * The range to be sorted extends from the index {@code fromIndex},
528 * The range to be sorted extends from the index {@code fromIndex},
598 * The range to be sorted extends from th
3458 copyOfRange(T[] original, int from, int to) argument
3493 copyOfRange(U[] original, int from, int to, Class<? extends T[]> newType) argument
3531 copyOfRange(byte[] original, int from, int to) argument
3567 copyOfRange(short[] original, int from, int to) argument
3603 copyOfRange(int[] original, int from, int to) argument
3639 copyOfRange(long[] original, int from, int to) argument
3675 copyOfRange(char[] original, int from, int to) argument
3711 copyOfRange(float[] original, int from, int to) argument
3747 copyOfRange(double[] original, int from, int to) argument
3783 copyOfRange(boolean[] original, int from, int to) argument
[all...]
/libcore/tzdata/update/src/main/libcore/tzdata/update/
H A DFileUtils.java39 * Creates a new {@link java.io.File} from the {@code parentDir} and {@code name}, but only if
106 * Calculates the checksum from the contents of a file.
121 public static void rename(File from, File to) throws IOException { argument
123 if (!from.renameTo(to)) {
124 throw new IOException("Unable to rename " + from + " to " + to);
182 * Read all lines from a UTF-8 encoded file, returning them as a list of strings.
/libcore/luni/src/main/java/java/math/
H A DNativeBN.java30 public static native void BN_copy(long to, long from); argument
31 // BIGNUM *BN_copy(BIGNUM *to, const BIGNUM *from);
H A DBigInt.java63 void putCopy(BigInt from) { argument
65 NativeBN.BN_copy(this.bignum, from.bignum);
/libcore/ojluni/src/main/native/
H A Dlinux_close.cpp133 struct sockaddr *from, int *fromlen) {
135 BLOCKING_IO_RETURN_INT( s, recvfrom(s, buf, len, flags, from, &socklen) );
191 * called from PlainSocketImpl_socketAccept with fd == -1.
132 NET_RecvFrom(int s, void *buf, int len, unsigned int flags, struct sockaddr *from, int *fromlen) argument
H A Dnet_util_md.h44 struct sockaddr *from, int *fromlen);
87 /* needed from libsocket on Solaris 8 */
H A DUNIXProcess_md.c527 * this was imported accidentally from execvp().
574 * specified via the 3rd argument instead of being inherited from environ.
651 * Reads nbyte bytes from file descriptor fd into buf,
698 copyPipe(int from[2], int to[2]) argument
700 to[0] = from[0];
701 to[1] = from[1];
780 return 0; /* Suppress warning "no return value from function" */
811 * very sure to keep stack of child from corrupting stack of parent,
H A DUnixFileSystem_md.c377 jobject from, jobject to)
381 WITH_FIELD_PLATFORM_STRING(env, from, ids.path, fromPath) {
376 Java_java_io_UnixFileSystem_rename0(JNIEnv *env, jobject this, jobject from, jobject to) argument
/libcore/ojluni/src/main/java/sun/net/www/protocol/mailto/
H A DMailToURLConnection.java62 * Get the user's full email address - stolen from
100 client.from(getFromAddress());
/libcore/ojluni/src/main/java/java/util/regex/
H A DMatcher.java35 * <p> A matcher is created from a pattern by invoking the pattern's {@link
66 * new strings whose contents can, if desired, be computed from the match
258 * <p> <a href="Pattern.html#cg">Capturing groups</a> are indexed from left
315 * <p> <a href="Pattern.html#cg">Capturing groups</a> are indexed from left
343 int from = matchOffsets[group * 2];
345 if (from == -1 || to == -1) {
348 return input.substring(from, to);
528 * <li><p> It reads characters from the input sequence, starting at the
644 * <p> This method reads characters from the input sequence, starting at
1044 * from variou
[all...]
/libcore/ojluni/src/main/java/java/lang/
H A DProcessBuilder.java44 * #start()} method can be invoked repeatedly from the same instance
60 * <li>an <i>environment</i>, which is a system-dependent mapping from
381 * <li>a redirection to read from a file, created by an invocation of
382 * {@link Redirect#from Redirect.from(File)}
412 * The type of redirects returned from
413 * {@link Redirect#from Redirect.from(File)}.
418 * The type of redirects returned from
424 * The type of redirects returned from
496 public static Redirect from(final File file) { method in class:ProcessBuilder.Redirect
[all...]
/libcore/ojluni/src/main/java/java/nio/charset/
H A DCharsetDecoder.java71 * bytes as possible from the input buffer, writing the resulting characters
77 * attempt to recover from a decoding error, as appropriate, and try again.
454 * Decodes as many bytes as possible from the given input buffer,
457 * <p> The buffers are read from, and written to, starting at their current
464 * <p> In addition to reading bytes from the input buffer and writing
480 * typically done by draining any decoded characters from the output
716 * <p> The buffers are read from, and written to, starting at their current
970 private void throwIllegalStateException(int from, int to) { argument
971 throw new IllegalStateException("Current state = " + stateNames[from]
H A DCharsetEncoder.java71 * characters as possible from the input buffer, writing the resulting bytes
77 * attempt to recover from an encoding error, as appropriate, and try again.
469 * Encodes as many characters as possible from the given input buffer,
472 * <p> The buffers are read from, and written to, starting at their current
479 * <p> In addition to reading characters from the input buffer and writing
495 * typically done by draining any encoded bytes from the output
731 * <p> The buffers are read from, and written to, starting at their current
993 private void throwIllegalStateException(int from, int to) { argument
994 throw new IllegalStateException("Current state = " + stateNames[from]
/libcore/tzdata/update_test_app/src/libcore/tzdata/update_test_app/installupdatetestapp/
H A DMainActivity.java161 private static void copyFile(File from, File to) throws IOException { argument
165 FileInputStream in = new FileInputStream(from);
/libcore/ojluni/src/main/java/sun/net/smtp/
H A DSmtpClient.java36 * the "to" method to add destinations, calling "from" to name the
118 public void from(String s) throws IOException { method in class:SmtpClient
120 issueCommand("mail from: " + s + "\r\n", 250);
122 issueCommand("mail from: <" + s + ">\r\n", 250);
/libcore/ojluni/src/main/java/sun/net/ftp/
H A DFtpClient.java63 * should be restarted from scratch. These errors are reported by throwing an
71 * client able to be manipulated from multiple threads.
189 * Sets the timeout value to use when reading from the server,
338 * transfer and has the effect of resuming a file transfer from the
350 * Retrieves a file from the ftp server and writes its content to the specified
353 * sent before the {@code RETR} in order to restart the tranfer from the specified
361 * retreive from the server.
371 * Retrieves a file from the ftp server, using the {@code RETR} command, and
372 * returns the InputStream from the established data connection.
374 * is done reading from th
517 rename(String from, String to) argument
[all...]

Completed in 1007 milliseconds

12