FM: Add support to get/set AF rssi sample count for Silabs FM.

Add support to get/set AF rssi sample count from RF Stats
application for Silabs FM solution.

CRs-Fixed: 732776
Change-Id: I43498166afcc84f7f63f2d08b79f25bb86c25dfc
diff --git a/fmapp2/res/values/arrays.xml b/fmapp2/res/values/arrays.xml
index a1216f4..c505ec0 100644
--- a/fmapp2/res/values/arrays.xml
+++ b/fmapp2/res/values/arrays.xml
@@ -375,6 +375,8 @@
       <item> Get AFJumpRssi Threshold</item>
       <item> Set RDS FIFO count</item>
       <item> Get RDS FIFO count</item>
+      <item> Set AfJmpRssi Samples count</item>
+      <item> Get AfJmpRssi Samples count</item>
       <item> RF Statistics</item>
   </string-array>
 
diff --git a/fmapp2/src/com/caf/fmradio/FMStats.java b/fmapp2/src/com/caf/fmradio/FMStats.java
index 6347096..1c20c7a 100644
--- a/fmapp2/src/com/caf/fmradio/FMStats.java
+++ b/fmapp2/src/com/caf/fmradio/FMStats.java
@@ -1776,6 +1776,56 @@
                    }
                    break;
             case 8:
+                   if (txtbox1 != null) {
+                       txtbox1.setText(R.string.type_rd);
+                       txtbox1.setVisibility(View.VISIBLE);
+                   }
+                   if (tv1 != null) {
+                       tv1.setText(R.string.enter_AfJmpRmssiSmplsCnt);
+                       tv1.setVisibility(View.VISIBLE);
+                   }
+                   if(button1 != null) {
+                       button1.setVisibility(View.INVISIBLE);
+                   }
+                   if(button2 != null) {
+                      button2.setVisibility(View.INVISIBLE);
+                   }
+                   if (SetButton != null) {
+                       SetButton.setText(R.string.set_AfJmpRmssiSmplsCnt);
+                       SetButton.setVisibility(View.VISIBLE);
+                       SetButton.setOnClickListener(mOnSetAfJmpRmssiSmplsCntListener);
+                   }
+                   break;
+            case 9:
+                   if (txtbox1 != null) {
+                       txtbox1.setVisibility(View.INVISIBLE);
+                   }
+                   if (tv1 != null) {
+                       tv1.setText("");
+                       tv1.setVisibility(View.VISIBLE);
+                   }
+                   if(button1 != null) {
+                      button1.setVisibility(View.INVISIBLE);
+                   }
+                   if(button2 != null) {
+                      button2.setVisibility(View.INVISIBLE);
+                   }
+                   if (SetButton != null) {
+                       SetButton.setVisibility(View.INVISIBLE);
+                   }
+                   try {
+                        if (mService != null) {
+                            ret = mService.getAfJmpRmssiSamplesCnt();
+                            Log.d(LOGTAG, "Get AfJmpRmssiSamples count: " + ret);
+                            if ((ret >= MIN_AF_JMP_RMSSI_SAMPLES) &&
+                                (ret <= MAX_AF_JMP_RMSSI_SAMPLES))
+                                 tv1.setText(" " + String.valueOf(ret));
+                         }
+                   } catch (RemoteException e) {
+
+                   }
+                   break;
+            case 10:
                    tLayout.removeAllViewsInLayout();
                    mNewRowIds = NEW_ROW_ID;
                    tLayout.setVisibility(View.VISIBLE);