/libcore/luni/src/test/java/tests/security/cert/ |
D | X509CRLSelector2Test.java | 51 X509CRLSelector selector = new X509CRLSelector(); in testX509CRLSelector() local 52 assertNull(selector.getDateAndTime()); in testX509CRLSelector() 53 assertNull(selector.getCertificateChecking()); in testX509CRLSelector() 54 assertNull(selector.getIssuerNames()); in testX509CRLSelector() 55 assertNull(selector.getIssuers()); in testX509CRLSelector() 56 assertNull(selector.getMaxCRL()); in testX509CRLSelector() 57 assertNull(selector.getMinCRL()); in testX509CRLSelector() 66 X509CRLSelector selector = new X509CRLSelector(); in testAddIssuerLjavax_security_auth_x500_X500Principal02() local 72 selector.addIssuer(iss1); in testAddIssuerLjavax_security_auth_x500_X500Principal02() 73 assertTrue("The CRL should match the selection criteria.", selector in testAddIssuerLjavax_security_auth_x500_X500Principal02() [all …]
|
D | X509CertSelectorTest.java | 212 X509CertSelector selector = new X509CertSelector(); in test_X509CertSelector() local 213 assertEquals(-1, selector.getBasicConstraints()); in test_X509CertSelector() 214 assertTrue(selector.getMatchAllSubjectAltNames()); in test_X509CertSelector() 221 X509CertSelector selector = new X509CertSelector(); in test_clone() local 222 X509CertSelector selector1 = (X509CertSelector) selector.clone(); in test_clone() 224 assertEquals(selector.getMatchAllSubjectAltNames(), selector1.getMatchAllSubjectAltNames()); in test_clone() 225 assertEquals(selector.getAuthorityKeyIdentifier(), selector1.getAuthorityKeyIdentifier()); in test_clone() 226 assertEquals(selector.getBasicConstraints(), selector1.getBasicConstraints()); in test_clone() 227 assertEquals(selector.getCertificate(), selector1.getCertificate()); in test_clone() 228 assertEquals(selector.getCertificateValid(), selector1.getCertificateValid()); in test_clone() [all …]
|
D | X509CRLSelectorTest.java | 78 X509CRLSelector selector = new X509CRLSelector(); in test_addIssuerNameLjava_lang_String02() local 81 selector.addIssuerName((String) null); in test_addIssuerNameLjava_lang_String02() 118 X509CRLSelector selector = new X509CRLSelector(); in test_setIssuerNamesLjava_util_Collection01() local 119 selector.setIssuerNames(new TreeSet<Comparable>() { in test_setIssuerNamesLjava_util_Collection01()
|
D | CertStore2Test.java | 354 public Collection<? extends CRL> engineGetCRLs(CRLSelector selector) in engineGetCRLs() argument 356 if (selector != null) { in engineGetCRLs() 357 if (!(selector instanceof MyCRLSelector)) { in engineGetCRLs() 367 CertSelector selector) throws CertStoreException { in engineGetCertificates() argument 368 if (selector != null) { in engineGetCertificates() 369 if (!(selector instanceof MyCertSelector)) { in engineGetCertificates()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | SelectorTest.java | 37 Selector selector = Selector.open(); in testNonBlockingConnect_immediate() local 46 SelectionKey key = sc.register(selector, SelectionKey.OP_CONNECT); in testNonBlockingConnect_immediate() 47 assertEquals(1, selector.select()); in testNonBlockingConnect_immediate() 51 selector.close(); in testNonBlockingConnect_immediate() 58 Selector selector = Selector.open(); in testNonBlockingConnect_slow() local 64 SelectionKey key = sc.register(selector, SelectionKey.OP_CONNECT); in testNonBlockingConnect_slow() 65 assertEquals(1, selector.select()); in testNonBlockingConnect_slow() 69 selector.close(); in testNonBlockingConnect_slow() 79 Selector selector = Selector.open(); in testEINTR() local 90 assertEquals(0, selector.select()); in testEINTR() [all …]
|
D | SocketChannelTest.java | 82 Selector selector = Selector.open(); in test_56684() local 83 SelectionKey selectionKey = sc.register(selector, SelectionKey.OP_CONNECT); in test_56684()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | SelectorTest.java | 44 private Selector selector; field in SelectorTest 59 selector = Selector.open(); in setUp() 69 selector.close(); in tearDown() 80 assertNotNull(selector); in test_open() 87 assertTrue(selector.isOpen()); in test_isOpen() 88 selector.close(); in test_isOpen() 89 assertFalse(selector.isOpen()); in test_isOpen() 97 assertNotNull(selector.provider()); in test_provider() 98 assertSame(SelectorProvider.provider(), selector.provider()); in test_provider() 105 SelectionKey key = ssc.register(selector, SelectionKey.OP_ACCEPT); in test_keys() [all …]
|
D | SelectionKeyTest.java | 34 Selector selector; field in SelectionKeyTest 44 selector = Selector.open(); in setUp() 47 selectionKey = sc.register(selector, SelectionKey.OP_CONNECT); in setUp() 53 selector.close(); in tearDown() 54 selector = null; in tearDown() 89 public Selector selector() { in selector() method in SelectionKeyTest.MockSelectionKey 196 selector.close(); in test_isValid_SelectorClosed() 301 selector.select(); in test_readyOps() 314 assertSame(selector, selectionKey.selector()); in test_selector() 316 assertSame(selector, selectionKey.selector()); in test_selector()
|
/libcore/luni/src/main/java/java/nio/ |
D | SelectionKeyImpl.java | 38 private SelectorImpl selector; field in SelectionKeyImpl 41 Object attachment, SelectorImpl selector) { in SelectionKeyImpl() argument 44 this.selector = selector; in SelectionKeyImpl() 56 synchronized (selector.keysLock) { in interestOps() 62 synchronized (selector.keysLock) { in interestOpsNoCheck() 73 synchronized (selector.keysLock) { in interestOps() 86 public Selector selector() { in selector() method in SelectionKeyImpl 87 return selector; in selector()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | ProxySelectorTest.java | 61 private ProxySelector selector = ProxySelector.getDefault(); field in ProxySelectorTest 113 proxyList = selector.select(httpUri); in test_selectLjava_net_URI_SelectExact() 129 proxyList = selector.select(httpUri); in test_selectLjava_net_URI_SelectExact() 132 proxyList = selector.select(httpsUri); in test_selectLjava_net_URI_SelectExact() 135 proxyList = selector.select(ftpUri); in test_selectLjava_net_URI_SelectExact() 138 proxyList = selector.select(tcpUri); in test_selectLjava_net_URI_SelectExact() 154 proxyList = selector.select(httpUri); in test_selectLjava_net_URI_SelectExact_NullHost() 170 proxyList = selector.select(httpUri); in test_selectLjava_net_URI_SelectExact_NullHost() 174 proxyList = selector.select(httpsUri); in test_selectLjava_net_URI_SelectExact_NullHost() 178 proxyList = selector.select(ftpUri); in test_selectLjava_net_URI_SelectExact_NullHost() [all …]
|
/libcore/luni/src/main/java/java/nio/channels/spi/ |
D | AbstractSelectableChannel.java | 90 synchronized public final SelectionKey keyFor(Selector selector) { in keyFor() argument 92 if (key != null && key.selector() == selector) { in keyFor() 127 public final SelectionKey register(Selector selector, int interestSet, in register() argument 140 if (!selector.isOpen()) { in register() 148 SelectionKey key = keyFor(selector); in register() 150 key = ((AbstractSelector) selector).register(this, interestSet, attachment); in register()
|
D | AbstractSelectionKey.java | 60 ((AbstractSelector) selector()).cancel(this); in cancel()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
D | MyCertStoreSpi.java | 51 public Collection<Certificate> engineGetCertificates(CertSelector selector) in engineGetCertificates() argument 53 if (selector == null) { in engineGetCertificates() 59 public Collection<CRL> engineGetCRLs(CRLSelector selector) in engineGetCRLs() argument 61 if (selector == null) { in engineGetCRLs()
|
/libcore/luni/src/main/java/java/security/cert/ |
D | CertStoreSpi.java | 54 public abstract Collection<? extends Certificate> engineGetCertificates(CertSelector selector) in engineGetCertificates() argument 69 public abstract Collection<? extends CRL> engineGetCRLs(CRLSelector selector) in engineGetCRLs() argument
|
D | CertStore.java | 240 public final Collection<? extends Certificate> getCertificates(CertSelector selector) in getCertificates() argument 242 return spiImpl.engineGetCertificates(selector); in getCertificates() 257 public final Collection<? extends CRL> getCRLs(CRLSelector selector) in getCRLs() argument 259 return spiImpl.engineGetCRLs(selector); in getCRLs()
|
/libcore/luni/src/main/java/java/net/ |
D | ProxySelector.java | 107 public static void setDefault(ProxySelector selector) { in setDefault() argument 108 defaultSelector = selector; in setDefault()
|
/libcore/luni/src/main/java/java/nio/channels/ |
D | SelectableChannel.java | 141 public final SelectionKey register(Selector selector, int operations) in register() argument 143 return register(selector, operations, null); in register()
|
D | SelectionKey.java | 217 public abstract Selector selector(); in selector() method in SelectionKey
|
/libcore/luni/src/main/java/libcore/net/url/ |
D | FtpURLConnection.java | 175 ProxySelector selector = ProxySelector.getDefault(); in connect() local 176 if (selector != null) { in connect() 177 proxyList = selector.select(uri); in connect() 184 ProxySelector selector = ProxySelector.getDefault(); in connect() local 197 if (selector != null && Proxy.NO_PROXY != currentProxy) { in connect() 198 selector.connectFailed(uri, currentProxy.address(), ioe); in connect()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/ |
D | AbstractSelectionKeyTest.java | 60 public Selector selector() { in selector() method in AbstractSelectionKeyTest.MockSelectionKey
|
D | AbstractSelectableChannelTest.java | 128 Selector selector = Selector.open(); in test_register_LSelectorILObject() local 129 channel.register(selector, 0); in test_register_LSelectorILObject() 130 selector.close(); in test_register_LSelectorILObject()
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | ProviderTest.java | 556 public Collection<? extends Certificate> engineGetCertificates(CertSelector selector) in engineGetCertificates() argument 562 public Collection<? extends CRL> engineGetCRLs(CRLSelector selector) in engineGetCRLs() argument
|