コード例 #1
0
 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();
   }
 }
コード例 #2
0
 public boolean isLock() {
   boolean isLock = true;
   DTVTunerStatus tunerStatus = null;
   tunerStatus = mDTVPlayer.getTunerStatus();
   if (tunerStatus != null) {
     isLock = tunerStatus.mbLock;
   }
   return isLock;
 }
コード例 #3
0
  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;
  }
コード例 #4
0
 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;
 }
コード例 #5
0
  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;
  }
コード例 #6
0
  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;
  }
コード例 #7
0
 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);
 }
コード例 #8
0
 public DtvTunerStatus getTunerStatus() {
   DTVTunerStatus mTunerStatus = null;
   mTunerStatus = mDTVPlayer.getTunerStatus();
   return new DtvTunerStatus(mTunerStatus);
 }
コード例 #9
0
 public int getPlayerStatus() {
   int status = -1;
   status = mDTVPlayer.getPlayerStatus();
   return status;
 }
コード例 #10
0
 /**
  * C <1> T<2> T+C<3>
  *
  * @return
  */
 public int getProductType() {
   return mDTVPlayer.getProductType();
 }
コード例 #11
0
 /**
  * action to cancel filter unused channels
  *
  * @return
  */
 public int cancellSmartSkip() {
   // TODO Auto-generated method stub
   return mDTVPlayer.SmartSkipStop();
 }
コード例 #12
0
 public int SetDtvBusyState(int d_state) {
   // TODO Auto-generated method stub
   return mDTVPlayer.SetDtvBusyState(d_state);
 }
コード例 #13
0
 /**
  * action to start filter unused channels
  *
  * @return
  */
 public int startSmartSkip() {
   // TODO Auto-generated method stub
   return mDTVPlayer.SmartSkip(0);
 }
コード例 #14
0
 public void resourceRelease() {
   Log.i(TAG, "resourceRelease inThread:" + Thread.currentThread());
   mDTVPlayer.Release();
 }
コード例 #15
0
 public boolean checkVersion(int curVersion) {
   Log.i(TAG, "LL checkVersion()>>curVersion = " + curVersion);
   return mDTVPlayer.checkVersion(curVersion) == 1 ? true : false;
 }
コード例 #16
0
 public void setSource(int sourceID) {
   Log.i(TAG, "LL setSource()>>sourceID = " + sourceID);
   mDTVPlayer.setSource(sourceID);
 }
コード例 #17
0
 public synchronized int resourcePrepare() {
   Log.i(TAG, "prepare inThread:" + Thread.currentThread());
   return mDTVPlayer.prepare();
 }