/libcore/ojluni/src/test/java/nio/channels/SelectionKey/ |
D | AtomicUpdates.java | 45 import static java.nio.channels.SelectionKey.OP_READ; 119 previous = key.interestOpsOr(OP_READ | OP_WRITE); in test() 121 assertTrue(key.interestOps() == (OP_CONNECT | OP_READ | OP_WRITE)); in test() 124 previous = key.interestOpsAnd(~(OP_READ | OP_WRITE)); in test() 125 assertTrue(previous == (OP_CONNECT | OP_READ | OP_WRITE)); in test() 134 key.interestOps(OP_READ | OP_WRITE); in test() 136 assertTrue(previous == (OP_READ | OP_WRITE)); in test() 137 assertTrue(key.interestOps() == (OP_READ | OP_WRITE)); in test() 141 assertTrue(previous == (OP_READ | OP_WRITE)); in test() 156 key.interestOpsOr(OP_READ); in test() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/ |
D | AbstractSelectableChannelTest.java | 115 SelectionKey.OP_READ, null); in test_register_LSelectorILObject() 121 acceptKey = sc.register(acceptSelector2, SelectionKey.OP_READ, null); in test_register_LSelectorILObject() 147 msc.register(acceptSelector, SelectionKey.OP_READ, null); in test_register_LSelectorILObject_IllegalArgument() 161 msc.register(acceptSelector, SelectionKey.OP_READ, null); in test_register_LSelectorILObject_IllegalArgument() 183 msc.register(acceptSelector, SelectionKey.OP_READ, null); in test_register_LSelectorILObject_IllegalArgument() 197 msc.register(acceptSelector, SelectionKey.OP_READ, null); in test_register_LSelectorILObject_IllegalArgument() 214 sc.register(null, SelectionKey.OP_READ, argObj); in test_register_LSelectorILObject_IllegalArgument() 242 SelectionKey.OP_READ, argObj); in test_keyfor_LSelector() 245 SelectionKey.OP_READ, null); in test_keyfor_LSelector() 249 SelectionKey.OP_READ, null); in test_keyfor_LSelector() [all …]
|
/libcore/ojluni/src/test/java/nio/channels/Selector/ |
D | SelectWithConsumer.java | 129 SelectionKey key = source.register(sel, SelectionKey.OP_READ); in testReadable() 135 testActionInvoked(key, SelectionKey.OP_READ); in testReadable() 171 SelectionKey key = sc.register(sel, (SelectionKey.OP_READ | in testReadableAndWriteable() 179 testActionInvoked(key, (SelectionKey.OP_READ | SelectionKey.OP_WRITE)); in testReadableAndWriteable() 197 SelectionKey key1 = source.register(sel, SelectionKey.OP_READ); in testTwoChannels() 253 SelectionKey key = source.register(sel, SelectionKey.OP_READ); in testRepeatedSelect1() 259 testActionInvoked(key, SelectionKey.OP_READ); in testRepeatedSelect1() 260 testActionInvoked(key, SelectionKey.OP_READ); in testRepeatedSelect1() 277 SelectionKey key = source.register(sel, SelectionKey.OP_READ); in testRepeatedSelect2() 283 testActionInvoked(key, SelectionKey.OP_READ); in testRepeatedSelect2() [all …]
|
D | SelectAfterRead.java | 55 sc.register(sel, SelectionKey.OP_READ); in testSelectAfterRead() 73 sc.register(sel, SelectionKey.OP_READ); in testSelectAfterRead()
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | SelectionKey.java | 296 public static final int OP_READ = 1 << 0; field in SelectionKey 354 return (readyOps() & OP_READ) != 0; in isReadable()
|
D | Pipe.java | 83 return SelectionKey.OP_READ; in validOps()
|
D | DatagramChannel.java | 201 return (SelectionKey.OP_READ in validOps()
|
D | SocketChannel.java | 219 return (SelectionKey.OP_READ in validOps()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | SourceChannelImpl.java | 132 ((intOps & SelectionKey.OP_READ) != 0)) in translateReadyOps() 133 newOps |= SelectionKey.OP_READ; in translateReadyOps() 148 if (ops == SelectionKey.OP_READ) in translateAndSetInterestOps()
|
D | SocketChannelImpl.java | 975 ((intOps & SelectionKey.OP_READ) != 0) && in translateReadyOps() 977 newOps |= SelectionKey.OP_READ; in translateReadyOps() 1030 if ((ops & SelectionKey.OP_READ) != 0) in translateAndSetInterestOps()
|
D | DatagramChannelImpl.java | 1129 ((intOps & SelectionKey.OP_READ) != 0)) in translateReadyOps() 1130 newOps |= SelectionKey.OP_READ; in translateReadyOps() 1176 if ((ops & SelectionKey.OP_READ) != 0) in translateAndSetInterestOps()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | SelectorTest.java | 131 SelectionKey.OP_CONNECT | SelectionKey.OP_READ | SelectionKey.OP_WRITE); in test_57456() 133 assertEquals(SelectionKey.OP_READ | SelectionKey.OP_WRITE, key.readyOps()); in test_57456() 166 sc.register(selector, SelectionKey.OP_READ | SelectionKey.OP_WRITE); in test28318596()
|
D | OldSocketChannelTest.java | 175 assertEquals((SelectionKey.OP_CONNECT | SelectionKey.OP_READ | in testChannelBasicStatus()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | SelectorTest.java | 118 SelectionKey key3 = sc.register(selector, SelectionKey.OP_READ); in test_keys() 339 SelectionKey key2 = sc.register(selector, SelectionKey.OP_READ); 363 final SelectionKey key = pipe.source().register(selector, SelectionKey.OP_READ); 548 sc.register(selector, SelectionKey.OP_READ); 554 sc2.register(selector, SelectionKey.OP_READ); 564 assertEquals(SelectionKey.OP_READ, key.readyOps());
|
D | SelectionKeyTest.java | 224 MockSelectionKey mockSelectionKey1 = new MockSelectionKey(SelectionKey.OP_READ); in test_isReadable()
|
D | SourceChannelTest.java | 60 assertEquals(SelectionKey.OP_READ, source.validOps()); in test_validOps()
|
/libcore/api/ |
D | current.txt | 6944 field public static final int OP_READ = 1; // 0x1
|