예제 #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();
 }