Home
last modified time | relevance | path

Searched refs:group (Results 1 – 25 of 80) sorted by relevance

1234

/libcore/ojluni/src/main/java/java/util/regex/
DMatcher.java296 public int start(int group) { in start() argument
298 if (group < 0 || group > groupCount()) in start()
299 throw new IndexOutOfBoundsException("No group " + group); in start()
300 return groups[group * 2]; in start()
365 public int end(int group) { in end() argument
367 if (group < 0 || group > groupCount()) in end()
368 throw new IndexOutOfBoundsException("No group " + group); in end()
369 return groups[group * 2 + 1]; in end()
416 public String group() { in group() method in Matcher
417 return group(0); in group()
[all …]
DMatchResult.java77 public int start(int group); in start() argument
114 public int end(int group); in end() argument
135 public String group(); in group() method
172 public String group(int group); in group() argument
/libcore/ojluni/src/main/java/sun/nio/ch/
DMembershipRegistry.java51 MembershipKey checkMembership(InetAddress group, NetworkInterface interf, in checkMembership() argument
55 List<MembershipKeyImpl> keys = groups.get(group); in checkMembership()
84 InetAddress group = key.group(); in add() local
90 keys = groups.get(group); in add()
94 groups.put(group, keys); in add()
103 InetAddress group = key.group(); in remove() local
104 List<MembershipKeyImpl> keys = groups.get(group); in remove()
114 groups.remove(group); in remove()
124 for (InetAddress group: groups.keySet()) { in invalidateAll()
125 for (MembershipKeyImpl key: groups.get(group)) { in invalidateAll()
DLinuxAsynchronousChannelProvider.java67 private Port toPort(AsynchronousChannelGroup group) throws IOException { in toPort() argument
68 if (group == null) { in toPort()
71 if (!(group instanceof EPollPort)) in toPort()
73 return (Port)group; in toPort()
78 …AsynchronousServerSocketChannel openAsynchronousServerSocketChannel(AsynchronousChannelGroup group) in openAsynchronousServerSocketChannel() argument
81 return new UnixAsynchronousServerSocketChannelImpl(toPort(group)); in openAsynchronousServerSocketChannel()
85 public AsynchronousSocketChannel openAsynchronousSocketChannel(AsynchronousChannelGroup group) in openAsynchronousSocketChannel() argument
88 return new UnixAsynchronousSocketChannelImpl(toPort(group)); in openAsynchronousSocketChannel()
DInvoker.java50 private final AsynchronousChannelGroupImpl group; field in Invoker.GroupAndInvokeCount
52 GroupAndInvokeCount(AsynchronousChannelGroupImpl group) { in GroupAndInvokeCount() argument
53 this.group = group; in GroupAndInvokeCount()
55 AsynchronousChannelGroupImpl group() { in group() method in Invoker.GroupAndInvokeCount
56 return group; in group()
81 static void bindToGroup(AsynchronousChannelGroupImpl group) { in bindToGroup() argument
82 myGroupAndInvokeCount.set(new GroupAndInvokeCount(group)); in bindToGroup()
105 AsynchronousChannelGroupImpl group) in mayInvokeDirect() argument
108 (myGroupAndInvokeCount.group() == group) && in mayInvokeDirect()
178 if ((thisGroupAndInvokeCount.group() == ((Groupable)channel).group())) in invoke()
[all …]
DMembershipKeyImpl.java42 private final InetAddress group; field in MembershipKeyImpl
56 InetAddress group, in MembershipKeyImpl() argument
61 this.group = group; in MembershipKeyImpl()
75 InetAddress group, in Type4() argument
82 super(ch, group, interf, source); in Type4()
110 InetAddress group, in Type6() argument
117 super(ch, group, interf, source); in Type6()
156 public InetAddress group() { in group() method in MembershipKeyImpl
157 return group; in group()
210 sb.append(group.getHostAddress()); in toString()
DNet.java523 static int join4(FileDescriptor fd, int group, int interf, int source)
526 return joinOrDrop4(true, fd, group, interf, source);
532 static void drop4(FileDescriptor fd, int group, int interf, int source)
535 joinOrDrop4(false, fd, group, interf, source);
538 …private static native int joinOrDrop4(boolean join, FileDescriptor fd, int group, int interf, int …
544 static int block4(FileDescriptor fd, int group, int interf, int source)
547 return blockOrUnblock4(true, fd, group, interf, source);
553 static void unblock4(FileDescriptor fd, int group, int interf, int source)
556 blockOrUnblock4(false, fd, group, interf, source);
559 private static native int blockOrUnblock4(boolean block, FileDescriptor fd, int group,
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DModeTest.java38 assertEquals("dog", m.group(1)); in testCase()
45 assertEquals("cAt", m.group(1)); in testCase()
47 assertEquals("doG", m.group(1)); in testCase()
54 assertEquals("cAt", m.group(1)); in testCase()
56 assertEquals("doG", m.group(1)); in testCase()
87 assertEquals("1", m.group(1)); in testMultiline()
89 assertEquals("2", m.group(1)); in testMultiline()
96 assertEquals("3", m.group(1)); in testMultiline()
98 assertEquals("4", m.group(1)); in testMultiline()
105 assertEquals("1", m.group(1)); in testMultiline()
[all …]
DPattern2Test.java123 assertEquals("p1#q3", m.group()); in testGroups()
124 assertEquals("p1#q3", m.group(0)); in testGroups()
125 assertEquals("p1", m.group(1)); in testGroups()
126 assertEquals("q3", m.group(2)); in testGroups()
137 assertEquals("p2q42", m.group()); in testGroups()
138 assertEquals("p2q42", m.group(0)); in testGroups()
139 assertEquals("p2", m.group(1)); in testGroups()
140 assertEquals("q42", m.group(2)); in testGroups()
152 assertEquals("p63#q888", m.group()); in testGroups()
153 assertEquals("p63#q888", m.group(0)); in testGroups()
[all …]
DMatcherTest.java233 mat.group(i + 2); in testGroupint()
235 mat.group(i + 100); in testGroupint()
237 mat.group(-1); in testGroupint()
239 mat.group(-100); in testGroupint()
256 .group(j + 1)); in testGroupint()
271 assertEquals(positiveTestString, mat.group()); in testGroup()
274 assertEquals(mat.group(0), mat.group()); in testGroup()
282 mat.group(); in testGroup()
294 assertEquals("a", mat.group(1)); in testGroupPossessive()
373 assertEquals("dacaacaacaaddaaacaacaaddd", mat.group()); in testQuantVsGroup()
[all …]
DMatcher2Test.java55 m.group(); in testErrorConditions()
73 m.group(1); in testErrorConditions()
113 m.group(3); in testErrorConditions2()
131 m.group(-1); in testErrorConditions2()
157 m.group(3); in testErrorConditions2()
175 m.group(-1); in testErrorConditions2()
195 m.group(3); in testErrorConditions2()
213 m.group(-1); in testErrorConditions2()
/libcore/ojluni/src/main/java/java/lang/
DThread.java187 private ThreadGroup group; field in Thread
527 this.group = g; in init()
626 public Thread(ThreadGroup group, Runnable target) { in Thread() argument
627 init(group, target, "Thread-" + nextThreadNum(), 0); in Thread()
662 public Thread(ThreadGroup group, String name) { in Thread() argument
663 init(group, null, name, 0); in Thread()
668 Thread(ThreadGroup group, String name, int priority, boolean daemon) { in Thread() argument
669 this.group = group; in Thread()
670 this.group.addUnstarted(); in Thread()
759 public Thread(ThreadGroup group, Runnable target, String name) { in Thread() argument
[all …]
/libcore/ojluni/annotations/hiddenapi/java/util/regex/
DMatcher.java62 public int start(int group) { in start() argument
74 public int end(int group) { in end() argument
82 public java.lang.String group() { in group() method in Matcher
86 public java.lang.String group(int group) { in group() method in Matcher
90 public java.lang.String group(java.lang.String name) { in group() method in Matcher
273 public int start(int group) { in start() argument
281 public int end(int group) { in end() argument
285 public java.lang.String group() { in group() method in Matcher.OffsetBasedMatchResult
289 public java.lang.String group(int group) { in group() method in Matcher.OffsetBasedMatchResult
/libcore/ojluni/src/main/java/sun/net/ftp/
DFtpDirEntry.java58 private String group = null; field in FtpDirEntry
120 return group; in getGroup()
131 public FtpDirEntry setGroup(String group) { in setGroup() argument
132 this.group = group; in setGroup()
327 return name + " [" + type + "] (" + user + " / " + group + ") " + size; in toString()
329 …return name + " [" + type + "] (" + user + " / " + group + ") {" + size + "} " + java.text.DateFor… in toString()
/libcore/ojluni/src/main/java/java/nio/channels/
DAsynchronousServerSocketChannel.java140 public static AsynchronousServerSocketChannel open(AsynchronousChannelGroup group) in open() argument
143 AsynchronousChannelProvider provider = (group == null) ? in open()
144 AsynchronousChannelProvider.provider() : group.provider(); in open()
145 return provider.openAsynchronousServerSocketChannel(group); in open()
DAsynchronousSocketChannel.java164 public static AsynchronousSocketChannel open(AsynchronousChannelGroup group) in open() argument
167 AsynchronousChannelProvider provider = (group == null) ? in open()
168 AsynchronousChannelProvider.provider() : group.provider(); in open()
169 return provider.openAsynchronousSocketChannel(group); in open()
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadGroupTest.java32 public MyThread(ThreadGroup group, String name) in MyThread() argument
34 super(group, name); in MyThread()
124 ThreadGroup group = new ThreadGroup(initialThreadGroup, "enumerateThreadArray"); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ() local
126 List<MyThread> newThreads = populateGroupsWithThreads(group, groupSize); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ()
279 ThreadGroup group = new ThreadGroup("Foo"); in test_resume() local
281 Thread thread = launchFiveSecondFakeThread(group); in test_resume()
290 group.resume(); in test_resume()
296 private Thread launchFiveSecondFakeThread(ThreadGroup group) { in launchFiveSecondFakeThread() argument
297 Thread thread = new Thread(group, "Bar") { in launchFiveSecondFakeThread()
368 private List<MyThread> populateGroupsWithThreads(ThreadGroup group, int threadCount) { in populateGroupsWithThreads() argument
[all …]
/libcore/tools/testmapping/
Dgen_smoke_tests.py95 month=int(cts_match.group(1)),
96 day=int(cts_match.group(2)),
97 hour=int(cts_match.group(3)),
98 minute=int(cts_match.group(4)),
99 second=int(cts_match.group(5)),
100 microsecond=1000 * int(cts_match.group(6)))
101 source = cts_match.group(7)
102 message = cts_match.group(8)
151 executing = start_match.group(1)
159 (start_match.group(1), executing, str(timestamp), filename))
[all …]
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DPattern2Test.java140 assertEquals("aaaaaaaa", m.group(1)); in testCapturingGroups()
146 assertEquals("ananas", m.group(0)); in testCapturingGroups()
147 assertEquals("anan", m.group(1)); in testCapturingGroups()
148 assertEquals("an", m.group(2)); in testCapturingGroups()
149 assertEquals("as", m.group(3)); in testCapturingGroups()
150 assertEquals("as", m.group(4)); in testCapturingGroups()
157 assertEquals("as", m.group(1)); in testCapturingGroups()
159 m.group(2); in testCapturingGroups()
/libcore/ojluni/src/main/java/java/util/concurrent/
DForkJoinWorkerThread.java256 ThreadGroup group = (ThreadGroup) in createThreadGroup() local
258 while (group != null) { in createThreadGroup()
259 ThreadGroup parent = (ThreadGroup)u.getObject(group, gp); in createThreadGroup()
261 return new ThreadGroup(group, in createThreadGroup()
263 group = parent; in createThreadGroup()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DMulticastSocketTest.java242 private void test_joinGroupLjava_net_InetAddress(InetAddress group) throws Exception { in test_joinGroupLjava_net_InetAddress() argument
244 receivingSocket.joinGroup(group); in test_joinGroupLjava_net_InetAddress()
249 new InetSocketAddress(group, receivingSocket.getLocalPort()); in test_joinGroupLjava_net_InetAddress()
327 NetworkInterface networkInterface, InetAddress group, InetAddress group2) in check_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface() argument
339 new InetSocketAddress(group, receivingSocket.getLocalPort()); in check_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
363 groupAddress = new InetSocketAddress(group, receivingSocket.getLocalPort()); in check_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
407 InetAddress group = null; in joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface() local
411 group = GOOD_IPv4; in joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
415 group = GOOD_IPv6; in joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
424 new InetSocketAddress(group, receivingSocket.getLocalPort()); in joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
[all …]
/libcore/ojluni/annotations/sdk/nullability/java/util/regex/
DMatcher.annotated.java48 public int start(int group) { throw new RuntimeException("Stub!"); } in start() argument
54 public int end(int group) { throw new RuntimeException("Stub!"); } in end() argument
58 @libcore.util.NonNull public java.lang.String group() { throw new RuntimeException("Stub!"); } in group() method in Matcher
60 @libcore.util.Nullable public java.lang.String group(int group) { throw new RuntimeException("Stub!… in group() argument
62 @libcore.util.Nullable public java.lang.String group(@libcore.util.NonNull java.lang.String name) {… in group() method in Matcher
/libcore/luni/src/test/java/libcore/java/util/regex/
DOldAndroidRegexTest.java104 assertEquals("bc", m.group(0)); in testGroups()
105 assertEquals("b", m.group(1)); in testGroups()
106 assertEquals("c", m.group(2)); in testGroups()
107 assertEquals("", m.group(3)); in testGroups()
115 assertEquals("a", m.group(0)); in testFind()
118 assertEquals("b", m.group(0)); in testFind()
121 assertEquals("c", m.group(0)); in testFind()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DDatagramChannelMulticastTest.java229 private void check_joinAnySource(InetAddress group, InetAddress group2, in check_joinAnySource() argument
237 receiverChannel.join(group, networkInterface); in check_joinAnySource()
240 createChannelAndSendMulticastMessage(group, localAddress.getPort(), msg, networkInterface); in check_joinAnySource()
344 InetAddress group = null; in test_joinAnySource_networkInterfaces() local
348 group = GOOD_MULTICAST_IPv4; in test_joinAnySource_networkInterfaces()
352 group = GOOD_MULTICAST_IPv6; in test_joinAnySource_networkInterfaces()
359 dc.join(group, thisInterface); in test_joinAnySource_networkInterfaces()
365 group, localAddress.getPort(), msg, sendingInterface); in test_joinAnySource_networkInterfaces()
409 private void check_joinAnySource_multiple_joins(InetAddress group, in check_joinAnySource_multiple_joins() argument
416 MembershipKey membershipKey1 = dc.join(group, networkInterface); in check_joinAnySource_multiple_joins()
[all …]
/libcore/ojluni/src/test/java/nio/file/attribute/
DPosixFileAttributeViewTest.java257 view.setGroup(attrs.group()); in ownerTests()
262 UserPrincipal group = (UserPrincipal)Files.getAttribute(file, "posix:group"); in ownerTests() local
263 Files.setAttribute(file, "posix:group", group); in ownerTests()
299 System.out.format("lookup group: %s\n", attrs.group().getName()); in lookupPrincipalTests()
301 … GroupPrincipal group = lookupService.lookupPrincipalByGroupName(attrs.group().getName()); in lookupPrincipalTests() local
302 if (!group.equals(attrs.group())) in lookupPrincipalTests()

1234