Searched refs:replacement (Results 1 - 21 of 21) sorted by relevance

/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/format/
H A DDateFormat.java444 String replacement;
448 replacement = localeData.amPm[inDate.get(Calendar.AM_PM) - Calendar.AM];
451 replacement = zeroPad(inDate.get(Calendar.DATE), count);
455 replacement = getDayOfWeekString(localeData,
465 replacement = zeroPad(hour, count);
478 replacement = zeroPad(hour, count);
483 replacement = getMonthString(localeData,
487 replacement = zeroPad(inDate.get(Calendar.MINUTE), count);
490 replacement = zeroPad(inDate.get(Calendar.SECOND), count);
493 replacement
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DPhoneNumberWatcherTest.java265 * the deleted text doesn't have any formatting and neither does the replacement text: in this
266 * case the replacement text should be formatted by the PhoneNumberFormattingTextWatcher.
271 String replacement = "6501234567";
273 testReplacement(init, replacement, expected);
286 private void testReplacement(String init, String replacement, String expected) { argument
292 textWatcher.beforeTextChanged(number, 0, init.length(), replacement.length());
293 number.replace(0, init.length(), replacement, 0, replacement.length());
294 Selection.setSelection(number, replacement.length()); // move the cursor to the end
295 textWatcher.onTextChanged(number, 0, init.length(), replacement
[all...]
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
H A DFieldAccessExpr.java212 final Expr replacement = binding.getExpr();
213 replaceExpression(parent, replacement);
214 return replacement;
254 private void replaceExpression(Expr parent, Expr replacement) { argument
259 children.set(index, replacement);
260 replacement.getParents().add(parent);
/frameworks/support/jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/transform/proguard/patterns/
H A DGroupsReplacer.kt42 // For each group, apply the corresponding replacement. Iterate backwards over replacements
43 // to avoid having to recompute replacement string indexes, also we could replace something
64 replacement = it
/frameworks/support/jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/transform/resource/
H A DXmlResourcesTransformer.kt119 val replacement = if (isPackage(toReplace)) {
124 changesDone = changesDone || replacement != toReplace
132 replacement = replacement)
/frameworks/base/core/java/android/text/
H A DMeasuredParagraph.java517 private void applyReplacementRun(@NonNull ReplacementSpan replacement, argument
524 final float width = replacement.getSize(
596 ReplacementSpan replacement = null;
602 replacement = (ReplacementSpan) span;
617 if (replacement != null) {
618 applyReplacementRun(replacement, startInCopiedBuffer, endInCopiedBuffer,
719 * @param width The width of the replacement.
H A DTextLine.java192 // Replace the first character of each replacement run with the
193 // object-replacement character and the remainder with zero width
764 ReplacementSpan replacement = null;
768 replacement = (ReplacementSpan)span;
774 if (replacement != null) {
775 // If we have a replacement span, we're moving either to
969 * Utility function for measuring and rendering a replacement.
972 * @param replacement the replacement
978 * @param x the edge of the replacement closes
987 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/core/java/android/app/
H A DApplicationErrorReport.java396 String replacement =
399 StringBuilder sb = new StringBuilder(acceptableLength + replacement.length());
401 sb.append(replacement);
/frameworks/data-binding/compilationTests/src/test/java/android/databinding/compilationTest/
H A DBaseCompilationTest.java175 final String replacement = replacements.get(key);
176 if (replacement != null) {
177 out.append(replacement);
/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/
H A DFragmentAnimationTest.java518 AnimatorFragment replacement = (AnimatorFragment) fm.findFragmentByTag("1");
520 boolean isSameFragment = replacement == fragment;
522 assertFragmentAnimation(replacement, expectedAnimators, true, POP_ENTER);
H A DFragmentAnimatorTest.java517 AnimatorFragment replacement = (AnimatorFragment) fm.findFragmentByTag("1");
519 boolean isSameFragment = replacement == fragment;
521 assertFragmentAnimation(replacement, expectedAnimators, true, POP_ENTER);
/frameworks/native/services/inputflinger/
H A DInputDispatcher.cpp2462 struct KeyReplacement replacement = {keyCode, args->deviceId}; local
2463 mReplacedKeys.add(replacement, newKeyCode);
2472 struct KeyReplacement replacement = {keyCode, args->deviceId}; local
2473 ssize_t index = mReplacedKeys.indexOfKey(replacement);
3330 const KeyReplacement& replacement = mReplacedKeys.keyAt(i); local
3333 i, replacement.keyCode, replacement.deviceId, newKeyCode);
/frameworks/opt/chips/src/com/android/ex/chips/
H A DRecipientEditTextView.java3170 final DrawableRecipientChip replacement = replacements.get(i);
3171 if (replacement != null) {
3173 final RecipientEntry newEntry = replacement.getEntry();
3191 replacement.getEntry()).trim() + " ");
3192 displayText.setSpan(replacement, 0,
3199 replacement.setOriginalText(displayText.toString());
3202 recipients.set(i, replacement);
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DRecyclerViewLayoutTest.java794 final TestLayoutManager replacement = new LayoutAllLayoutManager(true);
795 replacement.expectLayouts(1);
799 rv.setLayoutManager(replacement);
802 replacement.waitForLayout(2);
3492 View replacement = lm.findViewByPosition(pos);
3493 assertNotNull("re-layout should replace ignored child w/ another one", replacement);
3494 assertNotSame("replacement should be a different view", replacement, ignored[0]);
/frameworks/base/services/core/java/com/android/server/wm/
H A DWindowState.java568 // to differentiate between simple removal of a window and replacement. In the latter case it
573 // Whether the replacement of the window should trigger app transition animation.
578 // For the new window in the replacement transition, if we have
2011 // Set up a replacement input channel since the app is now dead.
2182 /** Returns true if the replacement window was removed. */
2183 boolean removeReplacedWindowIfNeeded(WindowState replacement) { argument
2184 if (mWillReplaceWindow && mReplacementWindow == replacement && replacement.hasDrawnLw()) {
2185 replacement.mSkipEnterAnimationForSeamlessReplacement = false;
2192 if (c.removeReplacedWindowIfNeeded(replacement)) {
[all...]
H A DAppWindowToken.java997 // if we got a replacement window, reset the timeout to give drawing more time
1108 void removeReplacedWindowIfNeeded(WindowState replacement) { argument
1111 if (win.removeReplacedWindowIfNeeded(replacement)) {
/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/base/services/core/java/com/android/server/
H A DConnectivityService.java364 * a replacement network.
658 final NetworkAgentInfo replacement = list.get(0);
659 maybeLogBroadcast(replacement, state, type, isDefaultNetwork(replacement));
660 sendLegacyNetworkBroadcast(replacement, state, type);
3248 // Called when we lose the default network and have no replacement yet.
5337 // incorrect if there is a replacement network currently
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...
/frameworks/base/config/
H A Dboot-image-profile.txt[all...]

Completed in 1874 milliseconds