/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/ |
D | ResolverListAdapterTest.kt | 84 val testSubject = in test_oneTargetNoLastChosen_oneTargetInAdapter() constant 102 val isLoaded = testSubject.rebuildList(doPostProcessing) in test_oneTargetNoLastChosen_oneTargetInAdapter() 105 assertThat(testSubject.count).isEqualTo(resolvedTargets.size) in test_oneTargetNoLastChosen_oneTargetInAdapter() 106 assertThat(testSubject.placeholderCount).isEqualTo(0) in test_oneTargetNoLastChosen_oneTargetInAdapter() 107 assertThat(testSubject.hasFilteredItem()).isFalse() in test_oneTargetNoLastChosen_oneTargetInAdapter() 108 assertThat(testSubject.filteredItem).isNull() in test_oneTargetNoLastChosen_oneTargetInAdapter() 109 assertThat(testSubject.filteredPosition).isLessThan(0) in test_oneTargetNoLastChosen_oneTargetInAdapter() 110 assertThat(testSubject.unfilteredResolveList).containsExactlyElementsIn(resolvedTargets) in test_oneTargetNoLastChosen_oneTargetInAdapter() 111 assertThat(testSubject.isTabLoaded).isTrue() in test_oneTargetNoLastChosen_oneTargetInAdapter() 134 val testSubject = in test_oneTargetThatWasLastChosen_NoTargetsInAdapter() constant [all …]
|
D | EnterTransitionAnimationDelegateTest.kt | 66 private val testSubject = EnterTransitionAnimationDelegate(activity) { transitionTargetView } in <lambda>() constant in com.android.intentresolver.EnterTransitionAnimationDelegateTest 82 testSubject.postponeTransition() in test_postponeTransition_timeout() 83 testSubject.markOffsetCalculated() in test_postponeTransition_timeout() 92 testSubject.postponeTransition() in test_postponeTransition_animation_resumes_only_once() 93 testSubject.markOffsetCalculated() in test_postponeTransition_animation_resumes_only_once() 94 testSubject.onTransitionElementReady(elementName) in test_postponeTransition_animation_resumes_only_once() 95 testSubject.markOffsetCalculated() in test_postponeTransition_animation_resumes_only_once() 96 testSubject.onTransitionElementReady(elementName) in test_postponeTransition_animation_resumes_only_once() 104 testSubject.postponeTransition() in test_postponeTransition_resume_animation_conditions() 107 testSubject.markOffsetCalculated() in test_postponeTransition_resume_animation_conditions() [all …]
|
D | ShortcutSelectionLogicTest.kt | 102 val testSubject = in <lambda>() constant 109 testSubject.addServiceResults( in <lambda>() 136 val testSubject = in <lambda>() constant 143 testSubject.addServiceResults( in <lambda>() 170 val testSubject = in <lambda>() constant 177 testSubject.addServiceResults( in <lambda>() 206 val testSubject = in <lambda>() constant 212 testSubject.addServiceResults( in <lambda>() 225 testSubject.addServiceResults( in <lambda>() 251 val testSubject = in <lambda>() constant [all …]
|
D | ChooserListAdapterTest.kt | 65 private val testSubject by lazy { in <lambda>() constant 100 testSubject.onBindView(view, targetInfo, 0) in testDirectShareTargetLoadingIconIsStarted() 111 testSubject.onBindView(view, targetInfo, 0) in onBindView_DirectShareTargetIconAndLabelLoadedOnlyOnce() 116 testSubject.onBindView(view, targetInfo, 0) in onBindView_DirectShareTargetIconAndLabelLoadedOnlyOnce() 134 testSubject.onBindView(view, targetInfo, 0) in onBindView_AppTargetIconAndLabelLoadedOnlyOnce() 139 testSubject.onBindView(view, targetInfo, 0) in onBindView_AppTargetIconAndLabelLoadedOnlyOnce() 150 testSubject.onBindView(view, targetInfo, 0) in onBindView_contentDescription() 161 testSubject.onBindView(view, targetInfo, 0) in onBindView_contentDescriptionPinned() 172 testSubject.onBindView(view, targetInfo, 0) in onBindView_displayInfoContentDescriptionPinned() 179 testSubject.handlePackagesChanged() in handlePackagesChanged_invokesCallback()
|
D | ChooserListAdapterDataTest.kt | 100 val testSubject = in test_twoTargetsWithNonOverlappingInitialIntent_threeTargetsInResolverAdapter() constant 123 val isLoaded = testSubject.rebuildList(doPostProcessing) in test_twoTargetsWithNonOverlappingInitialIntent_threeTargetsInResolverAdapter() 126 assertThat(testSubject.displayResolveInfoCount).isEqualTo(0) in test_twoTargetsWithNonOverlappingInitialIntent_threeTargetsInResolverAdapter() 132 assertThat(testSubject.displayResolveInfoCount).isEqualTo(resolvedTargets.size) in test_twoTargetsWithNonOverlappingInitialIntent_threeTargetsInResolverAdapter() 163 val testSubject = in test_twoTargetsWithOverlappingInitialIntent_oneTargetsInResolverAdapter() constant 186 val isLoaded = testSubject.rebuildList(doPostProcessing) in test_twoTargetsWithOverlappingInitialIntent_oneTargetsInResolverAdapter() 189 assertThat(testSubject.displayResolveInfoCount).isEqualTo(0) in test_twoTargetsWithOverlappingInitialIntent_oneTargetsInResolverAdapter() 195 assertThat(testSubject.displayResolveInfoCount).isEqualTo(resolvedTargets.size - 1) in test_twoTargetsWithOverlappingInitialIntent_oneTargetsInResolverAdapter()
|
D | ChooserActionFactoryTest.kt | 108 val testSubject = in nonSendAction_noCopyRunnable() constant 123 assertThat(testSubject.copyButtonRunnable).isNull() in nonSendAction_noCopyRunnable() 129 val testSubject = in sendActionNoText_noCopyRunnable() constant 144 assertThat(testSubject.copyButtonRunnable).isNull() in sendActionNoText_noCopyRunnable() 151 val testSubject = in sendActionWithTextCopyRunnable() constant 166 assertThat(testSubject.copyButtonRunnable).isNotNull() in sendActionWithTextCopyRunnable() 168 testSubject.copyButtonRunnable?.run() in sendActionWithTextCopyRunnable()
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/ |
D | PreviewDataProviderTest.kt | 71 val testSubject = createDataProvider(targetIntent) in createDataProvider() constant 73 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_TEXT) in createDataProvider() 88 val testSubject = createDataProvider(targetIntent) in test_sendSingleTextFileWithoutPreview_resolvesToFilePreviewUi() constant 90 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_FILE) in test_sendSingleTextFileWithoutPreview_resolvesToFilePreviewUi() 91 assertThat(testSubject.uriCount).isEqualTo(1) in test_sendSingleTextFileWithoutPreview_resolvesToFilePreviewUi() 92 assertThat(testSubject.firstFileInfo?.uri).isEqualTo(uri) in test_sendSingleTextFileWithoutPreview_resolvesToFilePreviewUi() 93 assertThat(testSubject.getFirstFileName()).isEqualTo(fileName) in test_sendSingleTextFileWithoutPreview_resolvesToFilePreviewUi() 116 val testSubject = createDataProvider(targetIntent) in test_sendSingleTextFileWithDisplayNameAndTitle_displayNameTakesPrecedenceOverTitle() constant 118 assertThat(testSubject.previewType).isEqualTo(ContentPreviewType.CONTENT_PREVIEW_FILE) in test_sendSingleTextFileWithDisplayNameAndTitle_displayNameTakesPrecedenceOverTitle() 119 assertThat(testSubject.getFirstFileName()).isEqualTo(displayName) in test_sendSingleTextFileWithDisplayNameAndTitle_displayNameTakesPrecedenceOverTitle() [all …]
|
D | PreviewImageLoaderTest.kt | 51 val testSubject = in <lambda>() constant 60 val b1 = testSubject.invoke(uri, Size(200, 100)) in <lambda>() 61 val b2 = testSubject.invoke(uri, Size(200, 100), caching = false) in <lambda>() 74 val testSubject = in <lambda>() constant 83 testSubject.invoke(uri, Size(200, 100), caching = false) in <lambda>() 84 testSubject.invoke(uri, Size(200, 100), caching = false) in <lambda>() 101 val testSubject = in <lambda>() constant 110 val b1Deferred = async { testSubject.invoke(uri, Size(200, 100), caching = false) } in <lambda>() 114 testSubject.invoke(uri, Size(200, 100), caching = true) in <lambda>() 144 val testSubject = in <lambda>() constant [all …]
|
D | ChooserContentPreviewUiTest.kt | 85 val testSubject = createContentPreviewUi(action = Intent.ACTION_VIEW) in test_textPreviewType_useTextPreviewUi() constant 87 assertThat(testSubject.preferredContentPreview) in test_textPreviewType_useTextPreviewUi() 89 assertThat(testSubject.mContentPreviewUi).isInstanceOf(TextContentPreviewUi::class.java) in test_textPreviewType_useTextPreviewUi() 96 val testSubject = createContentPreviewUi(action = Intent.ACTION_SEND) in test_filePreviewType_useFilePreviewUi() constant 97 assertThat(testSubject.preferredContentPreview) in test_filePreviewType_useFilePreviewUi() 99 assertThat(testSubject.mContentPreviewUi).isInstanceOf(FileContentPreviewUi::class.java) in test_filePreviewType_useFilePreviewUi() 111 val testSubject = in test_imagePreviewTypeWithText_useFilePlusTextPreviewUi() constant 113 assertThat(testSubject.mContentPreviewUi) in test_imagePreviewTypeWithText_useFilePlusTextPreviewUi() 127 val testSubject = createContentPreviewUi(action = Intent.ACTION_SEND) in test_imagePreviewTypeWithoutText_useImagePreviewUi() constant 128 assertThat(testSubject.preferredContentPreview) in test_imagePreviewTypeWithoutText_useImagePreviewUi() [all …]
|
D | UriMetadataReaderTest.kt | 40 val testSubject = UriMetadataReaderImpl(contentResolver, DefaultMimeTypeClassifier) in <lambda>() constant 42 testSubject.getMetadata(uri).let { fileInfo -> in <lambda>() 55 val testSubject = UriMetadataReaderImpl(contentResolver, DefaultMimeTypeClassifier) in <lambda>() constant 57 testSubject.getMetadata(uri).let { fileInfo -> in <lambda>() 75 val testSubject = UriMetadataReaderImpl(contentResolver, DefaultMimeTypeClassifier) in <lambda>() constant 77 testSubject.getMetadata(uri).let { fileInfo -> in <lambda>() 92 val testSubject = UriMetadataReaderImpl(contentResolver, DefaultMimeTypeClassifier) in <lambda>() constant 94 testSubject.getMetadata(uri).let { fileInfo -> in <lambda>()
|
D | FilesPlusTextContentPreviewUiTest.kt | 184 val testSubject = in <lambda>() constant 204 testSubject.display( in <lambda>() 216 testSubject.updatePreviewMetadata(createFileInfosWithMimeTypes("image/png", "image/jpg")) in <lambda>() 227 val testSubject = in <lambda>() constant 255 testSubject.display( in <lambda>() 268 testSubject.updatePreviewMetadata(createFileInfosWithMimeTypes("image/png", "image/jpg")) in <lambda>() 278 val testSubject = in <lambda>() constant 298 testSubject.display( in <lambda>() 312 val testSubject = in <lambda>() constant 332 testSubject.display( in <lambda>() [all …]
|
D | FileContentPreviewUiTest.kt | 53 private val testSubject = constant 73 testSubject.display( in test_display_titleAndMetadataIsDisplayed()
|
D | TextContentPreviewUiTest.kt | 67 private val testSubject = constant 89 testSubject.display( in test_display_headlineIsDisplayed()
|
D | UnifiedContentPreviewUiTest.kt | 171 val testSubject = in <lambda>() constant 198 testSubject.display( in <lambda>()
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/interactive/domain/interactor/ |
D | InteractiveSessionInteractorTest.kt | 100 val testSubject = in <lambda>() constant 108 testSubject.activate() in <lambda>() 126 val testSubject = in <lambda>() constant 134 backgroundScope.launch { testSubject.activate() } in <lambda>() 137 assertThat(testSubject.isSessionActive.value).isFalse() in <lambda>() 152 val testSubject = in <lambda>() constant 160 backgroundScope.launch { testSubject.activate() } in <lambda>() 163 assertThat(testSubject.isSessionActive.value).isTrue() in <lambda>() 168 assertThat(testSubject.isSessionActive.value).isFalse() in <lambda>() 183 val testSubject = in <lambda>() constant [all …]
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/icons/ |
D | CachingTargetDataLoaderTest.kt | 70 val testSubject = CachingTargetDataLoader(context, targetDataLoader) in doNotCacheCallerProvidedShortcuts() constant 73 testSubject.getOrLoadDirectShareIcon(callerTarget, userHandle, callback) in doNotCacheCallerProvidedShortcuts() 74 testSubject.getOrLoadDirectShareIcon(callerTarget, userHandle, callback) in doNotCacheCallerProvidedShortcuts() 111 val testSubject = CachingTargetDataLoader(context, targetDataLoader) in serviceShortcutsAreCached() constant 114 testSubject.getOrLoadDirectShareIcon(targetInfo, userHandle, callback) in serviceShortcutsAreCached() 115 testSubject.getOrLoadDirectShareIcon(targetInfo, userHandle, callback) in serviceShortcutsAreCached() 165 val testSubject = CachingTargetDataLoader(context, targetDataLoader) in onlyBitmapsAreCached() constant 168 testSubject.getOrLoadAppTargetIcon(colorTargetInfo, userHandle, callback) in onlyBitmapsAreCached() 169 testSubject.getOrLoadAppTargetIcon(colorTargetInfo, userHandle, callback) in onlyBitmapsAreCached() 170 testSubject.getOrLoadAppTargetIcon(bitmapTargetInfo, userHandle, callback) in onlyBitmapsAreCached() [all …]
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/shortcuts/ |
D | ScopedAppTargetListCallbackTest.kt | 33 val testSubject = ScopedAppTargetListCallback(scope) { counter++ }.toConsumer() in test_consumerInvocations_onlyInvokedWhileScopeIsActive() constant 35 testSubject.accept(ArrayList()) in test_consumerInvocations_onlyInvokedWhileScopeIsActive() 40 testSubject.accept(ArrayList()) in test_consumerInvocations_onlyInvokedWhileScopeIsActive() 49 val testSubject = ScopedAppTargetListCallback(scope) { counter++ }.toAppPredictorCallback() in test_appPredictorCallbackInvocations_onlyInvokedWhileScopeIsActive() constant 51 testSubject.onTargetsAvailable(ArrayList()) in test_appPredictorCallbackInvocations_onlyInvokedWhileScopeIsActive() 56 testSubject.onTargetsAvailable(ArrayList()) in test_appPredictorCallbackInvocations_onlyInvokedWhileScopeIsActive() 65 val testSubject = ScopedAppTargetListCallback(scope) { counter++ }.toConsumer() in test_createdWithClosedScope_noCallbackInvocations() constant 67 testSubject.accept(ArrayList()) in test_createdWithClosedScope_noCallbackInvocations()
|
D | ShortcutLoaderTest.kt | 102 val testSubject = in test_loadShortcutsWithAppPredictor_resultIntegrity() constant 114 testSubject.updateAppTargets(appTargets) in test_loadShortcutsWithAppPredictor_resultIntegrity() 171 val testSubject = in test_loadShortcutsWithShortcutManager_resultIntegrity() constant 183 testSubject.updateAppTargets(appTargets) in test_loadShortcutsWithShortcutManager_resultIntegrity() 224 val testSubject = in test_appPredictorReturnsEmptyList_fallbackToShortcutManager() constant 236 testSubject.updateAppTargets(appTargets) in test_appPredictorReturnsEmptyList_fallbackToShortcutManager() 285 val testSubject = in test_appPredictor_requestPredictionUpdateFailure_fallbackToShortcutManager() constant 297 testSubject.updateAppTargets(appTargets) in test_appPredictor_requestPredictionUpdateFailure_fallbackToShortcutManager() 341 val testSubject = in test_appPredictorNotResponding_noCallbackFromShortcutLoader() constant 353 testSubject.updateAppTargets(appTargets) in test_appPredictorNotResponding_noCallbackFromShortcutLoader() [all …]
|
D | ShortcutToChooserTargetConverterTest.kt | 34 private val testSubject = ShortcutToChooserTargetConverter() in <lambda>() constant 58 testSubject.convertToChooserTarget( in <lambda>() 82 testSubject.convertToChooserTarget( in <lambda>() 102 val testSubject = ShortcutToChooserTargetConverter() in <lambda>() constant 108 testSubject.convertToChooserTarget( in <lambda>() 133 testSubject.convertToChooserTarget( in <lambda>()
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/payloadtoggle/domain/intent/ |
D | TargetIntentModifierImplTest.kt | 30 val testSubject = in <lambda>() constant 35 testSubject.intentFromSelection(listOf(u1, u2)).let { intent -> in <lambda>() 42 testSubject.intentFromSelection(listOf(u1)).let { intent -> in <lambda>() 50 val testSubject = in <lambda>() constant 55 testSubject.intentFromSelection(listOf(u1 to "image/png", u2 to "image/png")).let { intent in <lambda>() 60 testSubject.intentFromSelection(listOf(u1 to "image/png", u2 to "image/jpg")).let { intent in <lambda>() 65 testSubject.intentFromSelection(listOf(u1 to "image/png", u2 to "video/mpeg")).let { intent in <lambda>() 70 testSubject.intentFromSelection(listOf(u1 to "image/png", u2 to null)).let { intent -> in <lambda>()
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/payloadtoggle/domain/update/ |
D | SelectionChangeCallbackImplTest.kt | 76 val testSubject = SelectionChangeCallbackImpl(uri, chooserIntent, contentResolver) in <lambda>() constant 90 testSubject.onSelectionChanged(targetIntent) in <lambda>() 171 val testSubject = SelectionChangeCallbackImpl(uri, chooserIntent, contentResolver) in <lambda>() constant 174 val result = testSubject.onSelectionChanged(targetIntent) in <lambda>() 210 val testSubject = SelectionChangeCallbackImpl(uri, chooserIntent, contentResolver) in <lambda>() constant 213 val result = testSubject.onSelectionChanged(targetIntent) in <lambda>() 246 val testSubject = SelectionChangeCallbackImpl(uri, chooserIntent, contentResolver) in <lambda>() constant 249 val result = testSubject.onSelectionChanged(targetIntent) in <lambda>() 297 val testSubject = SelectionChangeCallbackImpl(uri, chooserIntent, contentResolver) in <lambda>() constant 300 val result = testSubject.onSelectionChanged(targetIntent) in <lambda>() [all …]
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/widget/ |
D | BatchPreviewLoaderTest.kt | 72 val testSubject = in <lambda>() constant 81 testSubject.loadAspectRatios(200) { _, _, _ -> 100 } in <lambda>() 96 val testSubject = in <lambda>() constant 105 testSubject.loadAspectRatios(200) { _, _, _ -> 100 } in <lambda>() 128 val testSubject = in <lambda>() constant 137 testSubject.loadAspectRatios(200) { _, _, _ -> 100 } in <lambda>() 164 val testSubject = in <lambda>() constant 173 testSubject.loadAspectRatios(200) { _, _, _ -> 100 } in <lambda>()
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/payloadtoggle/domain/cursor/ |
D | PayloadToggleCursorResolverTest.kt | 61 val testSubject = in <lambda>() constant 68 val cursor = testSubject.getCursor() in <lambda>() 91 val testSubject = in <lambda>() constant 98 val cursor = testSubject.getCursor() in <lambda>() 125 val testSubject = in <lambda>() constant 132 val cursor = testSubject.getCursor() in <lambda>()
|