/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/ |
D | PreviewDataProviderTest.kt | 73 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_TEXT) in createDataProvider() 90 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_FILE) in test_sendSingleTextFileWithoutPreview_resolvesToFilePreviewUi() 118 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_FILE) in test_sendSingleTextFileWithDisplayNameAndTitle_displayNameTakesPrecedenceOverTitle() 127 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_TEXT) in test_sendIntentWithoutUris_resolvesToTextPreviewUiSynchronously() 138 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_IMAGE) in test_sendSingleImage_resolvesToImagePreviewUi() 155 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_FILE) in test_sendSingleFile_resolvesToFilePreviewUi() 176 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_FILE) in test_sendSingleImageWithFailingGetType_resolvesToFilePreviewUi() 201 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_FILE) in test_sendSingleFileWithFailingMetadata_resolvesToFilePreviewUi() 224 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_FILE) in test_sendSingleImageWithFailingGetTypeDisjointTitleRead_resolvesToFilePreviewUi() 249 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_FILE) in test_sendSingleFileWithFailingImageMetadata_resolvesToFilePreviewUi() [all …]
|
D | ChooserContentPreviewUiTest.kt | 84 whenever(previewData.previewType).thenReturn(ContentPreviewType.CONTENT_PREVIEW_TEXT) in test_textPreviewType_useTextPreviewUi() 95 whenever(previewData.previewType).thenReturn(ContentPreviewType.CONTENT_PREVIEW_FILE) in test_filePreviewType_useFilePreviewUi() 106 whenever(previewData.previewType).thenReturn(ContentPreviewType.CONTENT_PREVIEW_IMAGE) in test_imagePreviewTypeWithText_useFilePlusTextPreviewUi() 122 whenever(previewData.previewType).thenReturn(ContentPreviewType.CONTENT_PREVIEW_IMAGE) in test_imagePreviewTypeWithoutText_useImagePreviewUi() 139 whenever(previewData.previewType) in test_imagePayloadSelectionTypeWithEnabledFlag_usePayloadSelectionPreviewUi()
|
/packages/modules/IntentResolver/tests/shared/src/com/android/intentresolver/logging/ |
D | FakeEventLog.kt | 58 previewType: Int, in logShareStarted() 70 previewType, in logShareStarted() 121 override fun logActionShareWithPreview(previewType: Int) { in logActionShareWithPreview() 122 actionShareWithPreview = ActionShareWithPreview(previewType) in logActionShareWithPreview() 175 data class ActionShareWithPreview(val previewType: Int) constant in com.android.intentresolver.logging.FakeEventLog.ActionShareWithPreview 189 val previewType: Int, constant in com.android.intentresolver.logging.FakeEventLog.ShareStarted
|
D | FakeFrameworkStatsLogger.kt | 29 val previewType: Int, constant in com.android.intentresolver.logging.ShareSheetStarted 56 previewType: Int, in write() 71 previewType, in write()
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/logging/ |
D | EventLogImpl.java | 89 int previewType, in logShareStarted() argument 101 /* previewType = 8 */ typeFromPreviewInt(previewType), in logShareStarted() 184 public void logActionShareWithPreview(int previewType) { in logActionShareWithPreview() argument 186 new LogMaker(MetricsEvent.ACTION_SHARE_WITH_PREVIEW).setSubtype(previewType)); in logActionShareWithPreview() 403 private static int typeFromPreviewInt(int previewType) { in typeFromPreviewInt() argument 404 switch(previewType) { in typeFromPreviewInt()
|
D | FrameworkStatsLogger.kt | 36 previewType: Int, in write() 50 previewType, /* intentType = 9 */ in write()
|
D | EventLog.kt | 43 previewType: Int, 65 fun logActionShareWithPreview(previewType: Int)
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/logging/ |
D | EventLogImplTest.java | 123 final int previewType = ContentPreviewType.CONTENT_PREVIEW_FILE; in testLogShareStarted() local 134 previewType, in testLogShareStarted() 161 final int previewType = ContentPreviewType.CONTENT_PREVIEW_PAYLOAD_SELECTION; in shareStartedWithShareouselAndEnabledReportingFlag_imagePreviewTypeReported() local 172 previewType, in shareStartedWithShareouselAndEnabledReportingFlag_imagePreviewTypeReported() 278 final int previewType = ContentPreviewType.CONTENT_PREVIEW_TEXT; in testLogActionShareWithPreview() local 280 mChooserLogger.logActionShareWithPreview(previewType); in testLogActionShareWithPreview() 286 assertThat(event.getSubtype()).isEqualTo(previewType); in testLogActionShareWithPreview()
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/ |
D | ChooserContentPreviewUi.java | 141 int previewType = previewData.getPreviewType(); in createContentPreview() local 142 if (previewType == CONTENT_PREVIEW_TEXT) { in createContentPreview() 155 if (previewType == CONTENT_PREVIEW_FILE) { in createContentPreview() 168 if (previewType == CONTENT_PREVIEW_PAYLOAD_SELECTION) { in createContentPreview()
|
D | UnifiedContentPreviewUi.java | 175 ScrollableImagePreviewView.PreviewType previewType = in updatePreviewWithFiles() local 177 allImages = allImages && previewType == ScrollableImagePreviewView.PreviewType.Image; in updatePreviewWithFiles() 178 allVideos = allVideos && previewType == ScrollableImagePreviewView.PreviewType.Video; in updatePreviewWithFiles()
|
D | FilesPlusTextContentPreviewUi.java | 123 ScrollableImagePreviewView.PreviewType previewType = in updatePreviewMetadata() local 125 allImages = allImages && previewType == ScrollableImagePreviewView.PreviewType.Image; in updatePreviewMetadata() 126 allVideos = allVideos && previewType == ScrollableImagePreviewView.PreviewType.Video; in updatePreviewMetadata()
|
D | PreviewDataProvider.kt | 127 open val previewType: Int by lazy { in <lambda>() constant in com.android.intentresolver.contentpreview.PreviewDataProvider
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/ |
D | PreviewFragment.java | 203 final int previewType = args.getInt(PREVIEW_TYPE, -1); in setUpPreviewLayout() local 204 if (previewType == PREVIEW_ON_LONG_PRESS) { in setUpPreviewLayout() 206 } else if (previewType == PREVIEW_ON_VIEW_SELECTED) { in setUpPreviewLayout()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
D | ConversationListItemView.java | 93 final String previewType = mData.getShowDraft() ? 95 Assert.isTrue(ContentType.isImageType(previewType) || 96 ContentType.isVideoType(previewType)); 100 if (ContentType.isImageType(previewType)) {
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/ |
D | ChooserHelper.kt | 167 viewModel.previewDataProvider.previewType == in <lambda>()
|