Home
last modified time | relevance | path

Searched refs:replacement (Results 1 – 24 of 24) 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.java460 String replacement; in format() local
464 replacement = localeData.amPm[inDate.get(Calendar.AM_PM) - Calendar.AM]; in format()
467 replacement = zeroPad(inDate.get(Calendar.DATE), count); in format()
471 replacement = getDayOfWeekString(localeData, in format()
481 replacement = zeroPad(hour, count); in format()
494 replacement = zeroPad(hour, count); in format()
499 replacement = getMonthString(localeData, in format()
503 replacement = zeroPad(inDate.get(Calendar.MINUTE), count); in format()
506 replacement = zeroPad(inDate.get(Calendar.SECOND), count); in format()
509 replacement = getYearString(inDate.get(Calendar.YEAR), count); in format()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneNumberWatcherTest.java271 String replacement = "6501234567"; in testAutoCompleteUnformattedWithUnformattedNumber() local
273 testReplacement(init, replacement, expected); in testAutoCompleteUnformattedWithUnformattedNumber()
286 private void testReplacement(String init, String replacement, String expected) { in testReplacement() argument
292 textWatcher.beforeTextChanged(number, 0, init.length(), replacement.length()); in testReplacement()
293 number.replace(0, init.length(), replacement, 0, replacement.length()); in testReplacement()
294 Selection.setSelection(number, replacement.length()); // move the cursor to the end in testReplacement()
295 textWatcher.onTextChanged(number, 0, init.length(), replacement.length()); in testReplacement()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
DFieldAccessExpr.java212 final Expr replacement = binding.getExpr(); in resolveTwoWayExpressions() local
213 replaceExpression(parent, replacement); in resolveTwoWayExpressions()
214 return replacement; in resolveTwoWayExpressions()
254 private void replaceExpression(Expr parent, Expr replacement) { in replaceExpression() argument
259 children.set(index, replacement); in replaceExpression()
260 replacement.getParents().add(parent); in replaceExpression()
/frameworks/base/core/java/android/text/
DMeasuredText.java223 ReplacementSpan replacement = null; in addStyleRun() local
227 replacement = (ReplacementSpan)span; in addStyleRun()
234 if (replacement == null) { in addStyleRun()
238 wid = replacement.getSize(workPaint, mText, mTextStart + mPos, in addStyleRun()
DTextLine.java748 ReplacementSpan replacement = null; in getOffsetBeforeAfter() local
752 replacement = (ReplacementSpan)span; in getOffsetBeforeAfter()
758 if (replacement != null) { in getOffsetBeforeAfter()
966 private float handleReplacement(ReplacementSpan replacement, TextPaint wp, in handleReplacement() argument
993 ret = replacement.getSize(wp, mText, textStart, textLimit, fmi); in handleReplacement()
1005 replacement.draw(c, mText, textStart, textLimit, in handleReplacement()
1131 ReplacementSpan replacement = null; in handleRun() local
1140 replacement = (ReplacementSpan)span; in handleRun()
1148 if (replacement != null) { in handleRun()
1149 x += handleReplacement(replacement, wp, i, mlimit, runIsRtl, c, x, top, y, in handleRun()
/frameworks/data-binding/compilationTests/src/test/java/android/databinding/compilationTest/
DBaseCompilationTest.java175 final String replacement = replacements.get(key); in copyResourceTo() local
176 if (replacement != null) { in copyResourceTo()
177 out.append(replacement); in copyResourceTo()
/frameworks/base/core/java/android/app/
DApplicationErrorReport.java396 String replacement = in sanitizeString() local
399 StringBuilder sb = new StringBuilder(acceptableLength + replacement.length()); in sanitizeString()
401 sb.append(replacement); in sanitizeString()
/frameworks/support/fragment/tests/java/android/support/v4/app/
DFragmentAnimationTest.java462 AnimatorFragment replacement = (AnimatorFragment) fm.findFragmentByTag("1"); in assertExitPopEnter() local
464 boolean isSameFragment = replacement == fragment; in assertExitPopEnter()
466 assertFragmentAnimation(replacement, expectedAnimators, true, POP_ENTER); in assertExitPopEnter()
DFragmentAnimatorTest.java516 AnimatorFragment replacement = (AnimatorFragment) fm.findFragmentByTag("1"); in assertExitPopEnter() local
518 boolean isSameFragment = replacement == fragment; in assertExitPopEnter()
520 assertFragmentAnimation(replacement, expectedAnimators, true, POP_ENTER); in assertExitPopEnter()
/frameworks/layoutlib/create/
DREADME.txt188 As explained earlier, the creator doesn't have any replacement code for methods to override. Instead
204 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.java3170 final DrawableRecipientChip replacement = replacements.get(i); in processReplacements()
3171 if (replacement != null) { in processReplacements()
3173 final RecipientEntry newEntry = replacement.getEntry(); in processReplacements()
3191 replacement.getEntry()).trim() + " "); in processReplacements()
3192 displayText.setSpan(replacement, 0, in processReplacements()
3199 replacement.setOriginalText(displayText.toString()); in processReplacements()
3202 recipients.set(i, replacement); in processReplacements()
/frameworks/native/services/inputflinger/
DInputDispatcher.cpp2423 struct KeyReplacement replacement = {keyCode, args->deviceId}; in notifyKey() local
2424 mReplacedKeys.add(replacement, newKeyCode); in notifyKey()
2433 struct KeyReplacement replacement = {keyCode, args->deviceId}; in notifyKey() local
2434 ssize_t index = mReplacedKeys.indexOfKey(replacement); in notifyKey()
3272 const KeyReplacement& replacement = mReplacedKeys.keyAt(i); in dumpDispatchStateLocked() local
3275 i, replacement.keyCode, replacement.deviceId, newKeyCode); in dumpDispatchStateLocked()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DRecyclerViewLayoutTest.java412 final TestLayoutManager replacement = new LayoutAllLayoutManager(true); in detachRvAndLayoutManagerProperly() local
413 replacement.expectLayouts(1); in detachRvAndLayoutManagerProperly()
417 rv.setLayoutManager(replacement); in detachRvAndLayoutManagerProperly()
420 replacement.waitForLayout(2); in detachRvAndLayoutManagerProperly()
2912 View replacement = lm.findViewByPosition(pos); in findIgnoredByPosition() local
2913 assertNotNull("re-layout should replace ignored child w/ another one", replacement); in findIgnoredByPosition()
2914 assertNotSame("replacement should be a different view", replacement, ignored[0]); in findIgnoredByPosition()
/frameworks/base/services/core/java/com/android/server/wm/
DAppWindowToken.java1125 void removeReplacedWindowIfNeeded(WindowState replacement) { in removeReplacedWindowIfNeeded() argument
1128 if (win.removeReplacedWindowIfNeeded(replacement)) { in removeReplacedWindowIfNeeded()
DWindowState.java2167 boolean removeReplacedWindowIfNeeded(WindowState replacement) { in removeReplacedWindowIfNeeded() argument
2168 if (mWillReplaceWindow && mReplacementWindow == replacement && replacement.hasDrawnLw()) { in removeReplacedWindowIfNeeded()
2169 replacement.mSkipEnterAnimationForSeamlessReplacement = false; in removeReplacedWindowIfNeeded()
2176 if (c.removeReplacedWindowIfNeeded(replacement)) { in removeReplacedWindowIfNeeded()
/frameworks/base/media/java/android/media/
DWebVttRenderer.java192 private boolean replaceEscape(String escape, String replacement, int pos) { in replaceEscape() argument
195 mData.append(replacement); in replaceEscape()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java623 final NetworkAgentInfo replacement = list.get(0); in remove() local
624 maybeLogBroadcast(replacement, state, type, isDefaultNetwork(replacement)); in remove()
625 sendLegacyNetworkBroadcast(replacement, state, type); in remove()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt44179 method public final java.lang.String replacement();
44206 method public final byte[] replacement();
/frameworks/base/api/
Dcurrent.txt57786 method public final java.lang.String replacement();
57813 method public final byte[] replacement();
Dtest-current.txt58268 method public final java.lang.String replacement();
58295 method public final byte[] replacement();
Dsystem-current.txt61744 method public final java.lang.String replacement();
61771 method public final byte[] replacement();
/frameworks/base/config/
Dboot-image-profile.txt44159 HSPLjava/nio/charset/CharsetDecoder;->replacement()Ljava/lang/String;
44186 HSPLjava/nio/charset/CharsetEncoder;->replacement()[B