Commit Graph

6 Commits

Author SHA1 Message Date
Adrian DC
da8eeb2577 libfmjni: Resolve fread assignment to condition cast
* libfm_jni/ConfFileParser.cpp:480:21:
    error: using the result of an assignment
    as a condition without parentheses

Change-Id: Ib9526734ec96e029f89801ec9b008296a7e2c0fc
2019-10-03 19:12:25 +03:00
Adrian DC
38e4935acb libfmjni: Remove unused variables
* libfm_jni/FmPerformanceParams.cpp:
    443:16: error: unused variable 'sinr'

 * libfm_jni/ConfigFmThs.cpp:
    425:17: error: unused variable 'ret'
    433:9: error: unused variable 'value'
    566:9: error: unused variable 'index'

 * libfm_jni/ConfFileParser.cpp:
    328:16: error: unused variable 'num_of_keys'
    536:9: error: unused variable 'grp_name'
    537:16: error: unused variable 'len'
    732:13: error: unused function 'key_exist'

 * libfm_jni/FmRadioController.cpp:
    651:9: error: unused variable 'stationList

 * libfm_jni/FmPerformanceParams.cpp:
    442:16: error: unused variable 'sinr'

Change-Id: I9c4839d1bc8b64c536b8a7db7c2094001f2562ba
2019-10-03 19:12:25 +03:00
Adrian DC
b3259b0c31 libfmjni: Fix strchr implicit char* typecast in ConfFileParser
Change-Id: I7bf2c6e8001feac76c462215de7d3eae7c2a7887
2019-10-03 19:12:25 +03:00
AdrianDC
589a1dd62c libfmjni: Improve and fix FM jni logs
* Log cur_fm_state as Debug instead of Error
 * Log successful and state logs as Debug and Info instead of Error
 * Log step by step firmware download as Info and Debug
 * Fix logging of the is_rds_support
 * Add __func__ name for the cur_fm_state logs
 * Add a cur_fm_state log for Stop_Scan_Seek
 * Add missing LOG_TAG for all sources using ALOG*
 * Avoid double log on error in IsRdsSupport
 * Fix typos, relevant warnings and cleanup related sources

Change-Id: I2abe77c6f00c02ef106b569bef5db6b366e76df1
2019-10-03 19:12:25 +03:00
Smriti Gupta
735e13a1c1 iFM: Removing Memory leaks from the HAL Test Code
Test code had some of the allocs not freed up, added code
to free up the leaks.

Change-Id: I20a61e76f006334731378c01800cf6ad14a69e49
CRs-Fixed: 2159776
2019-10-03 19:06:05 +03:00
Venkateshwarlu Domakonda
6ff7436b7e libfmjni: Implement hal layer
Implement HAL layer that can be plugged in
with Android FM APP to get fm functionalities.

Change-Id: Id16d37a320fdbacb505ba7ecc431622db17bd4d7
2015-04-09 03:27:16 -07:00