File tree Expand file tree Collapse file tree
tests/app/src/android/app/cts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919import static android .content .pm .PackageManager .PERMISSION_DENIED ;
2020import static android .content .pm .PackageManager .PERMISSION_GRANTED ;
2121import static android .content .pm .PackageManager .FEATURE_AUTOMOTIVE ;
22+ import static android .content .pm .PackageManager .FEATURE_WATCH ;
2223
2324import 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 ();
You can’t perform that action at this time.
0 commit comments