/libcore/ojluni/src/main/java/sun/security/util/ |
D | ManifestDigester.java | 126 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/ |
D | TestChronoUnit.java | 108 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/ |
D | StringTokenIterator.java | 39 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/ |
D | RangeTest.java | 61 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/ |
D | CharacterIteratorFieldDelegate.java | 56 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 …]
|
D | SimpleDateFormat.java | 1739 int start = pos.index; in parseInternal() local 1740 int oldStart = start; in parseInternal() 1757 if (start >= textLength || text.charAt(start) != (char)count) { in parseInternal() 1759 pos.errorIndex = start; in parseInternal() 1762 start++; in parseInternal() 1767 if (start >= textLength || text.charAt(start) != compiledPattern[i++]) { in parseInternal() 1769 pos.errorIndex = start; in parseInternal() 1772 start++; in parseInternal() 1816 start = subParse(text, start, tag, count, obeyCount, in parseInternal() 1819 if (start < 0) { in parseInternal() [all …]
|
D | FieldPosition.java | 296 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/ojluni/src/main/java/java/lang/ |
D | AbstractStringBuilder.java | 533 public AbstractStringBuilder append(CharSequence s, int start, int end) { in append() argument 536 if ((start < 0) || (start > end) || (end > s.length())) in append() 538 "start " + start + ", end " + end + ", s.length() " in append() 540 int len = end - start; in append() 542 for (int i = start, j = count; i < end; i++, j++) in append() 754 public AbstractStringBuilder delete(int start, int end) { in delete() argument 755 if (start < 0) in delete() 756 throw new StringIndexOutOfBoundsException(start); in delete() 759 if (start > end) in delete() 761 int len = end - start; in delete() [all …]
|
D | StringBuffer.java | 347 public synchronized StringBuffer append(CharSequence s, int start, int end) in append() argument 350 super.append(s, start, end); in append() 428 public synchronized StringBuffer delete(int start, int end) { in delete() argument 430 super.delete(start, end); in delete() 450 public synchronized StringBuffer replace(int start, int end, String str) { in replace() argument 452 super.replace(start, end, str); in replace() 461 public synchronized String substring(int start) { in substring() argument 462 return substring(start, count); in substring() 470 public synchronized CharSequence subSequence(int start, int end) { in subSequence() argument 471 return super.substring(start, end); in subSequence() [all …]
|
/libcore/ojluni/src/main/java/java/awt/font/ |
D | NumericShaper.java | 348 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/ojluni/src/main/java/java/util/regex/ |
D | Matcher.java | 268 public int start() { in start() method in Matcher 269 return start(0); in start() 296 public int start(int group) { in start() method in Matcher 324 public int start(String name) { in start() method in Matcher 573 public boolean find(int start) { in find() argument 575 if ((start < 0) || (start > limit)) in find() 579 matchFound = nativeMatcher.find(start, groups); in find() 716 sb.append(text.substring(appendPos, start())); in appendReplacement() 922 public Matcher region(int start, int end) { in region() argument 923 return reset(originalInput, start, end); in region() [all …]
|
/libcore/ojluni/src/main/java/java/nio/ |
D | StringCharBuffer.java | 36 StringCharBuffer(CharSequence s, int start, int end) { // package-private in StringCharBuffer() argument 37 super(-1, start, end, s.length()); in StringCharBuffer() 39 if ((start < 0) || (start > n) || (end < start) || (end > n)) in StringCharBuffer() 102 final String toString(int start, int end) { in toString() argument 103 return str.toString().substring(start + offset, end + offset); in toString() 106 public final CharBuffer subSequence(int start, int end) { in subSequence() argument 111 pos + checkIndex(start, pos), in subSequence()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | Support_Format.java | 84 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | Matcher2Test.java | 43 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/support/src/test/java/tests/support/ |
D | Support_Format.java | 87 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/luni/src/main/java/libcore/internal/ |
D | StringPool.java | 35 private static boolean contentEquals(String s, char[] chars, int start, int length) { in contentEquals() argument 40 if (chars[start + i] != s.charAt(i)) { in contentEquals() 51 public String get(char[] array, int start, int length) { in get() argument 54 for (int i = start; i < start + length; i++) { in get() 64 if (pooled != null && contentEquals(pooled, array, start, length)) { in get() 68 String result = new String(array, start, length); in get()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ThreadTest.java | 128 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() 183 st.start(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String() 216 st.start(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_String() 227 t.start(); in test_activeCount() 250 st.start(); in test_checkAccess() 318 firstOne.start(); in test_enumerate$Ljava_lang_Thread() 328 secondOne.start(); in test_enumerate$Ljava_lang_Thread() [all …]
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | Util.java | 115 private int start; field in Util.BufferCache 139 ByteBuffer buf = buffers[start]; in get() 142 int i = start; in get() 143 while ((i = next(i)) != start) { in get() 155 buffers[i] = buffers[start]; in get() 159 buffers[start] = null; in get() 160 start = next(start); in get() 176 start = (start + TEMP_BUF_POOL_SIZE - 1) % TEMP_BUF_POOL_SIZE; in offerFirst() 177 buffers[start] = buf; in offerFirst() 190 int next = (start + count) % TEMP_BUF_POOL_SIZE; in offerLast() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | CyclicBarrierTest.java | 143 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/ |
D | ThreadsTest.java | 58 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() 88 parkerThread.start(); in test_parkFor_3() 101 parkerThread.start(); in test_parkUntil_1() 102 waiterThread.start(); in test_parkUntil_1() 116 parkerThread.start(); in test_parkUntil_2() 117 waiterThread.start(); in test_parkUntil_2() 131 parkerThread.start(); in test_parkUntil_3() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestChronologyPerf.java | 43 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/luni/src/test/java/libcore/java/util/regex/ |
D | OldMatcherTest.java | 163 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() 184 matcher.start(-1 /* out of bounds */); in test_startI_groupIndexOutOfBounds() 189 matcher.start(2 /* out of bounds */); in test_startI_groupIndexOutOfBounds() 199 int start = 3; in test_endI() local 204 while (mat.find(start + j - 2)) { in test_endI() 206 …assertEquals("End is wrong for group " + i + " :" + mat.group(i), start + mat.group(i).length(), m… in test_endI() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SimpleDateFormatBenchmark.java | 93 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/lang/ |
D | OldThreadTest.java | 55 st.start(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L() 128 parker.start(); in test_joinWithSpuriousInterruption() 129 unparker.start(); in test_joinWithSpuriousInterruption() 148 st.start(); in test_setDaemonZ() 168 thread.start(); in launchFiveSecondFakeThread() 204 st.start(); in test_sleepJ() 251 st.start(); in test_sleepJI() 293 start(); in Counter() 349 th.start(); in test_getState() 359 long start = System.currentTimeMillis(); in test_getState() local [all …]
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | MemoryHandler.java | 96 int start, count; field in MemoryHandler 154 start = 0; in init() 207 int ix = (start+count)%buffer.length; in publish() 212 start++; in publish() 213 start %= buffer.length; in publish() 227 int ix = (start+i)%buffer.length; in push() 232 start = 0; in push()
|