diff options
author | Brian Muramatsu <btmura@android.com> | 2013-02-07 22:14:49 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-02-07 22:14:50 +0000 |
commit | d4446193dfb4434d417cdbb7da4d3524735f403a (patch) | |
tree | fbb934b2d31b706f6e6ac74238e5355f1c5a56f6 | |
parent | f0f113798cb9cf37ea0050557a7fdb6e63ee878c (diff) | |
parent | 62cd9f5c10470150d5b96f4f555c539a2a670713 (diff) | |
download | cts-jb-mr1-dev-plus-aosp.tar.gz |
Merge "Add missing features of JELLY_BEAN and JELLY_BEAN_MR1 to feature summary list"jb-mr1-dev-plus-aosp
-rw-r--r-- | apps/CtsVerifier/src/com/android/cts/verifier/features/FeatureSummaryActivity.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/CtsVerifier/src/com/android/cts/verifier/features/FeatureSummaryActivity.java b/apps/CtsVerifier/src/com/android/cts/verifier/features/FeatureSummaryActivity.java index 3ea945160bb..a38f359d40d 100644 --- a/apps/CtsVerifier/src/com/android/cts/verifier/features/FeatureSummaryActivity.java +++ b/apps/CtsVerifier/src/com/android/cts/verifier/features/FeatureSummaryActivity.java @@ -168,6 +168,14 @@ public class FeatureSummaryActivity extends PassFailButtons.ListActivity { new Feature(PackageManager.FEATURE_WIFI_DIRECT, false), }; + public static final Feature[] ALL_JELLY_BEAN_FEATURES = { + new Feature(PackageManager.FEATURE_TELEVISION, false), + }; + + public static final Feature[] ALL_JELLY_BEAN_MR1_FEATURES = { + new Feature(PackageManager.FEATURE_CAMERA_ANY, false), + }; + @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); @@ -198,6 +206,12 @@ public class FeatureSummaryActivity extends PassFailButtons.ListActivity { // add features from latest to last so that the latest requirements are put in the set first int apiVersion = Build.VERSION.SDK_INT; + if (apiVersion >= Build.VERSION_CODES.JELLY_BEAN_MR1) { + Collections.addAll(features, ALL_JELLY_BEAN_MR1_FEATURES); + } + if (apiVersion >= Build.VERSION_CODES.JELLY_BEAN) { + Collections.addAll(features, ALL_JELLY_BEAN_FEATURES); + } if (apiVersion >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { Collections.addAll(features, ALL_ICE_CREAM_SANDWICH_FEATURES); } |