Searched refs:to (Results 1 - 25 of 46) sorted by relevance

12

/libcore/luni/src/main/java/java/util/concurrent/
H A DCopyOnWriteArrayList.java10 * Unless required by applicable law or agreed to in writing, software
49 * copy of the list's contents. It is always safe to iterate this list, but
69 * writes to this field must be atomic; it is an error to modify the
70 * contents of an array after it has been assigned to this field.
77 * Maintainers should be careful to read this field only once in
78 * non-blocking read methods. Write methods must be synchronized to avoid
133 static boolean containsAll(Collection<?> collection, Object[] snapshot, int from, int to) { argument
135 if (indexOf(o, snapshot, from, to) == -1) {
160 * occurrence that is before {@code to}
164 lastIndexOf(E object, int to) argument
218 subList(int from, int to) argument
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
725 private final int to; field in class:CopyOnWriteArrayList.Slice
727 Slice(Object[] expectedElements, int from, int to) argument
765 private final int to; 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.java8 * particular file as subject to the "Classpath" exception as provided
18 * 2 along with this work; if not, write to the Free Software Foundation,
49 * mediates access to one or more existing (effectively immutable) data
52 * corresponds to the computation tree that produced the elements that are
54 * framework is largely to avoid copying data unnecessarily during parallel
77 * @param consumer a {@code Consumer} that is to be invoked with each
99 * @param i the index to the child node
102 * than or equal to the number of child nodes
113 * @param from The (inclusive) starting offset of elements to include, must
115 * @param to Th
121 truncate(long from, long to, IntFunction<T[]> generator) argument
253 truncate(long from, long to, IntFunction<T[]> generator) argument
356 truncate(long from, long to, IntFunction<Integer[]> generator) argument
429 truncate(long from, long to, IntFunction<Long[]> generator) argument
504 truncate(long from, long to, IntFunction<Double[]> generator) argument
[all...]
/libcore/
H A DAndroid.mk10 # Unless required by applicable law or agreed to in writing, software
26 # Include the definitions to build the Java code.
32 # Include the definitions to build the native code.
H A DDocs.mk2 # List of libcore directories to include in documentation.
4 # Exports: libcore_to_document as a list of .java files relative to libcore/.
29 # returned that are relative to the build root / $(TOPDIR) and not libcore.
H A DNativeCode.mk10 # Unless required by applicable law or agreed to in writing, software
24 # These two definitions are used to help sanity check what's put in
31 # free to append to LOCAL_SRC_FILES, LOCAL_C_INCLUDES,
35 # $(1): directory containing the makefile to include
58 # we aren't quite defining a new rule yet, to make sure that the
H A DJavaLibrary.mk10 # Unless required by applicable law or agreed to in writing, software
115 # Definitions to make the core library.
137 # A library that exists to satisfy javac when
253 LOCAL_SRC_FILES := $(filter-out %/DeserializeMethodTest.java %/SerializedLambdaTest.java ojluni/src/test/java/util/stream/boot%,$(ojtest_src_files)) # Do not include anything from the boot* directories. Those directories need a custom bootclasspath to run.
311 # Definitions to make the core library.
326 # A library that exists to satisfy javac when
413 # The libcore_to_document paths are relative to $(TOPDIR). We are in libcore so we must prepend
414 # ../ to make LOCAL_SRC_FILES relative to $(LOCAL_PATH).
/libcore/ojluni/src/main/java/sun/net/www/protocol/mailto/
H A DMailToURLConnection.java8 * particular file as subject to the "Classpath" exception as provided
18 * 2 along with this work; if not, write to the Free Software Foundation,
40 * call <code>getOutputStream</code>, write the message to the output
99 String to = ParseUtil.decode(url.getPath());
101 client.to(to);
/libcore/ojluni/src/main/java/sun/reflect/misc/
H A DReflectUtil.java9 * particular file as subject to the "Classpath" exception as provided
19 * 2 along with this work; if not, write to the Free Software Foundation,
77 * available and the caller attempts to load a class on behalf
121 * access from a class loader 'from' to classes or members in
122 * a class defined by class loader 'to'. This method returns true
123 * if 'from' is not the same as or an ancestor of 'to'. All code
127 * attempts to access system domain classes, it requires package
130 public static boolean needsPackageAccessCheck(ClassLoader from, ClassLoader to) { argument
131 if (from == null || from == to)
134 if (to
[all...]
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DServerSocketAdaptor.java8 * particular file as subject to the "Classpath" exception as provided
18 * 2 along with this work; if not, write to the Free Software Foundation,
36 // java.net.ServerSocket so as to simplify tracking future changes to that
116 long to = timeout;
121 int ns = sel.select(to);
126 to -= System.currentTimeMillis() - st;
127 if (to <= 0)
H A DSocketAdaptor.java9 * particular file as subject to the "Classpath" exception as provided
19 * 2 along with this work; if not, write to the Free Software Foundation,
43 // The only aspects of java.net.Socket-hood that we don't attempt to emulate
45 // attempt to support) and the sending of urgent data. Otherwise an adapted
46 // socket should look enough like a real java.net.Socket to fool most of the
47 // developers most of the time, right down to the exception message strings.
50 // java.net.Socket so as to simplify tracking future changes to that class.
80 // Override this method just to protect against changes in the superclass
118 long to
[all...]
H A DDatagramSocketAdaptor.java8 * particular file as subject to the "Classpath" exception as provided
18 * 2 along with this work; if not, write to the Free Software Foundation,
37 // java.net.DatagramSocket so as to simplify tracking future changes to that
54 // passing a dummy DatagramSocketImpl object to aovid any native
190 long to = timeout;
195 int ns = sel.select(to);
201 to -= System.currentTimeMillis() - st;
202 if (to <= 0)
380 * A dummy implementation of DatagramSocketImpl that can be passed to th
[all...]
/libcore/tzdata/update/src/main/libcore/tzdata/update/
H A DFileUtils.java10 * Unless required by applicable law or agreed to in writing, software
78 throw new IOException("Unable to create directory: " + dir);
95 throw new IOException("Unable to make " + directory + " world-executable");
101 throw new IOException("Unable to make " + file + " world-readable");
121 public static void rename(File from, File to) throws IOException { argument
122 ensureFileDoesNotExist(to);
123 if (!from.renameTo(to)) {
124 throw new IOException("Unable to rename " + from + " to " + to);
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DEnumSet.java9 * particular file as subject to the "Classpath" exception as provided
19 * 2 along with this work; if not, write to the Free Software Foundation,
35 * class should be good enough to allow its use as a high-quality, typesafe
36 * alternative to traditional <tt>int</tt>-based "bit flags." Even bulk
44 * and it may or may not show the effects of any modifications to the set that
47 * <p>Null elements are not permitted. Attempts to insert a null element
48 * will throw {@link NullPointerException}. Attempts to test for the
49 * presence of a null element or to remove one will, however, function
58 * method. This is best done at creation time, to prevent accidental
66 * They are likely (though not guaranteed) to b
341 range(E from, E to) argument
353 addRange(E from, E to) argument
[all...]
H A DJumboEnumSet.java8 * particular file as subject to the "Classpath" exception as provided
18 * 2 along with this work; if not, write to the Free Software Foundation,
54 void addRange(E from, E to) { argument
56 int toIndex = to.ordinal() >>> 6;
59 elements[fromIndex] = (-1L >>> (from.ordinal() - to.ordinal() - 1))
65 elements[toIndex] = -1L >>> (63 - to.ordinal());
67 size = to.ordinal() - from.ordinal() + 1;
105 * The index corresponding to unseen in the elements array.
116 * The index corresponding to lastReturned in the elements array.
173 * @param e element to b
[all...]
H A DRegularEnumSet.java8 * particular file as subject to the "Classpath" exception as provided
18 * 2 along with this work; if not, write to the Free Software Foundation,
48 void addRange(E from, E to) { argument
49 elements = (-1L >>> (from.ordinal() - to.ordinal() - 1)) << from.ordinal();
136 * @param e element to be checked for containment in this collection
152 * Adds the specified element to this set if it is not already present.
154 * @param e element to be added to this set
170 * @param e element to be removed from this set, if present
191 * @param c collection to b
[all...]
H A DArrays.java9 * particular file as subject to the "Classpath" exception as provided
19 * 2 along with this work; if not, write to the Free Software Foundation,
50 * that allows arrays to be viewed as lists.
58 * <i>specification</i>. Implementors should feel free to substitute other
59 * algorithms, so long as the specification itself is adhered to. (For
60 * example, the algorithm used by {@code sort(Object[])} does not have to be
61 * a MergeSort, but it does have to be <i>stable</i>.)
120 * quicksorts to degrade to quadratic performance, and is typically
123 * @param a the array to b
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/ojluni/src/main/java/sun/net/smtp/
H A DSmtpClient.java8 * particular file as subject to the "Classpath" exception as provided
18 * 2 along with this work; if not, write to the Free Software Foundation,
36 * the "to" method to add destinations, calling "from" to name the
37 * sender, calling startMessage to return a stream to which you write
50 * issue the QUIT command to the SMTP server and close the connection.
71 issueCommand("rcpt to: " + s + "\r\n", 250);
73 issueCommand("rcpt to
76 public void to(String s) throws IOException { method in class:SmtpClient
182 SmtpClient(int to) argument
[all...]
/libcore/ojluni/
H A DAndroid.mk10 # Unless required by applicable law or agreed to in writing, software
/libcore/luni/src/main/java/java/math/
H A DNativeBN.java10 * Unless required by applicable law or agreed to in writing, software
30 public static native void BN_copy(long to, long from); argument
31 // BIGNUM *BN_copy(BIGNUM *to, const BIGNUM *from);
63 // int BN_bn2bin(const BIGNUM *a, unsigned char *to);
/libcore/ojluni/src/main/java/sun/net/www/http/
H A DHttpClient.java8 * particular file as subject to the "Classpath" exception as provided
18 * 2 along with this work; if not, write to the Free Software Foundation,
97 // retryPostProp is true by default so as to preserve behavior
107 * through a Netscape proxy to a server that sent me a keep-alive
109 * after 5 sec. So we have to hard code our effective timeout to
114 /** whether the response is to be cached */
167 * to true if the system property http.keepAlive isn't set.
200 protected HttpClient(URL url, Proxy p, int to) throws IOException { argument
208 setConnectTimeout(to);
242 HttpClient(URL url, String proxyHost, int proxyPort, boolean proxyDisabled, int to) argument
263 New(URL url, Proxy p, int to, boolean useCache, HttpURLConnection httpuc) argument
323 New(URL url, Proxy p, int to, HttpURLConnection httpuc) argument
336 New(URL url, String proxyHost, int proxyPort, boolean useCache, int to, HttpURLConnection httpuc) argument
[all...]
/libcore/benchmarks/
H A DAndroid.mk10 # Unless required by applicable law or agreed to in writing, software
/libcore/ojluni/src/main/native/
H A Dlinux_close.cpp8 * particular file as subject to the "Classpath" exception as provided
18 * 2 along with this work; if not, write to the Free Software Foundation,
46 * Signal to unblock thread
103 * Macro to perform a blocking IO operation. Restarts
148 flags, const struct sockaddr *to, int tolen) {
149 BLOCKING_IO_RETURN_INT( s, sendto(s, msg, len, flags, to, tolen) );
179 * If s < 0, exits early rather than delegating to poll().
180 * TODO: Investigate whether it'd be better to handle this
190 * Avoid blocking calls to poll() for invalid sockets, e.g. when
199 * Pick up current time as may need to adjus
147 NET_SendTo(int s, const void *msg, int len, unsigned int flags, const struct sockaddr *to, int tolen) argument
[all...]
/libcore/tzdata/update_test_app/
H A DAndroid.mk9 # Unless required by applicable law or agreed to in writing, software
/libcore/ojluni/src/main/java/java/lang/
H A DProcessBuilder.java8 * particular file as subject to the "Classpath" exception as provided
18 * 2 along with this work; if not, write to the Free Software Foundation,
39 * This class is used to create operating system processes.
45 * to create new subprocesses with identical or related attributes.
52 * external program file to be invoked and its arguments, if any.
55 * argument to be an element in this list, but there are operating
56 * systems where programs are expected to tokenize command line
58 * require commands to contain exactly two elements.
61 * <i>variables</i> to <i>values</i>. The initial value is a copy of
74 * It is possible to modif
522 public static Redirect to(final File file) { method in class:ProcessBuilder.Redirect
[all...]
/libcore/ojluni/src/main/java/java/util/regex/
H A DMatcher.java9 * particular file as subject to the "Classpath" exception as provided
19 * 2 along with this work; if not, write to the Free Software Foundation,
36 * Pattern#matcher matcher} method. Once created, a matcher can be used to
41 * <li><p> The {@link #matches matches} method attempts to match the entire
44 * <li><p> The {@link #lookingAt lookingAt} method attempts to match the
68 * #appendTail appendTail} methods can be used in tandem in order to collect
70 * #replaceAll replaceAll} method can be used to create a string in which every
80 * <p> The explicit state of a matcher is initially undefined; attempting to
82 * IllegalStateException} to be thrown. The explicit state of a matcher is
93 * to zer
[all...]

Completed in 678 milliseconds

12