Home
last modified time | relevance | path

Searched refs:sm (Results 1 – 25 of 65) sorted by relevance

123

/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentSkipListSubSetTest.java506 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 …]
DTreeSubSetTest.java503 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 …]
DTreeSubMapTest.java459 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 …]
DConcurrentSkipListSubMapTest.java624 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 …]
DTreeSetTest.java552 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 …]
DConcurrentSkipListSetTest.java549 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 …]
DTreeMapTest.java632 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 …]
DConcurrentSkipListMapTest.java827 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/
DResponseCache.java84 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()
DCookieHandler.java73 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()
DAuthenticator.java123 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 …]
DProxySelector.java92 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/
DHttpsURLConnection.java275 SecurityManager sm = System.getSecurityManager(); in setDefaultHostnameVerifier() local
276 if (sm != null) { in setDefaultHostnameVerifier()
277 sm.checkPermission(new SSLPermission("setHostnameVerifier")); in setDefaultHostnameVerifier()
373 SecurityManager sm = System.getSecurityManager(); in setDefaultSSLSocketFactory() local
374 if (sm != null) { in setDefaultSSLSocketFactory()
375 sm.checkSetFactory(); in setDefaultSSLSocketFactory()
422 SecurityManager sm = System.getSecurityManager(); in setSSLSocketFactory() local
423 if (sm != null) { in setSSLSocketFactory()
424 sm.checkSetFactory(); in setSSLSocketFactory()
/libcore/ojluni/src/main/java/sun/net/
DExtendedOptionsImpl.java60 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/
DSubject.java239 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/
DAbstractUserDefinedFileAttributeView.java47 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()
DUnixFileSystem.java158 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"));
DUnixSecureDirectoryStream.java113 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 …]
DUnixFileSystemProvider.java298 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/
DCharsetProvider.java82 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/
DFileTypeDetector.java53 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/ftp/
DFtpClientProvider.java58 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/sun/net/www/protocol/jar/
DJarFileFactory.java128 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/java/lang/
DSystem.java1168 SecurityManager sm = getSecurityManager(); in getProperties() local
1169 if (sm != null) { in getProperties()
1170 sm.checkPropertiesAccess(); in getProperties()
1239 SecurityManager sm = getSecurityManager(); in getProperty() local
1240 if (sm != null) { in getProperty()
1241 sm.checkPropertyAccess(key); in getProperty()
1275 SecurityManager sm = getSecurityManager(); in getProperty() local
1276 if (sm != null) { in getProperty()
1277 sm.checkPropertyAccess(key); in getProperty()
1314 SecurityManager sm = getSecurityManager(); in setProperty() local
[all …]
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAsynchronousChannelProvider.java55 SecurityManager sm = System.getSecurityManager(); in checkPermission() local
56 if (sm != null) in checkPermission()
57 sm.checkPermission(new RuntimePermission("asynchronousChannelProvider")); in checkPermission()

123