diff options
author | Mark Renouf <mrenouf@google.com> | 2020-10-21 15:58:56 -0400 |
---|---|---|
committer | Mark Renouf <mrenouf@google.com> | 2020-11-03 20:16:07 -0500 |
commit | 1bf86b5e5ba5cca770ab2bf5a88808c4117945cc (patch) | |
tree | a7fd26dd6078bf521fa364781bb738f483a23ee3 /packages/SystemUI/tests/src/com/android/AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java | |
parent | 8b93b3d6a4a9dab7f7da5d94c2b06800928829f2 (diff) |
Demo: show scroll chip and capture tall screenshot when tapped
The result is shown via intent ACTION_VIEW, after saving to PNG.
This change introduces ScrollCaptureClient, a light layer around
the raw binder API for scroll capture (which is more disruptive
to change). This provides a layer to help adapt patterns between
the app interface and system UI, as well as provide an optimal
testing strategy.
Test: atest ScrollCaptureClientTest
Change-Id: Ib6d0f61ae0b4d4dc3df459e07d9eaf34d11d59ed
Diffstat (limited to 'packages/SystemUI/tests/src/com/android/AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java')
-rw-r--r-- | packages/SystemUI/tests/src/com/android/AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/SystemUI/tests/src/com/android/AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java b/packages/SystemUI/tests/src/com/android/AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java index 594f0b1a8deb..cbd6e8659e69 100644 --- a/packages/SystemUI/tests/src/com/android/AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java +++ b/packages/SystemUI/tests/src/com/android/AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java @@ -116,6 +116,13 @@ public class AAAPlusPlusVerifySysuiRequiredTestPropertiesTest extends SysuiTestC filter.add(s -> s.startsWith("com.android.systemui") || s.startsWith("com.android.keyguard")); + // Screenshots run in an isolated process and should not be run + // with the main process dependency graph because it will not exist + // at runtime and could lead to incorrect tests which assume + // the main SystemUI process. Therefore, exclude this package + // from the base class whitelist. + filter.add(s -> !s.startsWith("com.android.systemui.screenshot")); + try { return scanner.getClassPathEntries(filter); } catch (IOException e) { |