/libcore/ojluni/src/main/java/sun/security/util/ |
D | ManifestDigester.java | 124 int start = pos.startOfNext; in ManifestDigester() local 125 while(findSection(start, pos)) { in ManifestDigester() 126 int len = pos.endOfFirstLine-start+1; in ManifestDigester() 127 int sectionLen = pos.endOfSection-start+1; in ManifestDigester() 128 int sectionLenWithBlank = pos.startOfNext-start; in ManifestDigester() 131 if (isNameAttr(bytes, start)) { in ManifestDigester() 136 new String(bytes, start+6, len-6, "UTF8")); in ManifestDigester() 138 int i = start + len; in ManifestDigester() 139 if ((i-start) < sectionLen) { in ManifestDigester() 147 while ((i-start) < sectionLen) { in ManifestDigester() [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 | 1442 int start = pos.index; in parseInternal() local 1443 int oldStart = start; in parseInternal() 1460 if (start >= textLength || text.charAt(start) != (char)count) { in parseInternal() 1462 pos.errorIndex = start; in parseInternal() 1465 start++; in parseInternal() 1470 if (start >= textLength || text.charAt(start) != compiledPattern[i++]) { in parseInternal() 1472 pos.errorIndex = start; in parseInternal() 1475 start++; in parseInternal() 1519 start = subParse(text, start, tag, count, obeyCount, in parseInternal() 1522 if (start < 0) { in parseInternal() [all …]
|
D | FieldPosition.java | 285 public void formatted(Format.Field attr, Object value, int start, in formatted() argument 288 setBeginIndex(start); in formatted() 290 encounteredField = (start != end); in formatted() 295 int start, int end, StringBuffer buffer) { in formatted() argument 297 setBeginIndex(start); in formatted() 299 encounteredField = (start != end); in formatted()
|
/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/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
D | Matcher2Test.java | 41 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/ |
D | Matcher.java | 460 public boolean find(int start) { in find() argument 461 if (start < 0 || start > input.length()) { in find() 462 throw new IndexOutOfBoundsException("start=" + start + "; length=" + input.length()); in find() 466 matchFound = findImpl(address, input, start, matchOffsets); in find() 600 sb.append(input.substring(appendPos, start())); in appendReplacement() 772 public Matcher region(int start, int end) { in region() argument 773 return reset(input, start, end); in region() 1014 private Matcher reset(CharSequence input, int start, int end) { in reset() argument 1019 if (start < 0 || end < 0 || start > input.length() || end > input.length() || start > end) { in reset() 1024 this.regionStart = start; in reset() [all …]
|
/libcore/ojluni/src/main/java/java/lang/ |
D | AbstractStringBuilder.java | 477 public AbstractStringBuilder append(CharSequence s, int start, int end) { in append() argument 480 if ((start < 0) || (start > end) || (end > s.length())) in append() 482 "start " + start + ", end " + end + ", s.length() " in append() 484 int len = end - start; in append() 487 ((String) s).getCharsNoCheck(start, end, value, count); in append() 490 System.arraycopy(other.value, start, value, count, len); in append() 492 for (int i = start, j = count; i < end; i++, j++) { in append() 720 public AbstractStringBuilder delete(int start, int end) { in delete() argument 721 if (start < 0) in delete() 722 throw new StringIndexOutOfBoundsException(start); in delete() [all …]
|
D | StringBuffer.java | 307 public synchronized StringBuffer append(CharSequence s, int start, int end) in append() argument 309 super.append(s, start, end); in append() 368 public synchronized StringBuffer delete(int start, int end) { in delete() argument 369 super.delete(start, end); in delete() 386 public synchronized StringBuffer replace(int start, int end, String str) { in replace() argument 387 super.replace(start, end, str); in replace() 395 public synchronized String substring(int start) { in substring() argument 396 return substring(start, count); in substring() 403 public synchronized CharSequence subSequence(int start, int end) { in subSequence() argument 404 return super.substring(start, end); in subSequence() [all …]
|
/libcore/luni/src/main/java/libcore/internal/ |
D | StringPool.java | 28 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/ |
D | StringCharBuffer.java | 35 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()
|
D | CharBuffer.java | 263 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/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() 1082 public void shape(char[] text, int start, int count) { in shape() argument 1083 checkParams(text, start, count); in shape() 1086 shapeContextually(text, start, count, key); in shape() 1088 shapeContextually(text, start, count, shapingRange); in shape() 1091 shapeNonContextually(text, start, count); in shape() [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/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() 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/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() 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/ojluni/src/main/java/sun/nio/ch/ |
D | Util.java | 72 private int start; field in Util.BufferCache 93 ByteBuffer buf = buffers[start]; in get() 96 int i = start; in get() 97 while ((i = next(i)) != start) { in get() 109 buffers[i] = buffers[start]; in get() 113 buffers[start] = null; in get() 114 start = next(start); in get() 127 start = (start + TEMP_BUF_POOL_SIZE - 1) % TEMP_BUF_POOL_SIZE; in offerFirst() 128 buffers[start] = buf; in offerFirst() 138 int next = (start + count) % TEMP_BUF_POOL_SIZE; in offerLast() [all …]
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | MemoryHandler.java | 82 int start, count; field in MemoryHandler 133 start = 0; in init() 185 int ix = (start+count)%buffer.length; in publish() 190 start++; in publish() 191 start %= buffer.length; in publish() 205 int ix = (start+i)%buffer.length; in push() 210 start = 0; in push()
|
/libcore/luni/src/test/java/libcore/java/util/regex/ |
D | OldMatcherTest.java | 162 int start = 3; in test_startI() local 167 while (mat.find(start + j - 2)) { in test_startI() 169 … 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() 173 start = end; in test_startI() 184 int start = 3; in test_endI() local 189 while (mat.find(start + j - 2)) { in test_endI() 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() 195 start = end; in test_endI() [all …]
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | FpUtils.java | 734 public static double nextAfter(double start, double direction) { in nextAfter() argument 747 if (isNaN(start) || isNaN(direction)) { in nextAfter() 749 return start + direction; in nextAfter() 750 } else if (start == direction) { in nextAfter() 755 long transducer = Double.doubleToRawLongBits(start + 0.0d); in nextAfter() 769 if (direction > start) { // Calculate next greater value in nextAfter() 772 assert direction < start; in nextAfter() 834 public static float nextAfter(float start, double direction) { in nextAfter() argument 847 if (isNaN(start) || isNaN(direction)) { in nextAfter() 849 return start + (float)direction; in nextAfter() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldThreadTest.java | 54 st.start(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L() 127 parker.start(); in test_joinWithSpuriousInterruption() 128 unparker.start(); in test_joinWithSpuriousInterruption() 147 st.start(); in test_setDaemonZ() 167 thread.start(); in launchFiveSecondDummyThread() 203 st.start(); in test_sleepJ() 250 st.start(); in test_sleepJI() 292 start(); in Counter() 348 th.start(); in test_getState() 358 long start = System.currentTimeMillis(); in test_getState() local [all …]
|