Home
last modified time | relevance | path

Searched refs:interestOps (Results 1 – 9 of 9) sorted by relevance

/libcore/ojluni/src/test/java/nio/channels/SelectionKey/
DAtomicUpdates.java79 public int interestOps() { in keyFor() method
84 public SelectionKey interestOps(int ops) { in keyFor() method
101 key.interestOps(0); in test()
106 assertTrue(key.interestOps() == 0); in test()
111 assertTrue(key.interestOps() == OP_CONNECT); in test()
116 assertTrue(key.interestOps() == OP_CONNECT); in test()
121 assertTrue(key.interestOps() == (OP_CONNECT | OP_READ | OP_WRITE)); in test()
126 assertTrue(key.interestOps() == OP_CONNECT); in test()
131 assertTrue(key.interestOps() == 0); in test()
134 key.interestOps(OP_READ | OP_WRITE); in test()
[all …]
/libcore/ojluni/src/main/java/java/nio/channels/
DSelectionKey.java168 public abstract int interestOps(); in interestOps() method in SelectionKey
190 public abstract SelectionKey interestOps(int ops); in interestOps() method in SelectionKey
223 int oldVal = interestOps(); in interestOpsOr()
224 interestOps(oldVal | ops); in interestOpsOr()
263 int oldVal = interestOps(); in interestOpsAnd()
264 interestOps(oldVal & ops); in interestOpsAnd()
/libcore/ojluni/src/main/java/sun/nio/ch/
DSelectionKeyImpl.java47 private volatile int interestOps; field in SelectionKeyImpl
76 public int interestOps() { in interestOps() method in SelectionKeyImpl
78 return interestOps; in interestOps()
81 public SelectionKey interestOps(int ops) { in interestOps() method in SelectionKeyImpl
106 interestOps = ops; in nioInterestOps()
111 return interestOps; in nioInterestOps()
DSelectorImpl.java134 k.interestOps(ops); in register()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSelectionKeyTest.java59 private int interestOps; field in SelectionKeyTest.MockSelectionKey
62 interestOps = ops; in MockSelectionKey()
73 public int interestOps() { in interestOps() method in SelectionKeyTest.MockSelectionKey
77 public SelectionKey interestOps(int operations) { in interestOps() method in SelectionKeyTest.MockSelectionKey
86 return interestOps; in readyOps()
137 assertEquals(SelectionKey.OP_CONNECT, selectionKey.interestOps()); in test_interestOps()
144 selectionKey.interestOps(SelectionKey.OP_WRITE); in test_interestOpsI()
145 assertEquals(SelectionKey.OP_WRITE, selectionKey.interestOps()); in test_interestOpsI()
148 selectionKey.interestOps(SelectionKey.OP_ACCEPT); in test_interestOpsI()
155 selectionKey.interestOps(~sc.validOps()); in test_interestOpsI()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/
DAbstractSelectionKeyTest.java64 public int interestOps() { in interestOps() method in AbstractSelectionKeyTest.MockSelectionKey
68 public SelectionKey interestOps(int arg0) { in interestOps() method in AbstractSelectionKeyTest.MockSelectionKey
/libcore/ojluni/src/test/java/nio/channels/Selector/
DSelectWithConsumer.java65 int interestOps = key.interestOps(); in testActionInvoked() local
74 while ((key.readyOps() & interestOps) != expectedOps) { in testActionInvoked()
86 assertTrue((readyOps & interestOps) != 0); in testActionInvoked()
99 assertTrue((readyOps & interestOps) != 0); in testActionInvoked()
112 assertTrue((readyOps & interestOps) != 0); in testActionInvoked()
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAbstractSelectableChannel.java217 k.interestOps(ops); in register()
/libcore/api/
Dcurrent.txt6931 method public abstract int interestOps();
6932 method public abstract java.nio.channels.SelectionKey interestOps(int);