Home
last modified time | relevance | path

Searched refs:TextUtils (Results 1 – 25 of 1271) sorted by relevance

12345678910>>...51

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCapsModeUtils.java20 import android.text.TextUtils;
118 if ((reqModes & (TextUtils.CAP_MODE_WORDS | TextUtils.CAP_MODE_SENTENCES)) == 0) { in getCapsMode()
121 return TextUtils.CAP_MODE_CHARACTERS & reqModes; in getCapsMode()
170 return (TextUtils.CAP_MODE_CHARACTERS | TextUtils.CAP_MODE_WORDS) & reqModes; in getCapsMode()
176 return (TextUtils.CAP_MODE_CHARACTERS | TextUtils.CAP_MODE_WORDS in getCapsMode()
177 | TextUtils.CAP_MODE_SENTENCES) & reqModes; in getCapsMode()
182 return TextUtils.CAP_MODE_CHARACTERS & reqModes; in getCapsMode()
184 if ((reqModes & TextUtils.CAP_MODE_SENTENCES) == 0) { in getCapsMode()
188 return (TextUtils.CAP_MODE_CHARACTERS | TextUtils.CAP_MODE_WORDS) & reqModes; in getCapsMode()
214 if (j <= 0) return TextUtils.CAP_MODE_CHARACTERS & reqModes; in getCapsMode()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPostalSplitter.java20 import android.text.TextUtils;
71 if (!TextUtils.isEmpty(formattedAddress)) { in split()
100 final boolean hasStreet = !TextUtils.isEmpty(postal.street); in joinJaJp()
101 final boolean hasPobox = !TextUtils.isEmpty(postal.pobox); in joinJaJp()
102 final boolean hasNeighborhood = !TextUtils.isEmpty(postal.neighborhood); in joinJaJp()
103 final boolean hasCity = !TextUtils.isEmpty(postal.city); in joinJaJp()
104 final boolean hasRegion = !TextUtils.isEmpty(postal.region); in joinJaJp()
105 final boolean hasPostcode = !TextUtils.isEmpty(postal.postcode); in joinJaJp()
106 final boolean hasCountry = !TextUtils.isEmpty(postal.country); in joinJaJp()
166 final boolean hasStreet = !TextUtils.isEmpty(postal.street); in joinEnUs()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/
DCommandInterceptor.java22 import android.text.TextUtils;
86 if (tokens.length == 2 && !TextUtils.isEmpty(tokens[1])) { in quickViewer()
91 Log.w(TAG, "Invalid command structure: " + TextUtils.join(" ", tokens)); in quickViewer()
103 if (tokens.length == 2 && !TextUtils.isEmpty(tokens[1])) { in gestureScale()
109 Log.w(TAG, "Invalid command structure: " + TextUtils.join(" ", tokens)); in gestureScale()
116 if (tokens.length == 2 && !TextUtils.isEmpty(tokens[1])) { in jobProgressDialog()
122 Log.w(TAG, "Invalid command structure: " + TextUtils.join(" ", tokens)); in jobProgressDialog()
129 if (tokens.length == 2 && !TextUtils.isEmpty(tokens[1])) { in archiveCreation()
135 Log.w(TAG, "Invalid command structure: " + TextUtils.join(" ", tokens)); in archiveCreation()
142 if (tokens.length == 2 && !TextUtils.isEmpty(tokens[1])) { in docInspector()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DNewStorageActivity.java35 import android.text.TextUtils;
74 if (TextUtils.equals(action, ACTION_MISSING_STORAGE)) { in onCreate()
77 if (TextUtils.isEmpty(fsUuid)) { in onCreate()
88 if (TextUtils.isEmpty(volumeId) && TextUtils.isEmpty(diskId)) { in onCreate()
137 if (TextUtils.isEmpty(mVolumeId) && TextUtils.isEmpty(mDiskId)) { in onCreate()
141 if (!TextUtils.isEmpty(mVolumeId)) { in onCreate()
180 if (TextUtils.isEmpty(mVolumeId)) { in onCreateActions()
215 if (!TextUtils.isEmpty(mVolumeId)) { in onGuidedActionClicked()
232 if (!TextUtils.isEmpty(mDiskId)) { in checkForUnmount()
237 if (TextUtils.equals(diskInfo.getId(), mDiskId)) { in checkForUnmount()
[all …]
DFormatActivity.java33 import android.text.TextUtils;
105 if (TextUtils.equals(action, INTENT_ACTION_FORMAT_AS_PRIVATE)) { in onCreate()
107 } else if (TextUtils.equals(action, INTENT_ACTION_FORMAT_AS_PUBLIC)) { in onCreate()
121 if (!TextUtils.isEmpty(mFormatAsPrivateDiskId)) { in onResume()
140 if (TextUtils.equals(diskId, vol.getDiskId()) in findVolume()
177 if (TextUtils.equals(intent.getAction(), in onReceive()
179 && !TextUtils.isEmpty(mFormatAsPrivateDiskId)) { in onReceive()
181 if (TextUtils.equals(mFormatAsPrivateDiskId, diskId)) { in onReceive()
203 } else if (TextUtils.equals(intent.getAction(), in onReceive()
205 && !TextUtils.isEmpty(mFormatAsPublicDiskId)) { in onReceive()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DMetadataParser.java19 import android.text.TextUtils;
59 if (!TextUtils.isEmpty(name)) { in parseOneWordList()
64 if (TextUtils.isEmpty(arguments.get(ID_FIELD_NAME)) in parseOneWordList()
65 || TextUtils.isEmpty(arguments.get(LOCALE_FIELD_NAME)) in parseOneWordList()
66 || TextUtils.isEmpty(arguments.get(DESCRIPTION_FIELD_NAME)) in parseOneWordList()
67 || TextUtils.isEmpty(arguments.get(UPDATE_FIELD_NAME)) in parseOneWordList()
68 || TextUtils.isEmpty(arguments.get(FILESIZE_FIELD_NAME)) in parseOneWordList()
69 || TextUtils.isEmpty(arguments.get(CHECKSUM_FIELD_NAME)) in parseOneWordList()
70 || TextUtils.isEmpty(arguments.get(REMOTE_FILENAME_FIELD_NAME)) in parseOneWordList()
71 || TextUtils.isEmpty(arguments.get(VERSION_FIELD_NAME)) in parseOneWordList()
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DPhoneCallDetailsHelper.java26 import android.text.TextUtils;
110 if (!TextUtils.isEmpty(details.viaNumber)) { in setPhoneCallDetails()
111 if (!TextUtils.isEmpty(accountLabel)) { in setPhoneCallDetails()
119 if (!TextUtils.isEmpty(accountLabel)) { in setPhoneCallDetails()
135 if (TextUtils.isEmpty(details.getPreferredName())) { in setPhoneCallDetails()
149 TextUtils.isEmpty(details.transcription) ? null : details.transcription); in setPhoneCallDetails()
179 if (!TextUtils.isEmpty(callTypeOrLocation)) { in getCallLocationAndDate()
208 if (!TextUtils.isEmpty(details.number) in getCallTypeOrLocation()
215 && TextUtils.isEmpty(details.numberLabel))) { in getCallTypeOrLocation()
224 if (!TextUtils.isEmpty(details.namePrimary) && TextUtils.isEmpty(numberFormattedLabel)) { in getCallTypeOrLocation()
[all …]
/packages/apps/Dialer/java/com/android/dialer/oem/
DCequintCallerIdManager.java29 import android.text.TextUtils;
185 TextUtils.isEmpty(displayName) in lookup()
210 if (!TextUtils.isEmpty(string)) { in getString()
224 boolean hasFirstName = !TextUtils.isEmpty(firstName); in generateDisplayName()
225 boolean hasLastName = !TextUtils.isEmpty(lastName); in generateDisplayName()
226 boolean hasCompanyName = !TextUtils.isEmpty(company); in generateDisplayName()
227 boolean hasName = !TextUtils.isEmpty(name); in generateDisplayName()
260 if (TextUtils.isEmpty(city) && !TextUtils.isEmpty(state)) { in getGeoDescription()
262 } else if (!TextUtils.isEmpty(city) && !TextUtils.isEmpty(stateAbbr)) { in getGeoDescription()
264 } else if (!TextUtils.isEmpty(country)) { in getGeoDescription()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DMessage.java29 import android.text.TextUtils;
252 return TextUtils.equals(this.getFrom(), o.getFrom()) && in isEqual()
256 TextUtils.equals(this.getTo(), o.getTo()) && in isEqual()
257 TextUtils.equals(this.getCc(), o.getCc()) && in isEqual()
258 TextUtils.equals(this.getBcc(), o.getBcc()) && in isEqual()
259 TextUtils.equals(this.subject, o.subject) && in isEqual()
260 TextUtils.equals(this.bodyHtml, o.bodyHtml) && in isEqual()
261 TextUtils.equals(this.bodyText, o.bodyText) && in isEqual()
367 uri = !TextUtils.isEmpty(messageUriStr) ? Uri.parse(messageUriStr) : null; in Message()
369 conversationUri = !TextUtils.isEmpty(convUriStr) ? Uri.parse(convUriStr) : null; in Message()
[all …]
DFolder.java29 import android.text.TextUtils;
365 if (!TextUtils.isEmpty(bgColor)) { in Folder()
368 if (!TextUtils.isEmpty(fgColor)) { in Folder()
389 conversationListUri = !TextUtils.isEmpty(convList) ? Uri.parse(convList) : null; in Folder()
391 childFoldersListUri = (hasChildren && !TextUtils.isEmpty(childList)) ? Uri.parse(childList) in Folder()
397 refreshUri = !TextUtils.isEmpty(refresh) ? Uri.parse(refresh) : null; in Folder()
404 if (!TextUtils.isEmpty(bgColor)) { in Folder()
407 if (!TextUtils.isEmpty(fgColor)) { in Folder()
411 loadMoreUri = !TextUtils.isEmpty(loadMore) ? Uri.parse(loadMore) : null; in Folder()
462 if (!TextUtils.isEmpty(bgColor)) { in Folder()
[all …]
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/
DContactInfo.java21 import android.text.TextUtils;
99 if (!TextUtils.equals(name, other.name)) { in equals()
102 if (!TextUtils.equals(nameAlternative, other.nameAlternative)) { in equals()
108 if (!TextUtils.equals(label, other.label)) { in equals()
111 if (!TextUtils.equals(number, other.number)) { in equals()
114 if (!TextUtils.equals(formattedNumber, other.formattedNumber)) { in equals()
117 if (!TextUtils.equals(normalizedNumber, other.normalizedNumber)) { in equals()
126 if (!TextUtils.equals(objectId, other.objectId)) { in equals()
135 if (!TextUtils.equals(geoDescription, other.geoDescription)) { in equals()
DContactInfoHelper.java36 import android.text.TextUtils;
226 if (TextUtils.isEmpty(number)) { in lookupNumber()
293 return contactInfo != null && !TextUtils.isEmpty(contactInfo.name); in hasName()
418 if (TextUtils.isEmpty(number)) { in queryContactInfoForPhoneNumber()
460 if (TextUtils.isEmpty(number)) { in formatPhoneNumber()
467 if (TextUtils.isEmpty(countryIso)) { in formatPhoneNumber()
491 if (!TextUtils.equals(updatedInfo.name, callLogInfo.name)) { in updateCallLogContactInfo()
501 if (!TextUtils.equals(updatedInfo.label, callLogInfo.label)) { in updateCallLogContactInfo()
512 if (!TextUtils.isEmpty(updatedInfo.normalizedNumber) in updateCallLogContactInfo()
513 && !TextUtils.equals(updatedInfo.normalizedNumber, callLogInfo.normalizedNumber)) { in updateCallLogContactInfo()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DCalendarEventModel.java26 import android.text.TextUtils;
63 if (!TextUtils.equals(mEmail, other.mEmail)) { in equals()
70 if (TextUtils.isEmpty(mName)) { in getDisplayName()
343 if (!TextUtils.isEmpty(rrule)) { in CalendarEventModel()
348 if (!TextUtils.isEmpty(emails)) { in CalendarEventModel()
351 if (!TextUtils.isEmpty(email) && email.contains("@")) { in CalendarEventModel()
365 if (TextUtils.isEmpty(mOwnerAccount)) { in isValid()
456 if (TextUtils.isEmpty(attendee.mName)) { in addAttendees()
636 if (TextUtils.isEmpty(mLocation)) { in isUnchanged()
637 if (!TextUtils.isEmpty(originalModel.mLocation)) { in isUnchanged()
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DNameConverter.java26 import android.text.TextUtils;
85 if (!TextUtils.isEmpty(value)) { in appendQueryParameter()
109 if (!TextUtils.isEmpty(phoneticName)) { in parsePhoneticName()
140 if (!TextUtils.isEmpty(family) || !TextUtils.isEmpty(middle) in buildPhoneticName()
141 || !TextUtils.isEmpty(given)) { in buildPhoneticName()
143 if (!TextUtils.isEmpty(family)) { in buildPhoneticName()
146 if (!TextUtils.isEmpty(middle)) { in buildPhoneticName()
149 if (!TextUtils.isEmpty(given)) { in buildPhoneticName()
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DDetailsContent.java22 import android.text.TextUtils;
56 .setDescription(TextUtils.isEmpty(recordedProgram.getLongDescription()) in createFromRecordedProgram()
68 .setDescription(TextUtils.isEmpty(seriesRecording.getLongDescription()) in createFromSeriesRecording()
79 String description = !TextUtils.isEmpty(scheduledRecording.getProgramDescription()) ? in createFromScheduledRecording()
82 if (TextUtils.isEmpty(description)) { in createFromScheduledRecording()
266 if (TextUtils.isEmpty(title)) { in createStyledTitle()
278 if (!TextUtils.isEmpty(mPosterArtUri) && !TextUtils.isEmpty(mThumbnailUri)) { in createImageUris()
281 } else if (!TextUtils.isEmpty(mPosterArtUri)) { in createImageUris()
285 } else if (!TextUtils.isEmpty(mThumbnailUri)) { in createImageUris()
290 if (TextUtils.isEmpty(mDetailsContent.mLogoImageUri) && channel != null) { in createImageUris()
/packages/apps/Messaging/src/com/android/messaging/util/
DUriUtil.java26 import android.text.TextUtils;
65 return TextUtils.isEmpty(path) ? null : Uri.fromFile(new File(path)); in getUriForResourceFile()
83 return TextUtils.equals(scheme, ContentResolver.SCHEME_ANDROID_RESOURCE) || in isLocalResourceUri()
84 TextUtils.equals(scheme, ContentResolver.SCHEME_CONTENT) || in isLocalResourceUri()
85 TextUtils.equals(scheme, ContentResolver.SCHEME_FILE); in isLocalResourceUri()
93 return TextUtils.equals(scheme, ContentResolver.SCHEME_ANDROID_RESOURCE); in isBugleAppResource()
97 return uri != null && TextUtils.equals(uri.getScheme(), ContentResolver.SCHEME_FILE); in isFileUri()
126 return TextUtils.equals(ContentResolver.SCHEME_CONTENT, uri.getScheme()) in isMediaStoreUri()
127 && (TextUtils.equals(MediaStore.AUTHORITY, uriAuthority) || in isMediaStoreUri()
129 TextUtils.equals(MEDIA_STORE_URI_KLP, uriAuthority)); in isMediaStoreUri()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DHostAuth.java26 import android.text.TextUtils;
184 if (!TextUtils.isEmpty(clientAlias)) { in getSchemeString()
185 if (TextUtils.isEmpty(security)) { in getSchemeString()
313 if (!TextUtils.isEmpty(userInfo)) { in setLogin()
325 if (TextUtils.isEmpty(mLogin)) { in setUserName()
339 if (TextUtils.isEmpty(mLogin)) { in setLogin()
377 if (!useSecureConnection && !TextUtils.isEmpty(clientCertAlias)) { in setConnection()
495 && TextUtils.equals(mProtocol, that.mProtocol) in equals()
496 && TextUtils.equals(mAddress, that.mAddress) in equals()
497 && TextUtils.equals(mLogin, that.mLogin) in equals()
[all …]
/packages/apps/Dialer/java/com/android/incallui/contactgrid/
DTopRow.java25 import android.text.TextUtils;
75 if (!TextUtils.isEmpty(state.callSubject)) { in getInfo()
83 label = TextUtils.concat(label, " ", spanDisplayNumber(primaryInfo.number)); in getInfo()
120 if (TextUtils.isEmpty(primaryInfo.number)) { in shouldShowNumber()
129 } else if (state.isWifi && !TextUtils.isEmpty(state.connectionLabel)) { in getLabelForIncoming()
158 if (!TextUtils.isEmpty(state.connectionLabel) && !state.isWifi) { in getLabelForDialing()
173 if (!TextUtils.isEmpty(state.connectionLabel) in getConnectionLabel()
204 return !TextUtils.isEmpty(state.connectionLabel) && TextUtils.isEmpty(state.gatewayNumber); in isAccount()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DVCardResourceEntry.java26 import android.text.TextUtils;
249 if (web != null && TextUtils.isGraphic(web.getWebsite())){
265 if (TextUtils.isGraphic(birthday)){
274 if (TextUtils.isGraphic(note.getNote())){
286 if (!TextUtils.isEmpty(poBox)) {
291 if (!TextUtils.isEmpty(extendedAddress)) {
296 if (!TextUtils.isEmpty(street)) {
301 if (!TextUtils.isEmpty(localty)) {
306 if (!TextUtils.isEmpty(region)) {
311 if (!TextUtils.isEmpty(postalCode)) {
[all …]
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/
DContactsUtils.java40 import android.text.TextUtils;
117 if (!TextUtils.isEmpty(label)) { in getDisplayLabel()
250 if (!TextUtils.isEmpty(host) && !TextUtils.isEmpty(data)) { in buildImIntent()
384 return !TextUtils.isEmpty(str) && TextUtils.isGraphic(str); in isGraphic()
400 if (TextUtils.equals(Phone.CONTENT_ITEM_TYPE, mimetype1) in areDataEqual()
401 && TextUtils.equals(Phone.CONTENT_ITEM_TYPE, mimetype2)) { in areDataEqual()
413 return TextUtils.equals(mimetype1, mimetype2) && TextUtils.equals(data1, data2); in areDataEqual()
427 return TextUtils.equals(a.getAction(), b.getAction()); in areIntentActionEqual()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSetupFinal.java40 import android.text.TextUtils;
247 if (TextUtils.equals(ACTION_JUMP_TO_INCOMING, action)) { in onCreate()
249 } else if (TextUtils.equals(ACTION_JUMP_TO_OUTGOING, action)) { in onCreate()
251 } else if (TextUtils.equals(ACTION_JUMP_TO_OPTIONS, action)) { in onCreate()
278 if (TextUtils.equals(syncLookbackText, CREATE_ACCOUNT_SYNC_ALL_VALUE)) { in onCreate()
285 final boolean explicitForm = !(TextUtils.isEmpty(user) || in onCreate()
286 TextUtils.isEmpty(incoming) || TextUtils.isEmpty(outgoing)); in onCreate()
289 final boolean implicitForm = !TextUtils.isEmpty(password) && !explicitForm; in onCreate()
290 if (TextUtils.isEmpty(email) || !(explicitForm || implicitForm)) { in onCreate()
419 TextUtils.isEmpty(displayName) ? email : displayName); in onLoadFinished()
[all …]
/packages/apps/Contacts/src/com/android/contacts/detail/
DContactDisplayUtils.java30 import android.text.TextUtils;
65 if (!TextUtils.isEmpty(displayName)) { in getDisplayName()
74 if (!TextUtils.isEmpty(altDisplayName)) { in getDisplayName()
86 if (!TextUtils.isEmpty(phoneticName)) { in getPhoneticName()
101 if (!TextUtils.isEmpty(directoryDisplayName)) { in getAttribution()
103 } else if (!TextUtils.isEmpty(directoryType)) { in getAttribution()
130 if (TextUtils.isEmpty(company)) { in getCompany()
133 if (TextUtils.isEmpty(title)) { in getCompany()
146 if (!TextUtils.isEmpty(combined)) { in getCompany()
222 if (!TextUtils.isEmpty(textToDisplay)) { in setDataOrHideIfNone()
/packages/apps/Dialer/java/com/android/contacts/common/
DContactPhotoManager.java27 import android.text.TextUtils;
77 if (!TextUtils.isEmpty(request.displayName)) { in getDefaultAvatarUriForContact()
80 if (!TextUtils.isEmpty(request.identifier)) { in getDefaultAvatarUriForContact()
121 if (!TextUtils.isEmpty(encodedFragment)) { in removeContactType()
141 return !TextUtils.isEmpty(encodedFragment) in isBusinessContactUri()
153 if (!TextUtils.isEmpty(contactType)) { in getDefaultImageRequestFromUri()
158 if (!TextUtils.isEmpty(scale)) { in getDefaultImageRequestFromUri()
163 if (!TextUtils.isEmpty(offset)) { in getDefaultImageRequestFromUri()
168 if (!TextUtils.isEmpty(isCircular)) { in getDefaultImageRequestFromUri()
488 if (TextUtils.isEmpty(defaultImageRequest.identifier)) { in getDefaultImageForContact()
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DComposeActivity.java61 import android.text.TextUtils;
586 if (isExternal() && mRefMessage != null && !TextUtils.isEmpty(mRefMessage.bodyHtml)) { in finishCreate()
637 mLaunchedFromEmail = TextUtils.equals(dataScheme, accountScheme); in finishCreate()
669 if (!TextUtils.isEmpty(wearReply)) { in finishCreate()
835 if (TextUtils.isEmpty(lastAccountUri)) { in obtainAccount()
838 if (!TextUtils.isEmpty(lastAccountUri)) { in obtainAccount()
843 if (accountExtra instanceof String && !TextUtils.isEmpty((String) accountExtra)) { in obtainAccount()
887 boolean showCc = !TextUtils.isEmpty(mCc.getText()) || (savedInstanceState != null && in finishSetup()
889 boolean showBcc = !TextUtils.isEmpty(mBcc.getText()) || (savedInstanceState != null && in finishSetup()
932 if (TextUtils.isEmpty(mTo.getText())) { in setFocus()
[all …]
/packages/services/Mms/src/com/android/mms/service/
DApnSettings.java25 import android.text.TextUtils;
98 if (!TextUtils.isEmpty(apnName)) { in load()
123 if (TextUtils.isEmpty(mmscUrl)) { in load()
133 if (!TextUtils.isEmpty(proxyAddress)) { in load()
137 if (!TextUtils.isEmpty(portString)) { in load()
165 if (TextUtils.isEmpty(value)) { in getDebugText()
201 return !TextUtils.isEmpty(mProxyAddress); in isProxySet()
206 if (TextUtils.isEmpty(types)) { in isValidApnType()

12345678910>>...51