/libcore/jsr166-tests/src/test/java/jsr166/ |
D | TreeSubSetTest.java | 503 SortedSet sm = set.subSet(two, four); in testSubSetContents() local 504 assertEquals(two, sm.first()); in testSubSetContents() 505 assertEquals(three, sm.last()); in testSubSetContents() 506 assertEquals(2, sm.size()); in testSubSetContents() 507 assertFalse(sm.contains(one)); in testSubSetContents() 508 assertTrue(sm.contains(two)); in testSubSetContents() 509 assertTrue(sm.contains(three)); in testSubSetContents() 510 assertFalse(sm.contains(four)); in testSubSetContents() 511 assertFalse(sm.contains(five)); in testSubSetContents() 512 Iterator i = sm.iterator(); in testSubSetContents() [all …]
|
D | ConcurrentSkipListSubSetTest.java | 506 SortedSet sm = set.subSet(two, four); in testSubSetContents() local 507 assertEquals(two, sm.first()); in testSubSetContents() 508 assertEquals(three, sm.last()); in testSubSetContents() 509 assertEquals(2, sm.size()); in testSubSetContents() 510 assertFalse(sm.contains(one)); in testSubSetContents() 511 assertTrue(sm.contains(two)); in testSubSetContents() 512 assertTrue(sm.contains(three)); in testSubSetContents() 513 assertFalse(sm.contains(four)); in testSubSetContents() 514 assertFalse(sm.contains(five)); in testSubSetContents() 515 Iterator i = sm.iterator(); in testSubSetContents() [all …]
|
D | TreeSubMapTest.java | 459 SortedMap sm = map.subMap(two, four); 460 assertEquals(two, sm.firstKey()); 461 assertEquals(three, sm.lastKey()); 462 assertEquals(2, sm.size()); 463 assertFalse(sm.containsKey(one)); 464 assertTrue(sm.containsKey(two)); 465 assertTrue(sm.containsKey(three)); 466 assertFalse(sm.containsKey(four)); 467 assertFalse(sm.containsKey(five)); 468 Iterator i = sm.keySet().iterator(); [all …]
|
D | ConcurrentSkipListSubMapTest.java | 624 SortedMap sm = map.subMap(two, four); 625 assertEquals(two, sm.firstKey()); 626 assertEquals(three, sm.lastKey()); 627 assertEquals(2, sm.size()); 628 assertFalse(sm.containsKey(one)); 629 assertTrue(sm.containsKey(two)); 630 assertTrue(sm.containsKey(three)); 631 assertFalse(sm.containsKey(four)); 632 assertFalse(sm.containsKey(five)); 633 Iterator i = sm.keySet().iterator(); [all …]
|
D | TreeSetTest.java | 552 SortedSet sm = set.subSet(two, four); in testSubSetContents() local 553 assertEquals(two, sm.first()); in testSubSetContents() 554 assertEquals(three, sm.last()); in testSubSetContents() 555 assertEquals(2, sm.size()); in testSubSetContents() 556 assertFalse(sm.contains(one)); in testSubSetContents() 557 assertTrue(sm.contains(two)); in testSubSetContents() 558 assertTrue(sm.contains(three)); in testSubSetContents() 559 assertFalse(sm.contains(four)); in testSubSetContents() 560 assertFalse(sm.contains(five)); in testSubSetContents() 561 Iterator i = sm.iterator(); in testSubSetContents() [all …]
|
D | ConcurrentSkipListSetTest.java | 549 SortedSet sm = set.subSet(two, four); in testSubSetContents() local 550 assertEquals(two, sm.first()); in testSubSetContents() 551 assertEquals(three, sm.last()); in testSubSetContents() 552 assertEquals(2, sm.size()); in testSubSetContents() 553 assertFalse(sm.contains(one)); in testSubSetContents() 554 assertTrue(sm.contains(two)); in testSubSetContents() 555 assertTrue(sm.contains(three)); in testSubSetContents() 556 assertFalse(sm.contains(four)); in testSubSetContents() 557 assertFalse(sm.contains(five)); in testSubSetContents() 558 Iterator i = sm.iterator(); in testSubSetContents() [all …]
|
D | TreeMapTest.java | 632 NavigableMap sm = map.subMap(two, true, four, false); 633 assertEquals(two, sm.firstKey()); 634 assertEquals(three, sm.lastKey()); 635 assertEquals(2, sm.size()); 636 assertFalse(sm.containsKey(one)); 637 assertTrue(sm.containsKey(two)); 638 assertTrue(sm.containsKey(three)); 639 assertFalse(sm.containsKey(four)); 640 assertFalse(sm.containsKey(five)); 641 Iterator i = sm.keySet().iterator(); [all …]
|
D | ConcurrentSkipListMapTest.java | 827 NavigableMap sm = map.subMap(two, true, four, false); 828 assertEquals(two, sm.firstKey()); 829 assertEquals(three, sm.lastKey()); 830 assertEquals(2, sm.size()); 831 assertFalse(sm.containsKey(one)); 832 assertTrue(sm.containsKey(two)); 833 assertTrue(sm.containsKey(three)); 834 assertFalse(sm.containsKey(four)); 835 assertFalse(sm.containsKey(five)); 836 Iterator i = sm.keySet().iterator(); [all …]
|
D | ExecutorsTest.java | 380 SecurityManager sm = System.getSecurityManager(); in haveCCLPermissions() local 381 if (sm != null) { in haveCCLPermissions() 383 sm.checkPermission(new RuntimePermission("setContextClassLoader")); in haveCCLPermissions() 384 sm.checkPermission(new RuntimePermission("getClassLoader")); in haveCCLPermissions() 393 SecurityManager sm = System.getSecurityManager(); in checkCCL() local 394 if (sm != null) { in checkCCL() 395 sm.checkPermission(new RuntimePermission("setContextClassLoader")); in checkCCL() 396 sm.checkPermission(new RuntimePermission("getClassLoader")); in checkCCL()
|
/libcore/ojluni/src/main/java/java/net/ |
D | ResponseCache.java | 84 SecurityManager sm = System.getSecurityManager(); in getDefault() local 85 if (sm != null) { in getDefault() 86 sm.checkPermission(SecurityConstants.GET_RESPONSECACHE_PERMISSION); in getDefault() 107 SecurityManager sm = System.getSecurityManager(); in setDefault() local 108 if (sm != null) { in setDefault() 109 sm.checkPermission(SecurityConstants.SET_RESPONSECACHE_PERMISSION); in setDefault()
|
D | CookieHandler.java | 73 SecurityManager sm = System.getSecurityManager(); in getDefault() local 74 if (sm != null) { in getDefault() 75 sm.checkPermission(SecurityConstants.GET_COOKIEHANDLER_PERMISSION); in getDefault() 93 SecurityManager sm = System.getSecurityManager(); in setDefault() local 94 if (sm != null) { in setDefault() 95 sm.checkPermission(SecurityConstants.SET_COOKIEHANDLER_PERMISSION); in setDefault()
|
D | Authenticator.java | 123 SecurityManager sm = System.getSecurityManager(); in setDefault() local 124 if (sm != null) { in setDefault() 127 sm.checkPermission(setDefaultPermission); in setDefault() 167 SecurityManager sm = System.getSecurityManager(); in requestPasswordAuthentication() local 168 if (sm != null) { in requestPasswordAuthentication() 171 sm.checkPermission(requestPermission); in requestPasswordAuthentication() 229 SecurityManager sm = System.getSecurityManager(); in requestPasswordAuthentication() local 230 if (sm != null) { in requestPasswordAuthentication() 233 sm.checkPermission(requestPermission); in requestPasswordAuthentication() 296 SecurityManager sm = System.getSecurityManager(); in requestPasswordAuthentication() local [all …]
|
D | ProxySelector.java | 92 SecurityManager sm = System.getSecurityManager(); in getDefault() local 93 if (sm != null) { in getDefault() 94 sm.checkPermission(SecurityConstants.GET_PROXYSELECTOR_PERMISSION); in getDefault() 115 SecurityManager sm = System.getSecurityManager(); in setDefault() local 116 if (sm != null) { in setDefault() 117 sm.checkPermission(SecurityConstants.SET_PROXYSELECTOR_PERMISSION); in setDefault()
|
D | NetUtil.java | 49 SecurityManager sm = System.getSecurityManager(); in readRevealLocalAddr() local 50 if (sm != null) { in readRevealLocalAddr()
|
D | URL.java | 374 SecurityManager sm = System.getSecurityManager(); in URL() local 375 if (sm != null) { in URL() 377 checkSpecifyHandler(sm); in URL() 521 SecurityManager sm = System.getSecurityManager(); in URL() local 522 if (sm != null) { in URL() 523 checkSpecifyHandler(sm); in URL() 652 private void checkSpecifyHandler(SecurityManager sm) { in checkSpecifyHandler() argument 653 sm.checkPermission(SecurityConstants.SPECIFY_HANDLER_PERMISSION); in checkSpecifyHandler() 1031 SecurityManager sm = System.getSecurityManager(); in openConnection() local 1032 if (p.type() != Proxy.Type.DIRECT && sm != null) { in openConnection() [all …]
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | HttpsURLConnection.java | 236 SecurityManager sm = System.getSecurityManager(); in setDefaultHostnameVerifier() local 237 if (sm != null) { in setDefaultHostnameVerifier() 238 sm.checkPermission(new SSLPermission("setHostnameVerifier")); in setDefaultHostnameVerifier() 320 SecurityManager sm = System.getSecurityManager(); in setDefaultSSLSocketFactory() local 321 if (sm != null) { in setDefaultSSLSocketFactory() 322 sm.checkSetFactory(); in setDefaultSSLSocketFactory() 366 SecurityManager sm = System.getSecurityManager(); in setSSLSocketFactory() local 367 if (sm != null) { in setSSLSocketFactory() 368 sm.checkSetFactory(); in setSSLSocketFactory()
|
D | SSLContext.java | 151 SecurityManager sm = System.getSecurityManager(); in setDefault() local 152 if (sm != null) { in setDefault() 153 sm.checkPermission(new SSLPermission("setDefaultSSLContext")); in setDefault()
|
/libcore/ojluni/src/main/java/javax/security/auth/ |
D | Subject.java | 239 java.lang.SecurityManager sm = System.getSecurityManager(); in setReadOnly() local 240 if (sm != null) { in setReadOnly() 241 sm.checkPermission(AuthPermissionHolder.SET_READ_ONLY_PERMISSION); in setReadOnly() 285 java.lang.SecurityManager sm = System.getSecurityManager(); in getSubject() local 286 if (sm != null) { in getSubject() 287 sm.checkPermission(AuthPermissionHolder.GET_SUBJECT_PERMISSION); in getSubject() 343 java.lang.SecurityManager sm = System.getSecurityManager(); 344 if (sm != null) { 345 sm.checkPermission(AuthPermissionHolder.DO_AS_PERMISSION); 402 java.lang.SecurityManager sm = System.getSecurityManager(); [all …]
|
/libcore/ojluni/src/main/java/java/nio/charset/spi/ |
D | CharsetProvider.java | 82 SecurityManager sm = System.getSecurityManager(); in CharsetProvider() local 83 if (sm != null) in CharsetProvider() 84 sm.checkPermission(new RuntimePermission("charsetProvider")); in CharsetProvider()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/ |
D | JarFileFactory.java | 128 SecurityManager sm = System.getSecurityManager(); in getCachedJarFile() local 129 if (sm != null) { in getCachedJarFile() 131 sm.checkPermission(perm); in getCachedJarFile() 137 sm.checkRead(perm.getName()); in getCachedJarFile() 141 sm.checkConnect(url.getHost(), url.getPort()); in getCachedJarFile()
|
/libcore/ojluni/src/main/java/sun/net/ftp/ |
D | FtpClientProvider.java | 58 SecurityManager sm = System.getSecurityManager(); in FtpClientProvider() local 59 if (sm != null) { in FtpClientProvider() 60 sm.checkPermission(new RuntimePermission("ftpClientProvider")); in FtpClientProvider()
|
/libcore/ojluni/src/main/java/java/nio/channels/spi/ |
D | SelectorProvider.java | 82 SecurityManager sm = System.getSecurityManager(); in SelectorProvider() local 83 if (sm != null) in SelectorProvider() 84 sm.checkPermission(new RuntimePermission("selectorProvider")); in SelectorProvider()
|
/libcore/ojluni/src/main/java/java/io/ |
D | File.java | 1661 SecurityManager sm = System.getSecurityManager(); in getTotalSpace() local 1662 if (sm != null) { in getTotalSpace() 1663 sm.checkPermission(new RuntimePermission("getFileSystemAttributes")); in getTotalSpace() 1664 sm.checkRead(path); in getTotalSpace() 1699 SecurityManager sm = System.getSecurityManager(); in getFreeSpace() local 1700 if (sm != null) { in getFreeSpace() 1701 sm.checkPermission(new RuntimePermission("getFileSystemAttributes")); in getFreeSpace() 1702 sm.checkRead(path); in getFreeSpace() 1745 SecurityManager sm = System.getSecurityManager(); in getUsableSpace() local 1746 if (sm != null) { in getUsableSpace() [all …]
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | ServerSocketChannelImpl.java | 210 SecurityManager sm = System.getSecurityManager(); in bind() local 211 if (sm != null) in bind() 212 sm.checkListen(isa.getPort()); in bind() 258 SecurityManager sm = System.getSecurityManager(); in accept() local 259 if (sm != null) { in accept() 261 sm.checkAccept(isa.getAddress().getHostAddress(), in accept()
|
D | DatagramChannelImpl.java | 452 SecurityManager sm = System.getSecurityManager(); in send() local 453 if (sm != null) { in send() 455 sm.checkMulticast(ia); in send() 457 sm.checkConnect(ia.getHostAddress(), in send() 704 SecurityManager sm = System.getSecurityManager(); in bind() local 705 if (sm != null) { in bind() 706 sm.checkListen(isa.getPort()); in bind() 740 SecurityManager sm = System.getSecurityManager(); in connect() local 741 if (sm != null) in connect() 742 sm.checkConnect(isa.getAddress().getHostAddress(), in connect() [all …]
|