Home
last modified time | relevance | path

Searched refs:replace (Results 1 – 25 of 139) sorted by relevance

123456

/packages/apps/UnifiedEmail/tests/src/com/android/mail/ui/
DImgSrcReplacementTest.java29 private static void replace(final String input, final String expectedOutput) { in replace() method in ImgSrcReplacementTest
35 replace( in testSimple()
43 replace( in testSimpleSingleQuotes()
51 replace( in testSimpleNoQuotes()
59 replace( in testWithElementId()
67 replace( in testWithElementIdAndAltAttr()
75 replace( in testHttps()
84 replace( in testRelativeUrl()
93 replace( in testNoSrcAttr()
101 replace( in testSrcElsewhere()
[all …]
/packages/apps/Browser/tools/
Dget_search_engines.py87 str = str.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;')
88 str = str.replace('"', '&quot;').replace('\'', '&apos;')
130 engine_data_str = engine_data_str.replace('"L"', '')
166 engines_str = engines_str.replace('&','')
/packages/apps/Settings/tests/src/com/android/settings/bluetooth/
DUtf8ByteLengthFilterTest.java64 dest.replace(5, 8, source); in testFilter()
80 dest.replace(8, 10, source); in testFilter()
83 dest.replace(0, 1, source); in testFilter()
87 dest.replace(0, 4, source); in testFilter()
97 dest.replace(2, 3, source); in testFilter()
101 dest.replace(3, 4, source); in testFilter()
/packages/apps/Browser/src/com/android/browser/search/
DSearchEngineInfo.java94 mSearchEngineData[FIELD_SEARCH_URI].replace(PARAMETER_LANGUAGE, language_str); in SearchEngineInfo()
96 mSearchEngineData[FIELD_SUGGEST_URI].replace(PARAMETER_LANGUAGE, language_str); in SearchEngineInfo()
107 mSearchEngineData[FIELD_SEARCH_URI].replace(PARAMETER_INPUT_ENCODING, enc); in SearchEngineInfo()
109 mSearchEngineData[FIELD_SUGGEST_URI].replace(PARAMETER_INPUT_ENCODING, enc); in SearchEngineInfo()
164 return templateUri.replace(PARAMETER_SEARCH_TERMS, URLEncoder.encode(query, enc)); in getFormattedUri()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapVcardManager.java564 .replace(PhoneNumberUtils.PAUSE, 'p').replace(PhoneNumberUtils.WAIT, in composeContactsAndSendVCards()
671 attr[i] = attr[i].replace("(", ""); in StripTelephoneNumber()
672 attr[i] = attr[i].replace(")", ""); in StripTelephoneNumber()
673 attr[i] = attr[i].replace("-", ""); in StripTelephoneNumber()
674 attr[i] = attr[i].replace(" ", ""); in StripTelephoneNumber()
/packages/apps/Calculator/src/com/android/calculator2/
DCalculatorExpressionBuilder.java37 public SpannableStringBuilder replace(int start, int end, CharSequence tb, int tbstart, in replace() method in CalculatorExpressionBuilder
41 return super.replace(start, end, tb, tbstart, tbend); in replace()
91 return super.replace(start, end, appendExpr, 0, appendExpr.length()); in replace()
DCalculatorExpressionTokenizer.java68 expr = expr.replace(replacementEntry.getValue(), replacementEntry.getKey()); in getNormalizedExpression()
75 expr = expr.replace(replacementEntry.getKey(), replacementEntry.getValue()); in getLocalizedExpression()
/packages/apps/Email/tests/src/com/android/email/activity/
DIntentUtilitiesTests.java80 Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(uri.replace("ID", "ACCOUNT_ID"))); in checkGetIdFromIntent()
83 i = new Intent(Intent.ACTION_VIEW, Uri.parse(uri.replace("ID", "MAILBOX_ID"))); in checkGetIdFromIntent()
86 i = new Intent(Intent.ACTION_VIEW, Uri.parse(uri.replace("ID", "MESSAGE_ID"))); in checkGetIdFromIntent()
/packages/apps/Contacts/src/com/android/contacts/editor/
DPhotoActionPopup.java84 boolean replace = (mode & Flags.TAKE_OR_PICK_PHOTO_REPLACE_WORDING) > 0; in getChoices()
85 final int takePhotoResId = replace ? R.string.take_new_photo : R.string.take_photo; in getChoices()
87 final int pickPhotoResId = replace ? R.string.pick_new_photo : R.string.pick_photo; in getChoices()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/name/
DDeviceNameSettingsActivity.java96 transaction.replace(R.id.content_wrapper, fragment); in displaySummary()
108 transaction.replace(R.id.content_wrapper, nameUi); in displaySetName()
128 transaction.replace(R.id.content_wrapper, customName); in displayTextInputFragment()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DFormatActivity.java269 .replace(android.R.id.content, in onLoadFinished()
384 .replace(android.R.id.content, fragment) in onRequestMovePackageToVolume()
393 .replace(android.R.id.content, fragment) in onRequestFormatAsPrivate()
443 .replace(android.R.id.content, fragment) in onRequestFormatAsPublic()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DAbstractContactAggregator.java1550 boolean replace = false; in processDisplayNameCandidate()
1553 replace = true; in processDisplayNameCandidate()
1557 replace = true; in processDisplayNameCandidate()
1561 replace = true; in processDisplayNameCandidate()
1564 replace = true; in processDisplayNameCandidate()
1569 replace = true; in processDisplayNameCandidate()
1576 if (replace) { in processDisplayNameCandidate()
/packages/apps/Launcher3/
Dupdate_system_wallpaper_cropper.py54 dir = dir.replace("launcher3", "wallpapercropper")
55 dir = dir.replace(src_dir, "src/")
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarDatabaseHelper.java280 return mEventsRawTimesInserter.replace(values); in eventsRawTimesReplace()
288 return mInstancesInserter.replace(values); in instancesReplace()
3308 return url.replace("/private/full", ""). in getAllCalendarsUrlFromEventsUrl()
3309 replace("/calendar/feeds", "/calendar/feeds/default/allcalendars/full"); in getAllCalendarsUrlFromEventsUrl()
3312 return url.replace("/private/free-busy", ""). in getAllCalendarsUrlFromEventsUrl()
3313 replace("/calendar/feeds", "/calendar/feeds/default/allcalendars/full"); in getAllCalendarsUrlFromEventsUrl()
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
DJarUtils.java37 final String mainClassPath = "/" + mainClass.getName().replace('.', '/') + ".class"; in getJarFile()
106 return LocaleUtils.constructLocaleFromString(localeStr.replace("-r", "_"));
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DUriUtils.java57 .replace(URI_PACKAGE_DELIMITER, URI_PATH_DELIMITER); in getAndroidResourceUri()
66 + iconResource.resourceName.replace(URI_PACKAGE_DELIMITER, URI_PATH_DELIMITER)); in getShortcutIconResourceUri()
/packages/apps/Browser/src/com/android/browser/
DHttpAuthenticationDialog.java126 String title = mContext.getText(R.string.sign_in_to).toString().replace( in createDialog()
127 "%s1", mHost).replace("%s2", mRealm); in createDialog()
/packages/apps/Settings/src/com/android/settings/nfc/
DPaymentDefaultDialog.java133 String sanitizedString = input.replace('\n', ' ').replace('\r', ' ').trim(); in sanitizePaymentAppCaption()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DDialogFragment.java213 ft.replace(mBase.mContentAreaId, fragment, BaseDialogFragment.TAG_CONTENT); in getContentFragmentTransaction()
235 ft.replace(mBase.mActionAreaId, fragment, BaseDialogFragment.TAG_ACTION); in addActionFragmentToTransaction()
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/
DTweener.java110 replace(props, object); // Cancel all animators for given object in to()
164 private static void replace(ArrayList<PropertyValuesHolder> props, Object... args) { in replace() method in Tweener
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DTwoPaneController.java172 fragmentTransaction.replace(R.id.conversation_list_place_holder, conversationListFragment, in renderConversationList()
701 … fragmentTransaction.replace(R.id.conversation_list_place_holder, getWaitFragment(), TAG_WAIT); in showWaitForInitialization()
899 fragmentTransaction.replace(containerViewId, fragment, TAG_CUSTOM_FRAGMENT); in launchFragment()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DSmsMmsContacts.java158 String searchString = contactNameFilter.replace("*", ".*"); in getContactNameFromPhone()
174 selectionArgs = new String[]{"%" + contactNameFilter.replace("*", "%") + "%"}; in getContactNameFromPhone()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DUtility.java183 String userName = userLogin.replace("_", "\\_"); in findExistingAccount()
351 return str.replace("\r", "").replace("\n", "\r\n"); in replaceBareLfWithCrlf()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversation/
DConversationInputManagerTest.java73 Mockito.doReturn(mockFragmentTransaction).when(mockFragmentTransaction).replace( in initNewInputManager()
99 Mockito.verify(mockFragmentTransaction).replace( in testShowHideInputs()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
DMainPanel.java146 transaction.replace(R.id.category_panel_container, category, CategoryPanel.FRAGMENT_TAG); in setCategoryFragment()
283 transaction.replace(R.id.state_panel_container, statePanel, StatePanel.FRAGMENT_TAG); in showImageStatePanel()

123456