Searched defs:ops (Results 1 - 19 of 19) sorted by relevance

/libcore/ojluni/src/main/java/java/nio/channels/
H A DSelectableChannel.java159 * interest set will have been changed to <tt>ops</tt>, as if by invoking
167 * The key's initial interest set will be <tt>ops</tt> and its attachment
185 * @param ops
209 * If a bit in the <tt>ops</tt> set does not correspond to an
216 public abstract SelectionKey register(Selector sel, int ops, Object att) argument
221 // if (channel found) { set interest ops -- may block in selector;
235 * <blockquote><tt>sc.register(sel, ops)</tt></blockquote>
241 * register}(sel, ops, null)</tt></blockquote>
246 * @param ops
267 * If a bit in <tt>ops</t
274 register(Selector sel, int ops) argument
[all...]
H A DSelectionKey.java187 * @param ops The new interest set
194 * <tt>(ops & ~channel().validOps()) != 0</tt>
199 public abstract SelectionKey interestOps(int ops); argument
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DSelChImpl.java46 * Adds the specified ops if present in interestOps. The specified
47 * ops are turned on without affecting the other ops.
53 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk); argument
56 * Sets the specified ops if present in interestOps. The specified
57 * ops are turned on, and all other ops are turned off.
63 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk); argument
65 void translateAndSetInterestOps(int ops, SelectionKeyImpl sk); argument
H A DSelectionKeyImpl.java81 public SelectionKey interestOps(int ops) { argument
83 return nioInterestOps(ops);
94 void nioReadyOps(int ops) { // package-private argument
95 readyOps = ops;
102 SelectionKey nioInterestOps(int ops) { // package-private argument
103 if ((ops & ~channel().validOps()) != 0)
105 channel.translateAndSetInterestOps(ops, this);
106 interestOps = ops;
H A DAbstractPollSelectorImpl.java70 void putEventOps(SelectionKeyImpl sk, int ops) { argument
74 pollWrapper.putEventOps(sk.getIndex(), ops);
H A DDevPollSelectorImpl.java183 void putEventOps(SelectionKeyImpl sk, int ops) { argument
187 pollWrapper.setInterest(fd, ops);
H A DEPollSelectorImpl.java183 void putEventOps(SelectionKeyImpl ski, int ops) { argument
187 pollWrapper.setInterest(ch.getFDVal(), ops);
H A DSelectorImpl.java122 void putEventOps(SelectionKeyImpl sk, int ops) { } argument
125 int ops,
135 k.interestOps(ops);
124 register(AbstractSelectableChannel ch, int ops, Object attachment) argument
H A DSinkChannelImpl.java115 public boolean translateReadyOps(int ops, int initialOps, argument
121 if ((ops & PollArrayWrapper.POLLNVAL) != 0)
124 if ((ops & (PollArrayWrapper.POLLERR
131 if (((ops & PollArrayWrapper.POLLOUT) != 0) &&
139 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { argument
140 return translateReadyOps(ops, sk.nioReadyOps(), sk);
143 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { argument
144 return translateReadyOps(ops, 0, sk);
147 public void translateAndSetInterestOps(int ops, SelectionKeyImpl sk) { argument
148 if (ops
[all...]
H A DSourceChannelImpl.java116 public boolean translateReadyOps(int ops, int initialOps, argument
122 if ((ops & PollArrayWrapper.POLLNVAL) != 0)
125 if ((ops & (PollArrayWrapper.POLLERR
132 if (((ops & PollArrayWrapper.POLLIN) != 0) &&
140 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { argument
141 return translateReadyOps(ops, sk.nioReadyOps(), sk);
144 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { argument
145 return translateReadyOps(ops, 0, sk);
148 public void translateAndSetInterestOps(int ops, SelectionKeyImpl sk) { argument
149 if (ops
[all...]
H A DServerSocketChannelImpl.java306 public boolean translateReadyOps(int ops, int initialOps, argument
312 if ((ops & PollArrayWrapper.POLLNVAL) != 0) {
319 if ((ops & (PollArrayWrapper.POLLERR
326 if (((ops & PollArrayWrapper.POLLIN) != 0) &&
334 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { argument
335 return translateReadyOps(ops, sk.nioReadyOps(), sk);
338 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { argument
339 return translateReadyOps(ops, 0, sk);
345 public void translateAndSetInterestOps(int ops, SelectionKeyImpl sk) { argument
348 // Translate ops
[all...]
H A DSocketChannelImpl.java913 * Translates native poll revent ops into a ready operation ops
915 public boolean translateReadyOps(int ops, int initialOps, argument
921 if ((ops & PollArrayWrapper.POLLNVAL) != 0) {
928 if ((ops & (PollArrayWrapper.POLLERR
938 if (((ops & PollArrayWrapper.POLLIN) != 0) &&
943 if (((ops & PollArrayWrapper.POLLCONN) != 0) &&
950 if (((ops & PollArrayWrapper.POLLOUT) != 0) &&
959 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { argument
960 return translateReadyOps(ops, s
963 translateAndSetReadyOps(int ops, SelectionKeyImpl sk) argument
970 translateAndSetInterestOps(int ops, SelectionKeyImpl sk) argument
[all...]
H A DDatagramChannelImpl.java829 public boolean translateReadyOps(int ops, int initialOps, argument
835 if ((ops & PollArrayWrapper.POLLNVAL) != 0) {
842 if ((ops & (PollArrayWrapper.POLLERR
849 if (((ops & PollArrayWrapper.POLLIN) != 0) &&
853 if (((ops & PollArrayWrapper.POLLOUT) != 0) &&
861 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { argument
862 return translateReadyOps(ops, sk.nioReadyOps(), sk);
865 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { argument
866 return translateReadyOps(ops, 0, sk);
872 public void translateAndSetInterestOps(int ops, SelectionKeyImp argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DSelectableChannelTest.java73 public SelectionKey register(Selector sel, int ops, Object att) argument
H A DSelectionKeyTest.java61 MockSelectionKey(int ops) { argument
62 interestOps = ops;
/libcore/ojluni/src/main/java/java/nio/channels/spi/
H A DAbstractSelector.java163 * @param ops
173 int ops, Object att);
172 register(AbstractSelectableChannel ch, int ops, Object att) argument
H A DAbstractSelectableChannel.java188 public final SelectionKey register(Selector sel, int ops, argument
195 if ((ops & ~validOps()) != 0)
201 k.interestOps(ops);
209 k = ((AbstractSelector)sel).register(this, ops, att);
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
H A DOpTestCase.java222 ExerciseDataStreamBuilder<T, U, S_IN, S_OUT> ops(IntermediateTestOp... ops) { argument
223 return new ExerciseDataStreamBuilder<>(data, (S_IN s) -> (S_OUT) chain(s, ops));
622 private static AbstractPipeline<?, ?, ?> chain(AbstractPipeline pipe, IntermediateTestOp... ops) { argument
623 for (IntermediateTestOp op : ops)
634 public static AbstractPipeline<?, ?, ?> chain(BaseStream pipe, IntermediateTestOp... ops) { argument
635 return chain((AbstractPipeline) pipe, ops);
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
H A DOpTestCase.java223 ExerciseDataStreamBuilder<T, U, S_IN, S_OUT> ops(IntermediateTestOp... ops) { argument
224 return new ExerciseDataStreamBuilder<>(data, (S_IN s) -> (S_OUT) chain(s, ops));
623 private static AbstractPipeline<?, ?, ?> chain(AbstractPipeline pipe, IntermediateTestOp... ops) { argument
624 for (IntermediateTestOp op : ops)
635 public static AbstractPipeline<?, ?, ?> chain(BaseStream pipe, IntermediateTestOp... ops) { argument
636 return chain((AbstractPipeline) pipe, ops);

Completed in 690 milliseconds