Lines Matching defs:end

248      * Draw marquee text as ellipsize end while inactive instead of with the fade.
347 // Use "end" drawable as "right" drawable if the "right" drawable was not defined
354 // JB-MR1+ normal case: "start" / "end" drawables are overriding "left" / "right"
1343 private void setRelativeDrawablesIfNeeded(Drawable start, Drawable end) {
1344 boolean hasRelativeDrawables = (start != null) || (end != null);
1365 if (end != null) {
1366 end.setBounds(0, 0, end.getIntrinsicWidth(), end.getIntrinsicHeight());
1367 end.setState(state);
1368 end.copyBounds(compoundRect);
1369 end.setCallback(this);
1371 dr.mDrawableEnd = end;
1799 * Returns the end padding of the view, plus space for the end
1904 * Returns the total end padding of the view, including the end
2110 * to the end of, and below the text. Use null if you do not
2120 Drawable end, Drawable bottom) {
2124 || end != null || bottom != null;
2165 if (dr.mDrawableEnd != end && dr.mDrawableEnd != null) {
2168 dr.mDrawableEnd = end;
2190 if (end != null) {
2191 end.setState(state);
2192 end.copyBounds(compoundRect);
2193 end.setCallback(this);
2229 * to the end of, and below the text. Use 0 if you do not
2235 * @param end Resource identifier of the end Drawable.
2244 public void setCompoundDrawablesRelativeWithIntrinsicBounds(int start, int top, int end,
2250 end != 0 ? resources.getDrawable(end) : null,
2256 * to the end of, and below the text. Use null if you do not
2266 Drawable end, Drawable bottom) {
2271 if (end != null) {
2272 end.setBounds(0, 0, end.getIntrinsicWidth(), end.getIntrinsicHeight());
2280 setCompoundDrawablesRelative(start, top, end, bottom);
2303 * Returns drawables for the start, top, end, and bottom borders.
2370 public void setPaddingRelative(int start, int top, int end, int bottom) {
2372 end != getPaddingEnd() ||
2379 super.setPaddingRelative(start, top, end, bottom);
3403 public void append(CharSequence text, int start, int end) {
3408 ((Editable) mText).append(text, start, end);
3479 int end = 0;
3483 end = getSelectionEnd();
3484 if (start >= 0 || end >= 0) {
3494 ss.selEnd = end;
3521 if (isFocused() && start >= 0 && end >= 0) {
3883 int end = getSelectionEnd();
3888 if (start >= 0 || end >= 0) {
3892 Math.max(0, Math.min(end, len)));
4604 int end = Math.max(Math.max(a, b), c);
4605 invalidateRegion(start, end, true /* Also invalidates blinking cursor */);
4610 * Invalidates the region of text enclosed between the start and end text offsets.
4612 void invalidateRegion(int start, int end, boolean invalidateCursor) {
4631 if (start == end)
4634 lineEnd = mLayout.getLineForOffset(end);
4653 right = (int) (mLayout.getPrimaryHorizontal(end) + 1.0);
4685 * For selection, ensure start or end is visible depending on controller's state.
4695 * TODO: This should really only keep the end in view if
5780 static void removeParcelableSpans(Spannable spannable, int start, int end) {
5781 Object[] spans = spannable.getSpans(start, end, ParcelableSpan.class);
5805 int end = text.partialEndOffset;
5806 if (end > N) end = N;
5807 removeParcelableSpans(content, start, end);
5808 content.replace(start, end, text.text);
5821 int end = text.selectionEnd;
5822 if (end < 0) end = 0;
5823 else if (end > N) end = N;
5824 Selection.setSelection(sp, start, end);
5890 * Called by the framework in response to a request to end a batch
6905 int end = getSelectionEnd();
6906 if (start != end) {
7326 * @param selEnd The new selection end location.
7378 // Removes all spans that are inside or actually overlap the start..end range
7379 private <T> void removeIntersectingNonAdjacentSpans(int start, int end, Class<T> type) {
7383 T[] spans = text.getSpans(start, end, type);
7388 if (spanEnd == start || spanStart == end) break;
7487 // XXX Make the start and end move together if this ends up
7512 int end = Selection.getSelectionEnd(buf);
7513 invalidateCursor(end, oldStart, newStart);
8240 final int end = (arguments != null) ? arguments.getInt(
8242 if ((getSelectionStart() != start || getSelectionEnd() != end)) {
8244 if (start == end && end == -1) {
8248 if (start >= 0 && start <= end && end <= text.length()) {
8249 Selection.setSelection((Spannable) text, start, end);
8360 CharSequence getTransformedText(int start, int end) {
8361 return removeSuggestionSpans(mTransformed.subSequence(start, end));
8515 * Prepare text so that there are not zero or two spaces at beginning and end of region defined
8552 // Two spaces at end of paste: remove one
8556 // No space at end of paste: add one
8744 * Deletes the range of text [start, end[.
8747 protected void deleteText_internal(int start, int end) {
8748 ((Editable) mText).delete(start, end);
8752 * Replaces the range of text [start, end[ by replacement text
8755 protected void replaceText_internal(int start, int end, CharSequence text) {
8756 ((Editable) mText).replace(start, end, text);
8763 protected void setSpan_internal(Object span, int start, int end, int flags) {
8764 ((Editable) mText).setSpan(span, start, end, flags);
8771 protected void setCursorPosition_internal(int start, int end) {
8772 Selection.setSelection(((Editable) mText), start, end);
8859 public void setAccessibilitySelection(int start, int end) {
8861 && getAccessibilitySelectionEnd() == end) {
8871 if (Math.min(start, end) >= 0 && Math.max(start, end) <= text.length()) {
8872 Selection.setSelection((Spannable) text, start, end);
8913 + " start=" + selStart + " end=" + selEnd;
8974 public CharSequence subSequence(int start, int end) {
8975 if (start < 0 || end < 0 || start > mLength || end > mLength) {
8976 throw new IndexOutOfBoundsException(start + ", " + end);
8979 return new String(mChars, start + mStart, end - start);
8982 public void getChars(int start, int end, char[] buf, int off) {
8983 if (start < 0 || end < 0 || start > mLength || end > mLength) {
8984 throw new IndexOutOfBoundsException(start + ", " + end);
8987 System.arraycopy(mChars, start + mStart, buf, off, end - start);
8990 public void drawText(Canvas c, int start, int end,
8992 c.drawText(mChars, start + mStart, end - start, x, y, p);
8995 public void drawTextRun(Canvas c, int start, int end,
8997 int count = end - start;
9003 public float measureText(int start, int end, Paint p) {
9004 return p.measureText(mChars, start + mStart, end - start);
9007 public int getTextWidths(int start, int end, float[] widths, Paint p) {
9008 return p.getTextWidths(mChars, start + mStart, end - start, widths);
9011 public float getTextRunAdvances(int start, int end, int contextStart,
9014 int count = end - start;