Lines Matching refs:start

297     // The inclusive start offset of the measuring target.
332 @IntRange(from = 0) int start, @IntRange(from = 0) int end, boolean computeLayout) {
341 for (int paraStart = start; paraStart < end; paraStart = paraEnd) {
359 private PrecomputedText(@NonNull CharSequence text, @IntRange(from = 0) int start,
363 mStart = start;
378 * Returns the inclusive start offset of measured region.
408 * Returns the paragraph start offset of the text.
437 public boolean canUseMeasuredResult(@IntRange(from = 0) int start, @IntRange(from = 0) int end,
441 return mStart == start
462 * Both {@code start} and {@code end} offset need to be in the same paragraph, otherwise
465 * @param start the inclusive start offset in the text
468 * @throws IllegalArgumentException if start and end offset are in the different paragraph.
470 public @FloatRange(from = 0) float getWidth(@IntRange(from = 0) int start,
472 Preconditions.checkArgument(0 <= start && start <= mText.length(), "invalid start offset");
474 Preconditions.checkArgument(start <= end, "start offset can not be larger than end offset");
476 if (start == end) {
479 final int paraIndex = findParaIndex(start);
482 if (start < paraStart || paraEnd < end) {
485 + "request: (" + start + ", " + end + ")");
487 return getMeasuredParagraph(paraIndex).getWidth(start - paraStart, end - paraStart);
492 * Both {@code start} and {@code end} offset need to be in the same paragraph, otherwise
495 * @param start the inclusive start offset in the text
498 * @throws IllegalArgumentException if start and end offset are in the different paragraph.
500 public void getBounds(@IntRange(from = 0) int start, @IntRange(from = 0) int end,
502 Preconditions.checkArgument(0 <= start && start <= mText.length(), "invalid start offset");
504 Preconditions.checkArgument(start <= end, "start offset can not be larger than end offset");
506 if (start == end) {
510 final int paraIndex = findParaIndex(start);
513 if (start < paraStart || paraEnd < end) {
516 + "request: (" + start + ", " + end + ")");
518 getMeasuredParagraph(paraIndex).getBounds(start - paraStart, end - paraStart, bounds);
544 public void setSpan(Object what, int start, int end, int flags) {
549 mText.setSpan(what, start, end, flags);
570 public <T> T[] getSpans(int start, int end, Class<T> type) {
571 return mText.getSpans(start, end, type);
590 public int nextSpanTransition(int start, int limit, Class type) {
591 return mText.nextSpanTransition(start, limit, type);
610 public CharSequence subSequence(int start, int end) {
611 return PrecomputedText.create(mText.subSequence(start, end), mParams);