Home
last modified time | relevance | path

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

1234

/libcore/ojluni/src/main/java/java/util/regex/
DMatcher.java270 public int start(int group) { in start() argument
272 if (group < 0 || group > groupCount) in start()
273 throw new IndexOutOfBoundsException("No group " + group); in start()
274 return groups[group * 2]; in start()
284 public int end(int group) { in end() argument
286 if (group < 0 || group > groupCount) in end()
287 throw new IndexOutOfBoundsException("No group " + group); in end()
288 return groups[group * 2 + 1]; in end()
297 public String group() { in group() method in Matcher.ImmutableMatchResult
299 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
173 public String group(int group); in group() argument
/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/sun/nio/ch/
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 …]
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()
DMembershipRegistry.java55 MembershipKey checkMembership(InetAddress group, NetworkInterface interf, in checkMembership() argument
59 List<MembershipKeyImpl> keys = groups.get(group); in checkMembership()
88 InetAddress group = key.group(); in add() local
94 keys = groups.get(group); in add()
98 groups.put(group, keys); in add()
107 InetAddress group = key.group(); in remove() local
108 List<MembershipKeyImpl> keys = groups.get(group); in remove()
118 groups.remove(group); in remove()
DMembershipKeyImpl.java43 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/ojluni/src/main/java/java/util/concurrent/
DForkJoinWorkerThread.java72 ForkJoinWorkerThread(ThreadGroup group, ForkJoinPool pool, in ForkJoinWorkerThread() argument
74 super(group, null, pool.nextWorkerThreadName(), 0L); in ForkJoinWorkerThread()
92 /* TODO: protected */ ForkJoinWorkerThread(ThreadGroup group, ForkJoinPool pool) { in ForkJoinWorkerThread() argument
93 this(group, pool, false, false); in ForkJoinWorkerThread()
193 ThreadGroup group = Thread.currentThread().getThreadGroup();
194 for (ThreadGroup p; (p = group.getParent()) != null; )
195 group = p;
197 group, "InnocuousForkJoinWorkerThreadGroup");
/libcore/ojluni/src/main/java/java/lang/
DThread.java185 private ThreadGroup group; field in Thread
558 this.group = g; in Thread()
658 public Thread(ThreadGroup group, Runnable target) { in Thread() argument
659 this(group, target, "Thread-" + nextThreadNum(), 0); in Thread()
694 public Thread(ThreadGroup group, String name) { in Thread() argument
695 this(group, null, name, 0); in Thread()
700 Thread(ThreadGroup group, String name, int priority, boolean daemon) { in Thread() argument
701 this.group = group; in Thread()
702 this.group.addUnstarted(); in Thread()
792 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/tools/build/tools/spp/
DSpp.java128 if (vardef.group(GN_VAR) != null) in append()
129 repl = vars.get(vardef.group(GN_VAR)); in append()
131 boolean test = keys.contains(vardef.group(GN_KEY)); in append()
132 if (vardef.group(GN_NOT) != null) in append()
134 repl = test?vardef.group(GN_YES):vardef.group(GN_NO); in append()
139 repl = vardef2.replaceFirst(vars.get(vardef2.group(1))); in append()
170 String k = ifkey.group(GN_KEY); in spp()
172 if (ifkey.group(GN_NOT) != null) in spp()
181 if (!key.equals(elsekey.group(GN_KEY))) { in spp()
188 if (!key.equals(endkey.group(GN_KEY))) { in spp()
/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/jdk/internal/misc/
DInnocuousThread.java99 private InnocuousThread(ThreadGroup group, Runnable target, String name, ClassLoader tccl) {
100 super(group, target, name, 0L, false);
160 ThreadGroup group = (ThreadGroup)
163 while (group != null) {
164 ThreadGroup parent = (ThreadGroup)UNSAFE.getReference(group, gp);
167 group = parent;
169 final ThreadGroup root = group;
/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 …]
DThreadGroupTest.java44 ThreadGroup group = new ThreadGroup("group under test"); in interrupt_shouldInterruptAllThreadsInAGroup() local
46 Thread first = createHangThread(group); in interrupt_shouldInterruptAllThreadsInAGroup()
47 Thread second = createHangThread(group); in interrupt_shouldInterruptAllThreadsInAGroup()
52 group.interrupt(); in interrupt_shouldInterruptAllThreadsInAGroup()
/libcore/ojluni/src/main/java/java/nio/channels/
DAsynchronousServerSocketChannel.java145 public static AsynchronousServerSocketChannel open(AsynchronousChannelGroup group) in open() argument
148 AsynchronousChannelProvider provider = (group == null) ? in open()
149 AsynchronousChannelProvider.provider() : group.provider(); in open()
150 return provider.openAsynchronousServerSocketChannel(group); in open()
/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/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/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.java231 private void check_joinAnySource(InetAddress group, InetAddress group2, in check_joinAnySource() argument
239 receiverChannel.join(group, networkInterface); in check_joinAnySource()
242 …createChannelAndSendMulticastMessage(group, localAddress.getPort(), msg, networkInterface, protoco… in check_joinAnySource()
346 InetAddress group = null; in test_joinAnySource_networkInterfaces() local
350 group = GOOD_MULTICAST_IPv4; in test_joinAnySource_networkInterfaces()
354 group = GOOD_MULTICAST_IPv6; in test_joinAnySource_networkInterfaces()
361 dc.join(group, thisInterface); in test_joinAnySource_networkInterfaces()
367 group, localAddress.getPort(), msg, sendingInterface); in test_joinAnySource_networkInterfaces()
417 private void check_joinAnySource_multiple_joins(InetAddress group, in check_joinAnySource_multiple_joins() argument
424 MembershipKey membershipKey1 = dc.join(group, networkInterface); in check_joinAnySource_multiple_joins()
[all …]

1234