1 package android.media.tv.cts; 2 3 import android.content.Context; 4 import android.content.pm.PackageManager; 5 import android.util.Log; 6 7 import org.junit.Assume; 8 import org.junit.rules.TestRule; 9 import org.junit.runner.Description; 10 import org.junit.runners.model.Statement; 11 12 public class Utils { 13 Utils()14 private Utils() { 15 } 16 hasTvInputFramework(Context context)17 public static boolean hasTvInputFramework(Context context) { 18 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_LIVE_TV); 19 } 20 hasTunerFeature(Context context)21 public static boolean hasTunerFeature(Context context) { 22 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_TUNER); 23 } 24 } 25