/libcore/ojluni/src/main/java/java/util/regex/ |
H A D | MatchResult.java | 33 * 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 D | Matcher.java | 76 * href="Pattern.html#cg">capturing group</a> in the pattern as well as a total 256 * captured by the given group during the previous match operation. 263 * @param group 264 * The index of a capturing group in this matcher's pattern 266 * @return The offset after the last character captured by the group, 268 * but the group itself did not match anything 275 * If there is no capturing group in the pattern 278 public int end(int group) { argument 280 return matchOffsets[(group * 2) + 1]; 287 * the expressions <i>m.</i><tt>group()</t 302 public String group() { method in class:Matcher 341 group(int group) argument 381 public String group(String name) { method in class:Matcher 1092 start(int group) argument 1132 start(int group) argument 1142 end(int group) argument 1147 public String group() { method in class:Matcher.OffsetBasedMatchResult 1152 group(int group) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
H A D | ModeTest.java | 37 assertEquals("dog", m.group(1)); 43 assertEquals("cAt", m.group(1)); 45 assertEquals("doG", m.group(1)); 51 assertEquals("cAt", m.group(1)); 53 assertEquals("doG", m.group(1)); 82 assertEquals("1", m.group(1)); 84 assertEquals("2", m.group(1)); 90 assertEquals("3", m.group(1)); 92 assertEquals("4", m.group(1)); 98 assertEquals("1", m.group( [all...] |
H A D | Matcher2Test.java | 55 m.group(); 73 m.group(1); 113 m.group(3); 131 m.group(-1); 157 m.group(3); 175 m.group(-1); 195 m.group(3); 213 m.group(-1);
|
H A D | MatcherTest.java | 174 mat.group(i + 2); 176 mat.group(i + 100); 178 mat.group(-1); 180 mat.group(-100); 197 .group(j + 1)); 212 assertEquals(positiveTestString, mat.group()); 214 // test equal to group(0) result 215 assertEquals(mat.group(0), mat.group()); 223 mat.group(); [all...] |
H A D | Pattern2Test.java | 123 assertEquals("p1#q3", m.group()); 124 assertEquals("p1#q3", m.group(0)); 125 assertEquals("p1", m.group(1)); 126 assertEquals("q3", m.group(2)); 137 assertEquals("p2q42", m.group()); 138 assertEquals("p2q42", m.group(0)); 139 assertEquals("p2", m.group(1)); 140 assertEquals("q42", m.group(2)); 152 assertEquals("p63#q888", m.group()); 153 assertEquals("p63#q888", m.group( [all...] |
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
H A D | ModeTest.java | 37 assertEquals("dog", m.group(1)); 44 assertEquals("cAt", m.group(1)); 46 assertEquals("doG", m.group(1)); 53 assertEquals("cAt", m.group(1)); 55 assertEquals("doG", m.group(1)); 85 assertEquals("1", m.group(1)); 87 assertEquals("2", m.group(1)); 94 assertEquals("3", m.group(1)); 96 assertEquals("4", m.group(1)); 103 assertEquals("1", m.group( [all...] |
H A D | Matcher2Test.java | 53 m.group(); 71 m.group(1); 111 m.group(3); 129 m.group(-1); 155 m.group(3); 173 m.group(-1); 193 m.group(3); 211 m.group(-1);
|
H A D | Pattern2Test.java | 140 assertEquals("aaaaaaaa", m.group(1)); 146 assertEquals("ananas", m.group(0)); 147 assertEquals("anan", m.group(1)); 148 assertEquals("an", m.group(2)); 149 assertEquals("as", m.group(3)); 150 assertEquals("as", m.group(4)); 157 assertEquals("as", m.group(1)); 159 m.group(2);
|
H A D | PatternTest.java | 508 mat.group(1); 557 assertEquals("-", m.group(1)); 558 assertEquals("9", m.group(2)); 559 assertEquals(":45", m.group(3)); 560 assertEquals("45", m.group(4)); 718 assertEquals("a\n", mat.group()); 726 assertEquals("aA", mat.group()); 734 assertEquals("aA", mat.group()); 742 assertEquals("A", mat.group()); 752 assertEquals(res[k], mat.group()); [all...] |
/libcore/ojluni/src/main/java/sun/net/ftp/ |
H A D | FtpDirEntry.java | 34 * 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/java/lang/ |
H A D | Thread.java | 173 /* The group of this thread */ 174 private ThreadGroup group; field in class:Thread 391 * @param g the Thread group 404 this.group = g; 460 * {@code (group, target, gname)} ,where {@code gname} is a newly generated 464 * @param group 465 * the thread group. If {@code null} and there is a security 466 * manager, the group is determined by {@linkplain 469 * SecurityManager.getThreadGroup()} returns {@code null}, the group 470 * is set to the current thread's thread group 480 Thread(ThreadGroup group, Runnable target) argument 516 Thread(ThreadGroup group, String name) argument 523 Thread(ThreadGroup group, String name, int priority, boolean daemon) argument 611 Thread(ThreadGroup group, Runnable target, String name) argument 689 Thread(ThreadGroup group, Runnable target, String name, long stackSize) argument [all...] |
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | ForkJoinWorkerThread.java | 216 * Returns a new group with the system ThreadGroup (the 217 * topmost, parent-less group) as parent. Uses Unsafe to 218 * traverse Thread.group and ThreadGroup.parent fields. 224 (Thread.class.getDeclaredField("group")); 227 ThreadGroup group = (ThreadGroup) 229 while (group != null) { 230 ThreadGroup parent = (ThreadGroup)u.getObject(group, gp); 232 return new ThreadGroup(group, 234 group = parent;
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | Net.java | 117 * multicast group (IPv4 group as IPv4-mapped IPv6 address) 529 * Join IPv4 multicast group 531 static int join4(FileDescriptor fd, int group, int interf, int source) argument 534 return joinOrDrop4(true, fd, group, interf, source); 538 * Drop membership of IPv4 multicast group 540 static void drop4(FileDescriptor fd, int group, int interf, int source) argument 543 joinOrDrop4(false, fd, group, interf, source); 546 private static native int joinOrDrop4(boolean join, FileDescriptor fd, int group, int interf, int source) argument 552 static int block4(FileDescriptor fd, int group, in argument 561 unblock4(FileDescriptor fd, int group, int interf, int source) argument 567 blockOrUnblock4(boolean block, FileDescriptor fd, int group, int interf, int source) argument 574 join6(FileDescriptor fd, byte[] group, int index, byte[] source) argument 583 drop6(FileDescriptor fd, byte[] group, int index, byte[] source) argument 589 joinOrDrop6(boolean join, FileDescriptor fd, byte[] group, int index, byte[] source) argument 595 block6(FileDescriptor fd, byte[] group, int index, byte[] source) argument 604 unblock6(FileDescriptor fd, byte[] group, int index, byte[] source) argument 610 blockOrUnblock6(boolean block, FileDescriptor fd, byte[] group, int index, byte[] source) argument [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | OldThreadGroupTest.java | 32 public MyThread(ThreadGroup group, String name) argument 34 super(group, name); 72 ThreadGroup tg = new ThreadGroup("group count"); 85 new ThreadGroup(tg, "test group 1"); 88 new ThreadGroup(tg, "test group 2"); 134 ThreadGroup group = new ThreadGroup(initialThreadGroup, "enumerateThreadArray"); 136 List<MyThread> newThreads = populateGroupsWithThreads(group, groupSize); 166 ThreadGroup childGroup = new ThreadGroup(initialThreadGroup, "child group"); 274 "Test group"); 275 assertFalse("Test group i 301 launchFiveSecondDummyThread(ThreadGroup group) argument 362 populateGroupsWithThreads(ThreadGroup group, int threadCount) argument 368 populateGroupsWithThreads(ThreadGroup group, int threadCount, List<MyThread> out) argument [all...] |
H A D | ThreadTest.java | 160 ThreadGroup group = new ThreadGroup("1"); 161 Thread t2 = new Thread(group, "t2") {
|
/libcore/luni/src/test/java/libcore/java/util/regex/ |
H A D | OldAndroidRegexTest.java | 99 /* Must call find() first, otherwise group*() are undefined. */ 104 assertEquals("bc", m.group(0)); 105 assertEquals("b", m.group(1)); 106 assertEquals("c", m.group(2)); 107 assertEquals("", m.group(3)); 115 assertEquals("a", m.group(0)); 118 assertEquals("b", m.group(0)); 121 assertEquals("c", m.group(0));
|
H A D | OldMatcherTest.java | 169 assertEquals("Start is wrong for group " + i + " :" + mat.group(i), start, mat.start(i)); 171 assertEquals("Start is wrong for group " + i + " :" + mat.group(i), start + 4, mat.start(i)); 191 assertEquals("End is wrong for group " + i + " :" + mat.group(i), start + mat.group(i).length(), mat.end(i)); 193 assertEquals("End is wrong for group " + i + " :" + mat.group(i), start + 4 + mat.group( [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | MulticastSocketTest.java | 47 // We use the "good" addresses for our actual group, and the "bad" addresses are for 48 // a group that we won't actually set up. 235 private void test_joinGroupLjava_net_InetAddress(InetAddress group) throws Exception { argument 237 receivingSocket.joinGroup(group); 242 new InetSocketAddress(group, receivingSocket.getLocalPort()); 323 NetworkInterface networkInterface, InetAddress group, InetAddress group2) 335 new InetSocketAddress(group, receivingSocket.getLocalPort()); 336 // Join the group. A null network interface is valid and means "use default". 359 groupAddress = new InetSocketAddress(group, receivingSocket.getLocalPort()); 360 // Join the group 322 test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface( NetworkInterface networkInterface, InetAddress group, InetAddress group2) argument 468 test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface_multiple_joins( NetworkInterface networkInterface, InetAddress group) argument 498 test_leaveGroupLjava_net_InetAddress(InetAddress group) argument 570 test_leaveGroupLjava_net_SocketAddressLjava_net_NetworkInterface( NetworkInterface networkInterface, InetAddress group, InetAddress group2) argument 619 test_sendLjava_net_DatagramPacketB(InetAddress group) argument 723 test_setNetworkInterfaceLjava_net_NetworkInterface(InetAddress group) argument 852 test_setLoopbackModeSendReceive(InetAddress group) argument [all...] |
/libcore/ojluni/src/main/native/ |
H A D | Net.c | 51 #define IP_ADD_SOURCE_MEMBERSHIP 70 /* join a source-specific group */ 60 #define MCAST_JOIN_SOURCE_GROUP 82 /* join a source-specific group */ 82 struct sockaddr_storage gsr_group; /* group address */ 98 * Copy IPv6 group, interface index, and IPv6 source address 102 static void initGroupSourceReq(JNIEnv* env, jbyteArray group, jint index, argument 111 COPY_INET6_ADDRESS(env, group, (jbyte*)&(sin6->sin6_addr)); 435 jint group, jint interf, jint source) 443 mreq.imr_multiaddr.s_addr = htonl(group); 455 mreq_source.imr_multiaddr.s_addr = htonl(group); 459 mreq_source.imr_multiaddr = htonl(group); 434 Java_sun_nio_ch_Net_joinOrDrop4(JNIEnv *env, jobject this, jboolean join, jobject fdo, jint group, jint interf, jint source) argument 480 Java_sun_nio_ch_Net_blockOrUnblock4(JNIEnv *env, jobject this, jboolean block, jobject fdo, jint group, jint interf, jint source) argument 514 Java_sun_nio_ch_Net_joinOrDrop6(JNIEnv *env, jobject this, jboolean join, jobject fdo, jbyteArray group, jint index, jbyteArray source) argument 555 Java_sun_nio_ch_Net_blockOrUnblock6(JNIEnv *env, jobject this, jboolean block, jobject fdo, jbyteArray group, jint index, jbyteArray source) argument [all...] |
/libcore/dalvik/src/main/java/dalvik/system/profiler/ |
H A D | SamplingProfiler.java | 463 // group will become null when thread is terminated 464 ThreadGroup group = thread.getThreadGroup(); 465 String groupName = group == null ? null : group.getName(); 466 ThreadGroup parentGroup = group == null ? null : group.getParent();
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Scanner.java | 90 * System.out.println(result.group(i)); 767 hasNextResult = matcher.group(); 976 String s = matcher.group(); 995 String s = matcher.group(); 1042 return matcher.group(); 1068 return matcher.group(); 1330 sb.append("[group separator=" + groupSeparator + "]"); 1520 String lineSep = mr.group(1); 1559 String lineSep = mr.group(1); 1828 String s = (matcher.group(SIMPLE_GROUP_INDE [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | SchemePrefixBenchmark.java | 62 return matcher.group(1).toLowerCase(Locale.US);
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
H A D | GroupByOpTest.java | 72 for(Collection<Integer> group : m.values()) { 74 Stream<Integer> stream = group.stream(); 88 for(Collection<Integer> group : result.values()) { 90 Stream<Integer> stream = group.stream();
|
/libcore/support/src/test/java/libcore/java/security/ |
H A D | CpuFeatures.java | 70 return m.group(1);
|