public void setPlayingProgramIndex(int programIndex) {
   try {
     mDTVPlayer.setPlayingProgramID(programIndex);
   } catch (RemoteException e) {
     // TODO Auto-generated catch block
     Log.e(TAG, "LL setPlayingProgramID()>>Throw RemoteException***");
     e.printStackTrace();
   }
 }
 public boolean isLock() {
   boolean isLock = true;
   DTVTunerStatus tunerStatus = null;
   tunerStatus = mDTVPlayer.getTunerStatus();
   if (tunerStatus != null) {
     isLock = tunerStatus.mbLock;
   }
   return isLock;
 }
  public DTVSource getSource() {
    DTVSource dtvSource = mDTVPlayer.getSource();
    if (null == dtvSource) {
      Log.e(TAG, "LL getSource>> null == obj_SRC .");
    } else {
      Log.i(TAG, "LL getSource>> RET =" + dtvSource.miSourceID);
    }

    return dtvSource;
  }
 public DMBTHCarrier getDMBTHCarrier() {
   DMBTHCarrier carrier = null;
   try {
     carrier = (DMBTHCarrier) mDTVPlayer.getCurTunerInfo();
   } catch (Exception e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
     Log.i(TAG, "LL carrire is not DBMT");
   }
   return carrier;
 }
  public int getDemodType() {
    int demodType = ConstDemodType.DVB_C;
    DTVSource dtvSource = mDTVPlayer.getSource();
    if (null != dtvSource) {
      demodType = dtvSource.miSourceType;
      Log.i(TAG, "LL getDemodType>> RET =" + dtvSource.miSourceType);
    } else {
      Log.e(TAG, "LL getDemodType>> null == obj_SRC");
    }

    return demodType;
  }
  public int getSourceID() {
    int source = 1;
    DTVSource dtvSource = mDTVPlayer.getSource();
    if (null != dtvSource) {
      source = dtvSource.miSourceID;
      Log.i(TAG, "LL getSourceID>> RET =" + dtvSource.miSourceID);
    } else {
      Log.e(TAG, "LL getSourceID>> null == obj_SRC");
    }

    return source;
  }
 public Date getCurrentDate() {
   DTVDTTime dt = null;
   long systemTime = System.currentTimeMillis();
   SimpleDateFormat dtFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
   Log.i(TAG, "LL getSystemTime()>>" + dtFormat.format(new Date(systemTime)));
   long dtvTime = 0;
   dt = mDTVPlayer.getTDTTime();
   if (dt != null) {
     String str =
         String.format(
             "LL getCurrentDate() TDTTIME>>year = %d,month = %d,day = %d,hour = %d,minute = %d,second = %d",
             dt.mstruDate.miYear,
             dt.mstruDate.miMonth,
             dt.mstruDate.miDay,
             dt.mstruTime.miHour,
             dt.mstruTime.miMinute,
             dt.mstruTime.miSecond);
     Log.i(TAG, str);
   }
   dtvTime = chTimeToLong(dt);
   return new Date(dtvTime > systemTime ? dtvTime : systemTime);
 }
 public DtvTunerStatus getTunerStatus() {
   DTVTunerStatus mTunerStatus = null;
   mTunerStatus = mDTVPlayer.getTunerStatus();
   return new DtvTunerStatus(mTunerStatus);
 }
 public int getPlayerStatus() {
   int status = -1;
   status = mDTVPlayer.getPlayerStatus();
   return status;
 }
Example #10
0
 /**
  * C <1> T<2> T+C<3>
  *
  * @return
  */
 public int getProductType() {
   return mDTVPlayer.getProductType();
 }
Example #11
0
 /**
  * action to cancel filter unused channels
  *
  * @return
  */
 public int cancellSmartSkip() {
   // TODO Auto-generated method stub
   return mDTVPlayer.SmartSkipStop();
 }
Example #12
0
 public int SetDtvBusyState(int d_state) {
   // TODO Auto-generated method stub
   return mDTVPlayer.SetDtvBusyState(d_state);
 }
Example #13
0
 /**
  * action to start filter unused channels
  *
  * @return
  */
 public int startSmartSkip() {
   // TODO Auto-generated method stub
   return mDTVPlayer.SmartSkip(0);
 }
Example #14
0
 public void resourceRelease() {
   Log.i(TAG, "resourceRelease inThread:" + Thread.currentThread());
   mDTVPlayer.Release();
 }
Example #15
0
 public boolean checkVersion(int curVersion) {
   Log.i(TAG, "LL checkVersion()>>curVersion = " + curVersion);
   return mDTVPlayer.checkVersion(curVersion) == 1 ? true : false;
 }
Example #16
0
 public void setSource(int sourceID) {
   Log.i(TAG, "LL setSource()>>sourceID = " + sourceID);
   mDTVPlayer.setSource(sourceID);
 }
Example #17
0
 public synchronized int resourcePrepare() {
   Log.i(TAG, "prepare inThread:" + Thread.currentThread());
   return mDTVPlayer.prepare();
 }