Lines Matching defs:start

307     // Accessibility action start id for "process text" actions.
418 // Use "start" drawable as "left" drawable if the "left" drawable was not defined
431 // JB-MR1+ normal case: "start" / "end" drawables are overriding "left" / "right"
664 * Kick-start the font cache for the zygote process (to pay the cost of
1554 private void setRelativeDrawablesIfNeeded(Drawable start, Drawable end) {
1555 boolean hasRelativeDrawables = (start != null) || (end != null);
1564 if (start != null) {
1565 start.setBounds(0, 0, start.getIntrinsicWidth(), start.getIntrinsicHeight());
1566 start.setState(state);
1567 start.copyBounds(compoundRect);
1568 start.setCallback(this);
1570 dr.mDrawableStart = start;
1622 // start or stop the cursor blinking as appropriate
2001 * Returns the start padding of the view, plus space for the start
2121 * Returns the total start padding of the view, including the start
2351 * Sets the Drawables (if any) to appear to the start of, above, to the end
2365 public void setCompoundDrawablesRelative(@Nullable Drawable start, @Nullable Drawable top,
2383 final boolean drawables = start != null || top != null
2421 if (dr.mDrawableStart != start && dr.mDrawableStart != null) {
2424 dr.mDrawableStart = start;
2446 if (start != null) {
2447 start.setState(state);
2448 start.copyBounds(compoundRect);
2449 start.setCallback(this);
2494 * Sets the Drawables (if any) to appear to the start of, above, to the end
2501 * @param start Resource identifier of the start Drawable.
2512 public void setCompoundDrawablesRelativeWithIntrinsicBounds(@DrawableRes int start,
2516 start != 0 ? context.getDrawable(start) : null,
2523 * Sets the Drawables (if any) to appear to the start of, above, to the end
2536 public void setCompoundDrawablesRelativeWithIntrinsicBounds(@Nullable Drawable start,
2539 if (start != null) {
2540 start.setBounds(0, 0, start.getIntrinsicWidth(), start.getIntrinsicHeight());
2551 setCompoundDrawablesRelative(start, top, end, bottom);
2573 * Returns drawables for the start, top, end, and bottom borders.
2754 public void setPaddingRelative(int start, int top, int end, int bottom) {
2755 if (start != getPaddingStart() ||
2763 super.setPaddingRelative(start, top, end, bottom);
4036 public void append(CharSequence text, int start, int end) {
4041 ((Editable) mText).append(text, start, end);
4123 int start = -1;
4127 start = getSelectionStart();
4129 if (start >= 0 || end >= 0) {
4155 ss.selStart = start;
4159 if (isFocused() && start >= 0 && end >= 0) {
4498 public final void setText(char[] text, int start, int len) {
4501 if (start < 0 || len < 0 || start + len > text.length) {
4502 throw new IndexOutOfBoundsException(start + ", " + len);
4518 mCharWrapper = new CharWrapper(text, start, len);
4520 mCharWrapper.set(text, start, len);
4533 int start = getSelectionStart();
4539 if (start >= 0 || end >= 0) {
4542 Math.max(0, Math.min(start, len)),
5283 int start = Math.min(Math.min(a, b), c);
5285 invalidateRegion(start, end, true /* Also invalidates blinking cursor */);
5290 * Invalidates the region of text enclosed between the start and end text offsets.
5292 void invalidateRegion(int start, int end, boolean invalidateCursor) {
5296 int lineStart = mLayout.getLineForOffset(start);
5311 if (start == end)
5332 left = (int) mLayout.getPrimaryHorizontal(start);
5371 * For selection, ensure start or end is visible depending on controller's state.
5397 // - onFocusChanged cannot start it when focus is given to a view with selected text (after
6520 static void removeParcelableSpans(Spannable spannable, int start, int end) {
6521 Object[] spans = spannable.getSpans(start, end, ParcelableSpan.class);
6539 int start = 0;
6544 start = text.partialStartOffset;
6545 if (start > N) start = N;
6550 removeParcelableSpans(content, start, end);
6551 if (TextUtils.equals(content.subSequence(start, end), text.text)) {
6554 TextUtils.copySpansFrom((Spanned) text.text, 0, end - start,
6555 Object.class, content, start);
6558 content.replace(start, end, text.text);
6569 int start = text.selectionStart;
6570 if (start < 0) start = 0;
6571 else if (start > N) start = N;
6575 Selection.setSelection(sp, start, end);
6593 // extracted mode will start. Some text is selected though, and will trigger an action mode
6878 // start the marquee immediately
6882 // Defer the start of the marquee until we know our width (see setFrame())
7656 int start = getSelectionStart();
7658 if (start != end) {
7664 int line = mLayout.getLineForOffset(start);
7691 int newStart = start;
7698 if (newStart != start) {
7803 final int start = getSelectionStart();
7806 start > end ? mText.subSequence(end, start) : mText.subSequence(start, end));
8035 mMarquee.start(mMarqueeRepeatLimit);
8055 private void startStopMarquee(boolean start) {
8057 if (start) {
8070 * beginning at <code>start</code> have just replaced old text that had
8075 * @param start The offset of the start of the range of the text that was
8080 protected void onTextChanged(CharSequence text, int start, int lengthBefore, int lengthAfter) {
8088 * @param selStart The new selection start location.
8127 private void sendBeforeTextChanged(CharSequence text, int start, int before, int after) {
8132 list.get(i).beforeTextChanged(text, start, before, after);
8137 removeIntersectingNonAdjacentSpans(start, start + before, SpellCheckSpan.class);
8138 removeIntersectingNonAdjacentSpans(start, start + before, SuggestionSpan.class);
8141 // Removes all spans that are inside or actually overlap the start..end range
8142 private <T> void removeIntersectingNonAdjacentSpans(int start, int end, Class<T> type) {
8146 T[] spans = text.getSpans(start, end, type);
8151 if (spanEnd == start || spanStart == end) break;
8177 void sendOnTextChanged(CharSequence text, int start, int before, int after) {
8182 list.get(i).onTextChanged(text, start, before, after);
8186 if (mEditor != null) mEditor.sendOnTextChanged(start, after);
8225 void handleTextChanged(CharSequence buffer, int start, int before, int after) {
8235 ims.mChangedStart = start;
8236 ims.mChangedEnd = start+before;
8238 ims.mChangedStart = Math.min(ims.mChangedStart, start);
8239 ims.mChangedEnd = Math.max(ims.mChangedEnd, start + before - ims.mChangedDelta);
8244 sendOnTextChanged(buffer, start, before, after);
8245 onTextChanged(buffer, start, before, after);
8253 // XXX Make the start and end move together if this ends up
8964 // The top of the view is fully within its window; start text at line 0.
9172 final int start = (arguments != null) ? arguments.getInt(
9176 if ((getSelectionStart() != start || getSelectionEnd() != end)) {
9178 if (start == end && end == -1) {
9182 if (start >= 0 && start <= end && end <= text.length()) {
9183 Selection.setSelection((Spannable) text, start, end);
9398 CharSequence getTransformedText(int start, int end) {
9399 return removeSuggestionSpans(mTransformed.subSequence(start, end));
9875 * Deletes the range of text [start, end[.
9878 protected void deleteText_internal(int start, int end) {
9879 ((Editable) mText).delete(start, end);
9883 * Replaces the range of text [start, end[ by replacement text
9886 protected void replaceText_internal(int start, int end, CharSequence text) {
9887 ((Editable) mText).replace(start, end, text);
9894 protected void setSpan_internal(Object span, int start, int end, int flags) {
9895 ((Editable) mText).setSpan(span, start, end, flags);
9902 protected void setCursorPosition_internal(int start, int end) {
9903 Selection.setSelection(((Editable) mText), start, end);
9993 public void setAccessibilitySelection(int start, int end) {
9994 if (getAccessibilitySelectionStart() == start
9999 if (Math.min(start, end) >= 0 && Math.max(start, end) <= text.length()) {
10000 Selection.setSelection((Spannable) text, start, end);
10073 + " start=" + selStart + " end=" + selEnd;
10113 public CharWrapper(char[] chars, int start, int len) {
10115 mStart = start;
10119 /* package */ void set(char[] chars, int start, int len) {
10121 mStart = start;
10138 public CharSequence subSequence(int start, int end) {
10139 if (start < 0 || end < 0 || start > mLength || end > mLength) {
10140 throw new IndexOutOfBoundsException(start + ", " + end);
10143 return new String(mChars, start + mStart, end - start);
10146 public void getChars(int start, int end, char[] buf, int off) {
10147 if (start < 0 || end < 0 || start > mLength || end > mLength) {
10148 throw new IndexOutOfBoundsException(start + ", " + end);
10151 System.arraycopy(mChars, start + mStart, buf, off, end - start);
10154 public void drawText(Canvas c, int start, int end,
10156 c.drawText(mChars, start + mStart, end - start, x, y, p);
10159 public void drawTextRun(Canvas c, int start, int end,
10161 int count = end - start;
10163 c.drawTextRun(mChars, start + mStart, count, contextStart + mStart,
10167 public float measureText(int start, int end, Paint p) {
10168 return p.measureText(mChars, start + mStart, end - start);
10171 public int getTextWidths(int start, int end, float[] widths, Paint p) {
10172 return p.getTextWidths(mChars, start + mStart, end - start, widths);
10175 public float getTextRunAdvances(int start, int end, int contextStart,
10178 int count = end - start;
10180 return p.getTextRunAdvances(mChars, start + mStart, count,
10248 start(mRepeatLimit);
10291 void start(int repeatLimit) {
10349 public void beforeTextChanged(CharSequence buffer, int start,
10351 if (DEBUG_EXTRACT) Log.v(LOG_TAG, "beforeTextChanged start=" + start
10360 TextView.this.sendBeforeTextChanged(buffer, start, before, after);
10363 public void onTextChanged(CharSequence buffer, int start, int before, int after) {
10364 if (DEBUG_EXTRACT) Log.v(LOG_TAG, "onTextChanged start=" + start
10366 TextView.this.handleTextChanged(buffer, start, before, after);
10370 sendAccessibilityEventTypeViewTextChanged(mBeforeText, start, before, after);