Home
last modified time | relevance | path

Searched refs:sec (Results 1 – 13 of 13) sorted by relevance

/libcore/ojluni/src/main/java/java/net/
DNetworkInterface.java128 SecurityManager sec = System.getSecurityManager(); in getInetAddresses() local
129 if (sec != null) { in getInetAddresses()
131 sec.checkPermission(new NetPermission("getNetworkInformation")); in getInetAddresses()
138 if (sec != null && !trusted) { in getInetAddresses()
139 sec.checkConnect(addrs[j].getHostAddress(), -1); in getInetAddresses()
181 SecurityManager sec = System.getSecurityManager(); in getInterfaceAddresses() local
184 if (sec != null) { in getInterfaceAddresses()
185 sec.checkConnect(bindings[j].getAddress().getHostAddress(), -1); in getInterfaceAddresses()
DHttpURLConnection.java550 SecurityManager sec = System.getSecurityManager(); in setFollowRedirects() local
551 if (sec != null) { in setFollowRedirects()
553 sec.checkSetFactory(); in setFollowRedirects()
DDatagramSocket.java406 SecurityManager sec = System.getSecurityManager(); in bind() local
407 if (sec != null) { in bind()
408 sec.checkListen(port); in bind()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalTime.java1608 int sec = 0; in test_plusSeconds_one() local
1611 sec++; in test_plusSeconds_one()
1612 if (sec == 60) { in test_plusSeconds_one()
1614 sec = 0; in test_plusSeconds_one()
1622 assertEquals(t.getSecond(), sec); in test_plusSeconds_one() local
1633 int sec = 0; in plusSeconds_fromZero() local
1640 final Object[] ret = new Object[] {i, hour, min, sec}; in plusSeconds_fromZero()
1642 sec += delta; in plusSeconds_fromZero()
1644 if (sec >= 60) { in plusSeconds_fromZero()
1646 sec -= 60; in plusSeconds_fromZero()
[all …]
DTCKLocalDateTime.java1875 int sec = 0;
1879 sec++;
1880 if (sec == 60) {
1882 sec = 0;
1892 assertEquals(t.getSecond(), sec);
1905 int sec = 0;
1912 final Object[] ret = new Object[] {i, date, hour, min, sec};
1914 sec += delta;
1916 if (sec >= 60) {
1918 sec -= 60;
[all …]
/libcore/ojluni/src/main/java/java/sql/
DDriverManager.java164 SecurityManager sec = System.getSecurityManager(); in setLogWriter() local
165 if (sec != null) { in setLogWriter()
166 sec.checkPermission(SET_LOG_PERMISSION); in setLogWriter()
414 SecurityManager sec = System.getSecurityManager(); in setLogStream() local
415 if (sec != null) { in setLogStream()
416 sec.checkPermission(SET_LOG_PERMISSION); in setLogStream()
/libcore/ojluni/src/main/java/java/util/
DDate.java243 public Date(int year, int month, int date, int hrs, int min, int sec) { in Date() argument
255 cdate.setNormalizedDate(y, month + 1, date).setTimeOfDay(hrs, min, sec, 0); in Date()
318 int hrs, int min, int sec) { in UTC() argument
331 udate.setNormalizedDate(y, m, date).setTimeOfDay(hrs, min, sec, 0); in UTC()
460 int sec = -1; in parse() local
554 else if (min >= 0 && sec < 0) in parse()
555 sec = (byte) n; in parse()
619 if (sec < 0) in parse()
620 sec = 0; in parse()
629 ldate.setTimeOfDay(hour, min, sec, 0); in parse()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatters.java451 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, in test_print_isoLocalTime() argument
453 … TemporalAccessor test = buildAccessor(null, null, null, hour, min, sec, nano, offsetId, zoneId); in test_print_isoLocalTime()
468 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, in test_parse_isoLocalTime() argument
471 Expected expected = createTime(hour, min, sec, nano); in test_parse_isoLocalTime()
521 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, in test_print_isoOffsetTime() argument
523 … TemporalAccessor test = buildAccessor(null, null, null, hour, min, sec, nano, offsetId, zoneId); in test_print_isoOffsetTime()
538 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, in test_parse_isoOffsetTime() argument
541 Expected expected = createTime(hour, min, sec, nano); in test_parse_isoOffsetTime()
591 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, in test_print_isoTime() argument
593 … TemporalAccessor test = buildAccessor(null, null, null, hour, min, sec, nano, offsetId, zoneId); in test_print_isoTime()
[all …]
DTCKDateTimeParseResolver.java602 … long hour, long min, long sec, long nano, LocalTime expectedTime, Period excessPeriod) { in test_resolveFourToTime() argument
606 .parseDefaulting(SECOND_OF_MINUTE, sec) in test_resolveFourToTime()
629 … long hour, long min, long sec, long nano, LocalTime expectedTime, Period excessPeriod) { in test_resolveThreeToTime() argument
633 .parseDefaulting(SECOND_OF_MINUTE, sec).toFormatter(); in test_resolveThreeToTime()
655 … long hour, long min, long sec, long nano, LocalTime expectedTime, Period excessPeriod) { in test_resolveFourToDateTime() argument
660 .parseDefaulting(SECOND_OF_MINUTE, sec) in test_resolveFourToDateTime()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixFileAttributes.java108 private static FileTime toFileTime(long sec, long nsec) { in toFileTime() argument
110 return FileTime.from(sec, TimeUnit.SECONDS); in toFileTime()
115 long micro = sec*1000000L + nsec/1000L; in toFileTime()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestZoneId.java654 …private Instant createInstant(int year, int month, int day, int hour, int min, int sec, int nano, … in createInstant() argument
655 return LocalDateTime.of(year, month, day, hour, min, sec, nano).toInstant(offset); in createInstant()
658 …private ZonedDateTime createZDT(int year, int month, int day, int hour, int min, int sec, int nano… in createZDT() argument
659 return LocalDateTime.of(year, month, day, hour, min, sec, nano).atZone(zone); in createZDT()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatterBuilder.java3272 int sec = (secVal != null ? secVal.intValue() : 0); in parse() local
3275 if (hour == 24 && min == 0 && sec == 0 && nano == 0) { in parse()
3278 } else if (hour == 23 && min == 59 && sec == 60) { in parse()
3280 sec = 59; in parse()
3285 … LocalDateTime ldt = LocalDateTime.of(year, month, day, hour, min, sec, 0).plusDays(days); in parse()
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneRules.java1093 …private Instant createInstant(int year, int month, int day, int hour, int min, int sec, int nano, … in createInstant() argument
1094 return LocalDateTime.of(year, month, day, hour, min, sec, nano).toInstant(offset); in createInstant()