Home
last modified time | relevance | path

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

12

/libcore/luni/src/main/java/java/util/regex/
DMatchResultImpl.java49 public int end(int group) { in end() argument
50 return offsets[2 * group + 1]; in end()
53 public String group() { in group() method in MatchResultImpl
57 public String group(int group) { in group() argument
58 int from = offsets[group * 2]; in group()
59 int to = offsets[(group * 2) + 1]; in group()
75 public int start(int group) { in start() argument
76 return offsets[2 * group]; in start()
DMatchResult.java38 int end(int group); in end() argument
43 String group(); in group() method
64 String group(int group); in group() method
82 int start(int group); in start() argument
DMatcher.java138 buffer.append(group(c - '0')); in appendEvaluated()
541 " lastmatch=" + (matchFound ? group() : "") + "]"; in toString()
558 public int end(int group) { in end() argument
560 return matchOffsets[(group * 2) + 1]; in end()
568 public String group() { in group() method in Matcher
569 return group(0); in group()
577 public String group(int group) { in group() method in Matcher
579 int from = matchOffsets[group * 2]; in group()
580 int to = matchOffsets[(group * 2) + 1]; in group()
611 public int start(int group) throws IllegalStateException { in start() argument
[all …]
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DModeTest.java37 assertEquals("dog", m.group(1)); in testCase()
44 assertEquals("cAt", m.group(1)); in testCase()
46 assertEquals("doG", m.group(1)); in testCase()
53 assertEquals("cAt", m.group(1)); in testCase()
55 assertEquals("doG", m.group(1)); in testCase()
85 assertEquals("1", m.group(1)); in testMultiline()
87 assertEquals("2", m.group(1)); in testMultiline()
94 assertEquals("3", m.group(1)); in testMultiline()
96 assertEquals("4", m.group(1)); in testMultiline()
103 assertEquals("1", m.group(1)); in testMultiline()
[all …]
DMatcher2Test.java53 m.group(); in testErrorConditions()
71 m.group(1); in testErrorConditions()
111 m.group(3); in testErrorConditions2()
129 m.group(-1); in testErrorConditions2()
155 m.group(3); in testErrorConditions2()
173 m.group(-1); in testErrorConditions2()
193 m.group(3); in testErrorConditions2()
211 m.group(-1); in testErrorConditions2()
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()
DPatternTest.java508 mat.group(1); in testQuantComposition()
557 assertEquals("-", m.group(1)); in testTimeZoneIssue()
558 assertEquals("9", m.group(2)); in testTimeZoneIssue()
559 assertEquals(":45", m.group(3)); in testTimeZoneIssue()
560 assertEquals("45", m.group(4)); in testTimeZoneIssue()
718 assertEquals("a\n", mat.group()); in testFindBoundaryCases1()
726 assertEquals("aA", mat.group()); in testFindBoundaryCases2()
734 assertEquals("aA", mat.group()); in testFindBoundaryCases3()
742 assertEquals("A", mat.group()); in testFindBoundaryCases4()
752 assertEquals(res[k], mat.group()); in testFindBoundaryCases5()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DModeTest.java37 assertEquals("dog", m.group(1)); in testCase()
43 assertEquals("cAt", m.group(1)); in testCase()
45 assertEquals("doG", m.group(1)); in testCase()
51 assertEquals("cAt", m.group(1)); in testCase()
53 assertEquals("doG", m.group(1)); in testCase()
82 assertEquals("1", m.group(1)); in testMultiline()
84 assertEquals("2", m.group(1)); in testMultiline()
90 assertEquals("3", m.group(1)); in testMultiline()
92 assertEquals("4", m.group(1)); in testMultiline()
98 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.java174 mat.group(i + 2); in testGroupint()
176 mat.group(i + 100); in testGroupint()
178 mat.group(-1); in testGroupint()
180 mat.group(-100); in testGroupint()
197 .group(j + 1)); in testGroupint()
212 assertEquals(positiveTestString, mat.group()); in testGroup()
215 assertEquals(mat.group(0), mat.group()); in testGroup()
223 mat.group(); in testGroup()
235 assertEquals("a", mat.group(1)); in testGroupPossessive()
314 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/libart/src/main/java/java/lang/
DThread.java129 volatile ThreadGroup group; field in Thread
276 public Thread(ThreadGroup group, Runnable runnable) { in Thread() argument
277 create(group, runnable, null, 0); in Thread()
296 public Thread(ThreadGroup group, Runnable runnable, String threadName) { in Thread() argument
301 create(group, runnable, threadName, 0); in Thread()
317 public Thread(ThreadGroup group, String threadName) { in Thread() argument
322 create(group, null, threadName, 0); in Thread()
346 public Thread(ThreadGroup group, Runnable runnable, String threadName, long stackSize) { in Thread() argument
350 create(group, runnable, threadName, stackSize); in Thread()
360 Thread(ThreadGroup group, String name, int priority, boolean daemon) { in Thread() argument
[all …]
DThreadGroup.java132 for (ThreadGroup group : groups) { in activeCount()
133 count += group.activeCount(); in activeCount()
148 for (ThreadGroup group : groups) { in activeGroupCount()
150 count += 1 + group.activeGroupCount(); in activeGroupCount()
364 for (ThreadGroup group : groups) { in enumerateGeneric()
368 enumerationIndex = group.enumerateGeneric(enumeration, recurse, in enumerateGeneric()
419 for (ThreadGroup group : groups) { in interrupt()
420 group.interrupt(); in interrupt()
479 for (ThreadGroup group : groups) { in list()
480 group.list(levels); in list()
[all …]
/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()
134 ThreadGroup group = new ThreadGroup(initialThreadGroup, "enumerateThreadArray"); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ() local
136 List<MyThread> newThreads = populateGroupsWithThreads(group, groupSize); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ()
284 ThreadGroup group = new ThreadGroup("Foo"); in test_resume() local
286 Thread thread = launchFiveSecondDummyThread(group); in test_resume()
295 group.resume(); in test_resume()
301 private Thread launchFiveSecondDummyThread(ThreadGroup group) { in launchFiveSecondDummyThread() argument
302 Thread thread = new Thread(group, "Bar") { in launchFiveSecondDummyThread()
362 private List<MyThread> populateGroupsWithThreads(ThreadGroup group, int threadCount) { in populateGroupsWithThreads() argument
[all …]
DThreadTest.java157 ThreadGroup group = new ThreadGroup("1"); in testGetAllStackTracesIncludesAllGroups() local
158 Thread t2 = new Thread(group, "t2") { in testGetAllStackTracesIncludesAllGroups()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DMulticastSocketTest.java235 private void test_joinGroupLjava_net_InetAddress(InetAddress group) throws Exception { in test_joinGroupLjava_net_InetAddress() argument
237 receivingSocket.joinGroup(group); in test_joinGroupLjava_net_InetAddress()
242 new InetSocketAddress(group, receivingSocket.getLocalPort()); in test_joinGroupLjava_net_InetAddress()
313 NetworkInterface networkInterface, InetAddress group, InetAddress group2) in test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface() argument
317 SocketAddress groupSockAddr = new InetSocketAddress(group, sendingSocket.getLocalPort()); in test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
323 new InetSocketAddress(group, receivingSocket.getLocalPort()); in test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
338 groupAddress = new InetSocketAddress(group, receivingSocket.getLocalPort()); in test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
384 InetAddress group = null; in test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface() local
388 group = GOOD_IPv4; in test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
392 group = GOOD_IPv6; in test_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()
DOldMatcherTest.java169 … assertEquals("Start is wrong for group " + i + " :" + mat.group(i), start, mat.start(i)); in test_startI()
171 … assertEquals("Start is wrong for group " + i + " :" + mat.group(i), start + 4, mat.start(i)); in test_startI()
191 …assertEquals("End is wrong for group " + i + " :" + mat.group(i), start + mat.group(i).length(), m… in test_endI()
193 …assertEquals("End is wrong for group " + i + " :" + mat.group(i), start + 4 + mat.group(i).length(… in test_endI()
247 assertEquals(testString.substring(i, i + length), mat2.group(1)); in test_findI()
462 assertEquals("group not matched", "abbabb", mat.toMatchResult().group()); in test_toMatchResult()
463 assertEquals("3 group not matched", "abb", mat.toMatchResult().group(3)); in test_toMatchResult()
588 m.appendReplacement(sb, m.group(1) + m.group(2)); in testConcurrentMatcherAccess()
/libcore/luni/src/main/java/org/apache/harmony/security/utils/
DObjectIdentifier.java58 private Object group; field in ObjectIdentifier
91 this.group = oidGroup; in ObjectIdentifier()
121 return group; in getGroup()
/libcore/dalvik/src/main/java/dalvik/system/profiler/
DSamplingProfiler.java464 ThreadGroup group = thread.getThreadGroup(); in addStartThread() local
465 String groupName = group == null ? null : group.getName(); in addStartThread()
466 ThreadGroup parentGroup = group == null ? null : group.getParent(); in addStartThread()
/libcore/luni/src/main/java/java/util/
DTimeZone.java390 hour = Integer.parseInt(m.group(1)); in getCustomTimeZone()
391 if (m.group(3) != null) { in getCustomTimeZone()
392 minute = Integer.parseInt(m.group(3)); in getCustomTimeZone()
DScanner.java384 return matcher.group(); in findInLine()
468 result = matcher.group(); in findWithinHorizon()
594 String floatString = matcher.group(); in hasNextBigDecimal()
635 String intString = matcher.group(); in hasNextBigInteger()
689 String intString = matcher.group(); in hasNextByte()
714 String floatString = matcher.group(); in hasNextDouble()
739 String floatString = matcher.group(); in hasNextFloat()
781 String intString = matcher.group(); in hasNextInt()
835 String intString = matcher.group(); in hasNextLong()
876 String intString = matcher.group(); in hasNextShort()
[all …]
/libcore/luni/src/main/java/java/lang/
DHexStringParser.java110 String signStr = matcher.group(1); in parse()
111 String significantStr = matcher.group(2); in parse()
112 String exponentStr = matcher.group(3); in parse()
/libcore/benchmarks/src/benchmarks/regression/
DSchemePrefixBenchmark.java63 return matcher.group(1).toLowerCase(Locale.US); in REGEX()
/libcore/luni/src/main/java/java/util/concurrent/
DExecutors.java511 private final ThreadGroup group;
517 group = (s != null) ? s.getThreadGroup() :
525 Thread t = new Thread(group, r,

12