Home
last modified time | relevance | path

Searched refs:isEmpty (Results 1 – 25 of 928) sorted by relevance

12345678910>>...38

/packages/apps/Email/tests/src/com/android/email/service/
DAttachmentServiceTests.java51 assertTrue(dq.isEmpty()); in testDownloadQueueEmptyQueue()
61 assertFalse(dq.isEmpty()); in testDownloadQueueAddRequest()
74 assertTrue(dq.isEmpty()); in testDownloadQueueAddRequestNull()
84 assertFalse(dq.isEmpty()); in testDownloadQueueAddRequestExisting()
90 assertFalse(dq.isEmpty()); in testDownloadQueueAddRequestExisting()
100 assertFalse(dq.isEmpty()); in testDownloadQueueRemoveRequest()
108 assertTrue(dq.isEmpty()); in testDownloadQueueRemoveRequest()
118 assertFalse(dq.isEmpty()); in testDownloadQueueRemoveRequestNull()
126 assertFalse(dq.isEmpty()); in testDownloadQueueRemoveRequestNull()
136 assertFalse(dq.isEmpty()); in testDownloadQueueRemoveRequestDoesNotExist()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPostalSplitter.java71 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()
167 final boolean hasPobox = !TextUtils.isEmpty(postal.pobox); in joinEnUs()
[all …]
DSearchIndexManager.java146 if (TextUtils.isEmpty(value)) { in appendContent()
179 if (TextUtils.isEmpty(token)) { in appendToken()
194 if (TextUtils.isEmpty(name)) { in appendName()
220 if (!TextUtils.isEmpty(namePart)) { in appendName()
296 if (!contactIds.isEmpty()) { in updateIndexForRawContacts()
302 if (!rawContactIds.isEmpty()) { in updateIndexForRawContacts()
303 if (!contactIds.isEmpty()) { in updateIndexForRawContacts()
425 if (!TextUtils.isEmpty(token)) { in splitIntoFtsTokens()
478 if (!TextUtils.isEmpty(normalizedToken)) { in getDigitsQueryBuilder()
512 if (!TextUtils.isEmpty(normalizedToken)) {
DNameSplitter.java203 public boolean isEmpty() { in isEmpty() method in NameSplitter.Name
204 return TextUtils.isEmpty(givenNames) in isEmpty()
205 && TextUtils.isEmpty(middleName) in isEmpty()
206 && TextUtils.isEmpty(familyName) in isEmpty()
207 && TextUtils.isEmpty(suffix) in isEmpty()
208 && TextUtils.isEmpty(phoneticFamilyName) in isEmpty()
209 && TextUtils.isEmpty(phoneticMiddleName) in isEmpty()
210 && TextUtils.isEmpty(phoneticGivenName); in isEmpty()
567 boolean hasPrefix = !TextUtils.isEmpty(prefix); in join()
568 boolean hasPart1 = !TextUtils.isEmpty(part1); in join()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DImportantNoticeUtilsTests.java124 assertEquals("Current title before update", false, TextUtils.isEmpty( in testUpdateVersion()
126 assertEquals("Current contents before update", false, TextUtils.isEmpty( in testUpdateVersion()
137 assertEquals("Current title after update", true, TextUtils.isEmpty( in testUpdateVersion()
139 assertEquals("Current contents after update", true, TextUtils.isEmpty( in testUpdateVersion()
168 assertEquals("Current title before timeout 1", false, TextUtils.isEmpty( in testTimeout()
170 assertEquals("Current contents before timeout 1", false, TextUtils.isEmpty( in testTimeout()
185 assertEquals("Current title before timeout 2", false, TextUtils.isEmpty( in testTimeout()
187 assertEquals("Current contents before timeout 2", false, TextUtils.isEmpty( in testTimeout()
201 assertEquals("Current title after timeout 1", true, TextUtils.isEmpty( in testTimeout()
203 assertEquals("Current contents after timeout 1", true, TextUtils.isEmpty( in testTimeout()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DMetadataParser.java59 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()
72 || TextUtils.isEmpty(arguments.get(FORMATVERSION_FIELD_NAME))) { in parseOneWordList()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DCalendarEventModel.java70 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()
371 public boolean isEmpty() { in isEmpty() method in CalendarEventModel
456 if (TextUtils.isEmpty(attendee.mName)) { in addAttendees()
636 if (TextUtils.isEmpty(mLocation)) { in isUnchanged()
637 if (!TextUtils.isEmpty(originalModel.mLocation)) { in isUnchanged()
644 if (TextUtils.isEmpty(mTitle)) { in isUnchanged()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DFolder.java365 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()
465 if (!TextUtils.isEmpty(fgColor)) { in Folder()
[all …]
DMessage.java367 uri = !TextUtils.isEmpty(messageUriStr) ? Uri.parse(messageUriStr) : null; in Message()
369 conversationUri = !TextUtils.isEmpty(convUriStr) ? Uri.parse(convUriStr) : null; in Message()
384 refMessageUri = !TextUtils.isEmpty(refMessageUriStr) ? in Message()
392 attachmentListUri = hasAttachments && !TextUtils.isEmpty(attachmentsUri) ? Uri in Message()
396 attachmentByCidUri = hasAttachments && !TextUtils.isEmpty(attachmentsByCidUri) ? in Message()
406 accountUri = !TextUtils.isEmpty(accountUriString) ? Uri.parse(accountUriString) : null; in Message()
494 hasAttachments = !mAttachments.isEmpty(); in Message()
628 if (TextUtils.isEmpty(addresses)) { in tokenizeAddresses()
687 (!TextUtils.isEmpty(bodyHtml) && INLINE_IMAGE_PATTERN.matcher(bodyHtml).find())); in shouldShowImagePrompt()
715 if (!TextUtils.isEmpty(bodyHtml)) { in getBodyAsHtml()
[all …]
/packages/apps/Exchange/src/com/android/exchange/provider/
DExchangeDirectoryProvider.java177 if (!TextUtils.isEmpty(address)) { in addEmailAddress()
189 if (!TextUtils.isEmpty(number)) { in addPhoneRow()
476 if (TextUtils.isEmpty(displayName.first)) { in buildGalResultCursor()
540 if (address != null && !TextUtils.isEmpty(address.toString())) { in buildGalResultCursor()
581 if (!TextUtils.isEmpty(displayName)) { in getDisplayName()
588 if (!TextUtils.isEmpty(firstName) || !TextUtils.isEmpty(lastName)) { in getDisplayName()
589 if (!TextUtils.isEmpty(firstName) && !TextUtils.isEmpty(lastName)) { in getDisplayName()
591 } else if (!TextUtils.isEmpty(firstName)) { in getDisplayName()
601 if (!TextUtils.isEmpty(emailAddress)) { in getDisplayName()
608 if (phone != null && !TextUtils.isEmpty(phone.mNumber)) { in getDisplayName()
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java1526 return (!TextUtils.isEmpty(rrule) || in isRecurrenceEvent()
1527 !TextUtils.isEmpty(rdate) || in isRecurrenceEvent()
1528 !TextUtils.isEmpty(originalId) || in isRecurrenceEvent()
1529 !TextUtils.isEmpty(originalSyncId)); in isRecurrenceEvent()
1771 if (!TextUtils.isEmpty(color_index)) { in handleInsertException()
1793 if (TextUtils.isEmpty(cursor.getString(rruleCol))) { in handleInsertException()
1803 if (!TextUtils.isEmpty(cursor.getString(originalIdCol))) { in handleInsertException()
1808 boolean createSingleException = TextUtils.isEmpty(modValues.getAsString(Events.RRULE)); in handleInsertException()
2097 if (TextUtils.isEmpty(syncId) || TextUtils.isEmpty(calendarId) || in backfillExceptionOriginalIds()
2098 (TextUtils.isEmpty(rrule) && TextUtils.isEmpty(rdate))) { in backfillExceptionOriginalIds()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DRawContactModifier.java450 if (RawContactModifier.isEmpty(entry, kind) && !isGooglePhoto) { in trimEmpty()
475 final boolean isRealInsert = entry.isInsert() && !isEmpty(entry, kind); in hasChanges()
488 public static boolean isEmpty(ValuesDelta values, DataKind kind) { in isEmpty() method in RawContactModifier
668 if (!TextUtils.isEmpty(address)) { in parseStructuredPostalExtra()
691 if (TextUtils.isEmpty(mimeType)) { in parseValues()
706 TextUtils.isEmpty(values.getAsString(Phone.LABEL))) { in parseValues()
719 if (isEmpty(entry, kind)) { in parseValues()
759 if (!delta.isDelete() && !isEmpty(delta, kind)) { in parseValues()
781 if (!isEmpty(delta, kind)) { in parseValues()
982 if (entryList != null && !entryList.isEmpty()) { in migrateStateForNewContact()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DStateManager.java60 if (!mStack.isEmpty()) { in startState()
90 if (!mStack.isEmpty()) { in startStateForResult()
107 if (mStack.isEmpty()) { in createOptionsMenu()
123 if (!mStack.isEmpty()) getTopState().resume(); in resume()
129 if (!mStack.isEmpty()) getTopState().onPause(); in pause()
137 if (!mStack.isEmpty()) { in clearActivityResult()
147 if (!mStack.isEmpty()) { in itemSelected()
160 if (!mStack.isEmpty()) { in onBackPressed()
207 ActivityState top = !mStack.isEmpty() ? mStack.peek().activityState : null; in finishState()
260 while (!mStack.isEmpty()) { in destroy()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DConversationCheckedSet.java106 boolean initiallyNotEmpty = !mInternalMap.isEmpty(); in clear()
110 if (mInternalMap.isEmpty() && initiallyNotEmpty) { in clear()
176 public boolean isEmpty() { in isEmpty() method in ConversationCheckedSet
178 return mInternalMap.isEmpty(); in isEmpty()
184 final boolean initiallyEmpty = mInternalMap.isEmpty(); in put()
205 final boolean initiallyNotEmpty = !mInternalMap.isEmpty(); in removeAll()
216 if (mInternalMap.isEmpty() && initiallyNotEmpty) { in removeAll()
284 final boolean initiallyEmpty = mInternalMap.isEmpty(); in putAll()
316 if (isEmpty()) { in validateAgainstCursor()
353 if (!batchConversationToCheck.isEmpty() && cursorConversationIds != null) { in validateAgainstCursor()
DAnimatedAdapter.java99 if (!mUndoingItems.isEmpty()) {
348 if (!mLastDeletingItems.isEmpty()) { in setUndo()
368 if (!mLastDeletingItems.isEmpty()) { in setSwipeUndo()
476 if (list.isEmpty()) { in delete()
565 return !mLeaveBehindItems.isEmpty(); in hasLeaveBehinds()
569 return !mFadeLeaveBehindItems.isEmpty(); in hasFadeLeaveBehinds()
644 if (!mLastDeletingItems.isEmpty()) { in startFadeOutLeaveBehindItemsAnimations()
692 if (!mLastDeletingItems.isEmpty()) { in commitLeaveBehindItems()
858 if (!items.isEmpty()) { in updateAnimatingConversationItems()
864 if (items.isEmpty()) { in updateAnimatingConversationItems()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DComposeActivity.java649 if (!TextUtils.isEmpty(wearReply)) { in finishCreate()
815 if (TextUtils.isEmpty(lastAccountUri)) { in obtainAccount()
818 if (!TextUtils.isEmpty(lastAccountUri)) { in obtainAccount()
823 if (accountExtra instanceof String && !TextUtils.isEmpty((String) accountExtra)) { in obtainAccount()
867 boolean showCc = !TextUtils.isEmpty(mCc.getText()) || (savedInstanceState != null && in finishSetup()
869 boolean showBcc = !TextUtils.isEmpty(mBcc.getText()) || (savedInstanceState != null && in finishSetup()
912 if (TextUtils.isEmpty(mTo.getText())) { in setFocus()
1143 TextUtils.isEmpty(htmlInPlainText)) { in createMessage()
1160 if (refMessage != null && !TextUtils.isEmpty(quotedText)) { in createMessage()
1161 if (!TextUtils.isEmpty(refMessage.bodyHtml)) { in createMessage()
[all …]
/packages/apps/Settings/src/com/android/settings/print/
DPrintServiceSettingsFragment.java306 if (!TextUtils.isEmpty(mEnableWarningMessage)) { in initComponents()
344 if (!TextUtils.isEmpty(settingsTitle) && !TextUtils.isEmpty(settingsComponentName)) { in updateUiForArguments()
349 if (!resolvedActivities.isEmpty()) { in updateUiForArguments()
363 if (!TextUtils.isEmpty(addPrintersTitle) in updateUiForArguments()
364 && !TextUtils.isEmpty(addPrintersComponentName)) { in updateUiForArguments()
369 if (!resolvedActivities.isEmpty()) { in updateUiForArguments()
399 if (mServiceEnabled && !TextUtils.isEmpty(mAddPrintersTitle) in onCreateOptionsMenu()
407 if (mServiceEnabled && !TextUtils.isEmpty(mSettingsTitle) in onCreateOptionsMenu()
500 if (TextUtils.isEmpty(constraint)) { in getFilter()
580 if (!TextUtils.isEmpty(subtitle)) {
[all …]
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DExpandingEntryCardView.java406 if (TextUtils.isEmpty(mTitleTextView.getText()) && in addEntry()
445 if (!TextUtils.isEmpty(mExpandButtonText)) { in getExpandButtonText()
454 if (!TextUtils.isEmpty(mCollapseButtonText)) { in getCollapseButtonText()
592 if (!TextUtils.isEmpty(entry.getPrimaryContentDescription())) { in createEntryView()
602 if (!TextUtils.isEmpty(entry.getHeader())) { in createEntryView()
609 if (!TextUtils.isEmpty(entry.getSubHeader())) { in createEntryView()
623 if (!TextUtils.isEmpty(entry.getText())) { in createEntryView()
662 (!TextUtils.isEmpty(entry.getSubHeader()) || !TextUtils.isEmpty(entry.getText()))) { in createEntryView()
668 } else if (iconVisibility == View.INVISIBLE && TextUtils.isEmpty(entry.getSubHeader()) in createEntryView()
669 && TextUtils.isEmpty(entry.getText())) { in createEntryView()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DNameConverter.java168 if (!TextUtils.isEmpty(value)) { in appendQueryParameter()
191 if (!TextUtils.isEmpty(phoneticName)) { in parsePhoneticName()
222 if (!TextUtils.isEmpty(family) || !TextUtils.isEmpty(middle) in buildPhoneticName()
223 || !TextUtils.isEmpty(given)) { in buildPhoneticName()
225 if (!TextUtils.isEmpty(family)) { in buildPhoneticName()
228 if (!TextUtils.isEmpty(middle)) { in buildPhoneticName()
231 if (!TextUtils.isEmpty(given)) { in buildPhoneticName()
/packages/apps/Contacts/src/com/android/contacts/detail/
DContactDisplayUtils.java67 if (!TextUtils.isEmpty(displayName)) { in getDisplayName()
76 if (!TextUtils.isEmpty(altDisplayName)) { in getDisplayName()
88 if (!TextUtils.isEmpty(phoneticName)) { in getPhoneticName()
103 if (!TextUtils.isEmpty(directoryDisplayName)) { in getAttribution()
105 } else if (!TextUtils.isEmpty(directoryType)) { in getAttribution()
132 if (TextUtils.isEmpty(company)) { in getCompany()
135 if (TextUtils.isEmpty(title)) { in getCompany()
148 if (!TextUtils.isEmpty(combined)) { in getCompany()
244 if (!TextUtils.isEmpty(textToDisplay)) { in setDataOrHideIfNone()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DTransactionContextTest.java47 assertTrue(newDirty.isEmpty()); in testClearExceptSearchIndexUpdates_returnsNewSets()
48 assertTrue(newChanged.isEmpty()); in testClearExceptSearchIndexUpdates_returnsNewSets()
49 assertTrue(newInserted.isEmpty()); in testClearExceptSearchIndexUpdates_returnsNewSets()
50 assertTrue(newUpdated.isEmpty()); in testClearExceptSearchIndexUpdates_returnsNewSets()
51 assertTrue(newSync.isEmpty()); in testClearExceptSearchIndexUpdates_returnsNewSets()
74 assertTrue(context.getChangedRawContactIds().isEmpty()); in testRawContactInserted_affectsChangedContacts()
87 assertTrue(context.getChangedRawContactIds().isEmpty()); in testMarkRawContactChangedOrDeletedOrInserted_affectsChangedContacts()
/packages/services/Telecomm/src/com/android/server/telecom/
DInCallController.java154 if (mInCallServices.isEmpty()) { in onCallAdded()
178 if (CallsManager.getInstance().getCalls().isEmpty()) { in onCallRemoved()
201 if (!mInCallServices.isEmpty()) { in onAudioStateChanged()
215 if (!mInCallServices.isEmpty()) { in onCanAddCallChanged()
227 if (!mInCallServices.isEmpty()) { in onPostDialWait()
245 if (!mInCallServices.isEmpty()) { in bringToForeground()
280 if (mInCallServices.isEmpty()) { in bind()
369 if (!calls.isEmpty()) { in onConnected()
436 if (!mInCallServices.isEmpty()) { in updateCall()
502 if (!childCalls.isEmpty()) { in toParcelableCall()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DMessageFooterView.java156 message.clipped && !TextUtils.isEmpty(message.permalink) ? VISIBLE : GONE); in bind()
177 if (attachments == null || attachments.isEmpty()) { in renderAttachments()
202 if (tiledAttachments.isEmpty() && barAttachments.isEmpty()) { in renderAttachments()
206 if (!tiledAttachments.isEmpty()) { in renderAttachments()
209 if (!barAttachments.isEmpty()) { in renderAttachments()
304 if (TextUtils.isEmpty(activityName)) { in viewEntireMessage()
311 if (account != null && !TextUtils.isEmpty(message.permalink)) { in viewEntireMessage()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DAttachmentUtilities.java227 if (isGenericType || TextUtils.isEmpty(mimeType)) { in inferMimeType()
228 if (!TextUtils.isEmpty(fileExtension)) { in inferMimeType()
231 if (TextUtils.isEmpty(resultType)) { in inferMimeType()
242 if (TextUtils.isEmpty(resultType)) { in inferMimeType()
255 if (!TextUtils.isEmpty(fileName)) { in getFilenameExtension()
333 if (!TextUtils.isEmpty(fileName)) { in deleteAllCachedAttachmentFiles()
411 if (TextUtils.isEmpty(attachment.mFileName)) { in saveAttachment()
432 final String mimeType = TextUtils.isEmpty(attachment.mMimeType) ? in saveAttachment()
/packages/apps/Mms/src/com/android/mms/transaction/
DMessagingNotification.java274 if (notificationSet.isEmpty()) { in blockingUpdateNewMessageIndicator()
320 if (TextUtils.isEmpty(ringtoneStr)) { in playInConversationNotificationSound()
424 !TextUtils.isEmpty(mMessage) ? mMessage.replaceAll("\\n\\s+", "\n") : ""; in formatBigMessage()
427 if (!TextUtils.isEmpty(mSubject)) { in formatBigMessage()
456 !TextUtils.isEmpty(mMessage) ? mMessage.replaceAll("\\n\\s+", "\n") : ""; in formatInboxMessage()
460 if (!TextUtils.isEmpty(sender)) { in formatInboxMessage()
466 if (!TextUtils.isEmpty(mSubject)) { in formatInboxMessage()
501 !TextUtils.isEmpty(mMessage) ? mMessage.replaceAll("\\n\\s+", "\n") : ""; in formatPictureMessage()
505 if (!TextUtils.isEmpty(mSubject)) { in formatPictureMessage()
950 noti.setSound(TextUtils.isEmpty(ringtoneStr) ? null : Uri.parse(ringtoneStr)); in updateNotification()
[all …]

12345678910>>...38