Searched defs:replacement (Results 1 - 3 of 3) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DPhoneNumberWatcherTest.java252 * the deleted text doesn't have any formatting and neither does the replacement text: in this
253 * case the replacement text should be formatted by the PhoneNumberFormattingTextWatcher.
257 String replacement = "6501234567";
259 testReplacement(init, replacement, expected);
272 private void testReplacement(String init, String replacement, String expected) { argument
278 textWatcher.beforeTextChanged(number, 0, init.length(), replacement.length());
279 number.replace(0, init.length(), replacement, 0, replacement.length());
280 Selection.setSelection(number, replacement.length()); // move the cursor to the end
281 textWatcher.onTextChanged(number, 0, init.length(), replacement
[all...]
/frameworks/base/core/java/android/text/method/
H A DReplacementTransformationMethod.java42 * Returns a parallel array of replacement characters for the ones
54 char[] replacement = getReplacement();
85 original, replacement));
89 replacement).toString();
96 original, replacement);
98 return new ReplacementCharSequence(source, original, replacement);
113 char[] replacement) {
116 mReplacement = replacement;
174 char[] replacement) {
175 super(source, original, replacement);
112 ReplacementCharSequence(CharSequence source, char[] original, char[] replacement) argument
173 SpannedReplacementCharSequence(Spanned source, char[] original, char[] replacement) argument
[all...]
/frameworks/base/core/java/android/text/
H A DTextLine.java161 // Replace the first character of each replacement run with the
162 // object-replacement character and the remainder with zero width
649 ReplacementSpan replacement = null;
653 replacement = (ReplacementSpan)span;
659 if (replacement != null) {
660 // If we have a replacement span, we're moving either to
797 * Utility function for measuring and rendering a replacement.
800 * @param replacement the replacement
806 * @param x the edge of the replacement closes
815 handleReplacement(ReplacementSpan replacement, TextPaint wp, int start, int limit, boolean runIsRtl, Canvas c, float x, int top, int y, int bottom, FontMetricsInt fmi, boolean needWidth) argument
[all...]

Completed in 116 milliseconds