/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 …]
|
/libcore/ojluni/src/main/java/java/net/ |
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 | 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 | 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()
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | HttpsURLConnection.java | 276 SecurityManager sm = System.getSecurityManager(); in setDefaultHostnameVerifier() local 277 if (sm != null) { in setDefaultHostnameVerifier() 278 sm.checkPermission(new SSLPermission("setHostnameVerifier")); in setDefaultHostnameVerifier() 389 SecurityManager sm = System.getSecurityManager(); in setDefaultSSLSocketFactory() local 390 if (sm != null) { in setDefaultSSLSocketFactory() 391 sm.checkSetFactory(); in setDefaultSSLSocketFactory() 438 SecurityManager sm = System.getSecurityManager(); in setSSLSocketFactory() local 439 if (sm != null) { in setSSLSocketFactory() 440 sm.checkSetFactory(); in setSSLSocketFactory()
|
/libcore/ojluni/src/main/java/sun/net/ |
D | ExtendedOptionsImpl.java | 60 SecurityManager sm = System.getSecurityManager(); in checkSetOptionPermission() local 61 if (sm == null) { in checkSetOptionPermission() 65 sm.checkPermission(new NetworkPermission(check)); in checkSetOptionPermission() 69 SecurityManager sm = System.getSecurityManager(); in checkGetOptionPermission() local 70 if (sm == null) { in checkGetOptionPermission() 74 sm.checkPermission(new NetworkPermission(check)); in checkGetOptionPermission()
|
/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() 346 java.lang.SecurityManager sm = System.getSecurityManager(); 347 if (sm != null) { 348 sm.checkPermission(AuthPermissionHolder.DO_AS_PERMISSION); 408 java.lang.SecurityManager sm = System.getSecurityManager(); [all …]
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | AbstractUserDefinedFileAttributeView.java | 47 SecurityManager sm = System.getSecurityManager(); in checkAccess() local 48 if (sm != null) { in checkAccess() 50 sm.checkRead(file); in checkAccess() 52 sm.checkWrite(file); in checkAccess() 53 sm.checkPermission(new RuntimePermission("accessUserDefinedAttributes")); in checkAccess()
|
D | UnixFileSystem.java | 158 SecurityManager sm = System.getSecurityManager(); in getRootDirectories() 159 if (sm != null) in getRootDirectories() 160 sm.checkRead(rootDirectory.toString()); in getRootDirectories() 204 SecurityManager sm = System.getSecurityManager(); 205 if (sm != null) { 207 sm.checkRead(Util.toString(entry.dir())); 249 SecurityManager sm = System.getSecurityManager(); 250 if (sm != null) { 252 sm.checkPermission(new RuntimePermission("getFileStoreAttributes"));
|
D | UnixSecureDirectoryStream.java | 113 SecurityManager sm = System.getSecurityManager(); in newDirectoryStream() local 114 if (sm != null) { in newDirectoryStream() 191 SecurityManager sm = System.getSecurityManager(); in implDelete() local 192 if (sm != null) { in implDelete() 256 SecurityManager sm = System.getSecurityManager(); in move() local 257 if (sm != null) { in move() 353 SecurityManager sm = System.getSecurityManager(); in checkWriteAccess() local 354 if (sm != null) { in checkWriteAccess() 375 SecurityManager sm = System.getSecurityManager(); in readAttributes() local 376 if (sm != null) { in readAttributes() [all …]
|
D | UnixFileSystemProvider.java | 298 SecurityManager sm = System.getSecurityManager(); in checkAccess() local 299 if (sm != null) { in checkAccess() 301 sm.checkExec(file.getPathForPermissionCheck()); in checkAccess() 454 SecurityManager sm = System.getSecurityManager(); in createSymbolicLink() local 455 if (sm != null) { in createSymbolicLink() 456 sm.checkPermission(new LinkPermission("symbolic")); in createSymbolicLink() 474 SecurityManager sm = System.getSecurityManager(); in createLink() local 475 if (sm != null) { in createLink() 476 sm.checkPermission(new LinkPermission("hard")); in createLink() 491 SecurityManager sm = System.getSecurityManager(); in readSymbolicLink() local [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/java/nio/file/spi/ |
D | FileTypeDetector.java | 53 SecurityManager sm = System.getSecurityManager(); in checkPermission() local 54 if (sm != null) in checkPermission() 55 sm.checkPermission(new RuntimePermission("fileTypeDetector")); in checkPermission()
|
/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/lang/ |
D | System.java | 1169 SecurityManager sm = getSecurityManager(); in getProperties() local 1170 if (sm != null) { in getProperties() 1171 sm.checkPropertiesAccess(); in getProperties() 1240 SecurityManager sm = getSecurityManager(); in getProperty() local 1241 if (sm != null) { in getProperty() 1242 sm.checkPropertyAccess(key); in getProperty() 1276 SecurityManager sm = getSecurityManager(); in getProperty() local 1277 if (sm != null) { in getProperty() 1278 sm.checkPropertyAccess(key); in getProperty() 1315 SecurityManager sm = getSecurityManager(); in setProperty() local [all …]
|
/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()
|