/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | CapsModeUtils.java | 20 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/ |
D | PostalSplitter.java | 20 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/ |
D | MetadataParser.java | 19 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/ |
D | NewStorageActivity.java | 30 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 …]
|
D | FormatActivity.java | 30 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/ |
D | CallLogEntryDescriptions.java | 24 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()
|
D | CallLogEntryText.java | 22 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/services/Telecomm/src/com/android/server/telecom/callfiltering/ |
D | CallFilteringResult.java | 21 import android.text.TextUtils; 160 if ((TextUtils.isEmpty(mCallScreeningAppName) && in equals() 161 TextUtils.isEmpty(that.mCallScreeningAppName)) && in equals() 162 (TextUtils.isEmpty(mCallScreeningComponentName) && in equals() 163 TextUtils.isEmpty(that.mCallScreeningComponentName))) { in equals() 165 } else if (!TextUtils.isEmpty(mCallScreeningAppName) && in equals() 166 !TextUtils.isEmpty(that.mCallScreeningAppName) && in equals() 168 !TextUtils.isEmpty(mCallScreeningComponentName) && in equals() 169 !TextUtils.isEmpty(that.mCallScreeningComponentName) && in equals() 214 if (!TextUtils.isEmpty(mCallScreeningAppName)) { in toString() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/ |
D | CommandInterceptor.java | 22 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/ |
D | ContactInfo.java | 21 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()
|
D | ContactInfoHelper.java | 32 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/ |
D | NameConverter.java | 26 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/Dialer/java/com/android/dialer/oem/ |
D | CequintCallerIdManager.java | 28 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/UnifiedEmail/src/com/android/mail/providers/ |
D | Message.java | 29 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 …]
|
D | Folder.java | 29 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/Messaging/src/com/android/messaging/util/ |
D | UriUtil.java | 26 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/TV/src/com/android/tv/dvr/ui/browse/ |
D | DetailsContent.java | 22 import android.text.TextUtils; 56 TextUtils.isEmpty(recordedProgram.getLongDescription()) in createFromRecordedProgram() 73 TextUtils.isEmpty(program.getLongDescription()) in createFromProgram() 87 TextUtils.isEmpty(seriesRecording.getLongDescription()) in createFromSeriesRecording() 106 !TextUtils.isEmpty(scheduledRecording.getProgramDescription()) in createFromScheduledRecording() 110 if (TextUtils.isEmpty(description)) { in createFromScheduledRecording() 309 if (TextUtils.isEmpty(title)) { in createStyledTitle() 323 if (!TextUtils.isEmpty(mPosterArtUri) && !TextUtils.isEmpty(mThumbnailUri)) { in createImageUris() 326 } else if (!TextUtils.isEmpty(mPosterArtUri)) { in createImageUris() 330 } else if (!TextUtils.isEmpty(mThumbnailUri)) { in createImageUris() [all …]
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
D | HostAuth.java | 26 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/Car/Settings/tests/robotests/src/com/android/car/settings/applications/defaultapps/ |
D | DefaultAppsPickerBasePreferenceControllerTest.java | 29 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/ |
D | TopRow.java | 28 import android.text.TextUtils; 81 if (!TextUtils.isEmpty(state.callSubject())) { in getInfo() 89 label = TextUtils.concat(label, " ", spanDisplayNumber(primaryInfo.number())); in getInfo() 108 && !TextUtils.isEmpty(state.customLabel())) { in getInfo() 136 if (TextUtils.isEmpty(primaryInfo.number())) { in shouldShowNumber() 145 } else if (state.isWifi() && !TextUtils.isEmpty(state.connectionLabel())) { in getLabelForIncoming() 190 if (!TextUtils.isEmpty(state.connectionLabel()) && !state.isWifi()) { in getLabelForDialing() 198 TextUtils.concat( in getLabelForDialing() 246 if (!TextUtils.isEmpty(state.connectionLabel()) in getConnectionLabel() 277 return !TextUtils.isEmpty(state.connectionLabel()) && TextUtils.isEmpty(state.gatewayNumber()); in isAccount()
|
/packages/apps/Settings/src/com/android/settings/wifi/dpp/ |
D | WifiNetworkConfig.java | 30 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/ |
D | WifiNetworkConfig.java | 30 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/ |
D | CarrierXmlParser.java | 23 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/ |
D | MoreContactUtils.java | 24 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/services/Mms/src/com/android/mms/service/ |
D | ApnSettings.java | 25 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()
|