Searched refs:from (Results 26 - 50 of 131) sorted by relevance

123456

/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);
/libcore/ojluni/src/main/java/java/time/chrono/
H A DChronology.java47 * may be used to endorse or promote products derived from this software
161 * Obtains an instance of {@code Chronology} from a temporal object.
171 * allowing it to be used as a query via method reference, {@code Chronology::from}.
177 static Chronology from(TemporalAccessor temporal) { method in interface:Chronology
185 * Obtains an instance of {@code Chronology} from a locale.
205 * Note that the behavior of this method differs from the older
230 * Obtains an instance of {@code Chronology} from a chronology ID or
243 * cutover dates from the Julian, but the lookup only provides the default cutover date.
296 * Obtains a local date in this chronology from the era, year-of-era,
316 * Obtains a local date in this chronology from th
[all...]
H A DIsoChronology.java47 * may be used to endorse or promote products derived from this software
106 * For the BCE era before the ISO epoch the year increases from 1 upwards as time goes backwards.
109 * <li>month-of-year - There are 12 months in an ISO year, numbered from 1 to 12.
110 * <li>day-of-month - There are between 28 and 31 days in each of the ISO month, numbered from 1 to 31.
114 * The days are numbered from 1 to 365 or 1 to 366.
175 * Obtains an ISO local date from the era, year-of-era, month-of-year
192 * Obtains an ISO local date from the proleptic-year, month-of-year
209 * Obtains an ISO local date from the era, year-of-era and day-of-year fields.
223 * Obtains an ISO local date from the proleptic-year and day-of-year fields.
238 * Obtains an ISO local date from th
[all...]
H A DChronoZonedDateTimeImpl.java47 * may be used to endorse or promote products derived from this software
127 * Obtains an instance from a local date-time using the preferred offset if possible.
142 LocalDateTime isoLDT = LocalDateTime.from(localDateTime);
163 * Obtains an instance from an instant using the specified time-zone.
180 * Obtains an instance from an {@code Instant}.
182 * @param instant the instant to create the date-time from, not null
232 ZoneOffsetTransition trans = getZone().getRules().getTransition(LocalDateTime.from(this));
244 ZoneOffsetTransition trans = getZone().getRules().getTransition(LocalDateTime.from(this));
/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/ojluni/src/main/java/java/time/
H A DYear.java47 * may be used to endorse or promote products derived from this software
104 * Any field that can be derived from a year can be obtained.
159 * Obtains the current year from the system clock in the default time-zone.
174 * Obtains the current year from the system clock in the specified time-zone.
190 * Obtains the current year from the specified clock.
208 * This method accepts a year value from the proleptic ISO calendar system.
215 * @param isoYear the ISO proleptic year to represent, from {@code MIN_VALUE} to {@code MAX_VALUE}
226 * Obtains an instance of {@code Year} from a temporal object.
237 * allowing it to be used as a query via method reference, {@code Year::from}.
243 public static Year from(TemporalAccesso method in class:Year
[all...]
H A DYearMonth.java47 * may be used to endorse or promote products derived from this software
107 * of a year and month. Any field that can be derived from a year and month, such as
152 * Obtains the current year-month from the system clock in the default time-zone.
167 * Obtains the current year-month from the system clock in the specified time-zone.
183 * Obtains the current year-month from the specified clock.
199 * Obtains an instance of {@code YearMonth} from a year and month.
201 * @param year the year to represent, from MIN_YEAR to MAX_YEAR
212 * Obtains an instance of {@code YearMonth} from a year and month.
214 * @param year the year to represent, from MIN_YEAR to MAX_YEAR
215 * @param month the month-of-year to represent, from
245 public static YearMonth from(TemporalAccessor temporal) { method in class:YearMonth
[all...]
H A DOffsetTime.java47 * may be used to endorse or promote products derived from this software
97 * A time with an offset from UTC/Greenwich in the ISO-8601 calendar system,
142 * The offset from UTC/Greenwich.
148 * Obtains the current time from the system clock in the default time-zone.
152 * The offset will be calculated from the time-zone in the clock.
164 * Obtains the current time from the system clock in the specified time-zone.
168 * The offset will be calculated from the specified time-zone.
181 * Obtains the current time from the specified clock.
184 * The offset will be calculated from the time-zone in the clock.
200 * Obtains an instance of {@code OffsetTime} from
280 public static OffsetTime from(TemporalAccessor temporal) { method in class:OffsetTime
[all...]
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...]
/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 */
/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/ojluni/src/main/java/sun/nio/fs/
H A DUnixFileAttributes.java110 return FileTime.from(sec, TimeUnit.SECONDS);
114 // is updated to define a from(secs,nsecs) method.
116 return FileTime.from(micro, TimeUnit.MICROSECONDS);
144 return FileTime.from(st_birthtime_sec, TimeUnit.SECONDS);
H A DUnixSecureDirectoryStream.java242 UnixPath from = getName(fromObj);
253 this.ds.directory().resolve(from).checkWrite();
265 renameat(this.dfd, from.asByteArray(), that.dfd, to.asByteArray());
269 from.toString(), to.toString(), x.errorString());
271 x.rethrowAsIOException(from, to);
H A DUnixNativeDispatcher.java179 static void rename(UnixPath from, UnixPath to) throws UnixException { argument
180 NativeBuffer fromBuffer = copyToNativeBuffer(from);
195 static void renameat(int fromfd, byte[] from, int tofd, byte[] to) throws UnixException { argument
196 NativeBuffer fromBuffer = NativeBuffers.asNativeBuffer(from);
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
H A DTCKChronoLocalDate.java42 * may be used to endorse or promote products derived from this software
315 ChronoLocalDate test1 = ChronoLocalDate.from(date);
317 ChronoLocalDate test2 = ChronoLocalDate.from(date.atTime(LocalTime.of(12, 30)));
319 ChronoLocalDate test3 = ChronoLocalDate.from(date.atTime(LocalTime.of(12, 30)).atZone(ZoneOffset.UTC));
325 ChronoLocalDate.from(LocalTime.of(12, 30));
330 ChronoLocalDate.from(null);
336 * Construct an adjuster with the Temporal that should be returned from adjust.
373 * Construct an FixedTemporalUnit with the Temporal that should be returned from doAdd.
426 * Construct an FixedTemporalField with the Temporal that should be returned from doSet.
H A DTCKChronoLocalDateTime.java42 * may be used to endorse or promote products derived from this software
325 ChronoLocalDateTime<?> test1 = ChronoLocalDateTime.from(dateTime);
327 ChronoLocalDateTime<?> test2 = ChronoLocalDateTime.from(dateTime.atZone(ZoneOffset.UTC));
333 ChronoLocalDateTime.from(LocalDate.of(2013, 1, 1));
338 ChronoLocalDateTime.from(LocalTime.of(12, 30));
343 ChronoLocalDateTime.from(null);
356 * Construct an adjuster with the Temporal that should be returned from adjust.
394 * Construct an FixedTemporalUnit with the Temporal that should be returned from addTo.
447 * Construct an FixedTemporalField with the Temporal that should be returned from adjustInto.
/libcore/ojluni/src/test/java/time/tck/java/time/
H A DTCKDayOfWeek.java45 * may be used to endorse or promote products derived from this software
149 assertEquals(DayOfWeek.from(LocalDate.of(2011, 6, 6)), DayOfWeek.MONDAY);
154 DayOfWeek.from(LocalTime.of(12, 30));
159 DayOfWeek.from((TemporalAccessor) null);
H A DTCKZoneId.java45 * may be used to endorse or promote products derived from this software
507 // from(TemporalAccessor)
529 assertEquals(ZoneId.from(mock), ZoneId.of("Europe/Paris"));
535 assertEquals(ZoneId.from(offset), offset);
540 ZoneId.from(LocalTime.of(12, 30));
545 ZoneId.from(null);
/libcore/ojluni/src/main/java/java/time/temporal/
H A DJulianFields.java47 * may be used to endorse or promote products derived from this software
79 * This class represents variations on Julian Days that count whole days from midnight.
93 * The offset from Julian to EPOCH DAY.
106 * For date-times, 'JULIAN_DAY.getFrom()' assumes the same value from
113 * In the resolving phase of parsing, a date can be created from a Julian Day field.
149 * Each Modified Julian Day runs from midnight to midnight.
152 * For date-times, 'MODIFIED_JULIAN_DAY.getFrom()' assumes the same value from
161 * In the resolving phase of parsing, a date can be created from a Modified Julian Day field.
190 * For date-times, 'RATA_DIE.getFrom()' assumes the same value from
197 * In the resolving phase of parsing, a date can be created from
[all...]
/libcore/ojluni/src/test/java/time/tck/java/time/format/
H A DTCKOffsetPrinterParser.java45 * may be used to endorse or promote products derived from this software
325 assertEquals(f.parse(expected, ZoneOffset::from), offset);
332 assertEquals(f.parse(expected, ZoneOffset::from), offset);
338 assertEquals(f.parse(expected, ZoneOffset::from), offset);
346 assertEquals(f.parse(expected, ZoneOffset::from), offset);
/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/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/util/zip/
H A DZipEntry.java50 FileTime mtime; // last modification time, from extra field data
51 FileTime atime; // last access time, from extra field data
52 FileTime ctime; // creation time, from extra field data
78 /** @hide - Called from StrictJarFile native code. */
133 * Creates a new zip entry with fields taken from the specified
200 this.mtime = FileTime.from(time, TimeUnit.MILLISECONDS);
207 * <p> If the entry is read from a ZIP file or ZIP file formatted
208 * input stream, this is the last modification time from the {@code
256 * <p> If the entry is read from a ZIP file or ZIP file formatted
257 * input stream, this is the last modification time from th
[all...]

Completed in 430 milliseconds

123456