diff options
| author | 2020-04-17 15:18:08 +0000 | |
|---|---|---|
| committer | 2020-04-17 15:18:08 +0000 | |
| commit | a38de343731ebe5b2c521a6563876b980c61cbc4 (patch) | |
| tree | a6afa90bebbc9e2bf9f4638f04099a83d1ccb2dd | |
| parent | f9a1e1cb783fd4bb699b0f1bad745949c3aab932 (diff) | |
| parent | fce7edf87f77a4378bff6a2fa94a624f1e43431b (diff) | |
Merge "Remove filter for automotive calsses in SysUI Tests" into rvc-dev
| -rw-r--r-- | packages/SystemUI/tests/src/com/android/AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/packages/SystemUI/tests/src/com/android/AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java b/packages/SystemUI/tests/src/com/android/AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java index b97f55ce06d7..594f0b1a8deb 100644 --- a/packages/SystemUI/tests/src/com/android/AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java +++ b/packages/SystemUI/tests/src/com/android/AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java @@ -18,7 +18,6 @@ import static org.hamcrest.Matchers.empty; import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; -import android.content.pm.PackageManager; import android.testing.AndroidTestingRunner; import android.text.TextUtils; import android.util.Log; @@ -117,12 +116,6 @@ public class AAAPlusPlusVerifySysuiRequiredTestPropertiesTest extends SysuiTestC filter.add(s -> s.startsWith("com.android.systemui") || s.startsWith("com.android.keyguard")); - - if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { - // If it's not automotive target, exclude automotive classes from the test. - excludeAutomotiveClasses(filter); - } - try { return scanner.getClassPathEntries(filter); } catch (IOException e) { @@ -131,13 +124,6 @@ public class AAAPlusPlusVerifySysuiRequiredTestPropertiesTest extends SysuiTestC return Collections.emptyList(); } - private void excludeAutomotiveClasses(ChainedClassNameFilter filter) { - // Modifies the passed in filter. - filter.add(s -> !s.startsWith("com.android.systemui.statusbar.car.")); - filter.add(s -> !s.startsWith("com.android.systemui.qs.car.")); - filter.add(s -> !s.startsWith("com.android.systemui.car.")); - } - private String getClsStr() { return TextUtils.join(",", Arrays.asList(BASE_CLS_WHITELIST) .stream().map(cls -> cls.getSimpleName()).toArray()); |