Lines Matching defs:end

253      * Draw marquee text as ellipsize end while inactive instead of with the fade.
358 // Use "end" drawable as "right" drawable if the "right" drawable was not defined
365 // JB-MR1+ normal case: "start" / "end" drawables are overriding "left" / "right"
1393 private void setRelativeDrawablesIfNeeded(Drawable start, Drawable end) {
1394 boolean hasRelativeDrawables = (start != null) || (end != null);
1415 if (end != null) {
1416 end.setBounds(0, 0, end.getIntrinsicWidth(), end.getIntrinsicHeight());
1417 end.setState(state);
1418 end.copyBounds(compoundRect);
1419 end.setCallback(this);
1421 dr.mDrawableEnd = end;
1849 * Returns the end padding of the view, plus space for the end
1962 * Returns the total end padding of the view, including the end
2183 * Sets the Drawables (if any) to appear to the start of, above, to the end
2197 @Nullable Drawable end, @Nullable Drawable bottom) {
2211 || end != null || bottom != null;
2252 if (dr.mDrawableEnd != end && dr.mDrawableEnd != null) {
2255 dr.mDrawableEnd = end;
2277 if (end != null) {
2278 end.setState(state);
2279 end.copyBounds(compoundRect);
2280 end.setCallback(this);
2315 * Sets the Drawables (if any) to appear to the start of, above, to the end
2324 * @param end Resource identifier of the end Drawable.
2333 public void setCompoundDrawablesRelativeWithIntrinsicBounds(int start, int top, int end,
2339 end != 0 ? context.getDrawable(end) : null,
2344 * Sets the Drawables (if any) to appear to the start of, above, to the end
2357 @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) {
2362 if (end != null) {
2363 end.setBounds(0, 0, end.getIntrinsicWidth(), end.getIntrinsicHeight());
2371 setCompoundDrawablesRelative(start, top, end, bottom);
2395 * Returns drawables for the start, top, end, and bottom borders.
2463 public void setPaddingRelative(int start, int top, int end, int bottom) {
2465 end != getPaddingEnd() ||
2472 super.setPaddingRelative(start, top, end, bottom);
3619 public void append(CharSequence text, int start, int end) {
3624 ((Editable) mText).append(text, start, end);
3724 int end = 0;
3728 end = getSelectionEnd();
3729 if (start >= 0 || end >= 0) {
3739 ss.selEnd = end;
3754 if (isFocused() && start >= 0 && end >= 0) {
4116 int end = getSelectionEnd();
4121 if (start >= 0 || end >= 0) {
4125 Math.max(0, Math.min(end, len)));
4837 int end = Math.max(Math.max(a, b), c);
4838 invalidateRegion(start, end, true /* Also invalidates blinking cursor */);
4843 * Invalidates the region of text enclosed between the start and end text offsets.
4845 void invalidateRegion(int start, int end, boolean invalidateCursor) {
4864 if (start == end)
4867 lineEnd = mLayout.getLineForOffset(end);
4886 right = (int) (mLayout.getPrimaryHorizontal(end) + 1.0);
4924 * For selection, ensure start or end is visible depending on controller's state.
4934 * TODO: This should really only keep the end in view if
6040 static void removeParcelableSpans(Spannable spannable, int start, int end) {
6041 Object[] spans = spannable.getSpans(start, end, ParcelableSpan.class);
6065 int end = text.partialEndOffset;
6066 if (end > N) end = N;
6067 removeParcelableSpans(content, start, end);
6068 content.replace(start, end, text.text);
6081 int end = text.selectionEnd;
6082 if (end < 0) end = 0;
6083 else if (end > N) end = N;
6084 Selection.setSelection(sp, start, end);
6150 * Called by the framework in response to a request to end a batch
7165 int end = getSelectionEnd();
7166 if (start != end) {
7586 * @param selEnd The new selection end location.
7638 // Removes all spans that are inside or actually overlap the start..end range
7639 private <T> void removeIntersectingNonAdjacentSpans(int start, int end, Class<T> type) {
7643 T[] spans = text.getSpans(start, end, type);
7648 if (spanEnd == start || spanStart == end) break;
7748 // XXX Make the start and end move together if this ends up
7773 int end = Selection.getSelectionEnd(buf);
7774 invalidateCursor(end, oldStart, newStart);
8551 final int end = (arguments != null) ? arguments.getInt(
8553 if ((getSelectionStart() != start || getSelectionEnd() != end)) {
8555 if (start == end && end == -1) {
8559 if (start >= 0 && start <= end && end <= text.length()) {
8560 Selection.setSelection((Spannable) text, start, end);
8676 CharSequence getTransformedText(int start, int end) {
8677 return removeSuggestionSpans(mTransformed.subSequence(start, end));
9010 * Deletes the range of text [start, end[.
9013 protected void deleteText_internal(int start, int end) {
9014 ((Editable) mText).delete(start, end);
9018 * Replaces the range of text [start, end[ by replacement text
9021 protected void replaceText_internal(int start, int end, CharSequence text) {
9022 ((Editable) mText).replace(start, end, text);
9029 protected void setSpan_internal(Object span, int start, int end, int flags) {
9030 ((Editable) mText).setSpan(span, start, end, flags);
9037 protected void setCursorPosition_internal(int start, int end) {
9038 Selection.setSelection(((Editable) mText), start, end);
9128 public void setAccessibilitySelection(int start, int end) {
9130 && getAccessibilitySelectionEnd() == end) {
9140 if (Math.min(start, end) >= 0 && Math.max(start, end) <= text.length()) {
9141 Selection.setSelection((Spannable) text, start, end);
9182 + " start=" + selStart + " end=" + selEnd;
9243 public CharSequence subSequence(int start, int end) {
9244 if (start < 0 || end < 0 || start > mLength || end > mLength) {
9245 throw new IndexOutOfBoundsException(start + ", " + end);
9248 return new String(mChars, start + mStart, end - start);
9251 public void getChars(int start, int end, char[] buf, int off) {
9252 if (start < 0 || end < 0 || start > mLength || end > mLength) {
9253 throw new IndexOutOfBoundsException(start + ", " + end);
9256 System.arraycopy(mChars, start + mStart, buf, off, end - start);
9259 public void drawText(Canvas c, int start, int end,
9261 c.drawText(mChars, start + mStart, end - start, x, y, p);
9264 public void drawTextRun(Canvas c, int start, int end,
9266 int count = end - start;
9272 public float measureText(int start, int end, Paint p) {
9273 return p.measureText(mChars, start + mStart, end - start);
9276 public int getTextWidths(int start, int end, float[] widths, Paint p) {
9277 return p.getTextWidths(mChars, start + mStart, end - start, widths);
9280 public float getTextRunAdvances(int start, int end, int contextStart,
9283 int count = end - start;