Home
last modified time | relevance | path

Searched refs:selector (Results 1 – 22 of 22) sorted by relevance

/libcore/luni/src/test/java/tests/security/cert/
DX509CRLSelector2Test.java51 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 …]
DX509CertSelectorTest.java212 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 …]
DX509CRLSelectorTest.java78 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()
DCertStore2Test.java354 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/
DSelectorTest.java37 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 …]
DSocketChannelTest.java82 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/
DSelectorTest.java44 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 …]
DSelectionKeyTest.java34 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/
DSelectionKeyImpl.java38 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/
DProxySelectorTest.java61 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/
DAbstractSelectableChannel.java90 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()
DAbstractSelectionKey.java60 ((AbstractSelector) selector()).cancel(this); in cancel()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
DMyCertStoreSpi.java51 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/
DCertStoreSpi.java54 public abstract Collection<? extends Certificate> engineGetCertificates(CertSelector selector) in engineGetCertificates() argument
69 public abstract Collection<? extends CRL> engineGetCRLs(CRLSelector selector) in engineGetCRLs() argument
DCertStore.java240 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/
DProxySelector.java107 public static void setDefault(ProxySelector selector) { in setDefault() argument
108 defaultSelector = selector; in setDefault()
/libcore/luni/src/main/java/java/nio/channels/
DSelectableChannel.java141 public final SelectionKey register(Selector selector, int operations) in register() argument
143 return register(selector, operations, null); in register()
DSelectionKey.java217 public abstract Selector selector(); in selector() method in SelectionKey
/libcore/luni/src/main/java/libcore/net/url/
DFtpURLConnection.java175 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/
DAbstractSelectionKeyTest.java60 public Selector selector() { in selector() method in AbstractSelectionKeyTest.MockSelectionKey
DAbstractSelectableChannelTest.java128 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/
DProviderTest.java556 public Collection<? extends Certificate> engineGetCertificates(CertSelector selector) in engineGetCertificates() argument
562 public Collection<? extends CRL> engineGetCRLs(CRLSelector selector) in engineGetCRLs() argument