/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/ |
D | AbstractSelectableChannelTest.java | 114 SelectionKey acceptKey = sc.register(acceptSelector1, in test_register_LSelectorILObject() 121 acceptKey = sc.register(acceptSelector2, SelectionKey.OP_READ, null); in test_register_LSelectorILObject() 129 channel.register(selector, 0); in test_register_LSelectorILObject() 147 msc.register(acceptSelector, SelectionKey.OP_READ, null); in test_register_LSelectorILObject_IllegalArgument() 153 msc.register(null, 0, null); in test_register_LSelectorILObject_IllegalArgument() 161 msc.register(acceptSelector, SelectionKey.OP_READ, null); in test_register_LSelectorILObject_IllegalArgument() 167 msc.register(null, 0, null); in test_register_LSelectorILObject_IllegalArgument() 173 msc.register(acceptSelector, 0, null); in test_register_LSelectorILObject_IllegalArgument() 183 msc.register(acceptSelector, SelectionKey.OP_READ, null); in test_register_LSelectorILObject_IllegalArgument() 189 msc.register(null, 0, null); in test_register_LSelectorILObject_IllegalArgument() [all …]
|
D | AbstractSelectorTest.java | 120 SelectionKey acceptKey = ssc.register(acceptSelector, in test_register_LSelectorI() 138 ssc.register(acceptSelector, SelectionKey.OP_ACCEPT); in test_register_LSelectorI_error() 148 ssc.register(acceptSelector, SelectionKey.OP_ACCEPT); in test_register_LSelectorI_error() 155 SelectionKey acceptKey = ssc.register(acceptSelector, in test_register_LSelectorI_error()
|
D | MockAbstractSelector.java | 48 protected SelectionKey register(AbstractSelectableChannel arg0, int arg1, in register() method in MockAbstractSelector
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | PhaserTest.java | 52 assertEquals(expectedPhase, phaser.register()); in assertTerminated() 141 assertEquals(0, phaser.register()); in testRegister1() 155 assertEquals(0, phaser.register()); in testRegister2() 159 phaser.register(); in testRegister2() 178 assertEquals(0, phaser.register()); in testRegister3() 180 assertEquals(1, phaser.register()); in testRegister3() 191 assertEquals(1, phaser.register()); in testRegister4() 204 assertEquals(0, child2.register()); in testRegisterEmptySubPhaser() 212 assertEquals(0, child2.register()); in testRegisterEmptySubPhaser() 294 assertEquals(0, phaser.register()); in testArriveAndDeregister() [all …]
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | SelectableChannel.java | 216 public abstract SelectionKey register(Selector sel, int ops, Object att) in register() method in SelectableChannel 274 public final SelectionKey register(Selector sel, int ops) in register() method in SelectableChannel 277 return register(sel, ops, null); in register()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | UnixSelectorTest.java | 65 SelectionKey mkey0 = server.serverChannel.register(sel0, SelectionKey.OP_ACCEPT); in testSelectorAcceptAndRead() 66 server.serverChannel.register(sel1, SelectionKey.OP_ACCEPT); in testSelectorAcceptAndRead() 79 socketChannel.register(sel2, SelectionKey.OP_WRITE); in testSelectorAcceptAndRead() 96 SelectionKey mkey3 = socketChannel2.register(sel3, SelectionKey.OP_WRITE); in testSelectUnConnectedChannel() 105 SelectionKey mkey4 = socketChannel2.register(sel4, SelectionKey.OP_CONNECT); in testSelectUnConnectedChannel() 111 …SelectionKey mkey5 = socketChannel2.register(sel5, SelectionKey.OP_CONNECT | SelectionKey.OP_WRITE… in testSelectUnConnectedChannel()
|
D | SelectorTest.java | 105 SelectionKey key = ssc.register(selector, SelectionKey.OP_ACCEPT); in test_keys() 118 SelectionKey key3 = sc.register(selector, SelectionKey.OP_READ); in test_keys() 152 ssc.register(selector, SelectionKey.OP_ACCEPT); in test_selectedKeys() 333 SelectionKey key1 = ssc.register(selector, SelectionKey.OP_ACCEPT); 339 SelectionKey key2 = sc.register(selector, SelectionKey.OP_READ); 363 final SelectionKey key = pipe.source().register(selector, SelectionKey.OP_READ); 396 sc.register(selector, SelectionKey.OP_CONNECT); 414 SelectionKey key1 = sc.register(selector, SelectionKey.OP_WRITE); 445 channel.register(selector, SelectionKey.OP_CONNECT); 472 ssc.register(selector, SelectionKey.OP_ACCEPT); [all …]
|
D | SelectableChannelTest.java | 40 msc.register(Selector.open(), SelectionKey.OP_ACCEPT); in test_register_LSelectorI() 73 public SelectionKey register(Selector sel, int ops, Object att) in register() method in SelectableChannelTest.MockSelectableChannel
|
D | SelectionKeyTest.java | 47 selectionKey = sc.register(selector, SelectionKey.OP_CONNECT); in setUp()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | SelectorTest.java | 46 SelectionKey key = sc.register(selector, SelectionKey.OP_CONNECT); in testNonBlockingConnect_immediate() 64 SelectionKey key = sc.register(selector, SelectionKey.OP_CONNECT); in testNonBlockingConnect_slow() 149 SelectionKey key = sc.register(selector, in test_57456() 185 sc.register(selector, SelectionKey.OP_READ | SelectionKey.OP_WRITE); in test28318596()
|
D | SocketChannelTest.java | 70 SelectionKey selectionKey = sc.register(selector, SelectionKey.OP_CONNECT); in test_56684()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | DevPollArrayWrapper.java | 139 register(wfd, fd0, POLLIN); in initInterrupt() 207 register(wfd, fd, POLLREMOVE); in release() 313 private native void register(int wfd, int fd, int mask); in register() method in DevPollArrayWrapper
|
D | SelectorImpl.java | 124 protected final SelectionKey register(AbstractSelectableChannel ch, in register() method in SelectorImpl
|
D | ServerSocketAdaptor.java | 115 sk = ssc.register(sel, SelectionKey.OP_ACCEPT); in accept()
|
D | SocketAdaptor.java | 117 sk = sc.register(sel, SelectionKey.OP_CONNECT); in connect() 232 sk = sc.register(sel, SelectionKey.OP_READ); in read()
|
D | DatagramSocketAdaptor.java | 189 sk = dc.register(sel, SelectionKey.OP_READ); in receive()
|
/libcore/ojluni/src/main/java/java/nio/channels/spi/ |
D | AbstractSelectableChannel.java | 188 public final SelectionKey register(Selector sel, int ops, in register() method in AbstractSelectableChannel 209 k = ((AbstractSelector)sel).register(this, ops, att); in register()
|
D | AbstractSelector.java | 172 protected abstract SelectionKey register(AbstractSelectableChannel ch, in register() method in AbstractSelector
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ArrayBlockingQueue.java | 770 register(initial); in Itrs() 837 void register(Itr itr) { in register() method in ArrayBlockingQueue.Itrs 1000 itrs.register(this); // in this order in Itr()
|
D | Phaser.java | 558 public int register() { in register() method in Phaser
|
/libcore/ojluni/src/main/java/java/io/ |
D | ObjectInputStream.java | 577 vlist.register(obj, prio); in registerValidation() 2223 void register(ObjectInputValidation obj, int priority) in register() method in ObjectInputStream.ValidationList
|