History log of /packages/apps/FMRadio/src/com/android/fmradio/FmService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
19ca9f8472208d429eff4e5c736d3084eb712b17 07-Apr-2015 Dhananjay Kumar <dhakumar@codeaurora.org> [FM] Fallback if createAudioPatch fails

CreatePatch returns error if a port is connected to
an output device on a hal version less than 3.0.
Hence on error fallback same path for
HEADSET/Headphone as is implemented for speaker.

Change-Id: I7f165849038cb867ce6799777e92052ced147ef4
/packages/apps/FMRadio/src/com/android/fmradio/FmService.java
3f85241cd6fec88073f7d471d261dd88147f53ec 25-Mar-2015 Benson Huang <benson.huang@mediatek.com> am 06ba26e7: am 3e855750: am 4f33aa31: [FM] Earphone mode incoming call ringtone issue in loudspeaker

* commit '06ba26e7da989bfab8e49fe7fae03efd563472ae':
[FM] Earphone mode incoming call ringtone issue in loudspeaker
4f33aa31c5cc96bfb7abca4ad1c8f6f8c04e46af 18-Mar-2015 Benson Huang <benson.huang@mediatek.com> [FM] Earphone mode incoming call ringtone issue in loudspeaker

Listen to FM -> switch to loudspeaker mode -> now go to music
player to listen to music with earphone connected, Music switches
to loudspeaker mode automatically even when the earphones are connected.

Bug 19729515
from: https://partner-android-review.googlesource.com/#/c/209191/

Change-Id: I17f84a6ceb63783ca7627eab2b8dd6bf59fe151b
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
/packages/apps/FMRadio/src/com/android/fmradio/FmService.java
1df5780e910ddc811b7b49ef6d9bdb303dccf08d 09-Mar-2015 Eric Laurent <elaurent@google.com> renaming of MediaRecorder.AudioSource.FM_TUNER

Update after renaming of MediaRecorder.AudioSource.FM_TUNER to
MediaRecorder.AudioSource.RADIO_TUNER.

Change-Id: I350404e502796bb68533ae26d729dbe8f522319b
/packages/apps/FMRadio/src/com/android/fmradio/FmService.java
44c2adb10bb88f0cecad35787789d0b212a6dda3 28-Jan-2015 Benson Huang <benson.huang@mediatek.com> [FM] There is no sound output after resuming playing when FM is over BT

Launch FM radio and play -> Stop FM -> Turn on BT and connect with BT
earphone with A2DP -> Open FM and resume playing, there is no sound
output after step 4.

Bug 19171819
from: https://partner-android-review.googlesource.com/#/c/199683/

Change-Id: I01d3975387840d9356c6f80d1f411eeb8526f930
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
/packages/apps/FMRadio/src/com/android/fmradio/FmService.java
87171fc8d875e8c32c0cc77913ae06879922a888 30-Dec-2014 Hochi Huang <hochi.huang@mediatek.com> [FM] Fix 18847131 There is no sound output from BT earphone while BT earphone is connected

Review: https://partner-android-review.git.corp.google.com/#/c/192445

Signed-off-by: Hochi Huang <hochi.huang@mediatek.com>

Change-Id: Ic762271f980b61503ae4e1b32118bf34ad40577f
/packages/apps/FMRadio/src/com/android/fmradio/FmService.java
7c38d14648a1b518a1bea44b4488bfe8e5add6e2 05-Jan-2015 Benson Huang <benson.huang@mediatek.com> [FM] There is no sound in speaker while playing FM in speaker mode

Launch FM and play a station -> Plug out headphones
-> Plug in headphones -> Switch to speaker mode, There
is no sound via speaker.

The fix is to let FM sound output via speaker.

from: https://partner-android-review.googlesource.com/#/c/192523/3
Bug 18795162

Change-Id: I16fce6914ea0b3d463c1205708d11265925097e4
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
/packages/apps/FMRadio/src/com/android/fmradio/FmService.java
0dedb6b1c809ebad637021782b3bdd1abc9970be 31-Dec-2014 Nicholas Sauer <nicksauer@google.com> Merge "[FM] "Speaker on/headset" should not be available while BT earphone is connected" into lmp-mr1-dev
2816b93f7207ca62e83dda35716e8ce267e84197 24-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] "Speaker on/headset" should not be available while BT earphone is connected

