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

123

/libcore/luni/src/main/java/libcore/util/
H A DNonNull.java10 * Unless required by applicable law or agreed to in writing, software
36 * Min Android API level (inclusive) to which this annotation is applied.
41 * Max Android API level to which this annotation is applied.
43 int to() default Integer.MAX_VALUE;
H A DNullFromTypeParam.java10 * Unless required by applicable law or agreed to in writing, software
35 * Min Android API level (inclusive) to which this annotation is applied.
40 * Max Android API level to which this annotation is applied.
42 int to() default Integer.MAX_VALUE;
H A DNullable.java10 * Unless required by applicable law or agreed to in writing, software
36 * Min Android API level (inclusive) to which this annotation is applied.
41 * Max Android API level to which this annotation is applied.
43 int to() default Integer.MAX_VALUE;
/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/tools/upstream/src/main/java/libcore/
H A DCopyUpstreamFiles.java10 * Unless required by applicable law or agreed to in writing, software
45 throw new IOException("Failed to create directory " + outputDir);
65 private void copyFile(Path from, Path to) throws IOException { argument
69 Path toDir = to.getParent();
73 throw new IOException("Failed to create directory " + toDir);
76 Files.copy(from, to);
/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
111 long to = timeout;
116 int result = ssc.poll(Net.POLLIN, to);
119 to -= System.currentTimeMillis() - st;
120 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,
39 // The only aspects of java.net.Socket-hood that we don't attempt to emulate
41 // attempt to support) and the sending of urgent data. Otherwise an adapted
42 // socket should look enough like a real java.net.Socket to fool most of the
43 // developers most of the time, right down to the exception message strings.
46 // java.net.Socket so as to simplify tracking future changes to that class.
76 // Override this method just to protect against changes in the superclass
109 long to
[all...]
/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,
81 * available and the caller attempts to load a class on behalf
125 * access from a class loader 'from' to classes or members in
126 * a class defined by class loader 'to'. This method returns true
127 * if 'from' is not the same as or an ancestor of 'to'. All code
131 * attempts to access system domain classes, it requires package
134 public static boolean needsPackageAccessCheck(ClassLoader from, ClassLoader to) { argument
135 if (from == null || from == to)
138 if (to
[all...]
/libcore/ojluni/src/main/java/java/time/zone/
H A DIcuZoneRulesProvider.java7 * Project designates this particular file as subject to the "Classpath"
18 * 2 along with this work; if not, write to the Free Software Foundation,
52 // Arbitrary upper limit to number of transitions including the final rules.
64 // do not. Since they are equivalent to GMT, just remove these aliases.
91 * 4. The final rules have endYear set to MAX_YEAR.
97 * Assumptions #5 and #6 are not strictly required for this code to work, but hold for the
100 * this code needs to be updated.
132 // "last rules" in java.time) the "break transitionLoop" will be used to exit the loop.
136 TimeZoneRule to = transition.getTo();
138 if (from.getRawOffset() != to
[all...]
/libcore/ojluni/src/test/java/nio/file/attribute/
H A DFileTimeTest.java16 * 2 along with this work; if not, write to the Free Software Foundation,
106 // to(TimeUnit)
107 to(MILLISECONDS.convert(1, DAYS) - 1, MILLISECONDS);
108 to(MILLISECONDS.convert(1, DAYS) + 0, MILLISECONDS);
109 to(MILLISECONDS.convert(1, DAYS) + 1, MILLISECONDS);
110 to(1, MILLISECONDS);
111 to(0, MILLISECONDS);
112 to(1, MILLISECONDS);
113 to(MILLISECONDS.convert(-1, DAYS) - 1, MILLISECONDS);
114 to(MILLISECOND
322 static void to(long v, TimeUnit unit) { method in class:FileTimeTest
[all...]
H A DBasicFileAttributeViewTest.java16 * 2 along with this work; if not, write to the Free Software Foundation,
61 check(f.lastModified()/1000 == attrs.lastModifiedTime().to(TimeUnit.SECONDS),
77 check(f.lastModified()/1000 == attrs.lastModifiedTime().to(TimeUnit.SECONDS),
80 // copy last-modified time from directory to file,
93 "should not be able to cast to PosixFileAttributes");
135 // create temporary directory to run tests
/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.
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/.
35 # returned that are relative to the build root / $(TOPDIR) and not libcore.
/libcore/ojluni/src/main/java/java/lang/invoke/
H A DTransformers.java7 * particular file as subject to the "Classpath" exception as provided
17 * 2 along with this work; if not, write to the Free Software Foundation,
51 * Method reference to the private {@code MethodHandle.transformInternal} method. This is
75 * The handle declares a nominal return type, which is immaterial to the execution
114 // We pre-calculate the ranges of values we have to copy through to the delegate
175 // We've gotten an exception of the appropriate type, so we need to call
179 // The first argument to the handler is the actual exception.
182 // We then copy other arguments that need to be passed through to th
706 throwWrongMethodTypeException(MethodType from, MethodType to) argument
1829 explicitCastFromBoolean(boolean fromValue, final StackFrameWriter writer, final Class<?> to) argument
2021 explicitCastPrimitives(final StackFrameReader reader, final Class<?> from, final StackFrameWriter writer, final Class<?> to) argument
2051 unboxNull(final StackFrameWriter writer, final Class<?> to) argument
2073 unboxNonNull(final Object ref, final Class<?> from, final StackFrameWriter writer, final Class<?> to) argument
2104 unbox(final Object ref, final Class<?> from, final StackFrameWriter writer, final Class<?> to) argument
2113 box(final StackFrameReader reader, final Class<?> from, final StackFrameWriter writer, final Class<?> to) argument
2138 explicitCast(final StackFrameReader reader, final Class<?> from, final StackFrameWriter writer, final Class<?> to) argument
[all...]
/libcore/ojluni/src/main/java/java/util/zip/
H A DZipUtils.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,
34 // used to adjust values between Windows and java epoch
38 * Converts Windows time (in microseconds, UTC/GMT) time to FileTime.
46 * Converts FileTime to Windows time.
49 return (ftime.to(TimeUnit.MICROSECONDS) - WINDOWS_EPOCH_IN_MICROSECONDS) * 10;
53 * Converts "standard Unix time"(in seconds, UTC/GMT) to FileTime
60 * Converts FileTime to "standard Unix time".
63 return ftime.to(TimeUnit.SECONDS);
67 * Converts DOS time to Jav
[all...]
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixCopyFile.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 // the attributes to copy
126 // copy directory from source to target
139 // no attributes to copy
150 // access to target directory required to copy named attributes
170 // unable to set owner/group
194 attrs.lastAccessTime().to(TimeUnit.MICROSECONDS),
195 attrs.lastModifiedTime().to(TimeUni
[all...]
H A DUnixSecureDirectoryStream.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,
202 // need file attribute to know if file is directory. This creates
241 * Rename/move file in this directory to another (open) directory
248 UnixPath to = getName(toObj);
259 that.ds.directory().resolve(to).checkWrite();
270 renameat(this.dfd, from.asByteArray(), that.dfd, to.asByteArray());
274 from.toString(), to.toString(), x.errorString());
276 x.rethrowAsIOException(from, to);
305 * Returns file attribute view bound to thi
[all...]
/libcore/ojluni/src/main/java/java/net/
H A DInet6AddressImpl.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,
109 * Resolves a hostname to its IP addresses using a cache.
111 * @param host the hostname to resolve.
112 * @param netId the network to perform resolution upon.
146 // If the failure appears to have been a lack of INTERNET permission, throw a clear
147 // SecurityException to aid in debugging this common mistake.
155 String detailMessage = "Unable to resolve host \"" + host + "\": " + Libcore.os.gai_strerror(gaiException.error);
180 * Let's make sure we bind to an address of the proper family.
213 // No good, let's fall back to TC
[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
358 range(E from, E to) argument
370 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.
177 * @param e element to b
[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,
37 * Pattern#matcher matcher} method. Once created, a matcher can be used to
42 * <li><p> The {@link #matches matches} method attempts to match the entire
45 * <li><p> The {@link #lookingAt lookingAt} method attempts to match the
69 * #appendTail appendTail} methods can be used in tandem in order to collect
71 * #replaceAll replaceAll} method can be used to create a string in which every
81 * <p> The explicit state of a matcher is initially undefined; attempting to
83 * IllegalStateException} to be thrown. The explicit state of a matcher is
94 * to zer
[all...]
/libcore/metrictests/
H A DAndroid.mk9 # Unless required by applicable law or agreed to in writing, software
/libcore/metrictests/memory/
H A DAndroid.mk9 # Unless required by applicable law or agreed to in writing, software
/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);

Completed in 677 milliseconds

123