aboutsummaryrefslogtreecommitdiff
path: root/src/com/android/tv/tuner/util/TisConfiguration.java
blob: ca861d67ba1fd7c6b7805a25a6faa75da18152ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.android.tv.tuner.util;

import android.content.Context;

/**
 * A helper class of tuner configuration.
 */
public class TisConfiguration {
    private static final String LC_PACKAGE_NAME = "com.android.tv";

    public static boolean isPackagedWithLiveChannels(Context context) {
        return (LC_PACKAGE_NAME.equals(context.getPackageName()));
    }

    public static boolean isInternalTunerTvInput(Context context) {
        return (!LC_PACKAGE_NAME.equals(context.getPackageName()));
    }

    public static int getTunerHwDeviceId(Context context) {
        return 0;  // FIXME: Make it OEM configurable
    }
}