Launch FM Radio and play -> Turn on BT and connect with
BT earphone -> Enter FM again and check "Speaker on/headset"
, "Speaker on/headset" will be available.

The fix is to also check BT headset is connected or not when
enabling menu item.

Bug 18795153

from: https://partner-android-review.googlesource.com/#/c/192377/2

Change-Id: Ia6d78b85563389f193860820447273a27e76d050
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
/packages/apps/FMRadio/src/com/android/fmradio/FmService.java
5aba12dbabd8631187ff3135d8f1a692bd864b0f 29-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] There is a pop noise when tapping stop button to resume playing

Launch FM and play -> Tap stop button to stop playing
-> Tap stop button to resume playing -> Check the audio
when tapping stop button in step 3, there is a pop noise
when tapping start button to resume playing.

The fix is to check if it needs to ignore first three frames
of audio data from AudioRecord to avoid pop noise.

from: https://partner-android-review.googlesource.com/#/c/192415/2

Bug 18809647

Change-Id: I09ffc058ee3e87296e8d3d98fc2909ec77046e1d
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
/packages/apps/FMRadio/src/com/android/fmradio/FmService.java
3dfd9a996a7d065a95fcee47e698c96163208e2c 22-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] FM will not resume playing after replugging in headphones

Launch FM and play -> Tap more button and select
"Start recording" -> Plug out headphones while
recording -> Plug in headphones and check the
audio -> Tap "Save" button and check the audio
-> Tap play button and check the audio, FM can not
resume playing after step 4(5 and 6).

The fix is to add FmRecordActivity foreground control.

Bug 18794870

https://partner-android-review.git.corp.google.com/#/c/189795/

Change-Id: I565c641413836f34c88e2643afd9972f198177da
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
/packages/apps/FMRadio/src/com/android/fmradio/FmService.java
10f39cd23b5d7e01655c6b0a2a9b3e59271127e6 22-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] Radio text should not display in notification bar after changing channel

Launch FM and play a channel that has radio text ->
Change to other channel that doesn't radio text ->
Press home button and pull down notification bar ->
Check the FM information in notification bar, Radio
text will display in notification bar after changing
channel.

The fix is to update notification when the channel
doesn't have radio text.

https://partner-android-review.git.corp.google.com/#/c/189803/

Bug 18826692

Change-Id: I8746f223acdbf5a316e3b6553f494d1f30bd84f4
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
/packages/apps/FMRadio/src/com/android/fmradio/FmService.java
4b523a3c2a376bef6440eb9504a0d33875bad842 19-Dec-2014 Hochi Huang <hochi.huang@mediatek.com> [FM]Fix Bug 18809496 It will pop a sound of noise when switching FM from earphone mode to speaker mode

https://partner-android-review.git.corp.google.com/#/c/189743/

Signed-off-by: Hochi Huang <hochi.huang@mediatek.com>
Change-Id: Ib78347817a340be22686511f4340acfa186571df
/packages/apps/FMRadio/src/com/android/fmradio/FmService.java
08f39e1dcccf42637cb156b1e12b1874fe1e1cbd 15-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] FM volume will not be changed after stop and resume

Launch FM Radio and play -> Change volume via keyboard from
maximal to minimal/minimal to maximal -> Tap "Stop" button to
stop FM -> Tap "Stop" button to resume FM -> Check the volume
after resuming FM, FM volume will not change to the corresponding
volume.

We use MediaSession.setPlaybackToRemove(VolumeProvider vp) for
audio patch getting volume update event from audio framework.
The initial volume is not right, it needs to keep the same with
stream STREAM_MUSIC.

Bug 18762406

Review: https://partner-android-review.git.corp.google.com/#/c/188807

Signed-off-by: Benson Huang <benson.huang@mediatek.com>

Change-Id: Ibbd82de6cf9e510a0c8e2cb9ded2fc34ca2db16e
/packages/apps/FMRadio/src/com/android/fmradio/FmService.java
7f521982b1b9c471af1c927a3a45901bb2cbd791 16-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] Sometimes FM icon will not appear in the notification bar after searching out stations in the background

