Searched defs:group (Results 1 - 25 of 35) sorted by path

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DMulticastSocketTest.java53 // We use the "good" addresses for our actual group, and the "bad" addresses are for
54 // a group that we won't actually set up.
241 private void test_joinGroupLjava_net_InetAddress(InetAddress group) throws Exception { argument
243 receivingSocket.joinGroup(group);
248 new InetSocketAddress(group, receivingSocket.getLocalPort());
329 NetworkInterface networkInterface, InetAddress group, InetAddress group2)
341 new InetSocketAddress(group, receivingSocket.getLocalPort());
342 // Join the group. A null network interface is valid and means "use default".
365 groupAddress = new InetSocketAddress(group, receivingSocket.getLocalPort());
366 // Join the group
328 test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface( NetworkInterface networkInterface, InetAddress group, InetAddress group2) argument
474 test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface_multiple_joins( NetworkInterface networkInterface, InetAddress group) argument
504 test_leaveGroupLjava_net_InetAddress(InetAddress group) argument
576 test_leaveGroupLjava_net_SocketAddressLjava_net_NetworkInterface( NetworkInterface networkInterface, InetAddress group, InetAddress group2) argument
626 test_sendLjava_net_DatagramPacketB(InetAddress group) argument
730 test_setNetworkInterfaceLjava_net_NetworkInterface(InetAddress group) argument
859 test_setLoopbackModeSendReceive(InetAddress group) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DMockDatagramChannel.java120 public MembershipKey join(InetAddress group, NetworkInterface interf) { argument
125 public MembershipKey join(InetAddress group, NetworkInterface interf, InetAddress source) argument
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldThreadGroupTest.java32 public MyThread(ThreadGroup group, String name) argument
34 super(group, name);
75 ThreadGroup tg = new ThreadGroup("group count");
88 new ThreadGroup(tg, "test group 1");
91 new ThreadGroup(tg, "test group 2");
124 ThreadGroup group = new ThreadGroup(initialThreadGroup, "enumerateThreadArray");
126 List<MyThread> newThreads = populateGroupsWithThreads(group, groupSize);
156 ThreadGroup childGroup = new ThreadGroup(initialThreadGroup, "child group");
269 "Test group");
270 assertFalse("Test group i
296 launchFiveSecondDummyThread(ThreadGroup group) argument
368 populateGroupsWithThreads(ThreadGroup group, int threadCount) argument
374 populateGroupsWithThreads(ThreadGroup group, int threadCount, List<MyThread> out) argument
[all...]
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DDatagramChannelMulticastTest.java58 // We use the "good" addresses for our actual group, and the "bad" addresses are for
59 // a group that we won't actually set up.
228 private void check_joinAnySource(InetAddress group, InetAddress group2, argument
233 // Set up a receiver join the group on ipv4NetworkInterface
236 receiverChannel.join(group, networkInterface);
239 sendMulticastMessage(group, localAddress.getPort(), msg, networkInterface);
339 // start server which is joined to the group and has
344 InetAddress group = null;
348 group = GOOD_MULTICAST_IPv4;
352 group
409 check_joinAnySource_multiple_joins(InetAddress group, NetworkInterface networkInterface) argument
435 check_joinAnySource_multicastLoopOption(InetAddress group, NetworkInterface networkInterface) argument
485 checkMembershipKeyAccessors(InetAddress group, NetworkInterface networkInterface) argument
509 check_dropAnySource_twice(InetAddress group, NetworkInterface networkInterface) argument
1228 sendMulticastMessage( InetAddress group, int port, String msg, NetworkInterface sendingInterface) argument
[all...]
/libcore/ojluni/src/main/java/java/lang/
H A DThread.java173 /* The group of this thread */
174 private ThreadGroup group; field in class:Thread
393 * @param g the Thread group
406 this.group = g;
462 * {@code (group, target, gname)} ,where {@code gname} is a newly generated
466 * @param group
467 * the thread group. If {@code null} and there is a security
468 * manager, the group is determined by {@linkplain
471 * SecurityManager.getThreadGroup()} returns {@code null}, the group
472 * is set to the current thread's thread group
482 Thread(ThreadGroup group, Runnable target) argument
518 Thread(ThreadGroup group, String name) argument
525 Thread(ThreadGroup group, String name, int priority, boolean daemon) argument
613 Thread(ThreadGroup group, Runnable target, String name) argument
691 Thread(ThreadGroup group, Runnable target, String name, long stackSize) argument
[all...]
H A DUNIXProcess.java93 private final static ThreadGroup group = getRootThreadGroup(); field in class:UNIXProcess.ProcessReaperThreadFactory
107 Thread t = new Thread(group, grimReaper, "process reaper", 32768);
/libcore/ojluni/src/main/java/java/nio/channels/
H A DAsynchronousServerSocketChannel.java125 * the given group. If the group parameter is <tt>null</tt> then the
127 * bound to the <em>default group</em>.
129 * @param group
130 * The group to which the newly constructed channel should be bound,
131 * or <tt>null</tt> for the default group
136 * If the channel group is shutdown
140 public static AsynchronousServerSocketChannel open(AsynchronousChannelGroup group) argument
143 AsynchronousChannelProvider provider = (group == null) ?
144 AsynchronousChannelProvider.provider() : group
[all...]
H A DAsynchronousSocketChannel.java149 * AsynchronousChannelProvider} that created the group. If the group parameter
151 * default provider, and bound to the <em>default group</em>.
153 * @param group
154 * The group to which the newly constructed channel should be bound,
155 * or {@code null} for the default group
160 * If the channel group is shutdown
164 public static AsynchronousSocketChannel open(AsynchronousChannelGroup group) argument
167 AsynchronousChannelProvider provider = (group == null) ?
168 AsynchronousChannelProvider.provider() : group
[all...]
H A DMembershipKey.java34 * group.
37 * to the group, or it may be <em>source-specific</em>, meaning that it
67 * <p> A multicast group membership is valid upon creation and remains
81 * datagrams sent to the group. If the membership key is source-specific
82 * then the channel will no longer receive datagrams sent to the group from
86 * datagrams sent to the group. This can arise when datagrams are waiting to
88 * then the channel may {@link MulticastChannel#join join} the group again
92 * If the multicast group membership is already invalid then invoking this
93 * method has no effect. Once a multicast group membership is invalid,
116 * is not the same address type as the multicast group
158 public abstract InetAddress group(); method in class:MembershipKey
[all...]
H A DMulticastChannel.java39 * a <em>group</em> that is zero or more hosts identified by a single destination
55 * join a group and receive all multicast datagrams sent to the group. A channel
56 * may join several multicast groups and may join the same group on several
64 * is used to begin receiving datagrams sent to a group whose source address matches
67 * <em>cumulative</em> and this method may be invoked again with the same group
86 * multicast group corresponds to another protocol family. For example, it is
88 * socket can join an {@link StandardProtocolFamily#INET IPv4} multicast group and receive
89 * multicast datagrams sent to the group. </p></li>
98 * required to allow multiple members of the group t
180 join(InetAddress group, NetworkInterface interf) argument
228 join(InetAddress group, NetworkInterface interf, InetAddress source) argument
[all...]
/libcore/ojluni/src/main/java/java/nio/channels/spi/
H A DAsynchronousChannelProvider.java170 * Constructs a new asynchronous channel group with a fixed thread pool.
177 * @return A new asynchronous channel group
190 * Constructs a new asynchronous channel group with the given thread pool.
198 * @return A new asynchronous channel group
211 * @param group
212 * The group to which the channel is bound, or {@code null} to
213 * bind to the default group
218 * If the provider that created the group differs from this provider
220 * The group is shutdown
225 (AsynchronousChannelGroup group) throw
224 openAsynchronousServerSocketChannel(AsynchronousChannelGroup group) argument
243 openAsynchronousSocketChannel(AsynchronousChannelGroup group) argument
[all...]
/libcore/ojluni/src/main/java/java/nio/file/attribute/
H A DPosixFileAttributeView.java39 * file <em>owner</em>, <em>group-owner</em>, and related <em>access
46 * for the purposes of access control. The {@link PosixFileAttributes#group()
47 * group-owner}, represented by a {@link GroupPrincipal}, is the identity of the
48 * group owner, where a group is an identity created for administrative purposes
49 * so as to determine the access rights for the members of the group.
55 * <em>execute</em> access for the file owner, group, and others (others
56 * meaning identities other than the owner and members of the group). Some
87 * <td> "group" </td>
101 * the permissions, owner, or group
192 setGroup(GroupPrincipal group) argument
[all...]
H A DPosixFileAttributes.java55 * Returns the group owner of the file.
57 * @return the file group owner
61 GroupPrincipal group(); method in interface:PosixFileAttributes
H A DUserPrincipalLookupService.java31 * An object to lookup user and group principals by name. A {@link UserPrincipal}
33 * in a file system. A {@link GroupPrincipal} represents a <em>group identity</em>.
35 * name or group name (which are typically user or account names). Whether names
36 * and group names are case sensitive or not depends on the implementation.
37 * The exact definition of a group is implementation specific but typically a
38 * group represents an identity created for administrative purposes so as to
39 * determine the access rights for the members of the group. In particular it is
81 * Lookup a group principal by group name.
83 * <p> Where an implementation does not support any notion of group the
102 lookupPrincipalByGroupName(String group) argument
[all...]
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DExecutors.java349 * priority permitted in the thread group. New threads have names
547 private final ThreadGroup group; field in class:Executors.DefaultThreadFactory
553 group = (s != null) ? s.getThreadGroup() :
561 Thread t = new Thread(group, r,
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
H A DStampedLock.java1320 * group, as applicable), and in any case helps release current
1329 * @param group either node or the group node is cowaiting with
1333 private long cancelWaiter(WNode node, WNode group, boolean interrupted) { argument
1334 if (node != null && group != null) {
1337 // unsplice cancelled nodes from group
1338 for (WNode p = group, q; (q = p.cowait) != null;) {
1341 p = group; // restart
1346 if (group == node) {
1347 for (WNode r = group
[all...]
/libcore/ojluni/src/main/java/java/util/regex/
H A DMatchResult.java33 * groups and group boundaries can be seen but not modified through
54 * Returns the start index of the subsequence captured by the given group
62 * @param group
63 * The index of a capturing group in this matcher's pattern
65 * @return The index of the first character captured by the group,
66 * or <tt>-1</tt> if the match was successful but the group
74 * If there is no capturing group in the pattern
77 public int start(int group); argument
92 * captured by the given group during this match.
99 * @param group
114 end(int group) argument
135 public String group(); method in interface:MatchResult
172 group(int group) argument
[all...]
H A DMatcher.java76 * href="Pattern.html#cg">capturing group</a> in the pattern as well as a total
262 * captured by the given group during the previous match operation.
269 * @param group
270 * The index of a capturing group in this matcher's pattern
272 * @return The offset after the last character captured by the group,
274 * but the group itself did not match anything
281 * If there is no capturing group in the pattern
284 public int end(int group) { argument
286 return matchOffsets[(group * 2) + 1];
292 * group</
335 public String group() { method in class:Matcher
374 group(int group) argument
412 public String group(String name) { method in class:Matcher
1150 start(int group) argument
1227 start(int group) argument
1237 end(int group) argument
1242 public String group() { method in class:Matcher.OffsetBasedMatchResult
1247 group(int group) argument
[all...]
/libcore/ojluni/src/main/java/sun/net/ftp/
H A DFtpDirEntry.java34 * time, owner and group of the file, although some of these could be unavailable
58 private String group = null; field in class:FtpDirEntry
113 * Returns the group name of the file as returned by the FTP
114 * server, if provided. This could be a name or a group id (number).
116 * @return a {@code String} containing the group name or
120 return group;
124 * Sets the name of the group to which the file belong. Intended mostly to be
127 * @param group The name of the group to which the file belong, or {@code null}
131 public FtpDirEntry setGroup(String group) { argument
[all...]
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DAsynchronousServerSocketChannelImpl.java69 AsynchronousServerSocketChannelImpl(AsynchronousChannelGroupImpl group) { argument
70 super(group.provider());
H A DAsynchronousSocketChannelImpl.java86 AsynchronousSocketChannelImpl(AsynchronousChannelGroupImpl group) argument
89 super(group.provider());
95 AsynchronousSocketChannelImpl(AsynchronousChannelGroupImpl group, argument
100 super(group.provider());
H A DDatagramChannelImpl.java842 * Joins channel's socket to the given group/interface and
845 private MembershipKey innerJoin(InetAddress group, argument
850 if (!group.isMulticastAddress())
854 if (group instanceof Inet4Address) {
856 throw new IllegalArgumentException("IPv6 socket cannot join IPv4 multicast group");
857 } else if (group instanceof Inet6Address) {
859 throw new IllegalArgumentException("Only IPv6 sockets can join IPv6 multicast group");
870 if (source.getClass() != group.getClass())
871 throw new IllegalArgumentException("Source address is different type to group");
876 sm.checkMulticast(group);
938 join(InetAddress group, NetworkInterface interf) argument
946 join(InetAddress group, NetworkInterface interf, InetAddress source) argument
[all...]
H A DGroupable.java30 * asynchronous channel group.
34 AsynchronousChannelGroupImpl group(); method in interface:Groupable
H A DInvoker.java46 // Per-thread object with reference to channel group and a counter for
50 private final AsynchronousChannelGroupImpl group; field in class:Invoker.GroupAndInvokeCount
52 GroupAndInvokeCount(AsynchronousChannelGroupImpl group) { argument
53 this.group = group;
55 AsynchronousChannelGroupImpl group() { method in class:Invoker.GroupAndInvokeCount
56 return group;
79 * Binds this thread to the given group
81 static void bindToGroup(AsynchronousChannelGroupImpl group) { argument
82 myGroupAndInvokeCount.set(new GroupAndInvokeCount(group));
104 mayInvokeDirect(GroupAndInvokeCount myGroupAndInvokeCount, AsynchronousChannelGroupImpl group) argument
[all...]
H A DLinuxAsynchronousChannelProvider.java67 private Port toPort(AsynchronousChannelGroup group) throws IOException { argument
68 if (group == null) {
71 if (!(group instanceof EPollPort))
73 return (Port)group;
78 public AsynchronousServerSocketChannel openAsynchronousServerSocketChannel(AsynchronousChannelGroup group) argument
81 return new UnixAsynchronousServerSocketChannelImpl(toPort(group));
85 public AsynchronousSocketChannel openAsynchronousSocketChannel(AsynchronousChannelGroup group) argument
88 return new UnixAsynchronousSocketChannelImpl(toPort(group));

Completed in 516 milliseconds

12