Searched defs:end (Results 251 - 275 of 387) sorted by last modified time

<<111213141516

/frameworks/base/core/tests/coretests/src/android/text/
H A DTextUtilsTest.java137 /** Fail unless text+spans contains a span 'spanName' with the given start and end. */
139 int start, int end) throws Exception {
143 assertEquals(end, text.getSpanEnd(i));
343 // At the end.
420 public CharSequence subSequence(int start, int end) { argument
421 return new Wrapper(mString.subSequence(start, end));
500 public <T> T[] getSpans(int start, int end, Class<T> type) { argument
138 checkContains(Spanned text, String[] spans, String spanName, int start, int end) argument
/frameworks/base/core/tests/coretests/src/android/text/method/
H A DEditorState.java66 public int getSize(Paint paint, CharSequence text, int start, int end, argument
70 public void draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, argument
147 "Selection end position doesn't exist.");
154 "Selection start position appears after end position.");
166 "ReplacementSpan end position doesn't exist.");
170 "ReplacementSpan start position appears after end position.");
/frameworks/base/core/tests/coretests/src/android/widget/
H A DSuggestionsPopupWindowTest.java73 private void setSuggestionSpan(SuggestionSpan span, int start, int end) { argument
78 text.setSpan(span, start, end, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
79 Selection.setSelection(text, (start + end) / 2);
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DDragAction.java352 private static float[][] interpolate(float[] start, float[] end) { argument
356 res[i][0] = start[0] + (end[0] - start[0]) * i / (DRAG_STEP_COUNT - 1f);
357 res[i][1] = start[1] + (end[1] - start[1]) * i / (DRAG_STEP_COUNT - 1f);
/frameworks/base/cmds/app_process/
H A Dapp_main.cpp133 uintptr_t end = reinterpret_cast<uintptr_t>(argv[argc - 1]); local
134 end += strlen(argv[argc - 1]) + 1;
135 return (end - start);
/frameworks/base/core/java/android/animation/
H A DAnimator.java80 * Cancels the animation. Unlike {@link #end()}, <code>cancel()</code> causes the animation to
92 * Ends the animation. This causes the animation to assign the end value of the property being
99 public void end() { method in class:Animator
257 * animation, such as start, repeat, and end.
469 * Notifications indicate animation related events, such as the end or the
481 * <p>Notifies the end of the animation. This callback is not invoked
484 * @param animation The animation which reached its end.
544 * {@link Animator.AnimatorListener#onAnimationRepeat(Animator)} may end up delayed
548 * <li>State change requests ({@link #cancel()}, {@link #end()}, {@link #reverse()}, etc...)
554 * after a call to {@link #end()}
[all...]
H A DAnimatorSet.java67 * cancel or end when cancel() or end() is called on this AnimatorSet
88 * to each Animator before they start and removed after they end.
94 * terminated (by calling cancel() or end()).
96 * child animations of this AnimatorSet end. It also determines whether cancel/end
139 // In pre-N releases, calling end() before start() on an animator set is no-op. But that is not
141 // consistent within Animation framework, when end() is called without start(), we will start
142 // the animator set and immediately end it for N and forward.
149 // Set the flag to ignore calling end() withou
385 public void end() { method in class:AnimatorSet
[all...]
H A DValueAnimator.java135 * animator is playing in reverse. It is used in corner cases to determine proper end
175 * startDelay and whether start() was called before end().
186 * Flag that tracks whether animation has been requested to end.
246 * When the animation reaches the end and <code>repeatCount</code> is INFINITE
251 * When the animation reaches the end and <code>repeatCount</code> is INFINITE
584 * a fraction of 0 will position the animation at the beginning, a value of 1 at the end,
585 * and a value of 2 at the end of a reversing animator that repeats once. If
830 * Defines what this animation should do when it reaches the end. This
841 * Defines what this animation should do when it reaches the end.
1019 // If end ha
1044 public void end() { method in class:ValueAnimator
[all...]
/frameworks/base/core/java/android/content/res/
H A DStringBlock.java92 // the style array is a flat array of <type, start, end> hence
175 + ", start=" + style[i+1] + ", end=" + style[i+2]);
360 int start, int end) {
371 if (end != 0 && end != len && buffer.charAt(end - 1) != '\n') {
372 for (end++; end < len; end++) {
373 if (buffer.charAt(end
359 addParagraphSpan(Spannable buffer, Object what, int start, int end) argument
411 chooseHeight(CharSequence text, int start, int end, int spanstartv, int v, Paint.FontMetricsInt fm) argument
418 chooseHeight(CharSequence text, int start, int end, int spanstartv, int v, Paint.FontMetricsInt fm, TextPaint paint) argument
[all...]
/frameworks/base/core/java/android/inputmethodservice/
H A DExtractEditText.java185 protected void deleteText_internal(int start, int end) { argument
188 mIME.onExtractedDeleteText(start, end);
196 protected void replaceText_internal(int start, int end, CharSequence text) { argument
199 mIME.onExtractedReplaceText(start, end, text);
207 protected void setSpan_internal(Object span, int start, int end, int flags) { argument
210 mIME.onExtractedSetSpan(span, start, end, flags);
218 protected void setCursorPosition_internal(int start, int end) { argument
221 mIME.onExtractedSelectionChanged(start, end);
H A DInputMethodService.java756 * to use hardware accelerated drawing in an IME (for example on low-end
2275 public void onExtractedSelectionChanged(int start, int end) { argument
2278 conn.setSelection(start, end);
2285 public void onExtractedDeleteText(int start, int end) { argument
2290 conn.deleteSurroundingText(0, end - start);
2297 public void onExtractedReplaceText(int start, int end, CharSequence text) { argument
2300 conn.setComposingRegion(start, end);
2308 public void onExtractedSetSpan(Object span, int start, int end, int flags) { argument
2311 if (!conn.setSelection(start, end)) return;
2315 conn.setComposingRegion(start, end);
[all...]
/frameworks/base/core/java/android/net/
H A DNetworkStatsHistory.java287 public void recordData(long start, long end, long rxBytes, long txBytes) { argument
288 recordData(start, end, new NetworkStats.Entry(
296 public void recordData(long start, long end, NetworkStats.Entry entry) { argument
311 ensureBuckets(start, end);
314 long duration = end - start;
315 final int startIndex = getIndexAfter(end);
323 if (curStart > end) continue;
325 final long overlap = Math.min(curEnd, end) - Math.max(curStart, start);
361 public void recordHistory(NetworkStatsHistory input, long start, long end) { argument
369 if (bucketStart < start || bucketEnd > end) continu
384 ensureBuckets(long start, long end) argument
473 getValues(long start, long end, Entry recycle) argument
481 getValues(long start, long end, long now, Entry recycle) argument
529 generateRandom(long start, long end, long bytes) argument
547 generateRandom(long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations, Random r) argument
574 randomLong(Random r, long start, long end) argument
581 intersects(long start, long end) argument
[all...]
/frameworks/base/core/java/android/print/
H A DPageRange.java25 * Represents a range of pages. The start and end page indices of
45 * @param end The end page index (zero based and inclusive).
47 * @throws IllegalArgumentException If start is less than zero or end
48 * is less than zero or start greater than end.
50 public PageRange(@IntRange(from = 0) int start, @IntRange(from = 0) int end) { argument
54 if (end < 0) {
55 throw new IllegalArgumentException("end cannot be less than zero.");
57 if (start > end) {
58 throw new IllegalArgumentException("start must be lesser than end
[all...]
/frameworks/base/core/java/android/provider/
H A DBrowser.java366 * Delete all history items from begin to end.
369 * @param begin First date to remove. If -1, all dates before end.
371 * @param end Last date to remove. If -1, all dates after begin.
376 long begin, long end) {
375 deleteHistoryTimeFrame(ContentResolver cr, long begin, long end) argument
H A DCalendarContract.java58 * as event title, location, start time, end time, etc. The event can occur
62 * <li>The {@link Instances} table holds the start and end time for occurrences
142 * Intent Extras key: The end time of an event or an instance of a recurring
1057 * The timezone for the end time of the event. Column name.
1720 * single occurrence of an event including time zone specific start and end
1747 * @param end The end of the time range to query in UTC millis since
1752 long begin, long end) {
1755 ContentUris.appendId(builder, end);
1772 * @param end Th
1751 query(ContentResolver cr, String[] projection, long begin, long end) argument
1780 query(ContentResolver cr, String[] projection, long begin, long end, String searchQuery) argument
2263 insert(ContentResolver cr, long eventId, long begin, long end, long alarmTime, int minutes) argument
[all...]
/frameworks/base/core/java/android/service/textservice/
H A DSpellCheckerService.java343 public SentenceWordItem(TextInfo ti, int start, int end) { argument
346 mLength = end - start;
374 final int end = originalText.length();
380 Log.d(TAG, "iterator: break: ---- 1st word start = " + wordStart + ", end = "
383 while (wordStart <= end && wordEnd != BreakIterator.DONE
/frameworks/base/core/java/android/text/
H A DAlteredCharSequence.java66 public <T> T[] getSpans(int start, int end, Class<T> kind) { argument
67 return mSpanned.getSpans(start, end, kind);
82 public int nextSpanTransition(int start, int end, Class kind) { argument
83 return mSpanned.nextSpanTransition(start, end, kind);
100 public CharSequence subSequence(int start, int end) { argument
101 return AlteredCharSequence.make(mSource.subSequence(start, end),
105 public void getChars(int start, int end, char[] dest, int off) { argument
106 TextUtils.getChars(mSource, start, end, dest, off);
109 end = Math.min(mEnd, end);
[all...]
H A DAutoText.java109 public static String get(CharSequence src, final int start, final int end, argument
111 return getInstance(view).lookup(src, start, end);
132 private String lookup(CharSequence src, final int start, final int end) { argument
135 for (int i = start; i < end; i++) {
140 if ((i == end - 1)
226 // end, so fill in the right hand side fields.
253 // If this is the end of the word, fill in the offset.
H A DBoringLayout.java257 final int end = Math.min(start + MAX_BUF_LEN, textLength);
261 TextUtils.getChars(text, start, end, buffer, 0);
263 final int len = end - start;
414 public void ellipsized(int start, int end) { argument
416 mEllipsizedCount = end - start;
H A DDynamicLayout.java215 // seek forward to the end of the paragraph
303 // If the new layout has a blank line at the end, but it is not
304 // the very end of the buffer, then we already have a line that
413 * not on the end line of the previous block.
679 public void onSpanAdded(Spannable s, Object o, int start, int end) { argument
681 reflow(s, start, end - start, end - start);
684 public void onSpanRemoved(Spannable s, Object o, int start, int end) { argument
686 reflow(s, start, end - start, end
689 onSpanChanged(Spannable s, Object o, int start, int end, int nstart, int nend) argument
[all...]
H A DEditable.java30 * Editable with a copy of the slice <code>start&hellip;end</code> from
52 public Editable replace(int st, int en, CharSequence source, int start, int end); argument
61 * Convenience for replace(where, where, text, start, end)
64 public Editable insert(int where, CharSequence text, int start, int end); argument
85 * Convenience for replace(length(), length(), text, start, end)
88 public Editable append(CharSequence text, int start, int end); argument
H A DGetChars.java29 * through <code>end - 1</code> from this CharSequence into <code>dest</code>
32 public void getChars(int start, int end, char[] dest, int destoff); argument
H A DGraphicsOperations.java33 void drawText(Canvas c, int start, int end, argument
40 void drawTextRun(Canvas c, int start, int end, int contextStart, int contextEnd, argument
46 float measureText(int start, int end, Paint p); argument
51 public int getTextWidths(int start, int end, float[] widths, Paint p); argument
57 float getTextRunAdvances(int start, int end, int contextStart, int contextEnd, argument
H A DHtml.java326 private static void withinDiv(StringBuilder out, Spanned text, int start, int end, argument
329 for (int i = start; i < end; i = next) {
330 next = text.nextSpanTransition(i, end, QuoteSpan.class);
345 private static String getTextDirection(Spanned text, int start, int end) { argument
346 final int len = end - start;
349 TextUtils.getChars(text, start, end, buffer, 0);
362 private static String getTextStyles(Spanned text, int start, int end, argument
371 final AlignmentSpan[] alignmentSpans = text.getSpans(start, end, AlignmentSpan.class);
383 textAlign = "text-align:end;";
406 private static void withinBlockquote(StringBuilder out, Spanned text, int start, int end, argument
415 withinBlockquoteIndividual(StringBuilder out, Spanned text, int start, int end) argument
480 withinBlockquoteConsecutive(StringBuilder out, Spanned text, int start, int end) argument
517 withinParagraph(StringBuilder out, Spanned text, int start, int end) argument
643 withinStyle(StringBuilder out, CharSequence text, int start, int end) argument
1075 private static void end(Editable text, Class kind, Object repl) { method in class:HtmlToSpannedConverter
[all...]
H A DInputFilter.java28 * with the new text from the range <code>start &hellip; end</code>
42 public CharSequence filter(CharSequence source, int start, int end, argument
50 public CharSequence filter(CharSequence source, int start, int end, argument
52 for (int i = start; i < end; i++) {
54 char[] v = new char[end - start];
55 TextUtils.getChars(source, start, end, v, 0);
61 start, end, null, sp, 0);
84 public CharSequence filter(CharSequence source, int start, int end, Spanned dest, argument
89 } else if (keep >= end - start) {

Completed in 242 milliseconds

<<111213141516