Searched refs:from (Results 1 - 25 of 131) sorted by path

123456

/libcore/
H A DJavaLibrary.mk209 # Build a library just containing files from luni/src/test/filesystems for use in tests.
299 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.
H A DNativeCode.mk59 # sub.mk files don't see anything stray from the last rule that was
/libcore/luni/src/main/java/java/math/
H A DBigInt.java63 void putCopy(BigInt from) { argument
65 NativeBN.BN_copy(this.bignum, from.bignum);
H A DNativeBN.java30 public static native void BN_copy(long to, long from); argument
31 // BIGNUM *BN_copy(BIGNUM *to, const BIGNUM *from);
/libcore/luni/src/main/native/
H A Djava_math_NativeBN.cpp118 static void NativeBN_BN_copy(JNIEnv* env, jclass, jlong to, jlong from) { argument
119 if (!twoValidHandles(env, to, from)) return;
120 if (!BN_copy(toBigNum(to), toBigNum(from))) {
H A Dlibcore_io_Linux.cpp98 * Perform a socket operation that specifies an IP address, possibly falling back from specifying
336 * Returns a jbyteArray containing the sockaddr_un.sun_path from ss. As per unix(7) sa_len should be
1944 sockaddr* from = (javaInetSocketAddress != NULL) ? reinterpret_cast<sockaddr*>(&ss) : NULL; local
1946 jint recvCount = NET_FAILURE_RETRY(env, ssize_t, recvfrom, javaFd, bytes.get() + byteOffset, byteCount, flags, from, fromLength);
2299 // Since -1 is a valid result from sysconf(3), detecting failure is a little more awkward.
/libcore/luni/src/test/java/libcore/io/
H A DOsTest.java248 // Attempt to receive a maximum of 24 bytes from the client, and then
350 InetSocketAddress from = new InetSocketAddress();
351 assertEquals(len, Libcore.os.recvfrom(recvFd, received, 0, received.length, 0, from));
352 assertEquals(loopback, from.getAddress());
760 // failure are still on 3.18, far from current). Given that we don't
/libcore/luni/src/test/java/libcore/java/lang/
H A DProcessBuilderTest.java104 // file descriptors from this process; "sleep" is less picky.
351 Redirect a = Redirect.from(file);
352 Redirect b = Redirect.from(otherFile);
369 assertSymmetricEquals(Redirect.from(fileB), Redirect.from(fileB2));
376 Redirect.from(fileA),
379 Redirect.from(fileB),
402 assertRedirectFileAndType(file, Type.READ, Redirect.from(file));
418 assertRedirects(Redirect.from(file), PIPE, PIPE, new ProcessBuilder().redirectInput(file));
421 assertRedirects(Redirect.from(fil
[all...]
/libcore/luni/src/test/java/libcore/java/time/chrono/
H A DJapaneseChronologyTest.java72 assertEquals(JapaneseEra.MEIJI, JapaneseDate.from(LocalDate.of(1873, 1, 1)).getEra());
73 assertEquals(JapaneseEra.TAISHO, JapaneseDate.from(LocalDate.of(1913, 1, 1)).getEra());
74 assertEquals(JapaneseEra.SHOWA, JapaneseDate.from(LocalDate.of(1927, 1, 1)).getEra());
75 assertEquals(JapaneseEra.HEISEI, JapaneseDate.from(LocalDate.of(1990, 1, 1)).getEra());
H A DMinguoChronologyTest.java84 MinguoDate.from(LocalDate.of(2000, 2, 1)), //February of a leap year
85 MinguoDate.from(LocalDate.of(2001, 2, 1)), //February of a non-leap year
93 assertEquals(LocalDate.from(date).range(ChronoField.DAY_OF_MONTH),
95 assertEquals(LocalDate.from(date).range(ChronoField.DAY_OF_YEAR),
97 assertEquals(LocalDate.from(date).range(ChronoField.ALIGNED_WEEK_OF_MONTH),
H A DThaiBuddhistChronologyTest.java86 ThaiBuddhistDate.from(LocalDate.of(2000, 2, 1)), //February of a leap year
87 ThaiBuddhistDate.from(LocalDate.of(2001, 2, 1)), //February of a non-leap year
95 assertEquals(LocalDate.from(date).range(ChronoField.DAY_OF_MONTH),
97 assertEquals(LocalDate.from(date).range(ChronoField.DAY_OF_YEAR),
99 assertEquals(LocalDate.from(date).range(ChronoField.ALIGNED_WEEK_OF_MONTH),
/libcore/luni/src/test/java/libcore/java/time/zone/
H A DIcuZoneRulesProviderTest.java44 * equivalently to the ICU rules from which they are created.
177 TimeZoneRule from = icuTransition.getFrom();
180 (from.getDSTSavings() + from.getRawOffset()) / 1000,
/libcore/luni/src/test/java/libcore/java/util/
H A DDateTest.java98 assertEquals(new Date(millis), Date.from(Instant.ofEpochMilli(millis)));
119 Date.from(Instant.ofEpochSecond(minSecond));
122 Date.from(Instant.ofEpochSecond(minSecond - 1, 192000000));
128 Date.from(Instant.ofEpochSecond(maxSecond, 0));
131 Date.from(Instant.ofEpochSecond(maxSecond, 807999999));
138 Date.from(instant);
167 assertEquals(date, Date.from(instant));
H A DGregorianCalendarTest.java292 GregorianCalendar calendar = GregorianCalendar.from(zdt);
312 GregorianCalendar.from(invalidValue);
313 fail("GregorianCalendar.from() should have failed with " + invalidValue);
/libcore/ojluni/src/main/java/java/lang/
H A DProcessBuilder.java43 * #start()} method can be invoked repeatedly from the same instance
59 * <li>an <i>environment</i>, which is a system-dependent mapping from
68 * By default, the subprocess reads input from a pipe. Java code
120 * <li>the stream returned from {@link Process#getErrorStream()} will
446 * <li>a redirection to read from a file, created by an invocation of
447 * {@link Redirect#from Redirect.from(File)}
475 * The type of redirects returned from
476 * {@link Redirect#from Redirect.from(Fil
560 public static Redirect from(final File file) { method in class:ProcessBuilder.Redirect
[all...]
/libcore/ojluni/src/main/java/java/lang/invoke/
H A DMethodHandles.java61 //// Method handle creation from ordinary methods.
141 // a member from the underlying ArtField / Method and bypass all associated access checks.
234 * The method type {@code MT} is composed from the return type {@code T}
259 * <li>If {@code C} is not symbolically accessible from the lookup class's loader,
263 * is not symbolically accessible from the lookup class's loader,
280 * This is a key difference from the Core Reflection API, since
284 * All access checks start from a {@code Lookup} object, which
305 * thrown from the attempted lookup. The exact class will be one of
319 * And the effect of invoking the method handle resulting from the lookup
340 * {@code this} parameter from {
1666 throwMakeAccessException(String message, Object from) argument
[all...]
H A DTransformers.java253 // Read the array object and the index from the stack frame.
282 // Read the array object, index and the value to write from the stack frame.
706 private static void throwWrongMethodTypeException(MethodType from, MethodType to) { argument
707 throw new WrongMethodTypeException("Cannot convert " + from + " to " + to);
956 // Copy parameters from |callerFrame| to |targetFrame| leaving room for arity array.
984 // Copy types from caller types to new methodType.
1060 * Range of arguments to copy verbatim from the input frame, This will cover all
1325 * Range of arguments to copy verbatim from the input frame, This will cover all
1362 // array we construct might differ from the type of the reference we read
1363 // from th
1860 readPrimitiveAsByte(final StackFrameReader reader, final Class<?> from) argument
1882 readPrimitiveAsChar(final StackFrameReader reader, final Class<?> from) argument
1904 readPrimitiveAsShort(final StackFrameReader reader, final Class<?> from) argument
1926 readPrimitiveAsInt(final StackFrameReader reader, final Class<?> from) argument
1948 readPrimitiveAsLong(final StackFrameReader reader, final Class<?> from) argument
1970 readPrimitiveAsFloat(final StackFrameReader reader, final Class<?> from) argument
1992 readPrimitiveAsDouble(final StackFrameReader reader, final Class<?> from) argument
2014 explicitCastToBoolean(final StackFrameReader reader, final Class<?> from, final StackFrameWriter writer) argument
2021 explicitCastPrimitives(final StackFrameReader reader, final Class<?> from, 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/nio/charset/
H A DCharsetDecoder.java72 * bytes as possible from the input buffer, writing the resulting characters
78 * attempt to recover from a decoding error, as appropriate, and try again.
465 * Decodes as many bytes as possible from the given input buffer,
468 * <p> The buffers are read from, and written to, starting at their current
475 * <p> In addition to reading bytes from the input buffer and writing
491 * typically done by draining any decoded characters from the output
727 * <p> The buffers are read from, and written to, starting at their current
981 private void throwIllegalStateException(int from, int to) { argument
982 throw new IllegalStateException("Current state = " + stateNames[from]
H A DCharsetEncoder.java72 * characters as possible from the input buffer, writing the resulting bytes
78 * attempt to recover from an encoding error, as appropriate, and try again.
483 * Encodes as many characters as possible from the given input buffer,
486 * <p> The buffers are read from, and written to, starting at their current
493 * <p> In addition to reading characters from the input buffer and writing
509 * typically done by draining any encoded bytes from the output
745 * <p> The buffers are read from, and written to, starting at their current
1013 private void throwIllegalStateException(int from, int to) { argument
1014 throw new IllegalStateException("Current state = " + stateNames[from]
/libcore/ojluni/src/main/java/java/nio/file/attribute/
H A DFileTime.java53 * this {@code FileTime} is converted from an {@code Instant},
65 * The value as Instant (created lazily, if not from an instant)
95 public static FileTime from(long value, TimeUnit unit) { method in class:FileTime
123 public static FileTime from(Instant instant) { method in class:FileTime
131 * <p> Conversion from a coarser granularity that would numerically overflow
163 * <p> Conversion from a coarser granularity that would numerically overflow
222 * from such further time points saturates to {@link Instant#MIN} if
402 * this method deviates from ISO 8601 in the same manner as the
/libcore/ojluni/src/main/java/java/text/
H A DSimpleDateFormat.java92 * Within date and time pattern strings, unquoted letters from
93 * <code>'A'</code> to <code>'Z'</code> and from <code>'a'</code> to
103 * The following pattern letters are defined (all other characters from
104 * <code>'A'</code> to <code>'Z'</code> and from <code>'a'</code> to
325 * from the Basic Latin block of the Unicode standard.
361 * <p>For formatting, if the offset value from GMT is 0, {@code "Z"} is
449 // - 1 for version from JDK 1.1.4, which includes a new field
915 * so we can call it from readObject().
977 // Called from Format after creating a FieldDelegate
1109 // Maps from DecimalFormatSymbol
2490 translatePattern(String pattern, String from, String to) argument
[all...]
/libcore/ojluni/src/main/java/java/time/
H A DDayOfWeek.java47 * may be used to endorse or promote products derived from this software
88 * The {@code int} value follows the ISO-8601 standard, from 1 (Monday) to 7 (Sunday).
153 * Obtains an instance of {@code DayOfWeek} from an {@code int} value.
156 * This factory allows the enum to be obtained from the {@code int} value.
157 * The {@code int} value follows the ISO-8601 standard, from 1 (Monday) to 7 (Sunday).
159 * @param dayOfWeek the day-of-week to represent, from 1 (Monday) to 7 (Sunday)
172 * Obtains an instance of {@code DayOfWeek} from a temporal object.
181 * allowing it to be used as a query via method reference, {@code DayOfWeek::from}.
187 public static DayOfWeek from(TemporalAccessor temporal) { method in class:DayOfWeek
194 throw new DateTimeException("Unable to obtain DayOfWeek from TemporalAccesso
[all...]
H A DDuration.java47 * may be used to endorse or promote products derived from this software
248 * The seconds and nanoseconds are extracted from the specified milliseconds.
267 * The seconds and nanoseconds are extracted from the specified nanoseconds.
307 * Obtains an instance of {@code Duration} from a temporal amount.
313 * The conversion loops around the set of units from the amount and uses
326 public static Duration from(TemporalAmount amount) { method in class:Duration
337 * Obtains a {@code Duration} from a text string such as {@code PnDTnHnMn.nS}.
359 * The fractional part may have from zero to 9 digits.
490 * @param nanoAdjustment the nanosecond adjustment within the second, from 0 to 999,999,999
503 * @param nanos the nanoseconds within the second, from
[all...]
H A DInstant.java47 * may be used to endorse or promote products derived from this software
107 * The epoch-seconds are measured from the standard Java epoch of {@code 1970-01-01T00:00:00Z}
131 * of a second from UT1 into whole seconds, known as <i>leap-seconds</i>.
146 * subdivisions, known as seconds. These seconds may differ from the
148 * scale, the definition of which changes from time to time.
166 * For the segment from 1972-11-03 (exact boundary discussed below) until
245 * The number of seconds from the epoch of 1970-01-01T00:00:00Z.
249 * The number of nanoseconds, later along the time-line, from the seconds field.
256 * Obtains the current instant from the system clock.
271 * Obtains the current instant from th
361 public static Instant from(TemporalAccessor temporal) { method in class:Instant
[all...]
H A DLocalDate.java47 * may be used to endorse or promote products derived from this software
154 * The number of days from year zero to year 1970.
155 * There are five 400 year cycles from year zero to 2000.
156 * There are 7 leap years from 1970 to 2000.
175 * Obtains the current date from the system clock in the default time-zone.
190 * Obtains the current date from the system clock in the specified time-zone.
206 * Obtains the current date from the specified clock.
227 * Obtains an instance of {@code LocalDate} from a year, month and day.
232 * @param year the year to represent, from MIN_YEAR to MAX_YEAR
234 * @param dayOfMonth the day-of-month to represent, from
357 public static LocalDate from(TemporalAccessor temporal) { method in class:LocalDate
[all...]

Completed in 1145 milliseconds

123456