/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/main/java/java/math/ |
D | BitSieve.java | 107 int start = 0; in BitSieve() local 109 int step = smallSieve.sieveSearch(smallSieve.length, start); in BitSieve() 117 start = b.divideOneWord(convertedStep, q); in BitSieve() 120 start = convertedStep - start; in BitSieve() 121 if (start%2 == 0) in BitSieve() 122 start += convertedStep; in BitSieve() 123 sieveSingle(searchLen, (start-1)/2, convertedStep); in BitSieve() 166 private int sieveSearch(int limit, int start) { in sieveSearch() argument 167 if (start >= limit) in sieveSearch() 170 int index = start; in sieveSearch() [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/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/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/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 | 1736 int start = pos.index; in parseInternal() local 1737 int oldStart = start; in parseInternal() 1754 if (start >= textLength || text.charAt(start) != (char)count) { in parseInternal() 1756 pos.errorIndex = start; in parseInternal() 1759 start++; in parseInternal() 1764 if (start >= textLength || text.charAt(start) != compiledPattern[i++]) { in parseInternal() 1766 pos.errorIndex = start; in parseInternal() 1769 start++; in parseInternal() 1813 start = subParse(text, start, tag, count, obeyCount, in parseInternal() 1816 if (start < 0) { in parseInternal() [all …]
|
/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 …]
|
/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/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/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/luni/src/main/java/libcore/internal/ |
D | StringPool.java | 33 private static boolean contentEquals(String s, char[] chars, int start, int length) { in contentEquals() argument 38 if (chars[start + i] != s.charAt(i)) { in contentEquals() 48 public String get(char[] array, int start, int length) { in get() argument 51 for (int i = start; i < start + length; i++) { in get() 61 if (pooled != null && contentEquals(pooled, array, start, length)) { in get() 65 String result = new String(array, start, length); in get()
|
/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/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/ojluni/src/test/java/util/concurrent/tck/ |
D | CyclicBarrierTest.java | 164 t1.start(); in testAwait1_Interrupted_BrokenBarrier() 165 t2.start(); in testAwait1_Interrupted_BrokenBarrier() 190 t1.start(); in testAwait2_Interrupted_BrokenBarrier() 191 t2.start(); in testAwait2_Interrupted_BrokenBarrier() 290 t1.start(); in testReset_BrokenBarrier() 291 t2.start(); in testReset_BrokenBarrier() 357 final CyclicBarrier start = new CyclicBarrier(3); in testResetWithoutBreakage() local 360 start.await(); in testResetWithoutBreakage() 366 start.await(); in testResetWithoutBreakage() 370 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/luni/src/test/java/libcore/java/lang/ |
D | ThreadGroupTest.java | 49 first.start(); in interrupt_shouldInterruptAllThreadsInAGroup() 50 second.start(); in interrupt_shouldInterruptAllThreadsInAGroup() 65 first.start(); in interrupt_shouldInterruptThreadsInSubgroups() 66 second.start(); in interrupt_shouldInterruptThreadsInSubgroups() 81 first.start(); in interrupt_shouldNotInterruptThreadsInParentGroup() 82 second.start(); in interrupt_shouldNotInterruptThreadsInParentGroup() 96 thread.start(); in suspend_shouldThrowUnsupportedOperationException() 113 thread.start(); in stop_shouldThrowUnsupportedOperationException()
|
/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/ojluni/src/test/java/awt/font/NumericShaper/ |
D | MTTest.java | 75 th1.start(); in main() 76 th2.start(); in main() 77 th3.start(); in main() 78 th4.start(); in main() 79 th5.start(); in main() 80 th6.start(); in main() 81 th7.start(); in main() 82 th8.start(); in main()
|