blob: 2f6f1e339d59f76d2392c55e64498ddee63d253b [file] [log] [blame]
Venkateshwarlu Domakonda56262fb2013-07-24 19:56:59 +05301package com.caf.fmradio;
2
3import com.caf.fmradio.IFMRadioServiceCallbacks;
4
5interface IFMRadioService
6{
7 boolean fmOn();
8 boolean fmOff();
9 boolean fmRadioReset();
10 boolean isFmOn();
11 boolean isAnalogModeEnabled();
12 boolean isFmRecordingOn();
13 boolean isSpeakerEnabled();
14 boolean fmReconfigure();
15 void registerCallbacks(IFMRadioServiceCallbacks cb);
16 void unregisterCallbacks();
17 boolean mute();
18 boolean routeAudio(int device);
19 boolean unMute();
20 boolean isMuted();
Venkateshwarlu Domakondafa22ae12013-07-27 12:25:16 +053021 void startRecording();
Venkateshwarlu Domakonda56262fb2013-07-24 19:56:59 +053022 void stopRecording();
23 boolean tune(int frequency);
24 boolean seek(boolean up);
25 void enableSpeaker(boolean speakerOn);
26 boolean scan(int pty);
27 boolean seekPI(int piCode);
28 boolean searchStrongStationList(int numStations);
29 int[] getSearchList();
30 boolean cancelSearch();
31 String getProgramService();
32 String getRadioText();
33 int getProgramType();
34 int getProgramID();
35 boolean setLowPowerMode(boolean bLowPower);
36 int getPowerMode();
37 boolean enableAutoAF(boolean bEnable);
38 boolean enableStereo(boolean bEnable);
39 boolean isAntennaAvailable();
40 boolean isWiredHeadsetAvailable();
41 boolean isCallActive();
42 int getRssi();
43 int getIoC();
44 int getMpxDcc();
45 int getIntDet();
46 int getSINR();
47 void setHiLoInj(int inj);
48 void delayedStop(long nDuration, int nType);
49 void cancelDelayedStop (int nType);
50 void requestFocus();
51 boolean setSinrSamplesCnt(int samplesCnt);
52 boolean setSinrTh(int sinr);
53 boolean setIntfDetLowTh(int intfLowTh);
54 boolean setIntfDetHighTh(int intfHighTh);
55 String getExtenRadioText();
Ayaz Ahmada32e3772013-07-31 12:24:29 +053056 int getSinrSamplesCnt();
57 int getSinrTh();
58 int getSearchAlgoType();
59 boolean setSearchAlgoType(int searchType);
60 int getSinrFirstStage();
61 boolean setSinrFirstStage(int sinr);
62 int getRmssiFirstStage();
63 boolean setRmssiFirstStage(int rmssi);
64 int getCFOMeanTh();
65 boolean setCFOMeanTh(int cf0);
66 boolean setAfJmpRmssiTh(int afJmpRmssiTh);
67 boolean setGoodChRmssiTh(int gdChRmssiTh);
68 boolean setAfJmpRmssiSamplesCnt(int afJmpRmssiSmplsCnt);
69 int getAfJmpRmssiTh();
70 int getGoodChRmssiTh();
71 int getAfJmpRmssiSamplesCnt();
Ayaz Ahmad61bedff2013-07-31 13:04:19 +053072 boolean setRxRepeatCount(int count);
Ayaz Ahmad613e5832013-08-01 19:57:19 +053073 long getRecordingStartTime();
Ayaz Ahmad594e34a2013-09-12 17:04:29 +053074 boolean isSleepTimerActive();
Venkateshwarlu Domakonda56262fb2013-07-24 19:56:59 +053075}
76