Skip to content

Commit 4737fc2

Browse files
Ankit Vermaandroid-build-merge-worker-robot
authored andcommitted
[DO NOT MERGE]Skip the test DocumentsUI with UiAutomator on Wear. am: e90ba19 am: fd5ebce
Original change: https://android-review.googlesource.com/c/platform/cts/+/2833659 Change-Id: I14b738f2a52c8841e86b8cf0e1c3cc40b2c53bbd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2 parents 5e185c3 + fd5ebce commit 4737fc2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/app/src/android/app/cts/DownloadManagerTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import static android.content.pm.PackageManager.PERMISSION_DENIED;
2020
import static android.content.pm.PackageManager.PERMISSION_GRANTED;
2121
import static android.content.pm.PackageManager.FEATURE_AUTOMOTIVE;
22+
import static android.content.pm.PackageManager.FEATURE_WATCH;
2223

2324
import static com.android.compatibility.common.util.SystemUtil.runShellCommand;
2425

@@ -728,9 +729,9 @@ public void testDownload_mediaScanned() throws Exception {
728729
public void testDownload_onMediaStoreDownloadsDeleted() throws Exception {
729730
final PackageManager pm = mContext.getPackageManager();
730731

731-
// skip this test for automotive devices which uses FrameworkPackageStubs for
732+
// skip this test for automotive and wearable devices which uses FrameworkPackageStubs for
732733
// a fake DocumentsUI package.
733-
assumeFalse(pm.hasSystemFeature(FEATURE_AUTOMOTIVE));
734+
assumeFalse(pm.hasSystemFeature(FEATURE_AUTOMOTIVE) || pm.hasSystemFeature(FEATURE_WATCH));
734735

735736
// setup for activity
736737
GetResultActivity activity = setUpForActivity();

0 commit comments

Comments
 (0)