Home
last modified time | relevance | path

Searched refs:register (Results 1 – 21 of 21) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/
DAbstractSelectableChannelTest.java114 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 …]
DAbstractSelectorTest.java120 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()
DMockAbstractSelector.java48 protected SelectionKey register(AbstractSelectableChannel arg0, int arg1, in register() method in MockAbstractSelector
/libcore/jsr166-tests/src/test/java/jsr166/
DPhaserTest.java52 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/
DSelectableChannel.java216 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/
DUnixSelectorTest.java65 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()
DSelectorTest.java105 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 …]
DSelectableChannelTest.java40 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
DSelectionKeyTest.java47 selectionKey = sc.register(selector, SelectionKey.OP_CONNECT); in setUp()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DSelectorTest.java46 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()
DSocketChannelTest.java70 SelectionKey selectionKey = sc.register(selector, SelectionKey.OP_CONNECT); in test_56684()
/libcore/ojluni/src/main/java/sun/nio/ch/
DDevPollArrayWrapper.java139 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
DSelectorImpl.java124 protected final SelectionKey register(AbstractSelectableChannel ch, in register() method in SelectorImpl
DServerSocketAdaptor.java115 sk = ssc.register(sel, SelectionKey.OP_ACCEPT); in accept()
DSocketAdaptor.java117 sk = sc.register(sel, SelectionKey.OP_CONNECT); in connect()
232 sk = sc.register(sel, SelectionKey.OP_READ); in read()
DDatagramSocketAdaptor.java189 sk = dc.register(sel, SelectionKey.OP_READ); in receive()
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAbstractSelectableChannel.java188 public final SelectionKey register(Selector sel, int ops, in register() method in AbstractSelectableChannel
209 k = ((AbstractSelector)sel).register(this, ops, att); in register()
DAbstractSelector.java172 protected abstract SelectionKey register(AbstractSelectableChannel ch, in register() method in AbstractSelector
/libcore/luni/src/main/java/java/util/concurrent/
DArrayBlockingQueue.java770 register(initial); in Itrs()
837 void register(Itr itr) { in register() method in ArrayBlockingQueue.Itrs
1000 itrs.register(this); // in this order in Itr()
DPhaser.java558 public int register() { in register() method in Phaser
/libcore/ojluni/src/main/java/java/io/
DObjectInputStream.java577 vlist.register(obj, prio); in registerValidation()
2223 void register(ObjectInputValidation obj, int priority) in register() method in ObjectInputStream.ValidationList