Home | History | Annotate | Download | only in fm
      1 /*
      2  *
      3  * Copyright 2001-2011 Texas Instruments, Inc. - http://www.ti.com/
      4  *
      5  * Licensed under the Apache License, Version 2.0 (the "License");
      6  * you may not use this file except in compliance with the License.
      7  * You may obtain a copy of the License at
      8  *
      9  *    http://www.apache.org/licenses/LICENSE-2.0
     10  *
     11  * Unless required by applicable law or agreed to in writing, software
     12  * distributed under the License is distributed on an "AS IS" BASIS,
     13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  * See the License for the specific language governing permissions and
     15  * limitations under the License.
     16  */
     17 
     18 package com.ti.fm;
     19 
     20 import android.annotation.SdkConstant;
     21 import android.annotation.SdkConstant.SdkConstantType;
     22 
     23 /**
     24  * Manages the FM Reception
     25  *
     26  * @hide
     27  */
     28 public interface FmRadioIntent {
     29 
     30     public static final String VOLUME = "fm.rx.intent.VOLUME";
     31 
     32     public static final String MODE_MONO_STEREO = "fm.rx.intent.MODE_MONO_STEREO";
     33 
     34     public static final String TUNED_FREQUENCY = "fm.rx.intent.TUNED_FREQUENCY";
     35 
     36     public static final String SEEK_FREQUENCY = "fm.rx.intent.SEEK_FREQUENCY";
     37 
     38     public static final String RDS = "fm.rx.intent.RDS";
     39 
     40     public static final String PS = "fm.rx.intent.PS";
     41 
     42     public static final String PI = "fm.rx.intent.PI";
     43 
     44     public static final String REPERTOIRE = "fm.rx.intent.REPERTOIRE";
     45 
     46     public static final String MUTE = "fm.rx.intent.MUTE";
     47 
     48     public static final String STATUS = "fm.rx.intent.STATUS";
     49 
     50     public static final String MASTER_VOLUME = "fm.rx.intent.MASTER_VOLUME";
     51 
     52     public static final String CHANNEL_SPACE = "fm.rx.intent.CHANNEL_SPACE";
     53 
     54     public static final String SCAN_LIST = "fm.rx.intent.SCAN_LIST";
     55 
     56     public static final String SCAN_LIST_COUNT = "fm.rx.intent.SCAN_LIST_COUNT";
     57 
     58     public static final String RADIOTEXT_CONVERTED = "fm.rx.intent.RADIOTEXT_CONVERTED_VALUE";
     59 
     60     public static final String PS_CONVERTED = "fm.rx.intent.PS_CONVERTED_VALUE";
     61 
     62     public static final String GET_BAND = "fm.rx.intent.GET_BAND";
     63 
     64     public static final String GET_VOLUME = "fm.rx.intent.GET_VOLUME";
     65 
     66     public static final String GET_MODE = "fm.rx.intent.GET_MODE";
     67 
     68     public static final String GET_MUTE_MODE = "fm.rx.intent.GET_MUTE_MODE";
     69 
     70     public static final String GET_RF_MUTE_MODE = "fm.rx.intent.GET_RF_MUTE_MODE";
     71 
     72     public static final String GET_RSSI_THRESHHOLD = "fm.rx.intent.GET_RSSI_THRESHHOLD";
     73 
     74     public static final String GET_DEEMPHASIS_FILTER = "fm.rx.intent.GET_DEEMPHASIS_FILTER";
     75 
     76     public static final String GET_RSSI = "fm.rx.intent.GET_RSSI";
     77 
     78     public static final String GET_RDS_SYSTEM = "fm.rx.intent.GET_RDS_SYSTEM";
     79 
     80     public static final String GET_RDS_GROUPMASK = "fm.rx.intent.GET_RDS_GROUPMASK";
     81 
     82     public static final String GET_RDS_AF_SWITCHMODE = "fm.rx.intent.GET_RDS_AF_SWITCHMODE";
     83 
     84     public static final String GET_CHANNEL_SPACE = "fm.rx.intent.GET_CHANNEL_SPACE";
     85 
     86     public static final String LAST_SCAN_CHANNEL = "fm.rx.intent.LAST_SCAN_CHANNEL";
     87 
     88     public static final String SCAN_PROGRESS = "fm.rx.intent.SCAN_PROGRESS";
     89 
     90     /*********** fM tx ******************/
     91     public static final String TX_MODE = "fm.tx.intent.TX_MODE";
     92 
     93     public static final String MUSIC_SPEECH_FLAG = "fm.tx.intent.MUSIC_SPEECH_FLAG";
     94 
     95     public static final String MONO_STEREO = "fm.tx.intent.MONO_STEREO";
     96 
     97     public static final String DISPLAY_MODE = "fm.tx.intent.DISPLAY_MODE";
     98 
     99     public static final String TX_REPERTOIRE = "fm.tx.intent.REPERTOIRE";
    100 
    101     public static final String PS_MSG = "fm.tx.intent.PSMSG";
    102 
    103     public static final String RDS_GRP_MASK = "fm.tx.intent.RDS_GRP_MASK";
    104 
    105     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    106     public static final String FM_ENABLED_ACTION = "fm.rx.intent.action.FM_ENABLED";
    107 
    108     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    109     public static final String FM_DISABLED_ACTION = "fm.rx.intent.action.FM_DISABLED";
    110 
    111     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    112     public static final String GET_FREQUENCY_ACTION = "fm.rx.intent.action.GET_FREQUENCY";
    113 
    114     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    115     public static final String SEEK_ACTION = "fm.rx.intent.action.SEEK_ACTION";
    116 
    117     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    118     public static final String SET_MODE_MONO_STEREO_ACTION = "fm.rx.intent.action.SET_MODE_MONOSTEREO";
    119 
    120     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    121     public static final String VOLUME_CHANGED_ACTION = "fm.rx.intent.action.VOLUME_CHANGED_ACTION";
    122 
    123     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    124     public static final String RDS_TEXT_CHANGED_ACTION = "fm.rx.intent.action.RDS_TEXT_CHANGED";
    125 
    126     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    127     public static final String PS_CHANGED_ACTION = "fm.rx.intent.action.PS_CHANGED";
    128 
    129     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    130     public static final String AUDIO_PATH_CHANGED_ACTION = "fm.rx.intent.action.AUDIO_PATH_CHANGED_ACTION";
    131 
    132     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    133     public static final String TUNE_COMPLETE_ACTION = "fm.rx.intent.action.TUNE_COMPLETE_ACTION";
    134 
    135     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    136     public static final String MUTE_CHANGE_ACTION = "fm.rx.intent.action.MUTE_CHANGE_ACTION";
    137 
    138     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    139     public static final String SEEK_STOP_ACTION = "fm.rx.intent.action.SEEK_STOP_ACTION";
    140 
    141     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    142     public static final String BAND_CHANGE_ACTION = "fm.rx.intent.action.BAND_CHANGE_ACTION";
    143 
    144     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    145     public static final String GET_CHANNEL_SPACE_ACTION = "fm.rx.intent.action.GET_CHANNEL_SPACE_ACTION";
    146 
    147     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    148     public static final String ENABLE_RDS_ACTION = "fm.rx.intent.action.ENABLE_RDS_ACTION";
    149 
    150     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    151     public static final String DISABLE_RDS_ACTION = "fm.rx.intent.action.DISABLE_RDS_ACTION";
    152 
    153     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    154     public static final String SET_RDS_AF_ACTION = "fm.rx.intent.action.SET_RDS_AF_ACTION";
    155 
    156     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    157     public static final String SET_RDS_SYSTEM_ACTION = "fm.rx.intent.action.SET_RDS_SYSTEM_ACTION";
    158 
    159     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    160     public static final String SET_DEEMP_FILTER_ACTION = "fm.rx.intent.action.SET_DEEMP_FILTER_ACTION";
    161 
    162     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    163     public static final String DISPLAY_MODE_MONO_STEREO_ACTION = "fm.rx.intent.action.DISPLAY_MODE_MONO_STEREO_ACTION";
    164 
    165     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    166     public static final String SET_RSSI_THRESHHOLD_ACTION = "fm.rx.intent.action.SET_RSSI_THRESHHOLD_ACTION";
    167 
    168     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    169     public static final String SET_RF_DEPENDENT_MUTE_ACTION = "fm.rx.intent.action.SET_RF_DEPENDENT_MUTE_ACTION";
    170 
    171     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    172     public static final String PI_CODE_CHANGED_ACTION = "fm.rx.intent.action.PI_CODE_CHANGED_ACTION";
    173 
    174     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    175     public static final String MASTER_VOLUME_CHANGED_ACTION = "fm.rx.intent.action.MASTER_VOLUME_CHANGED_ACTION";
    176 
    177     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    178     public static final String GET_BAND_ACTION = "fm.rx.intent.action.GET_BAND_ACTION";
    179 
    180     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    181     public static final String GET_MONO_STEREO_MODE_ACTION = "fm.rx.intent.action.GET_MONO_STEREO_MODE_ACTION";
    182 
    183     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    184     public static final String GET_MUTE_MODE_ACTION = "fm.rx.intent.action.GET_MUTE_MODE_ACTION";
    185 
    186     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    187     public static final String GET_RF_MUTE_MODE_ACTION = "fm.rx.intent.action.GET_RF_MUTE_MODE_ACTION";
    188 
    189     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    190     public static final String GET_RSSI_THRESHHOLD_ACTION = "fm.rx.intent.action.GET_RSSI_THRESHHOLD_ACTION";
    191 
    192     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    193     public static final String GET_DEEMPHASIS_FILTER_ACTION = "fm.rx.intent.action.GET_DEEMPHASIS_FILTER_ACTION";
    194 
    195     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    196     public static final String GET_RSSI_ACTION = "fm.rx.intent.action.GET_RSSI_ACTION";
    197 
    198     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    199     public static final String GET_VOLUME_ACTION = "fm.rx.intent.action.GET_VOLUME_ACTION";
    200 
    201     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    202     public static final String GET_RDS_SYSTEM_ACTION = "fm.rx.intent.action.GET_RDS_SYSTEM_ACTION";
    203 
    204     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    205     public static final String GET_RDS_GROUPMASK_ACTION = "fm.rx.intent.action.GET_RDS_GROUPMASK_ACTION";
    206 
    207     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    208     public static final String GET_RDS_AF_SWITCH_MODE_ACTION = "fm.rx.intent.action.GET_RDS_AF_SWITCH_MODE_ACTION";
    209 
    210     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    211     public static final String CHANNEL_SPACING_CHANGED_ACTION = "fm.rx.intent.action.CHANNEL_SPACING_CHANGED_ACTION";
    212 
    213     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    214     public static final String COMPLETE_SCAN_DONE_ACTION = "fm.rx.intent.action.COMPLETE_SCAN_DONE_ACTION";
    215 
    216     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    217     public static final String COMPLETE_SCAN_STOP_ACTION = "fm.rx.intent.action.COMPLETE_SCAN_STOP_ACTION";
    218 
    219     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    220     public static final String SET_RDS_GROUP_MASK_ACTION = "fm.rx.intent.action.SET_RDS_GROUP_MASK_ACTION";
    221 
    222     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    223     public static final String COMPLETE_SCAN_PROGRESS_ACTION = "fm.rx.intent.action.COMPLETE_SCAN_PROGRESS_ACTION";
    224 
    225     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    226     public static final String SET_CHANNEL_SPACE_ACTION = "fm.rx.intent.action.SET_CHANNEL_SPACE_ACTION";
    227 
    228     /*** Fm TX Intents ***/
    229     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    230     public static final String FM_TX_ENABLED_ACTION = "fm.tx.intent.action.FM_TX_ENABLED";
    231 
    232     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    233     public static final String FM_TX_TUNE_ACTION = "fm.tx.intent.action.FM_TX_TUNE_ACTION";
    234 
    235     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    236     public static final String FM_TX_DISABLED_ACTION = "fm.tx.intent.action.FM_TX_DISABLED";
    237 
    238     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    239     public static final String FM_TX_START_TRANSMISSION_ACTION = "fm.tx.intent.action.FM_TX_START_TRANSMISSION_ACTION";
    240 
    241     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    242     public static final String FM_TX_STOP_TRANSMISSION_ACTION = "fm.tx.intent.action.FM_TX_STOP_TRANSMISSION_ACTION";
    243 
    244     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    245     public static final String FM_TX_DESTROY_ACTION = "fm.tx.intent.action.FM_TX_DESTROY_ACTION";
    246 
    247     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    248     public static final String FM_TX_ENABLE_RSD_ACTION = "fm.tx.intent.action.FM_TX_ENABLE_RSD_ACTION";
    249 
    250     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    251     public static final String FM_TX_DISABLE_RSD_ACTION = "fm.tx.intent.action.FM_TX_DISABLE_RSD_ACTION";
    252 
    253     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    254     public static final String FM_TX_SET_RDS_TRAFFIC_CODES_ACTION = "fm.tx.intent.action.FM_TX_SET_RDS_TRAFFIC_CODES";
    255 
    256     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    257     public static final String FM_TX_SET_RDS_TEXT_PS_MSG_ACTION = "fm.tx.intent.action.FM_TX_SET_RDS_TEXT_PS_MSG_ACTION";
    258 
    259     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    260     public static final String FM_TX_SET_RDS_TEXT_RT_MSG_ACTION = "fm.tx.intent.action.FM_TX_SET_RDS_TEXT_RT_MSG_ACTION";
    261 
    262     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    263     public static final String FM_TX_WRITE_RDS_RAW_DATA_ACTION = "fm.tx.intent.action.FM_TX_WRITE_RDS_RAW_DATA_ACTION";
    264 
    265     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    266     public static final String FM_TX_READ_RDS_RAW_DATA_ACTION = "fm.tx.intent.action.FM_TX_READ_RDS_RAW_DATA_ACTION";
    267 
    268     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    269     public static final String FM_TX_SET_MONO_STEREO_MODE_ACTION = "fm.tx.intent.action.FM_TX_SET_MONO_STEREO_MODE_ACTION";
    270 
    271     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    272     public static final String FM_TX_SET_POWER_LEVEL_ACTION = "fm.tx.intent.action.FM_TX_SET_POWER_LEVEL_ACTION";
    273 
    274     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    275     public static final String FM_TX_SET_MUTE_MODE_ACTION = "fm.tx.intent.action.FM_TX_SET_MUTE_MODE_ACTION";
    276 
    277     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    278     public static final String FM_TX_SET_RDS_AF_CODE_ACTION = "fm.tx.intent.action.FM_TX_SET_RDS_AF_CODE_ACTION";
    279 
    280     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    281     public static final String FM_TX_RDS_PI_CODE_ACTION = "fm.tx.intent.action.FM_TX_RDS_PI_CODE_ACTION";
    282 
    283     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    284     public static final String FM_TX_RDS_PTY_CODE_ACTION = "fm.tx.intent.action.FM_TX_RDS_PTY_CODE_ACTION";
    285 
    286     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    287     public static final String FM_TX_SET_RDS_TEXT_REPERTOIRE_ACTION = "fm.tx.intent.action.FM_TX_SET_RDS_TEXT_REPERTOIRE_ACTION";
    288 
    289     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    290     public static final String FM_TX_PS_DISPLAY_MODE_ACTION = "fm.tx.intent.action.FM_TX_PS_DISPLAY_MODE_ACTION";
    291 
    292     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    293     public static final String FM_TX_SET_RDS_PS_DISPLAY_SPEED_ACTION = "fm.tx.intent.action.FM_TX_SET_RDS_PS_DISPLAY_SPEED_ACTION";
    294 
    295     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    296     public static final String FM_TX_SET_RDS_MUSIC_SPEECH_FLAG_ACTION = "fm.tx.intent.action.FM_TX_SET_RDS_MUSIC_SPEECH_FLAG_ACTION";
    297 
    298     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    299     public static final String FM_TX_SET_TRANSMISSION_MODE_ACTION = "fm.tx.intent.action.FM_TX_SET_TRANSMISSION_MODE_ACTION";
    300 
    301     @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    302     public static final String FM_TX_SET_RDS_TRANSMISSION_GROUPMASK_ACTION = "fm.tx.intent.action.FM_TX_SET_RDS_TRANSMISSION_GROUPMASK_ACTION";
    303 
    304 }
    305