Home
last modified time | relevance | path

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

12345678910>>...43

/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/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/Dialer/src/com/android/dialer/calllog/
DPhoneCallDetailsHelper.java128 if (TextUtils.isEmpty(details.name)) { in setPhoneCallDetails()
138 if (isVoicemail && !TextUtils.isEmpty(details.transcription)) { in setPhoneCallDetails()
167 if (!TextUtils.isEmpty(callTypeOrLocation)) { in getCallLocationAndDate()
187 if (!TextUtils.isEmpty(details.number) in getCallTypeOrLocation()
191 if (TextUtils.isEmpty(details.name) && !TextUtils.isEmpty(details.geocode)) { in getCallTypeOrLocation()
194 && TextUtils.isEmpty(details.numberLabel))) { in getCallTypeOrLocation()
201 if (!TextUtils.isEmpty(details.name) && TextUtils.isEmpty(numberFormattedLabel)) { in getCallTypeOrLocation()
224 if (!TextUtils.isEmpty(details.name)) { in setCallDetailsHeader()
226 } else if (!TextUtils.isEmpty(details.displayNumber)) { in setCallDetailsHeader()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DNewStorageActivity.java80 if (TextUtils.isEmpty(volumeId) && TextUtils.isEmpty(diskId)) { in onCreate()
90 if (TextUtils.isEmpty(fsUuid)) { in onCreate()
127 if (TextUtils.isEmpty(mVolumeId) && TextUtils.isEmpty(mDiskId)) { in onCreate()
131 if (!TextUtils.isEmpty(mVolumeId)) { in onCreate()
154 if (TextUtils.isEmpty(mVolumeId)) { in onCreateActions()
189 if (!TextUtils.isEmpty(mVolumeId)) { in onGuidedActionClicked()
218 if (TextUtils.isEmpty(mFsUuid)) { in onCreate()
295 if (TextUtils.isEmpty(diskId)) { in handleScan()
324 if (info.getType() != VolumeInfo.TYPE_PUBLIC || TextUtils.isEmpty(uuid)) { in handleMount()
344 if (TextUtils.isEmpty(fsUuid)) { in handleUnmount()
[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/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/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
671 if (!TextUtils.isEmpty(address)) { in parseStructuredPostalExtra()
694 if (TextUtils.isEmpty(mimeType)) { in parseValues()
709 TextUtils.isEmpty(values.getAsString(Phone.LABEL))) { in parseValues()
722 if (isEmpty(entry, kind)) { in parseValues()
762 if (!delta.isDelete() && !isEmpty(delta, kind)) { in parseValues()
784 if (!isEmpty(delta, kind)) { in parseValues()
985 if (entryList != null && !entryList.isEmpty()) { in migrateStateForNewContact()
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java1512 return (!TextUtils.isEmpty(rrule) || in isRecurrenceEvent()
1513 !TextUtils.isEmpty(rdate) || in isRecurrenceEvent()
1514 !TextUtils.isEmpty(originalId) || in isRecurrenceEvent()
1515 !TextUtils.isEmpty(originalSyncId)); in isRecurrenceEvent()
1757 if (!TextUtils.isEmpty(color_index)) { in handleInsertException()
1779 if (TextUtils.isEmpty(cursor.getString(rruleCol))) { in handleInsertException()
1789 if (!TextUtils.isEmpty(cursor.getString(originalIdCol))) { in handleInsertException()
1794 boolean createSingleException = TextUtils.isEmpty(modValues.getAsString(Events.RRULE)); in handleInsertException()
2083 if (TextUtils.isEmpty(syncId) || TextUtils.isEmpty(calendarId) || in backfillExceptionOriginalIds()
2084 (TextUtils.isEmpty(rrule) && TextUtils.isEmpty(rdate))) { in backfillExceptionOriginalIds()
[all …]
/packages/apps/Settings/src/com/android/settings/print/
DPrintServiceSettingsFragment.java153 if (!TextUtils.isEmpty(title)) { in onCreate()
322 if (!TextUtils.isEmpty(mEnableWarningMessage)) { in initComponents()
360 if (!TextUtils.isEmpty(settingsTitle) && !TextUtils.isEmpty(settingsComponentName)) { in updateUiForArguments()
365 if (!resolvedActivities.isEmpty()) { in updateUiForArguments()
379 if (!TextUtils.isEmpty(addPrintersTitle) in updateUiForArguments()
380 && !TextUtils.isEmpty(addPrintersComponentName)) { in updateUiForArguments()
385 if (!resolvedActivities.isEmpty()) { in updateUiForArguments()
415 if (mServiceEnabled && !TextUtils.isEmpty(mAddPrintersTitle) in onCreateOptionsMenu()
423 if (mServiceEnabled && !TextUtils.isEmpty(mSettingsTitle) in onCreateOptionsMenu()
516 if (TextUtils.isEmpty(constraint)) { in getFilter()
[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()
1161 if (refMessage != null && !TextUtils.isEmpty(quotedText)) { in createMessage()
1162 if (!TextUtils.isEmpty(refMessage.bodyHtml)) { in createMessage()
[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/PackageInstaller/src/com/android/packageinstaller/permission/ui/
DPermissionsFrameFragment.java158 boolean isEmpty = adapter.getItemCount() == 0; in onCreateAdapter()
159 emptyView.setVisibility(isEmpty ? View.VISIBLE : View.GONE); in onCreateAdapter()
160 recyclerView.setVisibility(isEmpty ? View.GONE : View.VISIBLE); in onCreateAdapter()
161 if (!isEmpty && mGridView != null) { in onCreateAdapter()
167 boolean isEmpty = adapter.getItemCount() == 0; in onCreateAdapter()
168 emptyView.setVisibility(isEmpty ? View.VISIBLE : View.GONE); in onCreateAdapter()
169 recyclerView.setVisibility(isEmpty ? View.GONE : View.VISIBLE); in onCreateAdapter()
170 if (!isEmpty && mGridView != null) { in onCreateAdapter()
/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/apps/Messaging/src/com/android/messaging/util/
DAvatarUriUtil.java99 Assert.isTrue(!participants.isEmpty()); in createAvatarUri()
121 Assert.isTrue(!avatarUris.isEmpty()); in joinAvatarUriToGroup()
164 if (!TextUtils.isEmpty(name) && isValidFirstCharacter(name)) { in createAvatarUri()
167 final String identifier = TextUtils.isEmpty(contactLookupKey) in createAvatarUri()
200 Assert.isTrue(!TextUtils.isEmpty(slotIdentifier) || in createAvatarUri()
201 !TextUtils.isEmpty(participantData.getProfilePhotoUri())); in createAvatarUri()
202 if (TextUtils.isEmpty(slotIdentifier)) { in createAvatarUri()
253 TextUtils.isEmpty(contactLookupKey) ? nameString : contactLookupKey; in fromName()
276 return path.isEmpty() ? null : path.get(0); in getAvatarType()
/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/apps/Contacts/src/com/android/contacts/quickcontact/
DExpandingEntryCardView.java497 if (TextUtils.isEmpty(mTitleTextView.getText()) && in formatEntryIfFirst()
535 if (!TextUtils.isEmpty(mExpandButtonText)) { in getExpandButtonText()
544 if (!TextUtils.isEmpty(mCollapseButtonText)) { in getCollapseButtonText()
693 if (!TextUtils.isEmpty(entry.getPrimaryContentDescription())) { in createEntryView()
703 if (!TextUtils.isEmpty(entry.getHeader())) { in createEntryView()
710 if (!TextUtils.isEmpty(entry.getSubHeader())) { in createEntryView()
724 if (!TextUtils.isEmpty(entry.getText())) { in createEntryView()
763 (!TextUtils.isEmpty(entry.getSubHeader()) || !TextUtils.isEmpty(entry.getText()))) { in createEntryView()
769 } else if (iconVisibility == View.INVISIBLE && TextUtils.isEmpty(entry.getSubHeader()) in createEntryView()
770 && TextUtils.isEmpty(entry.getText())) { in createEntryView()
[all …]
/packages/apps/InCallUI/src/com/android/incallui/
DCallCardFragment.java436 if (TextUtils.isEmpty(name)) { in setPrimaryName()
462 if (TextUtils.isEmpty(number)) { in setPrimaryPhoneNumber()
474 if (!TextUtils.isEmpty(label)) { in setPrimaryLabel()
490 if (TextUtils.isEmpty(number) && TextUtils.isEmpty(label)) { in setPrimary()
517 boolean hasProvider = !TextUtils.isEmpty(providerLabel); in setSecondary()
551 boolean isGatewayCall = !TextUtils.isEmpty(gatewayNumber); in setCallState()
583 if (!TextUtils.isEmpty(callStateLabel.getCallStateLabel())) { in setCallState()
601 || TextUtils.isEmpty(callStateLabel.getCallStateLabel())) { in setCallState()
657 if (!TextUtils.isEmpty(callStateLabel)) { in changeCallStateLabel()
678 if (TextUtils.isEmpty(callbackNumber)) { in setCallbackNumber()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/
DContactPhotoManager.java154 if (!TextUtils.isEmpty(request.displayName)) { in getDefaultAvatarUriForContact()
157 if (!TextUtils.isEmpty(request.identifier)) { in getDefaultAvatarUriForContact()
202 if (!TextUtils.isEmpty(encodedFragment)) { in removeContactType()
222 return !TextUtils.isEmpty(encodedFragment) in isBusinessContactUri()
232 if (!TextUtils.isEmpty(contactType)) { in getDefaultImageRequestFromUri()
237 if (!TextUtils.isEmpty(scale)) { in getDefaultImageRequestFromUri()
242 if (!TextUtils.isEmpty(offset)) { in getDefaultImageRequestFromUri()
247 if (!TextUtils.isEmpty(isCircular)) { in getDefaultImageRequestFromUri()
401 if (TextUtils.isEmpty(defaultImageRequest.identifier)) { in getDefaultImageForContact()
1093 if (!mPendingRequests.isEmpty()) { in resume()
[all …]

12345678910>>...43