Home
last modified time | relevance | path

Searched refs:contains (Results 1 – 25 of 431) sorted by relevance

12345678910>>...18

/packages/apps/Dialer/tests/src/com/android/dialer/database/
DSmartDialPrefixTest.java189 assertFalse(result1.contains(jasonsmitt)); in testPutForFullName()
192 assertFalse(result2.contains(jasonsmith)); in testPutForFullName()
193 assertTrue(result2.contains(jasonsmitt)); in testPutForFullName()
195 assertTrue(getLooseMatchesFromDb("22233344455566677778889999").contains(alphabet)); in testPutForFullName()
196 assertTrue(getLooseMatchesFromDb("33344455566677778889999").contains(alphabet)); in testPutForFullName()
197 assertTrue(getLooseMatchesFromDb("44455566677778889999").contains(alphabet)); in testPutForFullName()
198 assertTrue(getLooseMatchesFromDb("55566677778889999").contains(alphabet)); in testPutForFullName()
199 assertTrue(getLooseMatchesFromDb("66677778889999").contains(alphabet)); in testPutForFullName()
200 assertTrue(getLooseMatchesFromDb("77778889999").contains(alphabet)); in testPutForFullName()
201 assertTrue(getLooseMatchesFromDb("8889999").contains(alphabet)); in testPutForFullName()
[all …]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/compose/
DComposeActivityTest.java162 assertFalse(toAsString.contains(customFrom)); in testRecipientsRefReplyAllCustomFromReplyTo()
199 assertTrue(toAsString.contains(account.getEmailAddress())); in testRecipientsRefReplyAllOnlyAccount()
240 assertTrue(toAsString.contains(customFrom)); in testRecipientsRefReplyAllOnlyCustomFrom()
310 assertTrue(toAsString.contains("test1@gmail.com")); in testReplyToSelf()
335 assertTrue(toAsString.contains("test1@gmail.com")); in testReplyAllToSelf()
336 assertTrue(toAsString.contains("test2@gmail.com")); in testReplyAllToSelf()
362 assertTrue(toAsString.contains("test1@gmail.com")); in testReplyAllToSelfWithCc()
363 assertTrue(toAsString.contains("test2@gmail.com")); in testReplyAllToSelfWithCc()
365 assertTrue(ccAsString.contains("testcc@gmail.com")); in testReplyAllToSelfWithCc()
465 assertTrue(ccMap.contains(toRecip.trim())); in testReplyAllWithCc()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapbMessageMms.java94 (mContentType.toUpperCase().contains("TEXT") || in encode()
95 mContentType.toUpperCase().contains("SMIL") )) { in encode()
110 if(mContentType != null && mContentType.toUpperCase().contains("TEXT")) { in encodePlainText()
112 } else if(mContentType != null && mContentType.toUpperCase().contains("/SMIL")) { in encodePlainText()
162 if(part.mContentType.toUpperCase().contains("TEXT")) { in getMessageAsText()
288 part.mContentType.toUpperCase().contains("TEXT")) { in updateCharset()
500 if(headerType.contains("FROM")) { in parseMmsHeaders()
503 } else if(headerType.contains("TO")) { in parseMmsHeaders()
506 } else if(headerType.contains("CC")) { in parseMmsHeaders()
509 } else if(headerType.contains("BCC")) { in parseMmsHeaders()
[all …]
DBluetoothMapbMessage.java214 while(!line.contains("END:VCARD")) { in parseVcard()
347 }else if(!line.toUpperCase().contains(subString.toUpperCase())) in expect()
360 if(!line.toUpperCase().contains(subString.toUpperCase())) in expect()
362 if(!line.toUpperCase().contains(subString2.toUpperCase())) in expect()
471 while(!line.contains("BEGIN:VCARD") && !line.contains("BEGIN:BENV")) { in parse()
472 if(line.contains("STATUS")){ in parse()
486 if(line.contains("TYPE")) { in parse()
513 if(line.contains("FOLDER")) { in parse()
532 while(line.contains("BEGIN:VCARD")){ in parse()
537 if(line.contains("BEGIN:BENV")) { in parse()
[all …]
/packages/apps/Camera2/src/com/android/camera/settings/
DAppUpgrader.java104 if (defaultPreferences.contains(OLD_KEY_UPGRADE_VERSION)) { in getLastVersion()
171 if (defaultPreferences.contains(Keys.KEY_RECORD_LOCATION)) { in upgradeTypesToStrings()
177 if (defaultPreferences.contains(Keys.KEY_USER_SELECTED_ASPECT_RATIO)) { in upgradeTypesToStrings()
185 if (defaultPreferences.contains(Keys.KEY_EXPOSURE_COMPENSATION_ENABLED)) { in upgradeTypesToStrings()
193 if (defaultPreferences.contains(Keys.KEY_CAMERA_FIRST_USE_HINT_SHOWN)) { in upgradeTypesToStrings()
200 if (defaultPreferences.contains(Keys.KEY_STARTUP_MODULE_INDEX)) { in upgradeTypesToStrings()
208 if (defaultPreferences.contains(Keys.KEY_CAMERA_MODULE_LAST_USED)) { in upgradeTypesToStrings()
217 if (oldGlobalPreferences.contains(Keys.KEY_FLASH_SUPPORTED_BACK_CAMERA)) { in upgradeTypesToStrings()
227 if (defaultPreferences.contains(Keys.KEY_SHOULD_SHOW_REFOCUS_VIEWER_CLING)) { in upgradeTypesToStrings()
235 if (defaultPreferences.contains(Keys.KEY_SHOULD_SHOW_SETTINGS_BUTTON_CLING)) { in upgradeTypesToStrings()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DNameLookupBuilderTest.java187 if (!Arrays.asList(Collator.getAvailableLocales()).contains(Locale.CHINA)) { in testChineseName()
200 if (!Arrays.asList(Collator.getAvailableLocales()).contains(Locale.KOREA)) { in testKoreanName()
214 if (!Arrays.asList(Collator.getAvailableLocales()).contains(Locale.KOREA)) { in testKoreanNameWithTwoCharactersFamilyName()
231 assertTrue(actual.contains("(0:Jo.Jeffrey.John.Jessy.Longname)")); in testMultiwordName()
234 assertTrue(actual.contains("(2:JoJeffreyJohnJessyLongname)")); in testMultiwordName()
237 assertTrue(actual.contains("(1:Longname.Jeffrey.Jessy.John)")); in testMultiwordName()
240 assertTrue(actual.contains("(2:Jo")); in testMultiwordName()
241 assertTrue(actual.contains("(2:Jeffrey")); in testMultiwordName()
242 assertTrue(actual.contains("(2:John")); in testMultiwordName()
243 assertTrue(actual.contains("(2:Jessy")); in testMultiwordName()
[all …]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
DMessageHeaderViewTest.java37 assertTrue(summary.contains("TO00")); in testRecipientSummaryLongTo()
38 assertTrue(summary.contains("TO49")); in testRecipientSummaryLongTo()
39 assertFalse(summary.contains("TO50")); in testRecipientSummaryLongTo()
50 assertTrue(summary.contains("TO00")); in testRecipientSummaryLongMultipleLists()
51 assertTrue(summary.contains("TO19")); in testRecipientSummaryLongMultipleLists()
52 assertTrue(summary.contains("CC00")); in testRecipientSummaryLongMultipleLists()
53 assertTrue(summary.contains("CC09")); in testRecipientSummaryLongMultipleLists()
54 assertTrue(summary.contains("BB00")); in testRecipientSummaryLongMultipleLists()
55 assertTrue(summary.contains("BB19")); in testRecipientSummaryLongMultipleLists()
56 assertFalse(summary.contains("BB20")); in testRecipientSummaryLongMultipleLists()
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/
DSearchUtilTest.java56 assertEquals(0, SearchUtil.contains(actual, "this")); in testContains()
57 assertEquals(10, SearchUtil.contains(actual, "lon")); in testContains()
59 assertEquals(1, SearchUtil.contains("'leading punc", "lead")); in testContains()
60 assertEquals(9, SearchUtil.contains("'leading punc", "punc")); in testContains()
69 assertEquals(-1, SearchUtil.contains(actual, "ith")); in testContainsNotFound()
70 assertEquals(-1, SearchUtil.contains(actual, "ing")); in testContainsNotFound()
73 assertEquals(-1, SearchUtil.contains(actual, "thisx")); in testContainsNotFound()
74 assertEquals(-1, SearchUtil.contains(actual, "manyx")); in testContainsNotFound()
75 assertEquals(-1, SearchUtil.contains(actual, "hellox")); in testContainsNotFound()
78 assertEquals(-1, SearchUtil.contains(actual, "punctual")); in testContainsNotFound()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherViewPropertyAnimator.java200 if (mPropertiesToSet.contains(Properties.TRANSLATION_X)) { in start()
203 if (mPropertiesToSet.contains(Properties.TRANSLATION_Y)) { in start()
206 if (mPropertiesToSet.contains(Properties.SCALE_X)) { in start()
209 if (mPropertiesToSet.contains(Properties.ROTATION_Y)) { in start()
212 if (mPropertiesToSet.contains(Properties.SCALE_Y)) { in start()
215 if (mPropertiesToSet.contains(Properties.ALPHA)) { in start()
218 if (mPropertiesToSet.contains(Properties.START_DELAY)) { in start()
221 if (mPropertiesToSet.contains(Properties.DURATION)) { in start()
224 if (mPropertiesToSet.contains(Properties.INTERPOLATOR)) { in start()
227 if (mPropertiesToSet.contains(Properties.WITH_LAYER)) { in start()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallsManager.java201 if (!mCalls.contains(call)) { in onSuccessfulOutgoingCall()
507 if (!accounts.contains(phoneAccountHandle)) { in startOutgoingCall()
534 if (mCalls.contains(call)) { in startOutgoingCall()
558 } else if (!mCalls.contains(call)) { in startOutgoingCall()
631 if (!mCalls.contains(call)) { in answerCall()
680 if (!mCalls.contains(call)) { in rejectCall()
696 if (!mCalls.contains(call)) { in playDtmfTone()
708 if (!mCalls.contains(call)) { in stopDtmfTone()
720 if (!mCalls.contains(call)) { in postDialContinue()
735 if (!mCalls.contains(call)) { in disconnectCall()
[all …]
/packages/apps/Camera/src/com/android/camera/
DComboPreferences.java56 if (!mPrefGlobal.contains(CameraSettings.KEY_VERSION) in ComboPreferences()
57 && oldprefs.contains(CameraSettings.KEY_VERSION)) { in ComboPreferences()
155 if (isGlobal(key) || !mPrefLocal.contains(key)) { in getString()
164 if (isGlobal(key) || !mPrefLocal.contains(key)) { in getInt()
173 if (isGlobal(key) || !mPrefLocal.contains(key)) { in getLong()
182 if (isGlobal(key) || !mPrefLocal.contains(key)) { in getFloat()
191 if (isGlobal(key) || !mPrefLocal.contains(key)) { in getBoolean()
205 public boolean contains(String key) { in contains() method in ComboPreferences
206 if (mPrefLocal.contains(key)) return true; in contains()
207 if (mPrefGlobal.contains(key)) return true; in contains()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherViewPropertyAnimator.java199 if (mPropertiesToSet.contains(Properties.TRANSLATION_X)) { in start()
202 if (mPropertiesToSet.contains(Properties.TRANSLATION_Y)) { in start()
205 if (mPropertiesToSet.contains(Properties.SCALE_X)) { in start()
208 if (mPropertiesToSet.contains(Properties.ROTATION_Y)) { in start()
211 if (mPropertiesToSet.contains(Properties.SCALE_Y)) { in start()
214 if (mPropertiesToSet.contains(Properties.ALPHA)) { in start()
217 if (mPropertiesToSet.contains(Properties.START_DELAY)) { in start()
220 if (mPropertiesToSet.contains(Properties.DURATION)) { in start()
223 if (mPropertiesToSet.contains(Properties.INTERPOLATOR)) { in start()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java433 if (!mConnectedDevicesList.contains(device)) { in processConnectionEvent()
538 if (mConnectedDevicesList.contains(device)) { in processConnectionEvent()
610 if (mConnectedDevicesList.contains(device)) { in processConnectionEvent()
772 if (mConnectedDevicesList.contains(device)) { in processMessage()
829 if (!mConnectedDevicesList.contains(device)) { in processMessage()
1008 if (mConnectedDevicesList.contains(device)) { in processConnectionEvent()
1035 if (mConnectedDevicesList.contains(device)) { in processConnectionEvent()
1047 if(!mConnectedDevicesList.contains(device)) { in processConnectionEvent()
1078 if (!mConnectedDevicesList.contains(device)) { in processAudioEvent()
1172 if (mConnectedDevicesList.contains(device)) { in processMessage()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
DComboPreferences.java85 if (isGlobal(key) || !mPrefLocal.contains(key)) { in getString()
93 if (isGlobal(key) || !mPrefLocal.contains(key)) { in getInt()
101 if (isGlobal(key) || !mPrefLocal.contains(key)) { in getLong()
109 if (isGlobal(key) || !mPrefLocal.contains(key)) { in getFloat()
117 if (isGlobal(key) || !mPrefLocal.contains(key)) { in getBoolean()
129 public boolean contains(String key) { in contains() method in ComboPreferences
130 if (mPrefLocal.contains(key)) return true; in contains()
131 if (mPrefGlobal.contains(key)) return true; in contains()
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/
DImapListTest.java197 assertTrue(list.contains("abc")); in testContains()
198 assertTrue(list.contains("abcd")); in testContains()
199 assertTrue(list.contains("def")); in testContains()
200 assertFalse(list.contains("")); in testContains()
201 assertFalse(list.contains("a")); in testContains()
202 assertFalse(list.contains(null)); in testContains()
205 assertFalse(list.contains(null)); in testContains()
208 assertFalse(ImapList.EMPTY.contains(null)); in testContains()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DNotificationActionUtils.java289 if (unsortedActions.contains(NotificationActionType.ARCHIVE_REMOVE_LABEL)) { in getSortedNotificationActions()
292 if (unsortedActions.contains(NotificationActionType.DELETE)) { in getSortedNotificationActions()
295 if (unsortedActions.contains(NotificationActionType.REPLY)) { in getSortedNotificationActions()
298 if (unsortedActions.contains(NotificationActionType.REPLY_ALL)) { in getSortedNotificationActions()
311 if (unsortedActions.contains(NotificationActionType.DELETE)) { in getSortedNotificationActions()
314 if (unsortedActions.contains(NotificationActionType.REPLY)) { in getSortedNotificationActions()
317 if (unsortedActions.contains(NotificationActionType.REPLY_ALL)) { in getSortedNotificationActions()
329 if (unsortedActions.contains(NotificationActionType.ARCHIVE_REMOVE_LABEL)) { in getSortedNotificationActions()
332 if (unsortedActions.contains(NotificationActionType.DELETE)) { in getSortedNotificationActions()
335 if (unsortedActions.contains(NotificationActionType.REPLY)) { in getSortedNotificationActions()
[all …]
/packages/apps/VoiceDialer/src/com/android/voicedialer/
DVoiceContact.java196 if (label.contains("home") || label.contains("house")) { in getVoiceContacts()
199 else if (label.contains("mobile") || label.contains("cell")) { in getVoiceContacts()
202 else if (label.contains("work") || label.contains("office")) { in getVoiceContacts()
205 else if (label.contains("other")) { in getVoiceContacts()
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/
DCallLogListItemHelperTest.java238 .contains(this.mResources.getString(R.string.description_new_voicemail))); in testGetCallDescription_NoVoicemailOutgoing()
252 .contains(this.mResources.getString(R.string.description_new_voicemail))); in testGetCallDescription_NoVoicemailIncoming()
266 .contains(this.mResources.getString(R.string.description_new_voicemail))); in testGetCallDescription_NoVoicemailMissed()
280 .contains(this.mResources.getString(R.string.description_new_voicemail))); in testGetCallDescription_Voicemail()
299 .contains(this.mResources.getString(R.string.description_num_calls, "").trim())); in testGetCallDescription_NumCallsSingle()
313 .contains(this.mResources.getString(R.string.description_num_calls, 2))); in testGetCallDescription_NumCallsMultiple()
329 .contains(this.mResources.getString( in testGetCallDescription_Video()
/packages/apps/Email/provider_src/com/android/email/mail/store/
DImapFolder.java646 if (fp.contains(FetchProfile.Item.FLAGS)) { in fetchInternal()
649 if (fp.contains(FetchProfile.Item.ENVELOPE)) { in fetchInternal()
654 if (fp.contains(FetchProfile.Item.STRUCTURE)) { in fetchInternal()
658 if (fp.contains(FetchProfile.Item.BODY_SANE)) { in fetchInternal()
661 if (fp.contains(FetchProfile.Item.BODY)) { in fetchInternal()
700 if (fp.contains(FetchProfile.Item.FLAGS)) { in fetchInternal()
716 if (fp.contains(FetchProfile.Item.ENVELOPE)) { in fetchInternal()
728 if (fp.contains(FetchProfile.Item.STRUCTURE)) { in fetchInternal()
742 if (fp.contains(FetchProfile.Item.BODY) in fetchInternal()
743 || fp.contains(FetchProfile.Item.BODY_SANE)) { in fetchInternal()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DKeyboardThemeTests.java149 assertEquals(isValidKeyboardThemeId(previousThemeId), mPrefs.contains(oldPrefKey)); in assertDefaultKeyboardTheme()
153 assertFalse(mPrefs.contains(oldPrefKey)); in assertDefaultKeyboardTheme()
203 assertFalse(mPrefs.contains(KeyboardTheme.LXX_KEYBOARD_THEME_KEY)); in assertUpgradeKeyboardToLxxOn()
206 mPrefs.contains(KeyboardTheme.KLP_KEYBOARD_THEME_KEY)); in assertUpgradeKeyboardToLxxOn()
215 assertFalse(mPrefs.contains(KeyboardTheme.KLP_KEYBOARD_THEME_KEY)); in assertUpgradeKeyboardToLxxOn()
217 assertFalse(mPrefs.contains(KeyboardTheme.LXX_KEYBOARD_THEME_KEY)); in assertUpgradeKeyboardToLxxOn()
/packages/apps/Dialer/tests/src/com/android/dialer/
DPhoneCallDetailsHelperTest.java114 assertTrue(mViews.callLocationAndDate.getText().toString().contains("Yesterday")); in testSetPhoneCallDetails_Normal()
269 assertTrue(mViews.callLocationAndDate.getText().toString().contains(text)); in assertLabelEquals()
274 assertTrue(mViews.callLocationAndDate.getText().toString().contains(text)); in assertDateEquals()
290 assertTrue(mViews.callLocationAndDate.getText().toString().contains("Yesterday")); in assertCallTypeIconsEquals()
304 assertTrue(mViews.callLocationAndDate.getText().toString().contains(overflowText)); in assertCallTypeIconsEqualsPlusOverflow()
305 assertTrue(mViews.callLocationAndDate.getText().toString().contains("Yesterday")); in assertCallTypeIconsEqualsPlusOverflow()
/packages/apps/Contacts/src/com/android/contacts/activities/
DContactSelectionActivity.java462 if (intentExtraKeys.contains(Insert.NAME)) { in launchAddToContactDialog()
468 boolean hasPhone = intentExtraKeys.contains(Insert.PHONE) && in launchAddToContactDialog()
469 intentExtraKeys.contains(Insert.PHONE_TYPE); in launchAddToContactDialog()
470 boolean hasEmail = intentExtraKeys.contains(Insert.EMAIL) && in launchAddToContactDialog()
471 intentExtraKeys.contains(Insert.EMAIL_TYPE); in launchAddToContactDialog()
474 return intentExtraKeys.contains(Insert.PHONE) || in launchAddToContactDialog()
475 intentExtraKeys.contains(Insert.EMAIL); in launchAddToContactDialog()
/packages/services/Telephony/src/com/android/phone/settings/
DVoicemailNotificationSettingsUtil.java91 if (prefs.contains(key) || telephonyManager.getPhoneCount() != 1) { in migrateVoicemailVibrationSettingsIfNeeded()
95 if (prefs.contains(OLD_VOICEMAIL_NOTIFICATION_VIBRATION_SHARED_PREFS_KEY)) { in migrateVoicemailVibrationSettingsIfNeeded()
105 if (prefs.contains(OLD_VOICEMAIL_VIBRATE_WHEN_SHARED_PREFS_KEY)) { in migrateVoicemailVibrationSettingsIfNeeded()
130 if (prefs.contains(key) || telephonyManager.getPhoneCount() != 1) { in migrateVoicemailRingtoneSettingsIfNeeded()
134 if (prefs.contains(OLD_VOICEMAIL_NOTIFICATION_RINGTONE_SHARED_PREFS_KEY)) { in migrateVoicemailRingtoneSettingsIfNeeded()
/packages/apps/UnifiedEmail/assets/
Dscript.js68 if (parent.classList && parent.classList.contains(className)) {
200 if (el.classList.contains("mail-message-content")) {
237 if (el.parentElement.classList.contains("mail-message")) {
346 if (!textElement.classList || !textElement.classList.contains("transform-text")) {
381 if (node.classList.contains(classToAdd)) {
469 showImages = msgContentDiv.classList.contains("mail-show-images");
744 if (up(msgContentDiv, "mail-message").classList.contains("expanded")) {
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/
DMailPrefs.java204 return PreferenceKeys.BACKUP_KEYS.contains(key); in canBackup()
219 return getSharedPreferences().contains(PreferenceKeys.WIDGET_ACCOUNT_PREFIX + appWidgetId); in isWidgetConfigured()
382 boolean displayImages = getSenderWhitelist().contains(sender); in getDisplayImagesFromSender()
411 if (!currentPatterns.contains(patternRegex)) { in setDisplayImagesFromSender()
422 if (!whitelist.contains(sender)) { in setDisplayImagesFromSender()
529 return getSharedPreferences().contains(PreferenceKeys.CONVERSATION_OVERVIEW_MODE); in isConversationOverviewModeSet()

12345678910>>...18