Merge "Check tuner feature before running testGetClientPriority"
diff --git a/tests/tests/tv/src/android/media/tv/cts/TvInputManagerTest.java b/tests/tests/tv/src/android/media/tv/cts/TvInputManagerTest.java
index e4e27a7..8b07ea2 100644
--- a/tests/tests/tv/src/android/media/tv/cts/TvInputManagerTest.java
+++ b/tests/tests/tv/src/android/media/tv/cts/TvInputManagerTest.java
@@ -674,7 +674,7 @@
     }
 
     public void testGetClientPriority() {
-        if (!Utils.hasTvInputFramework(getActivity())) {
+        if (!Utils.hasTvInputFramework(getActivity()) || !Utils.hasTunerFeature(getActivity())) {
             return;
         }
 
diff --git a/tests/tests/tv/src/android/media/tv/cts/Utils.java b/tests/tests/tv/src/android/media/tv/cts/Utils.java
index 01a93f6..ad70ac4 100644
--- a/tests/tests/tv/src/android/media/tv/cts/Utils.java
+++ b/tests/tests/tv/src/android/media/tv/cts/Utils.java
@@ -18,4 +18,7 @@
         return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_LIVE_TV);
     }
 
+    public static boolean hasTunerFeature(Context context) {
+        return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_TUNER);
+    }
 }