fm/qcom/fmradio/FmRxControls.java
public int searchStationList (int fd, int mode, int preset_num,
                                   int dir, int pty )
   {
      int re;


     /* set search mode. */
      re = FmReceiverJNI.setControlNative (fd, V4L2_CID_PRIVATE_TAVARUA_SRCHMODE, mode);
      if (re != 0) {
         return re;
      }

      /* set number of stations to be returned in the list */
      re = FmReceiverJNI.setControlNative (fd, V4L2_CID_PRIVATE_TAVARUA_SRCH_CNT, preset_num);
      if (re != 0) {
         return re;
      }

      // RDS search list?
      if (pty > 0 ){
        re = FmReceiverJNI.setControlNative (fd, V4L2_CID_PRIVATE_TAVARUA_SRCH_PTY, pty);
      }
      if (re != 0) {
         return re;
      }

      /* This triigers the search and once completed the FM core generates
       * searchListComplete event */
      re = FmReceiverJNI.startSearchNative (fd, dir );
      if (re != 0) {
         return re;
      }
      else {
         return 0;
      }

   }
/*
    * Start search list for auto presets
    */
Start search list for auto presets
Start search list for auto presets
public int searchStationList (int fd, int mode, int preset_num,
                                   int dir, int pty )
   {
      int re;
     /* set search mode. */
      re = FmReceiverJNI.setControlNative (fd, V4L2_CID_PRIVATE_TAVARUA_SRCHMODE, mode);
      if (re != 0) {
         return re;
      }
      /* set number of stations to be returned in the list */
      re = FmReceiverJNI.setControlNative (fd, V4L2_CID_PRIVATE_TAVARUA_SRCH_CNT, preset_num);
      if (re != 0) {
         return re;
      }
      if (pty > 0 ){
        re = FmReceiverJNI.setControlNative (fd, V4L2_CID_PRIVATE_TAVARUA_SRCH_PTY, pty);
      }
      if (re != 0) {
         return re;
      }
      /* This triigers the search and once completed the FM core generates
       * searchListComplete event */
      re = FmReceiverJNI.startSearchNative (fd, dir );
      if (re != 0) {
         return re;
      }
      else {
         return 0;
      }
   }
public int searchStationList ( int fd , int mode , int preset_num , int dir , int pty ) { int re ; /* set search mode. */ re = FmReceiverJNI . setControlNative ( fd , V4L2_CID_PRIVATE_TAVARUA_SRCHMODE , mode ) ; if ( re != 0 ) { return re ; } /* set number of stations to be returned in the list */ re = FmReceiverJNI . setControlNative ( fd , V4L2_CID_PRIVATE_TAVARUA_SRCH_CNT , preset_num ) ; if ( re != 0 ) { return re ; } if ( pty > 0 ) { re = FmReceiverJNI . setControlNative ( fd , V4L2_CID_PRIVATE_TAVARUA_SRCH_PTY , pty ) ; } if ( re != 0 ) { return re ; } /* This triigers the search and once completed the FM core generates
       * searchListComplete event */ re = FmReceiverJNI . startSearchNative ( fd , dir ) ; if ( re != 0 ) { return re ; } else { return 0 ; } }
Start search list for auto presets
Start search list for auto presets
// RDS search list?