fm: Catch exception when Frequency format is not correct

FM app pops up unfortunately fm app has stopped because parsing
of invalid frequency throws number format exception.Catch the
exception when frequency entered text is converted to another format

Change-Id: I07cc7fc7ded75c6f2550f7bb2152789c4fb897f9
CRs-Fixed: 535220
fmapp2: Add chinese entries for user defined band

FM app crashes when user selects user defined band in setting and
switch the system language to Chinese.Since there are no entries
corresponding to user defined band in chinese language it throws
out of index exception.Add chinese entries for user defined band

Change-Id: I10b51d2dcfc83f3c33147452b2bea65d4f69ef3a
CRs-Fixed: 535253
FM: Fix the issue recording service gets stopped

- FMRecording service gets stopped during A2DP connection/disconnection
  as Fm service sends stop recording intent.
- Send the recording service stop only during FM off operation.

CRs-Fixed: 529076
Change-Id: I8075bcf400b6f2d0ee803d647bada8f667ef5113
fm: Fix the issue FM app does not display audio mode

FM app does not display stereo or mono audio output mode
after tuning to a station as fm app does not set proper audio
preference mode. Save the audio output preference entered by
user and the set the saved mode.

CRs-Fixed: 525975
Change-Id: I4b71291a731578f217443d27d111ced93dd7ec90
FMRecord: Handle shutdown intent

- Fm recording file is not getting saved,
  if device is shutting down during recording.
- If shutdown happens during recording, save the file
  before closing the application.

Change-Id: I652e0fdc548a9c848147568bfbd1d052112ab792
CRs-Fixed: 524782
Merge "fm: Catch exception when Frequency format is not correct"
Merge "fmapp2: Add chinese entries for user defined band"
Merge "FM: Fix the issue recording service gets stopped"
Merge "fm: Fix the issue FM app does not display audio mode"
Merge "FMRecord: Handle shutdown intent"
Merge commit 'b0880e7472611a74c9f5df1a9e8176d2b76f984c' into 123

Change-Id: I30651324808cd3d16eac0ee6fea60d731118e272
Merge "Merge commit 'b0880e7472611a74c9f5df1a9e8176d2b76f984c' into 123"
fm: fmapp2: Fix outofmemory issue during orientation change

FM app crashes after continuous device orientation change
Remove all static reference to activity componnent to allow
garbage collector to remove previous activities

CRs-Fixed: 525905
Change-Id: I1e4cd2c2689ebaaf0a361eee651d8e5786909896
FM: Check the headset status before turning ON FM.

- Without headset, FM is turning ON for AVRCP play command.
- Check the headset status before initiating FM ON.

Change-Id: Ia7c60e66ec60082dc50d2123f293d06acb4db36e
CRs-Fixed: 535441
Merge "fm: fmapp2: Fix outofmemory issue during orientation change"
FM: Turn off FM after audio focus loss

- Fm is still running in the back ground when Music player is running.
- Make the FM off on receiving audio focus loss.

Change-Id: I565574a536fca27157c534ee50c2a05fe8488ed8
CRs-Fixed: 536603
FM: Fix default band is incorrect when language is chinese

- The default regional band shows north America not Chinese when reset.
- If locale is China, set the default regional band to Chinese.

Change-Id: I0f152c88df8a7748b95c4b0d0ea63a44496d6f6a
CRs-Fixed: 496817
FM: Request Audio focus during FM turning ON only

- FM requests for audio focus even though FM is in OFF state.
- Requesting Audio focus only during FM turning ON.

Change-Id: I86313a5094c56c5da90c10e440a996824ab8b4a5
CRs-Fixed: 530303
Merge "FM: Request Audio focus during FM turning ON only"
Merge "FM: Turn off FM after audio focus loss"