/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | BugleDatabaseOperations.java | 43 import com.android.messaging.util.Assert; 44 import com.android.messaging.util.Assert.DoesNotRunOnMainThread; 98 Assert.isNotMainThread(); in sanitizeConversationParticipants() 142 Assert.isNotMainThread(); in getRecipientsFromConversationParticipants() 169 Assert.isNotMainThread(); in getOrCreateConversationFromThreadId() 190 Assert.isNotMainThread(); in getOrCreateConversationFromRecipient() 212 Assert.isNotMainThread(); in getOrCreateConversation() 257 Assert.isNotMainThread(); in getExistingConversation() 269 Assert.isTrue(cursor.getCount() == 1); in getExistingConversation() 291 Assert.isNotMainThread(); in getThreadId() [all …]
|
D | BitmapPool.java | 27 import com.android.messaging.util.Assert; 86 Assert.isTrue(maxSize > 0); in BitmapPool() 87 Assert.isTrue(!TextUtils.isEmpty(name)); in BitmapPool() 189 Assert.notNull(resources); in decodeSampledBitmapFromResource() 190 Assert.notNull(optionsTmp); in decodeSampledBitmapFromResource() 191 Assert.isTrue(width > 0); in decodeSampledBitmapFromResource() 192 Assert.isTrue(height > 0); in decodeSampledBitmapFromResource() 229 Assert.notNull(inputStream); in decodeSampledBitmapFromInputStream() 230 Assert.isTrue(width > 0); in decodeSampledBitmapFromInputStream() 231 Assert.isTrue(height > 0); in decodeSampledBitmapFromInputStream() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | AvatarUriUtil.java | 98 Assert.notNull(participants); in createAvatarUri() 99 Assert.isTrue(!participants.isEmpty()); in createAvatarUri() 120 Assert.notNull(avatarUris); in joinAvatarUriToGroup() 121 Assert.isTrue(!avatarUris.isEmpty()); in joinAvatarUriToGroup() 125 Assert.isTrue(AvatarUriUtil.isAvatarUri(firstAvatar)); in joinAvatarUriToGroup() 136 Assert.notNull(uri); in joinAvatarUriToGroup() 137 Assert.isTrue(UriUtil.isLocalResourceUri(uri) || AvatarUriUtil.isAvatarUri(uri)); in joinAvatarUriToGroup() 149 Assert.notNull(participant); in createAvatarUri() 198 Assert.notNull(participantData); in createAvatarUri() 199 Assert.isTrue(participantData.isActiveSubscription()); in createAvatarUri() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | SynchronousContactsProvider2.java | 24 import junit.framework.Assert; 273 Assert.assertTrue("begin", mOnBeginTransactionInternalCalledInProfileMode); 274 Assert.assertTrue("commit", mOnCommitTransactionInternalCalledInProfileMode); 275 Assert.assertFalse("rollback", mOnRollbackTransactionInternalCalledInProfileMode); 279 Assert.assertTrue("begin", mOnBeginTransactionInternalCalledInProfileMode); 280 Assert.assertFalse("commit", mOnCommitTransactionInternalCalledInProfileMode); 281 Assert.assertTrue("rollback", mOnRollbackTransactionInternalCalledInProfileMode); 285 Assert.assertFalse("begin", mOnBeginTransactionInternalCalledInProfileMode); 286 Assert.assertFalse("commit", mOnCommitTransactionInternalCalledInProfileMode); 287 Assert.assertFalse("rollback", mOnRollbackTransactionInternalCalledInProfileMode); [all …]
|
/packages/apps/Dialer/java/com/android/incallui/videotech/lightbringer/ |
D | LightbringerTech.java | 22 import com.android.dialer.common.Assert; 40 this.lightbringer = Assert.isNotNull(lightbringer); in LightbringerTech() 41 this.listener = Assert.isNotNull(listener); in LightbringerTech() 42 this.callingNumber = Assert.isNotNull(callingNumber); in LightbringerTech() 70 throw Assert.createUnsupportedOperationFailException(); in createVideoCallScreenDelegate() 94 throw Assert.createUnsupportedOperationFailException(); in acceptVideoRequest() 99 throw Assert.createUnsupportedOperationFailException(); in acceptVideoRequestAsAudio() 104 throw Assert.createUnsupportedOperationFailException(); in declineVideoRequest() 114 throw Assert.createUnsupportedOperationFailException(); in stopTransmission() 119 throw Assert.createUnsupportedOperationFailException(); in resumeTransmission() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
D | OmtpVvmCarrierConfigHelper.java | 32 import com.android.dialer.common.Assert; 156 Assert.checkArgument(isValid()); in getString() 162 Assert.checkArgument(isValid()); in getCarrierVvmPackageNames() 215 Assert.checkArgument(isValid()); in isCellularDataRequired() 220 Assert.checkArgument(isValid()); in isPrefetchEnabled() 225 Assert.checkArgument(isValid()); in getApplicationPort() 231 Assert.checkArgument(isValid()); in getDestinationNumber() 237 Assert.checkArgument(isValid()); in getSslPort() 253 Assert.checkArgument(isValid()); in getDisabledCapabilities() 280 Assert.checkArgument(isValid()); in getClientPrefix() [all …]
|
/packages/apps/Car/Media/src/com/android/car/media/ |
D | MediaPlaybackModel.java | 35 import com.android.car.apps.common.util.Assert; 129 Assert.isMainThread(); in start() 135 Assert.isMainThread(); in stop() 154 Assert.isMainThread(); in addListener() 160 Assert.isMainThread(); in removeListener() 166 Assert.isMainThread(); in notifyListeners() 176 Assert.isMainThread(); in getPackageResources() 182 Assert.isMainThread(); in getPrimaryColor() 188 Assert.isMainThread(); in getAccentColor() 194 Assert.isMainThread(); in getPrimaryColorDark() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/preference/ |
D | ContactsPreferencesTest.java | 28 import junit.framework.Assert; 80 Assert.assertEquals(ContactsPreferences.SORT_ORDER_PRIMARY, in testGetSortOrderDefault() 90 Assert.assertEquals(ContactsPreferences.SORT_ORDER_PRIMARY, in testGetSortOrder() 99 Assert.assertEquals(ContactsPreferences.DISPLAY_ORDER_PRIMARY, in testGetDisplayOrderDefault() 109 Assert.assertEquals(ContactsPreferences.DISPLAY_ORDER_PRIMARY, in testGetDisplayOrder() 118 Assert.assertEquals(PhoneticNameDisplayPreference.HIDE_IF_EMPTY, in testGetPhoneticNameDisplayDefault() 129 Assert.assertEquals(PhoneticNameDisplayPreference.HIDE_IF_EMPTY, in testGetPhoneticNameDisplay() 142 Assert.assertEquals(PhoneticNameDisplayPreference.HIDE_IF_EMPTY, in testRefreshPhoneticNameDisplay() 146 Assert.assertEquals(PhoneticNameDisplayPreference.SHOW_ALWAYS, in testRefreshPhoneticNameDisplay() 158 Assert.assertEquals(ContactsPreferences.SORT_ORDER_PRIMARY, in testRefreshSortOrder() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/scheduling/ |
D | TaskExecutor.java | 32 import com.android.voicemail.impl.Assert; 176 Assert.isTrue(invocationCounter < 10); in run() 206 Assert.isNotMainThread(); 232 Assert.isMainThread(); 249 Assert.isMainThread(); 250 Assert.isTrue(instance == null); 273 Assert.isMainThread(); 282 Assert.isMainThread(); 292 Assert.isMainThread(); 298 Assert.isMainThread(); [all …]
|
D | TaskSchedulerService.java | 35 import com.android.voicemail.impl.Assert; 149 Assert.isNotMainThread(); in handleMessage() 174 Assert.isMainThread(); in handleMessage() 202 Assert.isMainThread(); in onStartCommand() 208 Assert.isTrue(task != null); in onStartCommand() 226 Assert.isMainThread(); in addTask() 233 Assert.isMainThread(); in getTasks() 239 Assert.isMainThread(); in maybeRunNextTask() 255 Assert.isMainThread(); in runNextTask() 363 Assert.isMainThread(); in scheduleJob() [all …]
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarAppFocusManagerTest.java | 31 import org.junit.Assert; 128 Assert.assertArrayEquals(emptyFocus, manager1.getActiveAppTypes()); in testFocusChange() 144 Assert.assertArrayEquals(expectedFocuses, manager1.getActiveAppTypes()); in testFocusChange() 145 Assert.assertArrayEquals(expectedFocuses, manager2.getActiveAppTypes()); in testFocusChange() 168 Assert.assertArrayEquals(expectedFocuses, manager1.getActiveAppTypes()); in testFocusChange() 169 Assert.assertArrayEquals(expectedFocuses, manager2.getActiveAppTypes()); in testFocusChange() 183 Assert.assertArrayEquals(expectedFocuses, manager1.getActiveAppTypes()); in testFocusChange() 184 Assert.assertArrayEquals(expectedFocuses, manager2.getActiveAppTypes()); in testFocusChange() 200 Assert.assertArrayEquals(expectedFocuses, manager1.getActiveAppTypes()); in testFocusChange() 201 Assert.assertArrayEquals(expectedFocuses, manager2.getActiveAppTypes()); in testFocusChange() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | ConversationData.java | 50 import com.android.messaging.util.Assert; 51 import com.android.messaging.util.Assert.RunsOnMainThread; 185 Assert.equals(CONVERSATION_META_DATA_LOADER, id); in onCreateLoader() 209 Assert.isTrue(data.getCount() == 1); in onLoadFinished() 251 Assert.equals(CONVERSATION_MESSAGES_LOADER, id); in onCreateLoader() 354 Assert.equals(PARTICIPANT_LOADER, id); in onCreateLoader() 405 Assert.equals(SELF_PARTICIPANT_LOADER, id); in onCreateLoader() 471 Assert.isTrue(conversationId != null); in ConversationData() 489 Assert.isMainThread(); in addConversationDataListener() 595 Assert.isTrue(TextUtils.equals(mConversationId, message.getConversationId())); in sendMessage() [all …]
|
D | DraftMessageData.java | 33 import com.android.messaging.util.Assert; 34 import com.android.messaging.util.Assert.DoesNotRunOnMainThread; 35 import com.android.messaging.util.Assert.RunsOnMainThread; 138 Assert.notNull(bindingId); in updateFromMessageData() 160 Assert.equals(PendingAttachmentData.STATE_PENDING, data.getCurrentState()); in updateFromMessageData() 341 Assert.isTrue(attachment.isAttachment()); in addOneAttachmentNoNotify() 415 Assert.isTrue(!mPendingAttachments.contains(pendingAttachment)); in addOnePendingAttachmentNoNotify() 416 Assert.equals(PendingAttachmentData.STATE_PENDING, pendingAttachment.getCurrentState()); in addOnePendingAttachmentNoNotify() 594 Assert.isTrue(!hasPendingAttachments()); in prepareMessageForSending() 715 Assert.isMainThread(); in onDraftChanged() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/format/ |
D | SpannedTestUtils.java | 26 import junit.framework.Assert; 42 Assert.assertEquals("", actualHtmlText); in checkHtmlText() 44 Assert.assertEquals("<p dir=ltr>" + expectedHtmlText + "</p>\n", actualHtmlText); in checkHtmlText() 57 Assert.assertTrue(seq instanceof Spanned); in assertPrefixSpan() 61 Assert.assertEquals(0, getNumForegroundColorSpansBetween(spannable, 0, start - 1)); in assertPrefixSpan() 63 Assert.assertEquals(1, getNumForegroundColorSpansBetween(spannable, start, end)); in assertPrefixSpan() 64 Assert.assertEquals(0, getNumForegroundColorSpansBetween(spannable, end + 1, in assertPrefixSpan() 79 Assert.assertFalse(seq instanceof Spanned); in assertNotSpanned() 80 Assert.assertEquals(expected, seq); in assertNotSpanned()
|
/packages/apps/Dialer/java/com/android/contacts/common/format/testing/ |
D | SpannedTestUtils.java | 26 import junit.framework.Assert; 42 Assert.assertEquals("", actualHtmlText); in checkHtmlText() 44 Assert.assertEquals("<p dir=ltr>" + expectedHtmlText + "</p>\n", actualHtmlText); in checkHtmlText() 56 Assert.assertTrue(seq instanceof Spanned); in assertPrefixSpan() 60 Assert.assertEquals(0, getNumForegroundColorSpansBetween(spannable, 0, start - 1)); in assertPrefixSpan() 62 Assert.assertEquals(1, getNumForegroundColorSpansBetween(spannable, start, end)); in assertPrefixSpan() 63 Assert.assertEquals( in assertPrefixSpan() 78 Assert.assertFalse(seq instanceof Spanned); in assertNotSpanned() 79 Assert.assertEquals(expected, seq); in assertNotSpanned()
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/ |
D | RecordingTestUtils.java | 21 import junit.framework.Assert; 66 Assert.assertEquals("id", expected.getId(), actual.getId()); in assertRecordingEquals() 67 Assert.assertEquals("channel", expected.getChannelId(), actual.getChannelId()); in assertRecordingEquals() 68 Assert.assertEquals("programId", expected.getProgramId(), actual.getProgramId()); in assertRecordingEquals() 69 Assert.assertEquals("priority", expected.getPriority(), actual.getPriority()); in assertRecordingEquals() 70 Assert.assertEquals("start time", expected.getStartTimeMs(), actual.getStartTimeMs()); in assertRecordingEquals() 71 Assert.assertEquals("end time", expected.getEndTimeMs(), actual.getEndTimeMs()); in assertRecordingEquals() 72 Assert.assertEquals("state", expected.getState(), actual.getState()); in assertRecordingEquals() 73 Assert.assertEquals("parent series recording", expected.getSeriesRecordingId(), in assertRecordingEquals()
|
/packages/apps/Dialer/java/com/android/dialer/common/concurrent/ |
D | DefaultDialerExecutorFactory.java | 22 import com.android.dialer.common.Assert; 46 Assert.isNotNull(fragmentManager), Assert.isNotNull(taskId), Assert.isNotNull(worker)); in createUiTaskBuilder() 53 return new NonUiTaskBuilder<>(Assert.isNotNull(worker)); in createNonUiTaskBuilder() 80 this.successListener = Assert.isNotNull(successListener); in onSuccess() 87 this.failureListener = Assert.isNotNull(failureListener); in onFailure() 171 super(worker, Assert.isNotNull(serialExecutor), Assert.isNotNull(parallelExecutor)); in NonUiTaskBuilder() 207 dialerUiTaskFragment.executeOnCustomExecutor(Assert.isNotNull(executorService), input); in executeOnCustomExecutorService() 246 Assert.isNotNull(executorService) in executeOnCustomExecutorService()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | ImagePersistTask.java | 27 import com.android.messaging.util.Assert; 57 Assert.isTrue(heightPercent >= 0 && heightPercent <= 1); in ImagePersistTask() 58 Assert.notNull(bytes); in ImagePersistTask() 59 Assert.notNull(context); in ImagePersistTask() 60 Assert.notNull(callback); in ImagePersistTask() 100 Assert.equals(mWidth, bitmap.getHeight()); in doInBackgroundTimed() 101 Assert.equals(mHeight, bitmap.getWidth()); in doInBackgroundTimed() 105 Assert.equals(mWidth, bitmap.getWidth()); in doInBackgroundTimed() 106 Assert.equals(mHeight, bitmap.getHeight()); in doInBackgroundTimed() 168 Assert.notNull(mException); in onPostExecute()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | ConversationActivityUiState.java | 22 import com.android.messaging.util.Assert; 136 Assert.fail("Invalid contact picking mode for ConversationActivity!"); in getDesiredContactPickingMode() 158 Assert.fail("Invalid conversation activity state: can't create conversation!"); in onGetOrCreateConversation() 170 Assert.isTrue(mConversationContactUiState != STATE_CONTACT_PICKER_ONLY_INITIAL_CONTACT && in onStartMessageCompose() 189 Assert.fail("Invalid conversation activity state: can't add more participants!"); in onAddMoreParticipants() 224 Assert.isTrue(isUiUpdateInProgress()); in notifyOnOverallUiStateChanged() 238 Assert.isTrue((mConversationContactUiState == STATE_CONTACT_PICKER_ONLY_INITIAL_CONTACT) == in assertValidState() 248 Assert.fail("Unbalanced Ui updates!"); in endUiUpdate() 293 Assert.fail("ConversationActivityUiState: failed to clone(). Is there a mutable " + in clone()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | MediaResourceManager.java | 21 import com.android.messaging.util.Assert; 22 import com.android.messaging.util.Assert.RunsOnAnyThread; 138 Assert.isNotMainThread(); in requestMediaResourceSync() 144 Assert.isTrue(loadResult.loadedResource.getRefCount() > 0); in requestMediaResourceSync() 171 Assert.notNull(decodeRequest); in processMediaRequestInternal() 208 Assert.notNull(resource); in loadMediaFromRequest() 260 Assert.isNull(mException); in scheduleAsyncMediaRequest() 261 Assert.isTrue(result.loadedResource.getRefCount() > 0); in scheduleAsyncMediaRequest() 278 Assert.isTrue(bindableRequest == null || !bindableRequest.isBound()); in scheduleAsyncMediaRequest() 293 Assert.isTrue(mediaResource != null); in addResourceToMemoryCache()
|
D | VCardRequest.java | 22 import com.android.messaging.util.Assert; 23 import com.android.messaging.util.Assert.DoesNotRunOnMainThread; 85 Assert.isNotMainThread(); in loadMediaBlocking() 86 Assert.isTrue(mLoadedResource == null); in loadMediaBlocking() 87 Assert.equals(0, mLoadedVCards.size()); in loadMediaBlocking() 119 Assert.isNotMainThread(); in parseVCard() 154 Assert.isNotMainThread(); in doActuallyReadOneVCard() 179 Assert.isNotMainThread(); in readOneVCardFile() 257 Assert.isNotMainThread(); in onEntryCreated()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/ |
D | ImagePersistTask.java | 31 import com.android.dialer.common.Assert; 57 Assert.checkArgument(heightPercent >= 0 && heightPercent <= 1); in ImagePersistTask() 58 Assert.isNotNull(bytes); in ImagePersistTask() 59 Assert.isNotNull(context); in ImagePersistTask() 60 Assert.isNotNull(callback); in ImagePersistTask() 112 Assert.checkState(mWidth == bitmap.getHeight()); in writeClippedBitmap() 113 Assert.checkState(mHeight == bitmap.getWidth()); in writeClippedBitmap() 117 Assert.checkState(mWidth == bitmap.getWidth()); in writeClippedBitmap() 118 Assert.checkState(mHeight == bitmap.getHeight()); in writeClippedBitmap()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | ProcessDownloadedMmsAction.java | 47 import com.android.messaging.util.Assert; 102 Assert.notNull(messageId); in processMessageDownloaded() 103 Assert.notNull(contentUri); in processMessageDownloaded() 104 Assert.notNull(notificationUri); in processMessageDownloaded() 105 Assert.notNull(conversationId); in processMessageDownloaded() 106 Assert.notNull(participantId); in processMessageDownloaded() 142 Assert.notNull(messageId); in processMessageDownloadFastFailed() 143 Assert.notNull(notificationUri); in processMessageDownloadFastFailed() 144 Assert.notNull(conversationId); in processMessageDownloadFastFailed() 145 Assert.notNull(participantId); in processMessageDownloadFastFailed() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
D | MockContentProvider.java | 29 import junit.framework.Assert; 519 Assert.fail("Unexpected query: Actual:" in query() 534 Assert.fail("Incorrect query. Expected one of: " + mExpectedQueries + ". Actual: " + in query() 542 Assert.fail("Unexpected getType query: " + uri); in getType() 550 Assert.fail("Unknown mime type for: " + uri); in getType() 557 Assert.fail("Unexpected insert. Actual: " + insertToString(uri, values)); in insert() 570 Assert.fail("Incorrect insert. Expected one of: " + mExpectedInserts + ". Actual: " in insert() 585 Assert.fail("Unexpected update. Actual: " in update() 599 Assert.fail("Incorrect update. Expected one of: " + mExpectedUpdates + ". Actual: " in update() 615 Assert.fail("Unexpected delete. Actual: " + deleteToString(uri, selection, in delete() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
D | ContactPickerFragment.java | 58 import com.android.messaging.util.Assert; 59 import com.android.messaging.util.Assert.RunsOnMainThread; 210 Assert.isTrue(mContactPickingMode != MODE_UNDEFINED); in onActivityCreated() 254 Assert.equals(MODE_PICK_INITIAL_CONTACT, mContactPickingMode); in onMenuItemClick() 308 Assert.isTrue( in setContactPickingMode() 324 Assert.notNull(mRecipientTextView); in showImeKeyboard() 409 Assert.fail("Unsupported contact picker mode!"); in updateVisualsForContactPickingMode() 451 Assert.isTrue(oldCount != newCount); in onContactChipsChanged() 477 Assert.isTrue(prunedCount > 0); in onInvalidContactChipsPruned() 589 Assert.isTrue(monitor == mMonitor); in onGetOrCreateConversationSucceeded() [all …]
|