/libcore/ojluni/src/main/java/java/net/ |
D | NetworkInterface.java | 153 SecurityManager sec = System.getSecurityManager(); in getInetAddresses() local 154 if (sec != null) { in getInetAddresses() 156 sec.checkPermission(new NetPermission("getNetworkInformation")); in getInetAddresses() 163 if (sec != null && !trusted) { in getInetAddresses() 164 sec.checkConnect(addrs[j].getHostAddress(), -1); in getInetAddresses() 206 SecurityManager sec = System.getSecurityManager(); in getInterfaceAddresses() local 209 if (sec != null) { in getInterfaceAddresses() 210 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 | 407 SecurityManager sec = System.getSecurityManager(); in bind() local 408 if (sec != null) { in bind() 409 sec.checkListen(port); in bind()
|
/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/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() 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/ |
D | TCKLocalTime.java | 1642 int sec = 0; in test_plusSeconds_one() local 1645 sec++; in test_plusSeconds_one() 1646 if (sec == 60) { in test_plusSeconds_one() 1648 sec = 0; in test_plusSeconds_one() 1656 assertEquals(t.getSecond(), sec); in test_plusSeconds_one() local 1667 int sec = 0; in plusSeconds_fromZero() local 1674 final Object[] ret = new Object[] {i, hour, min, sec}; in plusSeconds_fromZero() 1676 sec += delta; in plusSeconds_fromZero() 1678 if (sec >= 60) { in plusSeconds_fromZero() 1680 sec -= 60; in plusSeconds_fromZero() [all …]
|
D | TCKLocalDateTime.java | 1875 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/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/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/test/java/time/tck/java/time/zone/ |
D | TCKZoneRules.java | 1095 …private Instant createInstant(int year, int month, int day, int hour, int min, int sec, int nano, … in createInstant() argument 1096 return LocalDateTime.of(year, month, day, hour, min, sec, nano).toInstant(offset); in createInstant()
|