Android Open Source - android4tv-example5 Scan Call Back






From Project

Back to project page android4tv-example5.

License

The source code is released under:

Apache License

If you think the Android project android4tv-example5 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.iwedia.five.callbacks;
/*from  w ww  . jav a 2 s.co  m*/
import android.util.Log;

import com.iwedia.dtv.scan.IScanCallback;
import com.iwedia.dtv.scan.ScanInstallStatus;
import com.iwedia.dtv.types.InternalException;
import com.iwedia.five.dtv.DVBManager;

/**
 * CallBack for Channel Actions.
 */
public class ScanCallBack implements IScanCallback {
    private static final String TAG = "ScanCallBack";
    private DVBManager mDVBManager = null;
    private static ScanCallBack sInstance = null;

    public static ScanCallBack getInstance() {
        if (sInstance == null) {
            sInstance = new ScanCallBack();
        }
        return sInstance;
    }

    public static void destroyInstance() {
        sInstance = null;
    }

    private ScanCallBack() {
        mDVBManager = DVBManager.getInstance();
    }

    @Override
    public void antennaConnected(int arg0, boolean status) {
        Log.d(TAG, "antennaConnected: " + status + ", ROUTE: " + arg0);
        if (mDVBManager != null) {
            mDVBManager.antennaStateChanged(status, arg0);
        }
    }

    @Override
    public void installServiceDATAName(int arg0, String arg1) {
    }

    @Override
    public void installServiceDATANumber(int arg0, int arg1) {
    }

    @Override
    public void installServiceRADIOName(int arg0, String arg1) {
    }

    @Override
    public void installServiceRADIONumber(int arg0, int arg1) {
    }

    @Override
    public void installServiceTVName(int arg0, String arg1) {
    }

    @Override
    public void installServiceTVNumber(int arg0, int arg1) {
    }

    @Override
    public void installStatus(ScanInstallStatus arg0) {
    }

    @Override
    public void networkChanged(int arg0) {
    }

    @Override
    public void sat2ipServerDropped(int arg0) {
    }

    @Override
    public void scanFinished(int arg0) {
    }

    @Override
    public void scanNoServiceSpace(int arg0) {
    }

    @Override
    public void scanProgressChanged(int arg0, int arg1) {
    }

    @Override
    public void scanTunFrequency(int arg0, int arg1) {
    }

    @Override
    public void signalBer(int arg0, int arg1) {
    }

    @Override
    public void signalQuality(int arg0, int arg1) {
    }

    @Override
    public void signalStrength(int arg0, int arg1) {
    }

    @Override
    public void triggerStatus(int arg0) {
    }
}




Java Source Code List

com.iwedia.five.ChannelListDialog.java
com.iwedia.five.DTVActivity.java
com.iwedia.five.ListDialog.java
com.iwedia.five.MediaMountedReceiver.java
com.iwedia.five.PvrActivity.java
com.iwedia.five.RecordListDialog.java
com.iwedia.five.SoftwareVersionDialog.java
com.iwedia.five.adapters.ChannelListAdapter.java
com.iwedia.five.callbacks.ScanCallBack.java
com.iwedia.five.dtv.ChannelInfo.java
com.iwedia.five.dtv.DVBManager.java
com.iwedia.five.dtv.FrontendManager.java
com.iwedia.five.dtv.Frontend.java
com.iwedia.five.dtv.IPService.java
com.iwedia.five.dtv.PvrManager.java
com.iwedia.five.dtv.PvrSpeedMode.java
com.iwedia.five.dtv.ReminderManager.java