Home
last modified time | relevance | path

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

12345678910>>...76

/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/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/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DNewStorageActivity.java30 import android.text.TextUtils;
75 if (TextUtils.equals(action, ACTION_MISSING_STORAGE)) { in onCreate()
78 if (TextUtils.isEmpty(fsUuid)) { in onCreate()
89 if (TextUtils.isEmpty(volumeId) && TextUtils.isEmpty(diskId)) { in onCreate()
138 if (TextUtils.isEmpty(mVolumeId) && TextUtils.isEmpty(mDiskId)) { in onCreate()
142 if (!TextUtils.isEmpty(mVolumeId)) { in onCreate()
181 if (TextUtils.isEmpty(mVolumeId)) { in onCreateActions()
216 if (!TextUtils.isEmpty(mVolumeId)) { in onGuidedActionClicked()
233 if (!TextUtils.isEmpty(mDiskId)) { in checkForUnmount()
238 if (TextUtils.equals(diskInfo.getId(), mDiskId)) { in checkForUnmount()
[all …]
DFormatActivity.java30 import android.text.TextUtils;
109 if (TextUtils.equals(action, INTENT_ACTION_FORMAT_AS_PRIVATE)) { in onCreate()
111 } else if (TextUtils.equals(action, INTENT_ACTION_FORMAT_AS_PUBLIC)) { in onCreate()
125 if (!TextUtils.isEmpty(mFormatAsPrivateDiskId)) { in onResume()
144 if (TextUtils.equals(diskId, vol.getDiskId()) in findVolume()
189 if (TextUtils.equals(intent.getAction(), in onReceive()
191 && !TextUtils.isEmpty(mActivity.mFormatAsPrivateDiskId)) { in onReceive()
193 if (TextUtils.equals(mActivity.mFormatAsPrivateDiskId, diskId)) { in onReceive()
216 } else if (TextUtils.equals(intent.getAction(), in onReceive()
218 && !TextUtils.isEmpty(mActivity.mFormatAsPublicDiskId)) { in onReceive()
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallLogEntryDescriptions.java24 import android.text.TextUtils;
69 TextUtils.expandTemplate( in buildDescriptionForEntry()
89 return TextUtils.isEmpty(phoneAccountDescription) in buildDescriptionForEntry()
90 ? TextUtils.expandTemplate( in buildDescriptionForEntry()
97 : TextUtils.expandTemplate( in buildDescriptionForEntry()
137 if (TextUtils.isEmpty(phoneAccountLabel)) { in buildPhoneAccountDescription()
141 if (TextUtils.isEmpty(row.getNumber().getNormalizedNumber())) { in buildPhoneAccountDescription()
145 return TextUtils.expandTemplate( in buildPhoneAccountDescription()
152 return TextUtils.join( in joinSecondaryTextComponents()
153 ", ", Collections2.filter(components, (text) -> !TextUtils.isEmpty(text))); in joinSecondaryTextComponents()
DCallLogEntryText.java22 import android.text.TextUtils;
62 if (row.getIsVoicemailCall() && !TextUtils.isEmpty(row.getVoicemailCallTag())) { in buildPrimaryText()
67 if (!TextUtils.isEmpty(row.getNumberAttributes().getName())) { in buildPrimaryText()
72 if (!TextUtils.isEmpty(row.getFormattedNumber())) { in buildPrimaryText()
224 if (TextUtils.isEmpty(row.getNumberAttributes().getName())) { in buildSecondaryTextForBottomSheet()
228 if (TextUtils.isEmpty(row.getFormattedNumber())) { in buildSecondaryTextForBottomSheet()
267 if (TextUtils.isEmpty(numberTypeLabel) in getNumberTypeLabel()
272 !TextUtils.isEmpty(row.getNumberAttributes().getGeolocation()) in getNumberTypeLabel()
275 if (!TextUtils.isEmpty(location)) { in getNumberTypeLabel()
287 return TextUtils.join( in joinSecondaryTextComponents()
[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()
131 if (tokens.length == 2 && !TextUtils.isEmpty(tokens[1])) { in docDetails()
137 Log.w(TAG, "Invalid command structure: " + TextUtils.join(" ", tokens)); in docDetails()
153 + TextUtils.join(" ", tokens)); in forcePaging()
[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.java32 import android.text.TextUtils;
209 if (TextUtils.isEmpty(number)) { in lookupNumber()
276 return contactInfo != null && !TextUtils.isEmpty(contactInfo.name); in hasName()
407 if (TextUtils.isEmpty(number)) { in queryContactInfoForPhoneNumber()
449 if (TextUtils.isEmpty(number)) { in formatPhoneNumber()
456 if (TextUtils.isEmpty(countryIso)) { in formatPhoneNumber()
480 if (!TextUtils.equals(updatedInfo.name, callLogInfo.name)) { in updateCallLogContactInfo()
490 if (!TextUtils.equals(updatedInfo.label, callLogInfo.label)) { in updateCallLogContactInfo()
501 if (!TextUtils.isEmpty(updatedInfo.normalizedNumber) in updateCallLogContactInfo()
502 && !TextUtils.equals(updatedInfo.normalizedNumber, callLogInfo.normalizedNumber)) { in updateCallLogContactInfo()
[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/data/
DBaseProgramImpl.java21 import android.text.TextUtils;
34 if (!TextUtils.isEmpty(episodeNumber)) { in getEpisodeDisplayTitle()
37 if (TextUtils.isEmpty(seasonNumber) || TextUtils.equals(seasonNumber, "0")) { in getEpisodeDisplayTitle()
60 if (!TextUtils.isEmpty(episodeNumber)) { in getEpisodeContentDescription()
63 if (TextUtils.isEmpty(seasonNumber) || TextUtils.equals(seasonNumber, "0")) { in getEpisodeContentDescription()
84 return !TextUtils.isEmpty(getSeriesId()); in isEpisodic()
/packages/apps/Dialer/java/com/android/dialer/oem/
DCequintCallerIdManager.java28 import android.text.TextUtils;
228 TextUtils.isEmpty(displayName) in lookup()
257 if (!TextUtils.isEmpty(string)) { in getString()
271 boolean hasFirstName = !TextUtils.isEmpty(firstName); in generateDisplayName()
272 boolean hasLastName = !TextUtils.isEmpty(lastName); in generateDisplayName()
273 boolean hasCompanyName = !TextUtils.isEmpty(company); in generateDisplayName()
274 boolean hasName = !TextUtils.isEmpty(name); in generateDisplayName()
307 if (TextUtils.isEmpty(city) && !TextUtils.isEmpty(state)) { in getGeolocation()
309 } else if (!TextUtils.isEmpty(city) && !TextUtils.isEmpty(stateAbbr)) { in getGeolocation()
311 } else if (!TextUtils.isEmpty(country)) { in getGeolocation()
/packages/apps/Messaging/src/com/android/messaging/util/
DUriUtil.java26 import android.text.TextUtils;
66 return TextUtils.isEmpty(path) ? null : Uri.fromFile(new File(path)); in getUriForResourceFile()
84 return TextUtils.equals(scheme, ContentResolver.SCHEME_ANDROID_RESOURCE) || in isLocalResourceUri()
85 TextUtils.equals(scheme, ContentResolver.SCHEME_CONTENT) || in isLocalResourceUri()
86 TextUtils.equals(scheme, ContentResolver.SCHEME_FILE); in isLocalResourceUri()
94 return TextUtils.equals(scheme, ContentResolver.SCHEME_ANDROID_RESOURCE); in isBugleAppResource()
98 return uri != null && TextUtils.equals(uri.getScheme(), ContentResolver.SCHEME_FILE); in isFileUri()
127 return TextUtils.equals(ContentResolver.SCHEME_CONTENT, uri.getScheme()) in isMediaStoreUri()
128 && (TextUtils.equals(MediaStore.AUTHORITY, uriAuthority) || in isMediaStoreUri()
130 TextUtils.equals(MEDIA_STORE_URI_KLP, uriAuthority)); in isMediaStoreUri()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DDetailsContent.java22 import android.text.TextUtils;
57 TextUtils.isEmpty(recordedProgram.getLongDescription()) in createFromRecordedProgram()
74 TextUtils.isEmpty(program.getLongDescription()) in createFromProgram()
88 TextUtils.isEmpty(seriesRecording.getLongDescription()) in createFromSeriesRecording()
107 !TextUtils.isEmpty(scheduledRecording.getProgramDescription()) in createFromScheduledRecording()
111 if (TextUtils.isEmpty(description)) { in createFromScheduledRecording()
310 if (TextUtils.isEmpty(title)) { in createStyledTitle()
324 if (!TextUtils.isEmpty(mPosterArtUri) && !TextUtils.isEmpty(mThumbnailUri)) { in createImageUris()
327 } else if (!TextUtils.isEmpty(mPosterArtUri)) { in createImageUris()
331 } else if (!TextUtils.isEmpty(mThumbnailUri)) { in createImageUris()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/defaultapps/
DDefaultAppsPickerBasePreferenceControllerTest.java29 import android.text.TextUtils;
194 assertThat(TextUtils.isEmpty(currentDefault.getSummary())).isFalse(); in performClick_currentDefaultApp_nothingHappened()
195 assertThat(TextUtils.isEmpty(otherOption.getSummary())).isTrue(); in performClick_currentDefaultApp_nothingHappened()
199 assertThat(TextUtils.isEmpty(currentDefault.getSummary())).isFalse(); in performClick_currentDefaultApp_nothingHappened()
200 assertThat(TextUtils.isEmpty(otherOption.getSummary())).isTrue(); in performClick_currentDefaultApp_nothingHappened()
218 assertThat(TextUtils.isEmpty(currentDefault.getSummary())).isFalse(); in performClick_otherOptionNoMessage_otherOptionSelected()
219 assertThat(TextUtils.isEmpty(otherOption.getSummary())).isTrue(); in performClick_otherOptionNoMessage_otherOptionSelected()
223 assertThat(TextUtils.isEmpty(currentDefault.getSummary())).isTrue(); in performClick_otherOptionNoMessage_otherOptionSelected()
224 assertThat(TextUtils.isEmpty(otherOption.getSummary())).isFalse(); in performClick_otherOptionNoMessage_otherOptionSelected()
243 assertThat(TextUtils.isEmpty(currentDefault.getSummary())).isFalse(); in performClick_otherOptionHasMessage_dialogOpened()
[all …]
/packages/apps/Dialer/java/com/android/incallui/contactgrid/
DTopRow.java28 import android.text.TextUtils;
81 if (!TextUtils.isEmpty(state.callSubject())) { in getInfo()
89 label = TextUtils.concat(label, " ", spanDisplayNumber(primaryInfo.number())); in getInfo()
110 && !TextUtils.isEmpty(state.customLabel())) { in getInfo()
138 if (TextUtils.isEmpty(primaryInfo.number())) { in shouldShowNumber()
147 } else if (state.isWifi() && !TextUtils.isEmpty(state.connectionLabel())) { in getLabelForIncoming()
192 if (!TextUtils.isEmpty(state.connectionLabel()) && !state.isWifi()) { in getLabelForDialing()
200 TextUtils.concat( in getLabelForDialing()
248 if (!TextUtils.isEmpty(state.connectionLabel()) in getConnectionLabel()
279 return !TextUtils.isEmpty(state.connectionLabel()) && TextUtils.isEmpty(state.gatewayNumber()); in isAccount()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiNetworkConfig.java30 import android.text.TextUtils;
127 if (!TextUtils.isEmpty(security) && !SECURITY_NO_PASSWORD.equals(security)) { in isValidConfig()
128 if (TextUtils.isEmpty(preSharedKey)) { in isValidConfig()
133 if (!hiddenSsid && TextUtils.isEmpty(ssid)) { in isValidConfig()
145 if (TextUtils.isEmpty(str)) { in escapeSpecialCharacters()
172 .append(TextUtils.isEmpty(mSecurity) ? empty : mSecurity) in getQrCode()
175 .append(TextUtils.isEmpty(mPreSharedKey) ? empty in getQrCode()
214 if (TextUtils.isEmpty(mSecurity)) { in isSupportWifiDpp()
250 if (TextUtils.isEmpty(mSecurity) || SECURITY_NO_PASSWORD.equals(mSecurity)) { in getWifiConfigurations()
312 if (TextUtils.isEmpty(input)) { in addQuotationIfNeeded()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/dpp/
DWifiNetworkConfig.java30 import android.text.TextUtils;
127 if (!TextUtils.isEmpty(security) && !SECURITY_NO_PASSWORD.equals(security)) { in isValidConfig()
128 if (TextUtils.isEmpty(preSharedKey)) { in isValidConfig()
133 if (!hiddenSsid && TextUtils.isEmpty(ssid)) { in isValidConfig()
145 if (TextUtils.isEmpty(str)) { in escapeSpecialCharacters()
172 .append(TextUtils.isEmpty(mSecurity) ? empty : mSecurity) in getQrCode()
175 .append(TextUtils.isEmpty(mPreSharedKey) ? empty in getQrCode()
214 if (TextUtils.isEmpty(mSecurity)) { in isSupportWifiDpp()
250 if (TextUtils.isEmpty(mSecurity) || SECURITY_NO_PASSWORD.equals(mSecurity)) { in getWifiConfigurations()
312 if (TextUtils.isEmpty(input)) { in addQuotationIfNeeded()
/packages/services/Telephony/src/com/android/phone/
DCarrierXmlParser.java23 import android.text.TextUtils;
155 if (!TextUtils.isEmpty(m.group(i))) { in newFromResponseString()
250 if (TextUtils.isEmpty(getInputValue)) { in makeCommand()
275 if (TextUtils.isEmpty(sParserFormat)) { in getResponseSet()
297 if (!TextUtils.isEmpty(defineString)) { in getResponseSet()
303 if (TextUtils.isEmpty(defineString)) { in getResponseSet()
309 if (TextUtils.isEmpty(defineString)) { in getResponseSet()
452 if (!TextUtils.isEmpty(featureName)) { in parseXml()
510 if (!TextUtils.isEmpty(key)) { in readCommandResultEntry()
550 if (!TextUtils.isEmpty(number)) { in readCommandEntry()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/
DMoreContactUtils.java24 import android.text.TextUtils;
43 if (!TextUtils.equals(mimetype1, mimetype2)) { in shouldCollapse()
48 if (TextUtils.equals(data1, data2)) { in shouldCollapse()
59 if (!TextUtils.equals(ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE, mimetype1)) { in shouldCollapse()
91 if (TextUtils.equals(dataPart1, dataPart2)) { in shouldCollapsePhoneNumbers()
203 if (TextUtils.isEmpty(syncAdapterPackageName) || TextUtils.isEmpty(className)) { in getInvitableIntent()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DInputOptionsFragment.java23 import android.text.TextUtils;
110 if (TextUtils.equals(namePref.getKey(), KEY_NAME_DEFAULT) in refresh()
111 || TextUtils.equals(namePref.getKey(), KEY_NAME_CUSTOM)) { in refresh()
114 final boolean nameMatch = TextUtils.equals(namePref.getTitle(), customLabel); in refresh()
121 final boolean nameIsDefault = TextUtils.isEmpty(customLabel); in refresh()
147 if (TextUtils.equals(key, KEY_NAME_CUSTOM)) { in onPreferenceTreeClick()
149 } else if (TextUtils.equals(key, KEY_NAME_DEFAULT)) { in onPreferenceTreeClick()
165 if (TextUtils.isEmpty(name)) { in setInputName()
/packages/services/Mms/src/com/android/mms/service/
DApnSettings.java24 import android.text.TextUtils;
97 if (!TextUtils.isEmpty(apnName)) { in load()
131 if (TextUtils.isEmpty(mmscUrl)) { in getApnSettingsFromCursor()
141 if (!TextUtils.isEmpty(proxyAddress)) { in getApnSettingsFromCursor()
145 if (!TextUtils.isEmpty(portString)) { in getApnSettingsFromCursor()
166 if (TextUtils.isEmpty(value)) { in getDebugText()
202 return !TextUtils.isEmpty(mProxyAddress); in isProxySet()
207 if (TextUtils.isEmpty(types)) { in isValidApnType()
/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/dialer/contactphoto/
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()

12345678910>>...76