Split ChooserContentPreviewUi into multiple components
A prep step for the new preview UI: extract each preview logic from
ChooserContentPreviewUi into individual components leaving the former as
a facade for the latter.
More specifically:
* move ChooserContnetPreviewUi into a new package;
* make #displayTextContentPreview() to be the core of the
TextContentPreviewUI (with related methods);
* make #displayFileContentPreview() to be the core of the
FileContentPreviewUi (with related methods);
* make #displayImageContentPreview() to the core of the
ImageContentPreviewUi (with the related methods);
* for all aforementioned new components, pass component specific
dependencies as constructor arguments, capture the common component
contract in the base abstract class, ContentPreviewUi, along with the
static utility methods.
Bug: 271613784
Test: Manual testing of
* Text sharing with and without preview;
* File sharing with and without preivew, single file and multiple
fiels;
* Image sharing, single and multiple files, image + text sharing;
* Custom actions with text, image and files sharing;
* Reselection action with text, image and files sharing.
Test: screenshot transition animation
Test: atest IntentResolverUnitTests
Change-Id: I392de610b3d3e044e23c83d29fd11061fbc7192d
16 files changed