Searched defs:before (Results 1 - 20 of 20) sorted by relevance

/frameworks/base/core/java/android/text/
H A DTextWatcher.java36 * have just replaced old text that had length <code>before</code>.
40 public void onTextChanged(CharSequence s, int start, int before, int count); argument
H A DDynamicLayout.java187 private void reflow(CharSequence s, int where, int before, int after) { argument
204 before += diff;
218 before += change;
241 before += diff;
250 before += diff;
262 int endline = getLineForOffset(where + before);
318 mInts.adjustValuesBelow(startline, START, after - before);
421 private void reflow(CharSequence s, int where, int before, int after) { argument
425 ml.reflow(s, where, before, after);
430 public void beforeTextChanged(CharSequence s, int where, int before, in argument
433 onTextChanged(CharSequence s, int where, int before, int after) argument
[all...]
H A DSpannableStringBuilder.java877 private TextWatcher[] sendTextWillChange(int start, int before, int after) { argument
878 TextWatcher[] recip = getSpans(start, start + before, TextWatcher.class);
882 recip[i].beforeTextChanged(this, start, before, after);
888 private void sendTextChange(TextWatcher[] recip, int start, int before, int after) { argument
892 recip[i].onTextChanged(this, start, before, after);
939 " has end before start");
953 " starts before 0");
1202 * this returns -1. Otherwise this will never return a value before contextStart or after
/frameworks/base/telephony/java/android/telephony/
H A DPhoneNumberFormattingTextWatcher.java119 public void onTextChanged(CharSequence s, int start, int before, int count) { argument
/frameworks/base/core/tests/coretests/src/android/text/
H A DSpannedTest.java177 public void onTextChanged(CharSequence s, int start, int before, argument
/frameworks/base/core/java/android/text/method/
H A DPasswordTransformationMethod.java77 int before, int count) {
76 onTextChanged(CharSequence s, int start, int before, int count) argument
/frameworks/base/core/java/android/webkit/
H A DFindActionModeCallback.java88 * Set the WebView to search. Must be non null, and set before calling
249 int before,
247 onTextChanged(CharSequence s, int start, int before, int count) argument
H A DWebTextView.java91 // Keep track of the text before the change so we know whether we actually
615 protected void onTextChanged(CharSequence s,int start,int before,int count){ argument
616 super.onTextChanged(s, start, before, count);
628 if (before > 0) {
633 int oldEnd = start + before;
636 || (mDelSelStart == oldEnd && before == 1))) {
637 // If the selection is set up properly before the
648 mWebView.deleteSelection(start, start + before);
651 // before should never be negative, so whether it was a cut
652 // (handled above), or before i
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DIconMenuItemView.java245 protected void onTextChanged(CharSequence text, int start, int before, int after) { argument
246 super.onTextChanged(text, start, before, after);
/frameworks/base/core/tests/coretests/src/android/net/
H A DNetworkStatsHistoryTest.java263 // try removing far before buckets; should be no change
383 final NetworkStatsHistory before = new NetworkStatsHistory(MINUTE_IN_MILLIS, 40, FIELD_ALL);
384 before.recordData(0, 4 * MINUTE_IN_MILLIS,
386 before.recordData(DAY_IN_MILLIS, DAY_IN_MILLIS + MINUTE_IN_MILLIS,
390 before.writeToStream(new DataOutputStream(out));
396 // must have identical totals before and after
397 assertFullValues(before, 5 * MINUTE_IN_MILLIS, 1034L, 30L, 2078L, 60L, 54L);
457 NetworkStatsHistory stats, int before, int after, long time) {
458 assertEquals("unexpected before", before, stat
456 assertIndexBeforeAfter( NetworkStatsHistory stats, int before, int after, long time) argument
462 performVarLong(long before) argument
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DAccountUnlockScreen.java124 public void onTextChanged(CharSequence s, int start, int before, int count) { argument
/frameworks/base/core/java/android/animation/
H A DAnimatorSet.java37 * its animations. For example, an animation a1 could be set up to start before animation a2, a2
38 * before a3, and a3 before a1. The results of this configuration are undefined, but will typically
164 play(items[i]).before(items[i+1]);
183 play(items.get(i)).before(items.get(i+1));
244 * <code>play(a1).before(a2)</code> sets up the AnimatorSet to play
254 * <code>play(a1).before(a2).before(a3)</code> will play both <code>a2</code>
620 * all dependencies must be satisfied before the animation is started.
976 * s.play(anim2).before(anim
1061 public Builder before(Animator anim) { method in class:AnimatorSet.Builder
[all...]
/frameworks/base/core/java/android/text/format/
H A DTime.java197 * (the "unknown" value) before normalizing. It then computes the
632 * Returns true if the time represented by this Time object occurs before
638 public boolean before(Time that) { method in class:Time
/frameworks/base/core/java/android/widget/
H A DAutoCompleteTextView.java465 * <p>Returns the number of characters the user must type before the drop
478 * edit box before the drop down list is shown.</p>
483 * @param threshold the number of characters to type before the drop down
716 public void onTextChanged(CharSequence s, int start, int before, int count) { argument
726 if (DEBUG) Log.v(TAG, "before text changed: open=" + mOpenBefore);
732 // if the list was open before the keystroke, but closed afterwards,
H A DGridLayout.java195 * to their margins, before the edges of the resulting rectangle are aligned.
721 // before we are set up.
2034 before the alignment point and the amount of space required after it. One side of this
2044 public int before; field in class:GridLayout.Bounds
2053 before = Integer.MIN_VALUE;
2058 protected void include(int before, int after) { argument
2059 this.before = max(this.before, before);
2069 return before
[all...]
H A DAbsListView.java381 * How far the finger moved before we started scrolling
679 * view is being scrolled, this method will be called before the next frame of the scroll is
680 * rendered. In particular, it will be called before any calls to
1598 // Do this before setting mNeedSync since setNextSelectedPosition looks at mNeedSync
2502 // bail out before bad things happen
5003 // Make sure we have a window before showing the popup
5308 public void onTextChanged(CharSequence s, int start, int before, int count) { argument
5703 * they've been attached before. Setting this flag will force the reused
H A DTextView.java290 * This flag is set if the TextView tries to display an error before it
3244 * We must go ahead and set the text before changing the
3323 * of the array except for right before another call to setText(),
3335 * We must do the before-notification here ourselves because if
3336 * the old text is a CharWrapper we destroy it before calling
4429 * it already was before the text changed. I'm not sure
5452 // bug 650865: sometimes we get a key event before a layout.
5486 * Keep track of what the error was before doing the input
5781 * This is used to remove all style-impacting spans from text before new
7188 * will not necessarily restore the previous behavior from before thi
7594 sendBeforeTextChanged(CharSequence text, int start, int before, int after) argument
7629 sendOnTextChanged(CharSequence text, int start, int before, int after) argument
7664 handleTextChanged(CharSequence buffer, int start, int before, int after) argument
8026 beforeTextChanged(CharSequence buffer, int start, int before, int after) argument
8040 onTextChanged(CharSequence buffer, int start, int before, int after) argument
[all...]
/frameworks/base/services/java/com/android/server/net/
H A DNetworkStatsService.java737 // take one last stats snapshot before updating iface mapping. this
1042 // perform one last poll before removing
1544 * before} can be {@code null}.
1547 NetworkStats before, NetworkStats current, boolean collectStale, String type) {
1548 if (before != null) {
1550 return current.subtract(before, false);
1564 return current.subtract(before, true);
1546 computeStatsDelta( NetworkStats before, NetworkStats current, boolean collectStale, String type) argument
/frameworks/ex/chips/src/com/android/ex/chips/
H A DRecipientEditTextView.java1176 // Check to see if this is a completed token before filtering.
1306 // what comes before the finger.
1878 // Clear that there is a selected chip before updating any text.
2016 public void onTextChanged(CharSequence s, int start, int before, int count) { argument
2082 // There are things before this!
/frameworks/ex/common/java/com/android/ex/editstyledtext/
H A DEditStyledText.java346 protected void onTextChanged(CharSequence text, int start, int before, int after) { argument
349 mManager.updateSpanNextToCursor(getText(), start, before, after);
350 mManager.updateSpanPreviousFromCursor(getText(), start, before, after);
351 if (after > before) {
353 } else if (before < after) {
357 if (after > before) {
360 } else if (after < before) {
365 super.onTextChanged(text, start, before, after);
1321 updateSpanPreviousFromCursor(Editable txt, int start, int before, int after) { argument
1323 Log.d(LOG_TAG, "updateSpanPrevious:" + start + "," + before
1374 updateSpanNextToCursor(Editable txt, int start, int before, int after) argument
[all...]

Completed in 914 milliseconds