fm/qcom/fmradio/FmReceiver.java
public boolean registerRdsGroupProcessing (int fmGrpsToProc){

      if (mRdsData == null)
         return false;

      int state = getFMState();
      /* Check current state of FM device */
      if (state == FMState_Turned_Off || state == FMState_Srch_InProg) {
          Log.d(TAG, "registerRdsGroupProcessing: Device currently busy in executing another command.");
          return false;
      }

      // Enable RDS
      int re = mRdsData.rdsOn(true);

      if (re != 0)
        return false;

      re = mRdsData.rdsOptions (fmGrpsToProc);

      if (re ==0)
        return true;

      return false;
   }
/**
   *
   *    This function enables or disables RDS/RBDS group processing features.
   *
   *    <p>
   *    Included in these features is the ability for the FM driver
   *    to return Program Service, RadioText, and Alternative
   *    Frequency information.
   *
   *    <p>
   *    These options free the client from the burden of collecting a continuous
   *    stream of RDS/RBDS groups and processing them. By setting the
   *    FM_RX_RDS_GRP_RT_EBL bit in argument fmGrpsToProc, the FM
   *    hardware or driver will collect RDS/RBDS 2A/2B groups and
   *    return complete RadioText strings and information in the
   *    form of a FmRxEvRdsRtInfo event. This event will be
   *    generated only when the RadioText information changes.
   *
   *    <p>
   *    Similarly, by setting either the FM_RX_RDS_GRP_PS_EBL or
   *    FM_RX_RDS_GRP_PS_SIMPLE_EBL bit in argument fmGrpsToProc,
   *    the FM hardware or driver will collect RDS/RBDS 0A/0B
   *    groups and return Program Service information in the form
   *    of a FmRxEvRdsPsInfo event. This event will be generated
   *    whenever the Program Service information changes. This
   *    event will include one or more collected Program Service
   *    strings which can be continuously displayed by the client.
   *
   *    <p>
   *    Additionally, by setting the FM_RX_RDS_GRP_AF_EBL bit in
   *    argument FmGrpsToProc, the FM hardware or driver will
   *    collect RDS/RBDS 0A/0B groups and return Alternative
   *    Frequency information in the form of a FmRxEvRdsAfInfo
   *    event. This event will be generated when the Alternative
   *    Frequency information changes and will include an up to
   *    date list of all known Alternative Frequencies.
   *
   *    <p>
   *    Lastly, by setting the FM_RX_RDS_GRP_AF_JUMP_EBL bit in
   *    argument FmGrpsToProc, the FM hardware or driver will
   *    collect RDS/RBDS 0A/0B groups and automatically tune to a
   *    stronger alternative frequency when the signal level falls
   *    below the search threshold.
   *
   *    @param fmGrpsToProc the bitMask that enables the RT/PS/AF.
   *
   *    @return true if the command was placed successfully, false
   *            if command failed.
   *
   */
This function enables or disables RDS/RBDS group processing features.

Included in these features is the ability for the FM driver
to return Program Service, RadioText, and Alternative
Frequency information.


These options free the client from the burden of collecting a continuous
stream of RDS/RBDS groups and processing them. By setting the
FM_RX_RDS_GRP_RT_EBL bit in argument fmGrpsToProc, the FM
hardware or driver will collect RDS/RBDS 2A/2B groups and
return complete RadioText strings and information in the
form of a FmRxEvRdsRtInfo event. This event will be
generated only when the RadioText information changes.


Similarly, by setting either the FM_RX_RDS_GRP_PS_EBL or
FM_RX_RDS_GRP_PS_SIMPLE_EBL bit in argument fmGrpsToProc,
the FM hardware or driver will collect RDS/RBDS 0A/0B
groups and return Program Service information in the form
of a FmRxEvRdsPsInfo event. This event will be generated
whenever the Program Service information changes. This
event will include one or more collected Program Service
strings which can be continuously displayed by the client.


Additionally, by setting the FM_RX_RDS_GRP_AF_EBL bit in
argument FmGrpsToProc, the FM hardware or driver will
collect RDS/RBDS 0A/0B groups and return Alternative
Frequency information in the form of a FmRxEvRdsAfInfo
event. This event will be generated when the Alternative
Frequency information changes and will include an up to
date list of all known Alternative Frequencies.


Lastly, by setting the FM_RX_RDS_GRP_AF_JUMP_EBL bit in
argument FmGrpsToProc, the FM hardware or driver will
collect RDS/RBDS 0A/0B groups and automatically tune to a
stronger alternative frequency when the signal level falls
below the search threshold.

@param fmGrpsToProc the bitMask that enables the RT/PS/AF.

@return true if the command was placed successfully, false
if command failed.
This function enables or disables RDS / RBDS group processing features . Included in these features is the ability for the FM driver to return Program Service RadioText and Alternative Frequency information . These options free the client from the burden of collecting a continuous stream of RDS / RBDS groups and processing them . By setting the FM_RX_RDS_GRP_RT_EBL bit in argument fmGrpsToProc the FM hardware or driver will collect RDS / RBDS 2A / 2B groups and return complete RadioText strings and information in the form of a FmRxEvRdsRtInfo event . This event will be generated only when the RadioText information changes . Similarly by setting either the FM_RX_RDS_GRP_PS_EBL or FM_RX_RDS_GRP_PS_SIMPLE_EBL bit in argument fmGrpsToProc the FM hardware or driver will collect RDS / RBDS 0A / 0B groups and return Program Service information in the form of a FmRxEvRdsPsInfo event . This event will be generated whenever the Program Service information changes . This event will include one or more collected Program Service strings which can be continuously displayed by the client . Additionally by setting the FM_RX_RDS_GRP_AF_EBL bit in argument FmGrpsToProc the FM hardware or driver will collect RDS / RBDS 0A / 0B groups and return Alternative Frequency information in the form of a FmRxEvRdsAfInfo event . This event will be generated when the Alternative Frequency information changes and will include an up to date list of all known Alternative Frequencies . Lastly by setting the FM_RX_RDS_GRP_AF_JUMP_EBL bit in argument FmGrpsToProc the FM hardware or driver will collect RDS / RBDS 0A / 0B groups and automatically tune to a stronger alternative frequency when the signal level falls below the search threshold . @param fmGrpsToProc the bitMask that enables the RT / PS / AF . @return true if the command was placed successfully false if command failed .
public boolean registerRdsGroupProcessing (int fmGrpsToProc){
      if (mRdsData == null)
         return false;
      int state = getFMState();
      /* Check current state of FM device */
      if (state == FMState_Turned_Off || state == FMState_Srch_InProg) {
          Log.d(TAG, "registerRdsGroupProcessing: Device currently busy in executing another command.");
          return false;
      }
      int re = mRdsData.rdsOn(true);
      if (re != 0)
        return false;
      re = mRdsData.rdsOptions (fmGrpsToProc);
      if (re ==0)
        return true;
      return false;
   }
public boolean registerRdsGroupProcessing ( int fmGrpsToProc ) { if ( mRdsData == null ) return false ; int state = getFMState ( ) ; /* Check current state of FM device */ if ( state == FMState_Turned_Off || state == FMState_Srch_InProg ) { Log . d ( TAG , "registerRdsGroupProcessing: Device currently busy in executing another command." ) ; return false ; } int re = mRdsData . rdsOn ( true ) ; if ( re != 0 ) return false ; re = mRdsData . rdsOptions ( fmGrpsToProc ) ; if ( re == 0 ) return true ; return false ; }
This function enables or disables RDS/RBDS group processing features.
This function enables or disables RDS / RBDS group processing features .
// Enable RDS