summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2014-10-19 00:31:27 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2014-10-19 00:31:27 -0700
commit3760920d4d76791e86649aa440268f051debeb1e (patch)
tree40eed04dde7084e2440937d64e873552efacc0af
parente639d1f14e3e7bcd69f29a2d904a8bbedc4b3a56 (diff)
parent350d10f89fab998638ef74d9257c20a17c667ba5 (diff)
downloadandroid_hardware_qcom_fm-3760920d4d76791e86649aa440268f051debeb1e.tar.gz
android_hardware_qcom_fm-3760920d4d76791e86649aa440268f051debeb1e.tar.bz2
android_hardware_qcom_fm-3760920d4d76791e86649aa440268f051debeb1e.zip
Merge "FM: Add support to get/set AF rssi sample count for Silabs FM."
-rw-r--r--fmapp2/res/values/arrays.xml2
-rw-r--r--fmapp2/src/com/caf/fmradio/FMStats.java50
2 files changed, 52 insertions, 0 deletions
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 @@ public class FMStats extends Activity {
}
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);