Skip to content

Commit e90ba19

Browse files
author
Ankit Verma
committed
[DO NOT MERGE]Skip the test DocumentsUI with UiAutomator on Wear.
The cts testDownload_onMediaStoreDownloadsDeleted assumes that a DocumentsUI exists on all Android devices and tries to interact with one via UI Automation. On Wear, there is no DocumentsUI, so that skip this test on Wear. Bug: 306578198 Test: atest-src CtsAppTestCases:DownloadManagerTest#testDownload_onMediaStoreDownloadsDeleted Change-Id: Ia88e3831c62b2920df73ee1fca5ca5b4b80ba6ab
1 parent e9cc1bd commit e90ba19

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)