Lines Matching defs:offset

257      * @param offset the line-relative character offset, between 0 and the
260 * before offset, false to measure the leading edge of the character
261 * at offset.
264 * @return the signed offset from the leading margin to the requested
267 float measure(int offset, boolean trailing, FontMetricsInt fmi) {
268 int target = trailing ? offset - 1 : offset;
277 return measureRun(0, offset, mLen, false, fmi);
280 return measureRun(0, offset, mLen, true, fmi);
313 return h += measureRun(segstart, offset, j, runIsRtl, fmi);
320 return h += measureRun(segstart, offset, j, runIsRtl, null);
324 if (offset == j) {
377 * @param offset the offset to measure to, between start and limit inclusive
383 * of the character at offset, based on the run (not paragraph) direction
385 private float measureRun(int start, int offset, int limit, boolean runIsRtl,
387 return handleRun(start, offset, limit, runIsRtl, null, 0, 0, 0, 0, fmi, true);
402 * @return the new offset. If it is less than 0 or greater than the length
404 * actual offset.
569 * Returns the next valid offset within this directional run, skipping
572 * on neighboring lines. If the returned offset is less than zero or
573 * greater than the line length, the offset should be recomputed on the
580 * @param offset the offset
581 * @param after true if the new offset should logically follow the provided
582 * offset
583 * @return the new offset
586 boolean runIsRtl, int offset, boolean after) {
588 if (runIndex < 0 || offset == (after ? mLen : 0)) {
593 return TextUtils.getOffsetAfter(mText, offset + mStart) - mStart;
595 return TextUtils.getOffsetBefore(mText, offset + mStart) - mStart;
606 int target = after ? offset + 1 : offset;
644 dir, offset, cursorOpt);
647 mStart + spanLimit, dir, mStart + offset, cursorOpt) - mStart;
691 * @param offset the offset for the purpose of measuring
698 FontMetricsInt fmi, boolean needWidth, int offset) {
716 runIsRtl, offset);
720 delta + contextStart, delta + contextEnd, runIsRtl, delta + offset);
838 * @param measureLimit the offset to measure to, between start and limit inclusive
916 int offset = Math.min(jnext, mlimit);
921 if ((mCharacterStyleSpanSet.spanStarts[k] >= mStart + offset) ||
933 top, y, bottom, fmi, needWidth || jnext < measureLimit, offset);
971 * @param h the (unsigned) offset from the leading margin
972 * @return the (unsigned) tab position after this offset