/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/ |
D | PreviewDataProviderTest.kt | 73 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_TEXT) in createDataProvider() 88 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_FILE) in test_sendSingleTextFileWithoutPreview_resolvesToFilePreviewUi() 99 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_TEXT) in test_sendIntentWithoutUris_resolvesToTextPreviewUiSynchronously() 110 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_IMAGE) in test_sendSingleImage_resolvesToImagePreviewUi() 124 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_FILE) in test_sendSingleNonImage_resolvesToFilePreviewUi() 142 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_FILE) in test_sendSingleImageWithFailingGetType_resolvesToFilePreviewUi() 163 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_FILE) in test_sendSingleImageWithFailingMetadata_resolvesToFilePreviewUi() 178 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_IMAGE) in test_SingleNonImageUriWithImageTypeInGetStreamTypes_useImagePreviewUi() 214 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_IMAGE) in testMetadataToImagePreview() 232 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_FILE) in test_emptyQueryResult_cursorGetsClosed() [all …]
|
D | ChooserContentPreviewUiTest.kt | 83 whenever(previewData.previewType).thenReturn(ContentPreviewType.CONTENT_PREVIEW_TEXT) in test_textPreviewType_useTextPreviewUi() 94 whenever(previewData.previewType).thenReturn(ContentPreviewType.CONTENT_PREVIEW_FILE) in test_filePreviewType_useFilePreviewUi() 105 whenever(previewData.previewType).thenReturn(ContentPreviewType.CONTENT_PREVIEW_IMAGE) in test_imagePreviewTypeWithText_useFilePlusTextPreviewUi() 124 whenever(previewData.previewType).thenReturn(ContentPreviewType.CONTENT_PREVIEW_IMAGE) in test_imagePreviewTypeWithoutText_useImagePreviewUi() 141 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() 169 data class ActionShareWithPreview(val previewType: Int) constant in com.android.intentresolver.logging.FakeEventLog.ActionShareWithPreview 181 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() 398 private static int typeFromPreviewInt(int previewType) { in typeFromPreviewInt() argument 399 switch(previewType) { in typeFromPreviewInt()
|
D | FrameworkStatsLogger.kt | 36 previewType: Int, in write() 50 previewType, /* intentType = 9 */ in write()
|
D | EventLog.kt | 43 previewType: Int, 63 fun logActionShareWithPreview(previewType: Int)
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/ |
D | ChooserContentPreviewUi.java | 145 int previewType = previewData.getPreviewType(); in createContentPreview() local 146 if (previewType == CONTENT_PREVIEW_TEXT) { in createContentPreview() 157 if (previewType == CONTENT_PREVIEW_FILE) { in createContentPreview() 170 if (previewType == CONTENT_PREVIEW_PAYLOAD_SELECTION && mIsPayloadTogglingEnabled) { in createContentPreview()
|
D | UnifiedContentPreviewUi.java | 166 ScrollableImagePreviewView.PreviewType previewType = in updatePreviewWithFiles() local 168 allImages = allImages && previewType == ScrollableImagePreviewView.PreviewType.Image; in updatePreviewWithFiles() 169 allVideos = allVideos && previewType == ScrollableImagePreviewView.PreviewType.Video; in updatePreviewWithFiles()
|
D | FilesPlusTextContentPreviewUi.java | 119 ScrollableImagePreviewView.PreviewType previewType = in updatePreviewMetadata() local 121 allImages = allImages && previewType == ScrollableImagePreviewView.PreviewType.Image; in updatePreviewMetadata() 122 allVideos = allVideos && previewType == ScrollableImagePreviewView.PreviewType.Video; in updatePreviewMetadata()
|
D | PreviewDataProvider.kt | 124 open val previewType: Int by lazy { in <lambda>() constant in com.android.intentresolver.contentpreview.PreviewDataProvider
|
/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() 239 final int previewType = ContentPreviewType.CONTENT_PREVIEW_TEXT; in testLogActionShareWithPreview() local 241 mChooserLogger.logActionShareWithPreview(previewType); in testLogActionShareWithPreview() 247 assertThat(event.getSubtype()).isEqualTo(previewType); in testLogActionShareWithPreview()
|
/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)) {
|