/libcore/ojluni/src/main/java/java/text/ |
D | StringCharacterIterator.java | 56 private int end; field in StringCharacterIterator 90 public StringCharacterIterator(String text, int begin, int end, int pos) { in StringCharacterIterator() argument 95 if (begin < 0 || begin > end || end > text.length()) in StringCharacterIterator() 98 if (pos < begin || pos > end) in StringCharacterIterator() 102 this.end = end; in StringCharacterIterator() 120 this.end = text.length(); in setText() 140 if (end != begin) { in last() 141 pos = end - 1; in last() 143 pos = end; in last() 154 if (p < begin || p > end) in setIndex() [all …]
|
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() 71 end - start, as.length() - aStart) + in formatted() 82 if (size < end) { in formatted() 86 buffer.substring(aStart, end)); in formatted() 90 size = end; in formatted() 96 int start, int end, StringBuffer buffer) { in formatted() argument 97 formatted(attr, value, start, end, buffer); in formatted()
|
D | FieldPosition.java | 297 int end, StringBuffer buffer) { in formatted() argument 300 setEndIndex(end); in formatted() 301 encounteredField = (start != end); in formatted() 306 int start, int end, StringBuffer buffer) { in formatted() argument 309 setEndIndex(end); in formatted() 310 encounteredField = (start != end); in formatted()
|
/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | Support_Format.java | 38 String text, Format.Field field, int begin, int end) { in t_FormatWithField() argument 52 if (begin != pos.getBeginIndex() || end != pos.getEndIndex()) { in t_FormatWithField() 53 assertEquals(field + " " + begin + ".." + end, in t_FormatWithField() 85 int end = iterator.getRunLimit(); in findFields() local 91 result.add(new FieldContainer(start, end, attribute, value)); in findFields() 97 iterator.setIndex(end); in findFields() 104 final int end; 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 [all …]
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | RangeTest.java | 63 for (int end : Arrays.asList(1, 10, -1, -10)) { in testIntRange() 64 setContext("end", end); 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() 83 for (int end : Arrays.asList(1, 10, -1, -10)) { in testIntRange() 84 setContext("end", end); 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/support/src/test/java/tests/support/ |
D | Support_Format.java | 37 String text, Format.Field field, int begin, int end) { in t_FormatWithField() argument 56 + field, end, pos.getEndIndex()); in t_FormatWithField() 88 int end = iterator.getRunLimit(); in findFields() local 94 result.add(new FieldContainer(start, end, attribute, value)); in findFields() 100 iterator.setIndex(end); 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() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
D | Matcher2Test.java | 47 m.end(); in testErrorConditions() 65 m.end(1); in testErrorConditions() 92 assertEquals(8, m.end()); in testErrorConditions2() 94 assertEquals(4, m.end(1)); in testErrorConditions2() 96 assertEquals(8, m.end(2)); in testErrorConditions2() 105 m.end(3); in testErrorConditions2() 123 m.end(-1); in testErrorConditions2() 136 assertEquals(16, m.end()); in testErrorConditions2() 138 assertEquals(12, m.end(1)); in testErrorConditions2() 140 assertEquals(16, m.end(2)); in testErrorConditions2() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | Matcher2Test.java | 49 m.end(); in testErrorConditions() 67 m.end(1); in testErrorConditions() 94 assertEquals(8, m.end()); in testErrorConditions2() 96 assertEquals(4, m.end(1)); in testErrorConditions2() 98 assertEquals(8, m.end(2)); in testErrorConditions2() 107 m.end(3); in testErrorConditions2() 125 m.end(-1); in testErrorConditions2() 138 assertEquals(16, m.end()); in testErrorConditions2() 140 assertEquals(12, m.end(1)); in testErrorConditions2() 142 assertEquals(16, m.end(2)); in testErrorConditions2() [all …]
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
D | StringTokenIterator.java | 40 private int end; field in StringTokenIterator 67 return end; in currentEnd() 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() 88 return (end < text.length()); in hasNext() 96 end = nextDelimiter(start); in setStart() 97 token = text.substring(start, end); in setStart()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | AbstractStringBuilder.java | 540 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 773 if (end > count) in delete() 774 end = count; in delete() 775 if (start > end) in delete() 777 int len = end - start; in delete() [all …]
|
/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 111 pos + checkIndex(end, 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() 455 int end = offset + length; in get() local 456 for (int i = offset; i < end; i++) in get() 569 int end = offset + length; in put() local 570 for (int i = offset; i < end; i++) in put() 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() [all …]
|
D | ByteBufferAsCharBuffer.java | 161 public String toString(int start, int end) { in toString() argument 162 if ((end > limit()) || (start > end)) in toString() 165 int len = end - start; in toString() 170 db.limit(end); in toString() 180 public CharBuffer subSequence(int start, int end) { in subSequence() argument 187 if ((start < 0) || (end > len) || (start > end)) in subSequence() 192 pos + end, in subSequence()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | InflaterTest.java | 54 inflate.end(); in test_end() 64 i.end(); in test_end() 66 i.end(); in test_end() 91 inflate.end(); in test_finished() 119 inflateDiction.end(); in test_getAdler() 135 inflate.end(); in test_getRemaining() 174 deflate.end(); in test_getTotalIn() 175 inflate.end(); in test_getTotalIn() 195 inflate2.end(); in test_getTotalIn() 263 deflate.end(); in test_getTotalOut() [all …]
|
D | DeflaterTest.java | 87 defl.end(); in test_deflate$B() 105 infl.end(); in test_deflate$B() 131 defl.end(); in test_deflate$BII() 149 infl.end(); in test_deflate$BII() 170 defl.end(); in test_deflate$BII() 186 defl.end(); in test_end() 226 defl.end(); in test_finish() 240 infl.end(); in test_finish() 259 defl.end(); in test_finished() 278 defl.end(); in test_getAdler() [all …]
|
/libcore/ojluni/src/main/java/java/util/regex/ |
D | Matcher.java | 256 public int end() { in end() method in Matcher 257 return end(0); in end() 284 public int end(int group) { in end() method in Matcher 310 public int end(String name) { in end() method in Matcher 641 appendPos = end(); in appendReplacement() 829 public Matcher region(int start, int end) { in region() argument 830 return reset(originalInput, start, end); in region() 1071 private Matcher reset(CharSequence input, int start, int end) { in reset() argument 1076 if (start < 0 || end < 0 || start > input.length() || end > input.length() || start > end) { in reset() 1083 this.regionEnd = end; in reset() [all …]
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDateImpl.java | 378 ChronoLocalDate end = getChronology().date(endExclusive); in until() local 381 case DAYS: return daysUntil(end); in until() 382 case WEEKS: return daysUntil(end) / 7; in until() 383 case MONTHS: return monthsUntil(end); in until() 384 case YEARS: return monthsUntil(end) / 12; in until() 385 case DECADES: return monthsUntil(end) / 120; in until() 386 case CENTURIES: return monthsUntil(end) / 1200; in until() 387 case MILLENNIA: return monthsUntil(end) / 12000; in until() 388 case ERAS: return end.getLong(ERA) - getLong(ERA); in until() 393 return unit.between(this, end); in until() [all …]
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | Sink.java | 139 default void end() {} in end() method 258 public void end() { in end() method in Sink.ChainedReference 259 downstream.end(); in end() 290 public void end() { in end() method in Sink.ChainedInt 291 downstream.end(); in end() 322 public void end() { in end() method in Sink.ChainedLong 323 downstream.end(); in end() 354 public void end() { in end() method in Sink.ChainedDouble 355 downstream.end(); in end()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestChronologyPerf.java | 45 long end = System.nanoTime(); in test_chronologyGetAvailablePerf() local 46 Duration d = Duration.of(end - start, ChronoUnit.NANOS); in test_chronologyGetAvailablePerf() 51 end = System.nanoTime(); in test_chronologyGetAvailablePerf() 52 d = Duration.of(end - start, ChronoUnit.NANOS); in test_chronologyGetAvailablePerf() 57 end = System.nanoTime(); in test_chronologyGetAvailablePerf() 58 d = Duration.of(end - start, ChronoUnit.NANOS); in test_chronologyGetAvailablePerf()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/parameter/ |
D | MetadataVariations.smali | 32 .end annotation 33 .end method 40 .end annotation 41 .end method 47 .end annotation 48 .end method 58 .end annotation 59 .end method 667 .end annotation 668 .end method [all …]
|
D | ParameterMetadataTestClasses$GenericParameter.smali | 26 .end annotation 31 .end annotation 44 .end annotation 55 .end annotation 62 .end method 75 .end annotation 86 .end annotation 91 .end method
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ArraysTest.java | 285 int begin = 100, end = 500; in test_parallelPrefix$III() local 289 for(int i = begin; i < end - 1; ++i) { in test_parallelPrefix$III() 293 Arrays.parallelPrefix(list, begin, end, (x, y) -> x + y); in test_parallelPrefix$III() 297 Arrays.parallelPrefix(list, begin, end, null); in test_parallelPrefix$III() 303 Arrays.parallelPrefix((int[]) null, begin, end, (x, y) -> x + y); in test_parallelPrefix$III() local 309 Arrays.parallelPrefix(list, end, begin, (x, y) -> x + y); in test_parallelPrefix$III() 360 int begin = 100, end = 500; in test_parallelPrefix$LII() local 364 for(int i = begin; i < end - 1; ++i) { in test_parallelPrefix$LII() 368 Arrays.parallelPrefix(list, begin, end, (x, y) -> x + y); in test_parallelPrefix$LII() 372 Arrays.parallelPrefix(list, begin, end, null); in test_parallelPrefix$LII() [all …]
|
/libcore/ojluni/src/main/java/sun/invoke/util/ |
D | BytecodeDescriptor.java | 45 int start, int end, ClassLoader loader) { in parseMethod() argument 51 if (i[0] < end && str.charAt(i[0]) == '(') { in parseMethod() 53 while (i[0] < end && str.charAt(i[0]) != ')') { in parseMethod() 54 Class<?> pt = parseSig(str, i, end, loader); in parseMethod() 63 Class<?> rtype = parseSig(str, i, end, loader); in parseMethod() 64 if (rtype == null || i[0] != end) in parseMethod() 74 static private Class<?> parseSig(String str, int[] i, int end, ClassLoader loader) { in parseSig() argument 75 if (i[0] == end) return null; in parseSig() 88 Class<?> t = parseSig(str, i, end, loader); in parseSig()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SimpleDateFormatBenchmark.java | 93 long start, end; in main() local 98 end = System.nanoTime(); in main() 99 System.out.printf("Creating first SDF: %,d ns\n", end-start); in main() 107 end = System.nanoTime(); in main() 108 System.out.printf("First parse: %,d ns\n", end-start); in main() 112 end = System.nanoTime(); in main() 113 System.out.printf("First format: %,d ns\n", end-start); in main()
|