From a9a6a1c4494529fe2a8e1672d7f6c56aca978743 Mon Sep 17 00:00:00 2001 From: Andrey Epin Date: Thu, 29 Dec 2022 20:47:57 -0800 Subject: EnterTransitionAnimationDelegate to track animation hold timeout Make EnterTransitionAnimationDelegate to track transition animation hold timeout instead of relying on image lading timeout in ChooserContentPreviewCoordinator. As after removing timeout tracking from the coordinator, not much functionality left in it, the following collateral changes were made: - ChooserContentPreviewUi$ContentPreviewCoordinator interface is replaced with a new ImageLoader interface that defines both suspend and callback methods for image loading by an URI; - ImagePreviewImageLoader implements the new ImageLoader interface; all image loading logic is moved from ChooserActivity and ChooserContentPreviewCoordinator is moved into it, ChooserContentPreviewCoordinator is removed. Flag: IntentResolver package entirely behind the CHOOSER_UNBUNDLED which is in teamfood Bug: 262280076 Test: manual basic functionality test for all preview types with and without work profile Test: atest IntentResolverUnitTests Change-Id: I310927e664e8de83d63472cc826665d36d994ed9 --- java/tests/Android.bp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'java/tests/Android.bp') diff --git a/java/tests/Android.bp b/java/tests/Android.bp index 2913d128..a62c52e6 100644 --- a/java/tests/Android.bp +++ b/java/tests/Android.bp @@ -23,9 +23,13 @@ android_test { "androidx.test.ext.junit", "mockito-target-minus-junit4", "androidx.test.espresso.core", + "androidx.lifecycle_lifecycle-common-java8", + "androidx.lifecycle_lifecycle-extensions", + "androidx.lifecycle_lifecycle-runtime-ktx", "truth-prebuilt", "testables", "testng", + "kotlinx_coroutines_test", ], test_suites: ["general-tests"], sdk_version: "core_platform", -- cgit v1.2.3-59-g8ed1b