Lines Matching refs:start

92     // The start offset of the target range in the original text (mSpanned);
211 public Directions getDirections(@IntRange(from = 0) int start, // inclusive
217 final int length = end - start;
218 return AndroidBidi.directions(mParaDir, mLevels.getRawArray(), start, mCopiedBuffer, start,
282 * @param start the inclusive start offset of the target region in the text
285 public float getWidth(int start, int end) {
290 for (int i = start; i < end; ++i) {
296 return nGetWidth(mNativePtr, start, end);
306 public void getBounds(@IntRange(from = 0) int start, @IntRange(from = 0) int end,
308 nGetBounds(mNativePtr, mCopiedBuffer, start, end, bounds);
318 * @param start the inclusive start offset of the target region in the text
326 @IntRange(from = 0) int start,
331 mt.resetAndAnalyzeBidi(text, start, end, textDir);
343 * @param start the inclusive start offset of the target region in the text
352 @IntRange(from = 0) int start,
357 mt.resetAndAnalyzeBidi(text, start, end, textDir);
367 paint, null /* spans */, start, end, 0 /* native static layout ptr */);
371 for (int spanStart = start; spanStart < end; spanStart = spanEnd) {
391 * @param start the inclusive start offset of the target region in the text
401 @IntRange(from = 0) int start,
408 mt.resetAndAnalyzeBidi(text, start, end, textDir);
427 mt.applyMetricsAffectingSpan(paint, null /* spans */, start, end, nativeBuilderPtr);
433 for (int spanStart = start; spanStart < end; spanStart = spanEnd) {
458 * @param start the inclusive start offset of the target region in the text
463 @IntRange(from = 0) int start, // inclusive
468 mTextStart = start;
469 mTextLength = end - start;
474 TextUtils.getChars(text, start, end, mCopiedBuffer, 0);
478 ReplacementSpan[] spans = mSpanned.getSpans(start, end, ReplacementSpan.class);
481 int startInPara = mSpanned.getSpanStart(spans[i]) - start;
482 int endInPara = mSpanned.getSpanEnd(spans[i]) - start;
483 // The span interval may be larger and must be restricted to [start, end)
518 @IntRange(from = 0) int start, // inclusive, in copied buffer
525 mCachedPaint, mSpanned, start + mTextStart, end + mTextStart, mCachedFm);
528 mWidths.set(start, width);
529 if (end > start + 1) {
530 Arrays.fill(mWidths.getRawArray(), start + 1, end, 0.0f);
534 nAddReplacementRun(nativeBuilderPtr, mCachedPaint.getNativeInstance(), start, end,
539 private void applyStyleRun(@IntRange(from = 0) int start, // inclusive, in copied buffer
547 mCopiedBuffer, start, end - start, start, end - start, false /* isRtl */,
548 mWidths.getRawArray(), start);
550 nAddStyleRun(nativeBuilderPtr, mCachedPaint.getNativeInstance(), start, end,
555 byte level = mLevels.get(start);
557 // Safe to search from start + 1.
558 for (int levelStart = start, levelEnd = start + 1;; ++levelEnd) {
583 @IntRange(from = 0) int start, // inclusive, in original text buffer
610 final int startInCopiedBuffer = start - mTextStart;
679 @FloatRange(from = 0.0f) float measure(int start, int limit) {
682 for (int i = start; i < limit; ++i) {
702 * @param start The start offset in the copied buffer.
708 @IntRange(from = 0) int start,
717 * @param start The start offset in the copied buffer.
723 @IntRange(from = 0) int start,
736 @IntRange(from = 0) int start,
745 private static native void nGetBounds(long nativePtr, char[] buf, int start, int end,