Home
last modified time | relevance | path

Searched refs:start (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/libcore/ojluni/src/main/java/sun/security/util/
DManifestDigester.java126 int start = pos.startOfNext; in ManifestDigester() local
127 while(findSection(start, pos)) { in ManifestDigester()
128 int len = pos.endOfFirstLine-start+1; in ManifestDigester()
129 int sectionLen = pos.endOfSection-start+1; in ManifestDigester()
130 int sectionLenWithBlank = pos.startOfNext-start; in ManifestDigester()
133 if (isNameAttr(bytes, start)) { in ManifestDigester()
138 new String(bytes, start+6, len-6, "UTF8")); in ManifestDigester()
140 int i = start + len; in ManifestDigester()
141 if ((i-start) < sectionLen) { in ManifestDigester()
149 while ((i-start) < sectionLen) { in ManifestDigester()
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestChronoUnit.java108 public void test_yearsBetween(LocalDate start, LocalDate end, long expected) { in test_yearsBetween() argument
109 assertEquals(YEARS.between(start, end), expected); in test_yearsBetween()
113 public void test_yearsBetweenReversed(LocalDate start, LocalDate end, long expected) { in test_yearsBetweenReversed() argument
114 assertEquals(YEARS.between(end, start), -expected); in test_yearsBetweenReversed()
118 …public void test_yearsBetween_LocalDateTimeSameTime(LocalDate start, LocalDate end, long expected)… in test_yearsBetween_LocalDateTimeSameTime() argument
119 assertEquals(YEARS.between(start.atTime(12, 30), end.atTime(12, 30)), expected); in test_yearsBetween_LocalDateTimeSameTime()
123 …public void test_yearsBetween_LocalDateTimeLaterTime(LocalDate start, LocalDate end, long expected… in test_yearsBetween_LocalDateTimeLaterTime() argument
125 assertEquals(YEARS.between(start.atTime(12, 30), end.atTime(12, 31)), expected); in test_yearsBetween_LocalDateTimeLaterTime()
127 assertEquals(YEARS.between(start.atTime(12, 30), end.atTime(12, 29)), expected); in test_yearsBetween_LocalDateTimeLaterTime()
132 … public void test_yearsBetween_ZonedDateSameOffset(LocalDate start, LocalDate end, long expected) { in test_yearsBetween_ZonedDateSameOffset() argument
[all …]
/libcore/ojluni/src/main/java/sun/util/locale/
DStringTokenIterator.java39 private int start; field in StringTokenIterator
63 return start; in currentStart()
76 start = end + 1; in next()
77 end = nextDelimiter(start); in next()
78 token = text.substring(start, end); in next()
80 start = end; in next()
95 start = offset; in setStart()
96 end = nextDelimiter(start); in setStart()
97 token = text.substring(start, end); in setStart()
108 private int nextDelimiter(int start) { in nextDelimiter() argument
[all …]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DRangeTest.java61 for (int start : Arrays.asList(1, 10, -1, -10)) { in testIntRange()
62 setContext("start", start); in testIntRange()
65 int size = (start < end) ? end - start : 0; in testIntRange()
67 for (int i = start, p = 0; i < end; i++, p++) { in testIntRange()
71 int[] inc = IntStream.range(start, end).toArray(); in testIntRange()
75 withData(intRangeData(start, end)).stream(s -> s). in testIntRange()
81 for (int start : Arrays.asList(1, 10, -1, -10)) { in testIntRange()
82 setContext("start", start); in testIntRange()
85 int size = (start <= end) ? end - start + 1 : 0; in testIntRange()
87 for (int i = start, p = 0; i <= end; i++, p++) { in testIntRange()
[all …]
/libcore/ojluni/src/main/java/java/text/
DCharacterIteratorFieldDelegate.java56 public void formatted(Format.Field attr, Object value, int start, int end, in formatted() argument
58 if (start != end) { in formatted()
59 if (start < size) { in formatted()
64 while (start < index) { in formatted()
68 int aStart = Math.max(0, start - newIndex); in formatted()
71 end - start, as.length() - aStart) + in formatted()
76 if (size < start) { in formatted()
79 buffer.substring(size, start))); in formatted()
80 size = start; in formatted()
84 int aStart = Math.max(start, size); in formatted()
[all …]
DSimpleDateFormat.java1538 int start = pos.index; in parseInternal() local
1539 int oldStart = start; in parseInternal()
1556 if (start >= textLength || text.charAt(start) != (char)count) { in parseInternal()
1558 pos.errorIndex = start; in parseInternal()
1561 start++; in parseInternal()
1566 if (start >= textLength || text.charAt(start) != compiledPattern[i++]) { in parseInternal()
1568 pos.errorIndex = start; in parseInternal()
1571 start++; in parseInternal()
1615 start = subParse(text, start, tag, count, obeyCount, in parseInternal()
1618 if (start < 0) { in parseInternal()
[all …]
DFieldPosition.java296 public void formatted(Format.Field attr, Object value, int start, in formatted() argument
299 setBeginIndex(start); in formatted()
301 encounteredField = (start != end); in formatted()
306 int start, int end, StringBuffer buffer) { in formatted() argument
308 setBeginIndex(start); in formatted()
310 encounteredField = (start != end); in formatted()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DMatcher2Test.java43 m.start(); in testErrorConditions()
61 m.start(1); in testErrorConditions()
93 assertEquals(0, m.start()); in testErrorConditions2()
95 assertEquals(0, m.start(1)); in testErrorConditions2()
97 assertEquals(4, m.start(2)); in testErrorConditions2()
101 m.start(3); in testErrorConditions2()
119 m.start(-1); in testErrorConditions2()
137 assertEquals(8, m.start()); in testErrorConditions2()
139 assertEquals(8, m.start(1)); in testErrorConditions2()
141 assertEquals(12, m.start(2)); in testErrorConditions2()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DMatcher2Test.java41 m.start(); in testErrorConditions()
59 m.start(1); in testErrorConditions()
91 assertEquals(0, m.start()); in testErrorConditions2()
93 assertEquals(0, m.start(1)); in testErrorConditions2()
95 assertEquals(4, m.start(2)); in testErrorConditions2()
99 m.start(3); in testErrorConditions2()
117 m.start(-1); in testErrorConditions2()
135 assertEquals(8, m.start()); in testErrorConditions2()
137 assertEquals(8, m.start(1)); in testErrorConditions2()
139 assertEquals(12, m.start(2)); in testErrorConditions2()
[all …]
/libcore/ojluni/src/main/java/java/util/regex/
DMatcher.java492 public boolean find(int start) { in find() argument
493 if (start < 0 || start > input.length()) { in find()
494 throw new IndexOutOfBoundsException("start=" + start + "; length=" + input.length()); in find()
498 matchFound = findImpl(address, start, matchOffsets); in find()
632 sb.append(input.substring(appendPos, start())); in appendReplacement()
822 public Matcher region(int start, int end) { in region() argument
823 return reset(input, start, end); in region()
1064 private Matcher reset(CharSequence input, int start, int end) { in reset() argument
1069 if (start < 0 || end < 0 || start > input.length() || end > input.length() || start > end) { in reset()
1074 this.regionStart = start; in reset()
[all …]
/libcore/luni/src/main/java/libcore/internal/
DStringPool.java28 private static boolean contentEquals(String s, char[] chars, int start, int length) { in contentEquals() argument
33 if (chars[start + i] != s.charAt(i)) { in contentEquals()
43 public String get(char[] array, int start, int length) { in get() argument
46 for (int i = start; i < start + length; i++) { in get()
56 if (pooled != null && contentEquals(pooled, array, start, length)) { in get()
60 String result = new String(array, start, length); in get()
/libcore/ojluni/src/main/java/java/nio/
DStringCharBuffer.java35 StringCharBuffer(CharSequence s, int start, int end) { // package-private in StringCharBuffer() argument
36 super(-1, start, end, s.length()); in StringCharBuffer()
38 if ((start < 0) || (start > n) || (end < start) || (end > n)) in StringCharBuffer()
101 final String toString(int start, int end) { in toString() argument
102 return str.toString().substring(start + offset, end + offset); in toString()
105 public final CharBuffer subSequence(int start, int end) { in subSequence() argument
110 pos + checkIndex(start, pos), in subSequence()
DCharBuffer.java263 public static CharBuffer wrap(CharSequence csq, int start, int end) { in wrap() argument
265 return new StringCharBuffer(csq, start, end); in wrap()
636 public CharBuffer put(String src, int start, int end) { in put() argument
637 checkBounds(start, end - start, src.length()); in put()
641 if (start == end) { in put()
651 if ((end - start) > remaining()) { in put()
655 for (int i = start; i < end; i++) in put()
905 abstract String toString(int start, int end); // package-private in toString() argument
962 public abstract CharBuffer subSequence(int start, int end); in subSequence() argument
1023 public CharBuffer append(CharSequence csq, int start, int end) { in append() argument
[all …]
/libcore/ojluni/src/main/java/java/lang/
DAbstractStringBuilder.java540 public AbstractStringBuilder append(CharSequence s, int start, int end) { in append() argument
543 if ((start < 0) || (start > end) || (end > s.length())) in append()
545 "start " + start + ", end " + end + ", s.length() " in append()
547 int len = end - start; in append()
549 for (int i = start, j = count; i < end; i++, j++) in append()
770 public AbstractStringBuilder delete(int start, int end) { in delete() argument
771 if (start < 0) in delete()
772 throw new StringIndexOutOfBoundsException(start); in delete()
775 if (start > end) in delete()
777 int len = end - start; in delete()
[all …]
/libcore/ojluni/src/main/java/java/awt/font/
DNumericShaper.java348 private final int start, // inclusive field in NumericShaper.Range
351 private Range(int base, int start, int end) { in Range() argument
353 this.start = start; in Range()
366 return start <= c && c < end; in inRange()
578 if (codepoint < range.start) { in rangeForCodePoint()
1100 public void shape(char[] text, int start, int count) { in shape() argument
1101 checkParams(text, start, count); in shape()
1104 shapeContextually(text, start, count, key); in shape()
1106 shapeContextually(text, start, count, shapingRange); in shape()
1109 shapeNonContextually(text, start, count); in shape()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DSupport_Format.java84 int start = iterator.getRunStart(); in findFields() local
91 result.add(new FieldContainer(start, end, attribute, value)); in findFields()
103 final int start; field in Support_Format.FieldContainer
109 public FieldContainer(int start, int end, Attribute attribute) { in FieldContainer() argument
110 this(start, end, attribute, attribute); in FieldContainer()
114 public FieldContainer(int start, int end, Attribute attribute, int value) { in FieldContainer() argument
115 this(start, end, attribute, new Integer(value)); in FieldContainer()
119 public FieldContainer(int start, int end, Attribute attribute, Object value) { in FieldContainer() argument
120 this.start = start; in FieldContainer()
132 …return (start == fc.start && end == fc.end && attribute == fc.attribute && value.equals(fc.value)); in equals()
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_Format.java87 int start = iterator.getRunStart(); in findFields() local
94 result.add(new FieldContainer(start, end, attribute, value)); in findFields()
106 int start, end; field in Support_Format.FieldContainer
113 public FieldContainer(int start, int end, in FieldContainer() argument
115 this(start, end, attribute, attribute); in FieldContainer()
119 public FieldContainer(int start, int end, Attribute attribute, int value) { in FieldContainer() argument
120 this(start, end, attribute, new Integer(value)); in FieldContainer()
124 public FieldContainer(int start, int end, Attribute attribute, in FieldContainer() argument
126 this.start = start; in FieldContainer()
139 return (start == fc.start && end == fc.end in equals()
/libcore/ojluni/src/main/java/sun/nio/ch/
DUtil.java65 private int start; field in Util.BufferCache
86 ByteBuffer buf = buffers[start]; in get()
89 int i = start; in get()
90 while ((i = next(i)) != start) { in get()
102 buffers[i] = buffers[start]; in get()
106 buffers[start] = null; in get()
107 start = next(start); in get()
120 start = (start + TEMP_BUF_POOL_SIZE - 1) % TEMP_BUF_POOL_SIZE; in offerFirst()
121 buffers[start] = buf; in offerFirst()
131 int next = (start + count) % TEMP_BUF_POOL_SIZE; in offerLast()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadTest.java128 ct.start(); in test_ConstructorLjava_lang_Runnable()
140 st1.start(); in test_ConstructorLjava_lang_RunnableLjava_lang_String()
151 t.start(); in test_ConstructorLjava_lang_String()
163 st.start(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_Runnable()
182 st.start(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String()
215 st.start(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_String()
226 t.start(); in test_activeCount()
249 st.start(); in test_checkAccess()
317 firstOne.start(); in test_enumerate$Ljava_lang_Thread()
327 secondOne.start(); in test_enumerate$Ljava_lang_Thread()
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestChronologyPerf.java43 long start = System.nanoTime(); in test_chronologyGetAvailablePerf() local
46 Duration d = Duration.of(end - start, ChronoUnit.NANOS); in test_chronologyGetAvailablePerf()
49 start = System.nanoTime(); in test_chronologyGetAvailablePerf()
52 d = Duration.of(end - start, ChronoUnit.NANOS); in test_chronologyGetAvailablePerf()
55 start = System.nanoTime(); in test_chronologyGetAvailablePerf()
58 d = Duration.of(end - start, ChronoUnit.NANOS); in test_chronologyGetAvailablePerf()
/libcore/jsr166-tests/src/test/java/jsr166/
DCyclicBarrierTest.java143 t1.start(); in testAwait1_Interrupted_BrokenBarrier()
144 t2.start(); in testAwait1_Interrupted_BrokenBarrier()
169 t1.start(); in testAwait2_Interrupted_BrokenBarrier()
170 t2.start(); in testAwait2_Interrupted_BrokenBarrier()
269 t1.start(); in testReset_BrokenBarrier()
270 t2.start(); in testReset_BrokenBarrier()
336 final CyclicBarrier start = new CyclicBarrier(3); in testResetWithoutBreakage() local
339 start.await(); in testResetWithoutBreakage()
345 start.await(); in testResetWithoutBreakage()
349 start.await(); in testResetWithoutBreakage()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/apache/harmony/kernel/dalvik/
DThreadsTest.java58 parkerThread.start(); in test_parkFor_1()
59 waiterThread.start(); in test_parkFor_1()
73 parkerThread.start(); in test_parkFor_2()
74 waiterThread.start(); in test_parkFor_2()
87 parkerThread.start(); in test_parkFor_3()
100 parkerThread.start(); in test_parkUntil_1()
101 waiterThread.start(); in test_parkUntil_1()
115 parkerThread.start(); in test_parkUntil_2()
116 waiterThread.start(); in test_parkUntil_2()
129 parkerThread.start(); in test_parkUntil_3()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DSimpleDateFormatBenchmark.java93 long start, end; in main() local
96 start = System.nanoTime(); in main()
99 System.out.printf("Creating first SDF: %,d ns\n", end-start); in main()
105 start = System.nanoTime(); in main()
108 System.out.printf("First parse: %,d ns\n", end-start); in main()
110 start = System.nanoTime(); in main()
113 System.out.printf("First format: %,d ns\n", end-start); in main()
/libcore/luni/src/test/java/libcore/java/util/regex/
DOldMatcherTest.java163 int start = 3; in test_startI() local
168 while (mat.find(start + j - 2)) { in test_startI()
170 … assertEquals("Start is wrong for group " + i + " :" + mat.group(i), start, mat.start(i)); in test_startI()
172 … assertEquals("Start is wrong for group " + i + " :" + mat.group(i), start + 4, mat.start(i)); in test_startI()
174 start = end; in test_startI()
185 int start = 3; in test_endI() local
190 while (mat.find(start + j - 2)) { in test_endI()
192 …assertEquals("End is wrong for group " + i + " :" + mat.group(i), start + mat.group(i).length(), m… in test_endI()
194 …assertEquals("End is wrong for group " + i + " :" + mat.group(i), start + 4 + mat.group(i).length(… in test_endI()
196 start = end; in test_endI()
[all …]
/libcore/ojluni/src/main/java/java/util/logging/
DMemoryHandler.java96 int start, count; field in MemoryHandler
153 start = 0; in init()
206 int ix = (start+count)%buffer.length; in publish()
211 start++; in publish()
212 start %= buffer.length; in publish()
226 int ix = (start+i)%buffer.length; in push()
231 start = 0; in push()

12345678910>>...12