/libcore/ojluni/src/main/java/java/net/ |
D | NetworkInterface.java | 174 SecurityManager sec = System.getSecurityManager(); in getInetAddresses() local 175 if (sec != null) { in getInetAddresses() 177 sec.checkPermission(new NetPermission("getNetworkInformation")); in getInetAddresses() 184 if (sec != null && !trusted) { in getInetAddresses() 185 sec.checkConnect(addrs[j].getHostAddress(), -1); in getInetAddresses() 227 SecurityManager sec = System.getSecurityManager(); in getInterfaceAddresses() local 230 if (sec != null) { in getInterfaceAddresses() 231 sec.checkConnect(bindings[j].getAddress().getHostAddress(), -1); in getInterfaceAddresses()
|
D | HttpURLConnection.java | 550 SecurityManager sec = System.getSecurityManager(); in setFollowRedirects() local 551 if (sec != null) { in setFollowRedirects() 553 sec.checkSetFactory(); in setFollowRedirects()
|
D | DatagramSocket.java | 409 SecurityManager sec = System.getSecurityManager(); in bind() local 410 if (sec != null) { in bind() 411 sec.checkListen(port); in bind()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalTime.java | 1636 int sec = 0; in test_plusSeconds_one() local 1639 sec++; in test_plusSeconds_one() 1640 if (sec == 60) { in test_plusSeconds_one() 1642 sec = 0; in test_plusSeconds_one() 1650 assertEquals(t.getSecond(), sec); in test_plusSeconds_one() local 1661 int sec = 0; in plusSeconds_fromZero() local 1668 final Object[] ret = new Object[] {i, hour, min, sec}; in plusSeconds_fromZero() 1670 sec += delta; in plusSeconds_fromZero() 1672 if (sec >= 60) { in plusSeconds_fromZero() 1674 sec -= 60; in plusSeconds_fromZero() [all …]
|
D | TCKLocalDateTime.java | 1869 int sec = 0; 1873 sec++; 1874 if (sec == 60) { 1876 sec = 0; 1886 assertEquals(t.getSecond(), sec); 1899 int sec = 0; 1906 final Object[] ret = new Object[] {i, date, hour, min, sec}; 1908 sec += delta; 1910 if (sec >= 60) { 1912 sec -= 60; [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatters.java | 451 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 …]
|
D | TCKDateTimeParseResolver.java | 602 … 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/java/util/ |
D | Date.java | 243 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() 317 int hrs, int min, int sec) { in UTC() argument 330 udate.setNormalizedDate(y, m, date).setTimeOfDay(hrs, min, sec, 0); in UTC() 459 int sec = -1; in parse() local 553 else if (min >= 0 && sec < 0) in parse() 554 sec = (byte) n; in parse() 618 if (sec < 0) in parse() 619 sec = 0; in parse() 628 ldate.setTimeOfDay(hour, min, sec, 0); in parse() [all …]
|
/libcore/ojluni/src/main/java/java/sql/ |
D | DriverManager.java | 163 SecurityManager sec = System.getSecurityManager(); in setLogWriter() local 164 if (sec != null) { in setLogWriter() 165 sec.checkPermission(SET_LOG_PERMISSION); in setLogWriter() 415 SecurityManager sec = System.getSecurityManager(); in setLogStream() local 416 if (sec != null) { in setLogStream() 417 sec.checkPermission(SET_LOG_PERMISSION); in setLogStream()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixFileAttributes.java | 108 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/main/java/java/util/concurrent/ |
D | ThreadLocalRandom.java | 436 String sec = VM.getSavedProperty("java.util.secureRandomSeed"); 437 if (Boolean.parseBoolean(sec)) {
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestZoneId.java | 654 …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/ |
D | DateTimeFormatterBuilder.java | 3583 int sec = (secVal != null ? secVal.intValue() : 0); in parse() local 3587 if (hour == 24 && min == 0 && sec == 0 && nano == 0) { in parse() 3590 } else if (hour == 23 && min == 59 && sec == 60) { in parse() 3592 sec = 59; in parse() 3597 … 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/ |
D | TCKZoneRules.java | 1143 …private Instant createInstant(int year, int month, int day, int hour, int min, int sec, int nano, … in createInstant() argument 1144 return LocalDateTime.of(year, month, day, hour, min, sec, nano).toInstant(offset); in createInstant()
|