Added takeScreenshot of a Window to UiAutomation

Added a way to capture just a window instead of the entire screen
to make tests easier.

Test: Builds
Bug: 185390632

Change-Id: I5138777bc87cdabcd2d8f574b1758509fc887c56
4 files changed