/libcore/luni/src/main/java/java/lang/ |
D | AbstractStringBuilder.java | 152 final void append0(CharSequence s, int start, int end) { in append0() argument 156 if ((start | end) < 0 || start > end || end > s.length()) { in append0() 160 int length = end - start; in append0() 170 ((String) s)._getChars(start, end, value, count); in append0() 173 System.arraycopy(other.value, start, value, count, length); in append0() 176 for (int i = start; i < end; i++) { in append0() 210 private StringIndexOutOfBoundsException startEndAndLength(int start, int end) { in startEndAndLength() argument 211 throw new StringIndexOutOfBoundsException(count, start, end - start); in startEndAndLength() 214 final void delete0(int start, int end) { in delete0() argument 222 if (start < 0 || start > count || start > end) { in delete0() [all …]
|
D | StringBuffer.java | 277 public synchronized StringBuffer append(char[] chars, int start, int length) { in append() argument 278 append0(chars, start, length); in append() 322 public synchronized StringBuffer append(CharSequence s, int start, int end) { in append() argument 323 append0(s, start, end); in append() 376 public synchronized StringBuffer delete(int start, int end) { in delete() argument 377 delete0(start, end); in delete() 418 public synchronized void getChars(int start, int end, char[] buffer, int idx) { in getChars() argument 419 super.getChars(start, end, buffer, idx); in getChars() 423 public synchronized int indexOf(String subString, int start) { in indexOf() argument 424 return super.indexOf(subString, start); in indexOf() [all …]
|
D | Math.java | 1052 public static double nextAfter(double start, double direction) { in nextAfter() argument 1053 if (start == 0 && direction == 0) { in nextAfter() 1056 return nextafter(start, direction); in nextAfter() 1063 public static float nextAfter(float start, double direction) { in nextAfter() argument 1064 if (Float.isNaN(start) || Double.isNaN(direction)) { in nextAfter() 1067 if (start == 0 && direction == 0) { in nextAfter() 1070 if ((start == Float.MIN_VALUE && direction < start) in nextAfter() 1071 || (start == -Float.MIN_VALUE && direction > start)) { in nextAfter() 1072 return (start > 0 ? 0f : -0f); in nextAfter() 1074 if (Float.isInfinite(start) && (direction != start)) { in nextAfter() [all …]
|
D | StringToReal.java | 140 int start = 0; in initialParse() local 141 c = s.charAt(start); in initialParse() 143 ++start; in initialParse() 147 ++start; in initialParse() 156 for (int i = start; i < end; i++) { in initialParse() 169 s = s.substring(start, decimal) + s.substring(decimal + 1, end); in initialParse() 171 s = s.substring(start, end); in initialParse() 190 start = 0; in initialParse() 191 while (start < end - 1 && s.charAt(start) == '0') { in initialParse() 192 start++; in initialParse() [all …]
|
/libcore/luni/src/main/java/java/text/ |
D | StringCharacterIterator.java | 27 int start, end, offset; field in StringCharacterIterator 39 start = offset = 0; in StringCharacterIterator() 59 start = 0; in StringCharacterIterator() 84 public StringCharacterIterator(String value, int start, int end, int location) { in StringCharacterIterator() argument 86 if (start < 0 || end > string.length() || start > end in StringCharacterIterator() 87 || location < start || location > end) { in StringCharacterIterator() 90 this.start = start; in StringCharacterIterator() 142 return string.equals(it.string) && start == it.start && end == it.end in equals() 154 if (start == end) { in first() 157 offset = start; in first() [all …]
|
D | AttributedString.java | 42 int start; field in AttributedString.Range 49 start = s; in Range() 158 return range.start >= begin && range.start < end in inRange() 166 if (range.start >= begin && range.start < end) { in inRange() 171 || (range.start >= begin && range.start < end); in inRange() 210 if (offset >= range.start && offset < range.end) { in currentValue() 261 if (offset >= range.start && offset < range.end) { in runLimit() 266 result = range.start; in runLimit() 306 if (range.start >= end) { in runStart() 309 if (offset >= range.start && offset < range.end) { in runStart() [all …]
|
/libcore/libart/src/main/java/java/lang/ |
D | String.java | 503 private StringIndexOutOfBoundsException startEndAndLength(int start, int end) { in startEndAndLength() argument 504 throw new StringIndexOutOfBoundsException(this, start, end - start); in startEndAndLength() 618 public static String copyValueOf(char[] data, int start, int length) { in copyValueOf() argument 619 return new String(data, start, length); in copyValueOf() 722 public void getBytes(int start, int end, byte[] data, int index) { in getBytes() argument 723 if (start >= 0 && start <= end && end <= count) { in getBytes() 726 for (int i = offset + start; i < end; i++) { in getBytes() 730 throw failedBoundsCheck(data.length, index, end - start); in getBytes() 733 throw startEndAndLength(start, end); in getBytes() 810 public void getChars(int start, int end, char[] buffer, int index) { in getChars() argument [all …]
|
/libcore/luni/src/main/java/java/util/ |
D | Arrays.java | 691 public static void fill(byte[] array, int start, int end, byte value) { in fill() argument 692 Arrays.checkStartAndEnd(array.length, start, end); in fill() 693 for (int i = start; i < end; i++) { in fill() 728 public static void fill(short[] array, int start, int end, short value) { in fill() argument 729 Arrays.checkStartAndEnd(array.length, start, end); in fill() 730 for (int i = start; i < end; i++) { in fill() 765 public static void fill(char[] array, int start, int end, char value) { in fill() argument 766 Arrays.checkStartAndEnd(array.length, start, end); in fill() 767 for (int i = start; i < end; i++) { in fill() 802 public static void fill(int[] array, int start, int end, int value) { in fill() argument [all …]
|
D | AbstractList.java | 89 FullListIterator(int start) { in FullListIterator() argument 90 if (start >= 0 && start <= size()) { in FullListIterator() 91 pos = start - 1; in FullListIterator() 155 SubAbstractListRandomAccess(AbstractList<E> list, int start, int end) { in SubAbstractListRandomAccess() argument 156 super(list, start, end); in SubAbstractListRandomAccess() 173 private int start; field in AbstractList.SubAbstractList.SubAbstractListIterator 181 start = offset; in SubAbstractListIterator() 182 end = start + length; in SubAbstractListIterator() 196 return iterator.previousIndex() >= start; in hasPrevious() 207 return iterator.nextIndex() - start; in nextIndex() [all …]
|
D | TreeSet.java | 355 public NavigableSet<E> subSet(E start, boolean startInclusive, E end, in subSet() argument 358 int compare = (c == null) ? ((Comparable<E>) start).compareTo(end) : c in subSet() 359 .compare(start, end); in subSet() 361 return new TreeSet<E>(backingMap.subMap(start, startInclusive, end, in subSet() 392 public NavigableSet<E> tailSet(E start, boolean startInclusive) { in tailSet() argument 396 ((Comparable<E>) start).compareTo(start); in tailSet() 398 c.compare(start, start); in tailSet() 400 return new TreeSet<E>(backingMap.tailMap(start, startInclusive)); in tailSet() 424 public SortedSet<E> subSet(E start, E end) { in subSet() argument 425 return subSet(start, true, end, false); in subSet() [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/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/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/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/luni/src/main/java/java/nio/ |
D | CharBuffer.java | 89 public static CharBuffer wrap(char[] array, int start, int charCount) { in wrap() argument 90 Arrays.checkOffsetAndCount(array.length, start, charCount); in wrap() 92 buf.position = start; in wrap() 93 buf.limit = start + charCount; in wrap() 130 public static CharBuffer wrap(CharSequence cs, int start, int end) { in wrap() argument 131 if (start < 0 || end < start || end > cs.length()) { in wrap() 132 …throw new IndexOutOfBoundsException("cs.length()=" + cs.length() + ", start=" + start + ", end=" +… in wrap() 135 result.position = start; in wrap() 562 public CharBuffer put(String str, int start, int end) { in put() argument 566 if (start < 0 || end < start || end > str.length()) { in put() [all …]
|
/libcore/luni/src/main/java/java/util/regex/ |
D | Matcher.java | 110 buffer.append(input.substring(appendPos, start())); in appendReplacement() 196 private Matcher reset(CharSequence input, int start, int end) { in reset() argument 201 if (start < 0 || end < 0 || start > input.length() || end > input.length() || start > end) { in reset() 206 this.regionStart = start; in reset() 268 public Matcher region(int start, int end) { in region() argument 269 return reset(input, start, end); in region() 337 public boolean find(int start) { in find() argument 338 if (start < 0 || start > input.length()) { in find() 339 throw new IndexOutOfBoundsException("start=" + start + "; length=" + input.length()); in find() 343 matchFound = findImpl(address, input, start, matchOffsets); in find() [all …]
|
D | MatchResultImpl.java | 54 return text.substring(start(), end()); in group() 71 public int start() { in start() method in MatchResultImpl 72 return start(0); in start() 75 public int start(int group) { in start() method in MatchResultImpl
|
/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 | 132 t1.start(); in testAwait1_Interrupted_BrokenBarrier() 133 t2.start(); in testAwait1_Interrupted_BrokenBarrier() 158 t1.start(); in testAwait2_Interrupted_BrokenBarrier() 159 t2.start(); in testAwait2_Interrupted_BrokenBarrier() 258 t1.start(); in testReset_BrokenBarrier() 259 t2.start(); in testReset_BrokenBarrier() 325 final CyclicBarrier start = new CyclicBarrier(3); in testResetWithoutBreakage() local 328 start.await(); in testResetWithoutBreakage() 334 start.await(); in testResetWithoutBreakage() 338 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/luni/src/main/java/java/awt/font/ |
D | NumericShaper.java | 665 public void shape(char[] text, int start, int count, int context) { in shape() argument 667 contextualShape(text, start, count, getIndexFromRange(context)); in shape() 669 nonContextualShape(text, start, count); in shape() 681 public void shape(char[] text, int start, int count) { in shape() argument 683 contextualShape(text, start, count, fDefaultContextIndex); in shape() 685 nonContextualShape(text, start, count); in shape() 700 private void contextualShape(char[] text, int start, int count, in contextualShape() argument 712 for (int ind = start; ind < start + count; ind++){ in contextualShape() 741 private void nonContextualShape(char[] text, int start, int count){ in nonContextualShape() argument 744 for (int ind = start; ind < start + count; ind++){ in nonContextualShape()
|
/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 …]
|
/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/luni/src/main/java/libcore/net/url/ |
D | FileHandler.java | 97 protected void parseURL(URL url, String spec, int start, int end) { in parseURL() argument 98 if (end < start) { in parseURL() 102 if (start < end) { in parseURL() 103 parseString = spec.substring(start, end).replace('\\', '/'); in parseURL()
|