Searched defs:replacement (Results 1 - 5 of 5) 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.java164 // Replace the first character of each replacement run with the
165 // object-replacement character and the remainder with zero width
652 ReplacementSpan replacement = null;
656 replacement = (ReplacementSpan)span;
662 if (replacement != null) {
663 // If we have a replacement span, we're moving either to
799 * Utility function for measuring and rendering a replacement.
802 * @param replacement the replacement
808 * @param x the edge of the replacement closes
817 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...]
/frameworks/base/media/java/android/media/
H A DWebVttRenderer.java192 private boolean replaceEscape(String escape, String replacement, int pos) { argument
195 mData.append(replacement);
/frameworks/native/services/inputflinger/
H A DInputDispatcher.cpp2372 struct KeyReplacement replacement = {keyCode, args->deviceId}; local
2373 mReplacedKeys.add(replacement, newKeyCode);
2382 struct KeyReplacement replacement = {keyCode, args->deviceId}; local
2383 ssize_t index = mReplacedKeys.indexOfKey(replacement);
3217 const KeyReplacement& replacement = mReplacedKeys.keyAt(i); local
3220 i, replacement.keyCode, replacement.deviceId, newKeyCode);

Completed in 154 milliseconds