Launch FM and play -> Search stations -> Tap "Home"
key and wait for searching out stations -> Repeat
step2~3 several times -> Check the notification bar
every time, sometimes FM icon will not appear in the
notification bar after searching out stations in the background.

The fix is to set mIsScanning false before notifying activity.

https://partner-android-review.git.corp.google.com/#/c/189364/

Bug 18760881

Change-Id: I46ae2e679d40b8200fbf52209ef79afe5bc3dc40
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
/packages/apps/FMRadio/src/com/android/fmradio/FmService.java
f3c76cca686c1eb765e3c204faff44aae7a23e7b 15-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] The radio text will disappear when stopping FM

Launch FM and play a station with radio text ->
Press stop button -> Check the radio text, radio text
disappear when stopping FM.

The fix is not to change radio text when stopping FM.
Do not set RDS DB empty when stopping RDS thread because
we will read it from DB.

https://partner-android-review.git.corp.google.com/#/c/188805/

Bug 18762207

Change-Id: Ib450806e96b28c02f1af02fcd084ede1ea5a056c
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
/packages/apps/FMRadio/src/com/android/fmradio/FmService.java
9dd97ba8b788592899438fd2c7d4ab88bfe3dccd 15-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] Radio text is not updated in notification bar

Launch FM and play a station with program service(PS) and
radio text(RT) -> Use siliab tool to rename the PS and RT
as null string -> Press home button and pull down notification
bar -> Check the FM information in notification bar, radio
text is not updated in notification bar.

The fix is to let radio text been updated in notifcation bar
when radio text is changed.

https://partner-android-review.git.corp.google.com/#/c/188806/

Bug 18762405

Change-Id: I77f4ec5cd9459fabfec63f7e236a7bc96cd79f13
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
/packages/apps/FMRadio/src/com/android/fmradio/FmService.java
6e47fefd026fe63b8d23dea69034e7f5e4c18f5c 11-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] Fix typo of anntenna to antenna

There are many typos of antenna (e.g. ANNTENNA, anntenna).

The CL is to fix the typos.

Bug: 18737759

Review: https://partner-android-review.git.corp.google.com/#/c/188580

Signed-off-by: Benson Huang <benson.huang@mediatek.com>

Change-Id: Ic8454a4b9678d60a734a59af65d6bbefbca1411a
/packages/apps/FMRadio/src/com/android/fmradio/FmService.java
87970e48c151b8b9533889f317dad79499ced1a0 09-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] FM Radio should reduce volume when getting AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK

When using Talkback (a11y app for visually impaired end users)
with the FM Radio app, it can be hard to hear the Talkback audio
feedback as the FM Radio output is mixed in with Talkback.

The fix is to handle this issue with AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK.

Bug 16737172

Change-Id: I836c6a298918829645f153768c0f0fa6afc5429c
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
/packages/apps/FMRadio/src/com/android/fmradio/FmService.java
44ce72c72613263d4f2d026263f3ac53cf0cde8a 03-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] Remove some unnecessary mediatek keywords

There are some unnecessary mediatek keywords in
FmService.java.

The fix is to remove unnecessary mediatek keywords.

https://partner-android-review.git.corp.google.com/#/c/187896/2

Bug: 18590163

Change-Id: I9e846ac80753ecae5e2a0804fa7d090328463cdb
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
/packages/apps/FMRadio/src/com/android/fmradio/FmService.java
a8b6afca0e187c008ba8fdeb670d5f2c13116bed 20-Nov-2014 Benson Huang <benson.huang@mediatek.com> [FM] Move FM Radio sources - Part 4

Move FM Radio sources
From: vendor/mediatek/proprietary/packages/apps/FmRadio/
To: packages/apps/FMRadio

Bug 18057506

https://partner-android-review.googlesource.com/#/c/187247/

Change-Id: Ia6b8b2dfac58a55cffa8d5223ca2ca5a8ca1f9b1
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
/packages/apps/FMRadio/src/com/android/fmradio/FmService.java