1 package com.android.usbtuner.util;
2 
3 import android.content.Context;
4 
5 /**
6  * A helper class of tuner configuration.
7  */
8 public class TisConfiguration {
9     private static final String LC_PACKAGE_NAME = "com.android.tv";
10 
isPackagedWithLiveChannels(Context context)11     public static boolean isPackagedWithLiveChannels(Context context) {
12         return (LC_PACKAGE_NAME.equals(context.getPackageName()));
13     }
14 
isInternalTunerTvInput(Context context)15     public static boolean isInternalTunerTvInput(Context context) {
16         return (!LC_PACKAGE_NAME.equals(context.getPackageName()));
17     }
18 
getTunerHwDeviceId(Context context)19     public static int getTunerHwDeviceId(Context context) {
20         return 0;  // FIXME: Make it OEM configurable
21     }
22 }
23