Home
last modified time | relevance | path

Searched refs:replacement (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/core/java/android/text/method/
DReplacementTransformationMethod.java54 char[] replacement = getReplacement(); in getTransformation() local
85 original, replacement)); in getTransformation()
89 replacement).toString(); in getTransformation()
96 original, replacement); in getTransformation()
98 return new ReplacementCharSequence(source, original, replacement); in getTransformation()
113 char[] replacement) { in ReplacementCharSequence() argument
116 mReplacement = replacement; in ReplacementCharSequence()
174 char[] replacement) { in SpannedReplacementCharSequence() argument
175 super(source, original, replacement); in SpannedReplacementCharSequence()
DQwertyKeyListener.java370 String replacement = AutoText.get(src, start, end, view); in getReplacement() local
372 if (replacement == null) { in getReplacement()
374 replacement = AutoText.get(key, 0, end - start, view); in getReplacement()
377 if (replacement == null) in getReplacement()
393 out = replacement; in getReplacement()
395 out = toTitleCase(replacement); in getReplacement()
397 out = replacement.toUpperCase(); in getReplacement()
399 out = toTitleCase(replacement); in getReplacement()
/frameworks/base/core/java/android/text/format/
DDateFormat.java515 String replacement; in format() local
519 replacement = amPm[inDate.get(Calendar.AM_PM) - Calendar.AM]; in format()
522 replacement = zeroPad(inDate.get(Calendar.DATE), count); in format()
526 replacement = getDayOfWeekString(dfs, in format()
536 replacement = zeroPad(hour, count); in format()
549 replacement = zeroPad(hour, count); in format()
554 replacement = getMonthString(dfs, inDate.get(Calendar.MONTH), count, c); in format()
557 replacement = zeroPad(inDate.get(Calendar.MINUTE), count); in format()
560 replacement = zeroPad(inDate.get(Calendar.SECOND), count); in format()
563 replacement = getYearString(inDate.get(Calendar.YEAR), count); in format()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneNumberWatcherTest.java274 String replacement = "6501234567"; in testAutoCompleteUnformattedWithUnformattedNumber() local
276 testReplacement(init, replacement, expected); in testAutoCompleteUnformattedWithUnformattedNumber()
289 private void testReplacement(String init, String replacement, String expected) { in testReplacement() argument
295 textWatcher.beforeTextChanged(number, 0, init.length(), replacement.length()); in testReplacement()
296 number.replace(0, init.length(), replacement, 0, replacement.length()); in testReplacement()
297 Selection.setSelection(number, replacement.length()); // move the cursor to the end in testReplacement()
298 textWatcher.onTextChanged(number, 0, init.length(), replacement.length()); in testReplacement()
/frameworks/base/core/java/android/text/
DMeasuredParagraph.java500 private void applyReplacementRun(@NonNull ReplacementSpan replacement, in applyReplacementRun() argument
507 final float width = replacement.getSize( in applyReplacementRun()
576 ReplacementSpan replacement = null; in applyMetricsAffectingSpan() local
582 replacement = (ReplacementSpan) span; in applyMetricsAffectingSpan()
597 if (replacement != null) { in applyMetricsAffectingSpan()
598 applyReplacementRun(replacement, startInCopiedBuffer, endInCopiedBuffer, builder); in applyMetricsAffectingSpan()
DTextLine.java804 ReplacementSpan replacement = null;
808 replacement = (ReplacementSpan)span;
814 if (replacement != null) {
1034 private float handleReplacement(ReplacementSpan replacement, TextPaint wp,
1061 ret = replacement.getSize(wp, mText, textStart, textLimit, fmi);
1073 replacement.draw(c, mText, textStart, textLimit,
1200 ReplacementSpan replacement = null;
1213 replacement = !insideEllipsis ? (ReplacementSpan) span : null;
1221 if (replacement != null) {
1222 x += handleReplacement(replacement, wp, i, mlimit, runIsRtl, c, x, top, y,
/frameworks/base/core/java/android/accounts/
DAccount.java167 public static String toSafeName(String name, char replacement) { in toSafeName() argument
173 builder.append(replacement); in toSafeName()
/frameworks/base/packages/SystemUI/docs/
Dplugin_hooks.md48 Use: Allows replacement of the volume dialog.
58 Use: Allows replacement of the keyguard main clock.
63 Use: Allows replacement of uncustomized toasts created via Toast.makeText().
/frameworks/base/core/java/android/app/
DApplicationErrorReport.java403 String replacement = in sanitizeString() local
406 StringBuilder sb = new StringBuilder(acceptableLength + replacement.length()); in sanitizeString()
408 sb.append(replacement); in sanitizeString()
/frameworks/base/core/java/android/widget/
DTextViewOnReceiveContentListener.java117 @NonNull CharSequence replacement) { in replaceSelection() argument
123 editable.replace(start, end, replacement); in replaceSelection()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationHistoryManager.java352 NotificationHistoryDatabase replacement) { in replaceNotificationHistoryDatabase() argument
355 mUserState.put(userId, replacement); in replaceNotificationHistoryDatabase()
/frameworks/layoutlib/create/
DREADME.txt181 As explained earlier, the creator doesn't have any replacement code for methods to override. Instead
197 replacement version of Paint which will be used by the rest of the Android stack. The replacement
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java3173 final DrawableRecipientChip replacement = replacements.get(i); in processReplacements()
3174 if (replacement != null) { in processReplacements()
3176 final RecipientEntry newEntry = replacement.getEntry(); in processReplacements()
3194 replacement.getEntry()).trim() + " "); in processReplacements()
3195 displayText.setSpan(replacement, 0, in processReplacements()
3202 replacement.setOriginalText(displayText.toString()); in processReplacements()
3205 recipients.set(i, replacement); in processReplacements()
/frameworks/base/media/java/android/media/
DWebVttRenderer.java194 private boolean replaceEscape(String escape, String replacement, int pos) { in replaceEscape() argument
197 mData.append(replacement); in replaceEscape()
/frameworks/native/services/inputflinger/dispatcher/
DInputDispatcher.cpp3719 struct KeyReplacement replacement = {keyCode, deviceId}; in accelerateMetaShortcuts() local
3720 mReplacedKeys[replacement] = newKeyCode; in accelerateMetaShortcuts()
3729 struct KeyReplacement replacement = {keyCode, deviceId}; in accelerateMetaShortcuts() local
3730 auto replacementIt = mReplacedKeys.find(replacement); in accelerateMetaShortcuts()
5115 const KeyReplacement& replacement = pair.first; in dumpDispatchStateLocked() local
5118 replacement.keyCode, replacement.deviceId, newKeyCode); in dumpDispatchStateLocked()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowState.java2736 boolean removeReplacedWindowIfNeeded(WindowState replacement) { in removeReplacedWindowIfNeeded() argument
2737 if (mWillReplaceWindow && mReplacementWindow == replacement && replacement.hasDrawn()) { in removeReplacedWindowIfNeeded()
2738 replacement.mSkipEnterAnimationForSeamlessReplacement = false; in removeReplacedWindowIfNeeded()
2745 if (c.removeReplacedWindowIfNeeded(replacement)) { in removeReplacedWindowIfNeeded()
DActivityRecord.java3756 void removeReplacedWindowIfNeeded(WindowState replacement) { in removeReplacedWindowIfNeeded() argument
3759 if (win.removeReplacedWindowIfNeeded(replacement)) { in removeReplacedWindowIfNeeded()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
Dlayered_filter_fast_f32.rscript393 // g_fuzzy_image. Does the replacement in a soft way by blending g_sharp_image
Dlayered_filter_fast_d1new.rscript576 // g_fuzzy_image. Does the replacement in a soft way by blending g_sharp_image
/frameworks/av/media/codec2/docs/
Ddoxygen.config1686 # string, for the replacement values of the other commands the user is referred
/frameworks/base/media/native/midi/include/
DDoxyfile1736 # string, for the replacement values of the other commands the user is referred
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt44179 method public final java.lang.String replacement();
44206 method public final byte[] replacement();
/frameworks/base/config/
Dboot-image-profile.txt26409 HSPLjava/nio/charset/CharsetDecoder;->replacement()Ljava/lang/String;
26424 HSPLjava/nio/charset/CharsetEncoder;->replacement()[B