Home
last modified time | relevance | path

Searched refs:ContentPreviewType (Results 1 – 13 of 13) sorted by relevance

/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/
DContentPreviewType.java26 @IntDef({ContentPreviewType.CONTENT_PREVIEW_FILE,
27 ContentPreviewType.CONTENT_PREVIEW_IMAGE,
28 ContentPreviewType.CONTENT_PREVIEW_TEXT,
29 ContentPreviewType.CONTENT_PREVIEW_PAYLOAD_SELECTION})
30 public @interface ContentPreviewType { annotation
DPreviewDataProvider.kt31 import com.android.intentresolver.contentpreview.ContentPreviewType.CONTENT_PREVIEW_FILE in <lambda>()
32 import com.android.intentresolver.contentpreview.ContentPreviewType.CONTENT_PREVIEW_IMAGE in <lambda>()
33 import com.android.intentresolver.contentpreview.ContentPreviewType.CONTENT_PREVIEW_PAYLOAD_SELECTI… in <lambda>()
34 import com.android.intentresolver.contentpreview.ContentPreviewType.CONTENT_PREVIEW_TEXT in <lambda>()
123 @get:ContentPreviewType in <lambda>()
230 @ContentPreviewType in <lambda>()
DChooserContentPreviewUi.java19 import static com.android.intentresolver.contentpreview.ContentPreviewType.CONTENT_PREVIEW_FILE;
20 import static com.android.intentresolver.contentpreview.ContentPreviewType.CONTENT_PREVIEW_IMAGE;
21 import static com.android.intentresolver.contentpreview.ContentPreviewType.CONTENT_PREVIEW_PAYLOAD_…
22 import static com.android.intentresolver.contentpreview.ContentPreviewType.CONTENT_PREVIEW_TEXT;
DFilesPlusTextContentPreviewUi.java19 import static com.android.intentresolver.contentpreview.ContentPreviewType.CONTENT_PREVIEW_FILE;
20 import static com.android.intentresolver.contentpreview.ContentPreviewType.CONTENT_PREVIEW_IMAGE;
DShareouselContentPreviewUi.kt42 override fun getType(): Int = ContentPreviewType.CONTENT_PREVIEW_IMAGE in <lambda>()
DFileContentPreviewUi.java64 return ContentPreviewType.CONTENT_PREVIEW_FILE; in getType()
DContentPreviewUi.java44 @ContentPreviewType
DTextContentPreviewUi.java77 return ContentPreviewType.CONTENT_PREVIEW_TEXT; in getType()
DUnifiedContentPreviewUi.java19 import static com.android.intentresolver.contentpreview.ContentPreviewType.CONTENT_PREVIEW_IMAGE;
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/
DPreviewDataProviderTest.kt73 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 …]
DChooserContentPreviewUiTest.kt83 whenever(previewData.previewType).thenReturn(ContentPreviewType.CONTENT_PREVIEW_TEXT) in test_textPreviewType_useTextPreviewUi()
87 .isEqualTo(ContentPreviewType.CONTENT_PREVIEW_TEXT) in test_textPreviewType_useTextPreviewUi()
94 whenever(previewData.previewType).thenReturn(ContentPreviewType.CONTENT_PREVIEW_FILE) in test_filePreviewType_useFilePreviewUi()
97 .isEqualTo(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()
131 .isEqualTo(ContentPreviewType.CONTENT_PREVIEW_IMAGE) in test_imagePreviewTypeWithoutText_useImagePreviewUi()
142 .thenReturn(ContentPreviewType.CONTENT_PREVIEW_PAYLOAD_SELECTION) in test_imagePayloadSelectionTypeWithEnabledFlag_usePayloadSelectionPreviewUi()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/logging/
DEventLogImpl.java29 import com.android.intentresolver.contentpreview.ContentPreviewType;
400 case ContentPreviewType.CONTENT_PREVIEW_IMAGE: in typeFromPreviewInt()
402 case ContentPreviewType.CONTENT_PREVIEW_FILE: in typeFromPreviewInt()
404 case ContentPreviewType.CONTENT_PREVIEW_TEXT: in typeFromPreviewInt()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/logging/
DEventLogImplTest.java35 import com.android.intentresolver.contentpreview.ContentPreviewType;
123 final int previewType = ContentPreviewType.CONTENT_PREVIEW_FILE; in testLogShareStarted()
239 final int previewType = ContentPreviewType.CONTENT_PREVIEW_TEXT; in testLogActionShareWithPreview()