• Home
  • History
  • Annotate
  • only in /packages/apps/FMRadio/src/com/android/fmradio/
History log of /packages/apps/FMRadio/src/com/android/fmradio/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
be90b9dd03b98eacd3801018cc23555b9eeeef98 12-May-2015 P.Y. Laligand <pylaligand@google.com> DO NOT MERGE - Fix build by updating access to display refresh rate.

Change-Id: Ie0f49226586c9cdecd9fdcf660d60685d48c8c13
(cherry picked from commit 14518fe8324965a73cf9e22ef494fce0915f276b)
iews/FmScroller.java
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
mService.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>
mService.java
mUtils.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
mRecorder.java
mService.java
c7cf501f75bcf8a9c806c501ef8f1a39d796d9f9 10-Feb-2015 Tony Kuo <tony.kuo@mediatek.com> Radio and Dual SIM - RU - Decimal comma required

[Modify]
Use a decimal comma (,) instead of a decimal period(.) when
showing frequency throughout the application.

from: https://partner-android-review.googlesource.com/#/c/201685/
Bug:19206785
Change-Id: Ib98725442186dad65b0acd93ec61798024b8413a
Signed-off-by: Tony Kuo <tony.kuo@mediatek.com>
mUtils.java
62d4ffe194ba837ea727e7dbe8ccf489ed8cb5c1 04-Feb-2015 Benson Huang <benson.huang@mediatek.com> [FM] Saved recording option is disabled when FM radio is paused

Launch FM radio app with headset connected -> Play any channel
-> Tap on pause button -> Observe saved recordings option in options menu,
saved recording option is disabled.

Bug 19203981
from: https://partner-android-review.googlesource.com/#/c/200585/

Change-Id: Ia0ce4fe0efbdf3e4d64ffb6b573d27f068c8d260
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
mMainActivity.java
5323940b639b0a20726775488578b8882e51065c 29-Jan-2015 Nicholas Sauer <nicksauer@google.com> Merge "[FM] There is no sound output after resuming playing when FM is over BT" into lmp-mr1-dev
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>
mService.java
46104d8a8f87ee400a9b1a917b3d7512d8302dfb 21-Jan-2015 Benson Huang <benson.huang@mediatek.com> [FM] Only space character should not be allowed while renaming a FM channel or a recorded audio file

Launch FM app and plug in a wired headset -> Star mark a channel
to add it favorite -> Go to favorite, tap on the menu (3 dots) and
tap on rename to rename the channel -> Enter only spaces and save
the channel -> Record an audio and on the dialogue, rename it with
only spaces and tap on save, the channel names and audio files are
saved without any error message. While playing this channel, FM
notification shows no name because of the spaces

The fix is to add some condition check for showing/hiding save button.

Bug 19087268
from: https://partner-android-review.googlesource.com/#/c/198815/

Change-Id: I2ac0b81d2311eace3d5e28baca31d59d3095c8d1
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
ialogs/FmFavoriteEditDialog.java
31fe68d90c5c218aca1969d61052db24d8f2362c 19-Jan-2015 Benson Huang <benson.huang@mediatek.com> [FM] Recording name is saved abnormally after discarding it in FM

Launch FM and play a channel without a name -> Start recording
-> Stop recording and discard it -> Reboot the device -> Check
the recording name in Play Music, FM recording named as "MMddyyyy_hhmmss"
displays in Play Music.

The fix is to delete FM recording file when discarding.

Bug 19059404
from: https://partner-android-review.googlesource.com/#/c/193717/

Change-Id: I37fa949c108af175131fd08d0bbac66ef1cf4daf
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
mRecordActivity.java
ialogs/FmSaveDialog.java
e35b6c7d6123f27122bbf518218b85a3d4dabc0b 16-Jan-2015 Nicholas Sauer <nicksauer@google.com> Merge "[FM] "Can't play the track you requested" pops up after tapping "LISTEN"" into lmp-mr1-dev
3cf7f5aa7a961223a9e82878f2c2953339431dcb 14-Jan-2015 Benson Huang <benson.huang@mediatek.com> [FM] "Can't play the track you requested" pops up after tapping "LISTEN"

Select "Start Recording" in options menu -> Wait for SD storage
to be nearly fully occupied -> "Insufficient storage" toast
message displays and "Save recording" dialog pops up ->Tap "Save"
to save the recording -> Tap "LISTEN" to playback the recording,
"Can't play the track you requested" pops up.

The fix is to also check storage free space when handling message
MSG_UPDATE_NOTIFICATION.

bug: 19007352
from: https://partner-android-review.googlesource.com/#/c/193407/

Change-Id: I63d7e22e699cb3ddb90e32a785d5c264258b6a06
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
mRecordActivity.java
ed3ee3c1c445ddf5047589dbccc30231e09afbef 15-Jan-2015 Leo Wang <leozwang@google.com> Merge " [FM] Fix 18847131 There is no sound output from BT earphone while BT earphone is connected" into lmp-mr1-dev
651d5cdf0b09c66492c0d7695cacecf6a8a4a85a 15-Jan-2015 Leo Wang <leozwang@google.com> Merge " [FM] FM icon does not display in the notification bar when FM is playing" into lmp-mr1-dev
8e9f383e287134888e2905574009cee9ef57c94f 14-Jan-2015 Benson Huang <benson.huang@mediatek.com> [FM] "Getting stations" does not show when launching FM for the first time

Launch FM and play a channel for the first time -> Tap Star icon
to add the channel to Favorites and then tap Star icon to remove
it -> Go to Radio Stations and check the view, "Getting stations"
does not show, white view displays and then search channel
successfully.

Bug 19000983

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

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

Change-Id: I7b347a3430d3813f98241f370d32a56095d24d2b
mFavoriteActivity.java
59668c1835c800cfb85b30f4fc81bdf4966400d3 14-Jan-2015 Benson Huang <benson.huang@mediatek.com> [FM] FM icon does not display in the notification bar when FM is playing

FM powered up -> Select "Start Recording" in options menu
-> Tap "STOP RECORDING" and "save recording" dialog pops up
-> Tap Home key and check FM icon in the status bar,
FM icon will not display in the status bar.

The fix is to update playing notification when the saving
dialog is shown.

Bug 19001738

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

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

Change-Id: I2edd7c548c736cf58b1e8ae13da3c0b4f62ea031
mRecordActivity.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
mService.java
0b5a131445a961e600828555632a5722a262df9b 06-Jan-2015 Nicholas Sauer <nicksauer@google.com> Merge "[FM] There is no sound in speaker while playing FM in speaker mode" into lmp-mr1-dev
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>
mService.java
c393989f05c81d53cd3773af7ba14a7c56dd2b25 05-Jan-2015 Benson Huang <benson.huang@mediatek.com> [FM] The channel name will not disappear on the main screen after deleting a channel from the Favorites

Enter FM radio -> Tap star icon to add the channel in
the Favorites -> Rename the channel -> Tap star icon
to delete a channel from the Favorites -> Check the name
on the main screen, the channel name will not disappear.

The CL is to fix the issue that gjalan reproduced.

Bug 18847141

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

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

Change-Id: Ib5339c1e956981bdbcff74767b5c422d2e4fcf8b
mMainActivity.java
51530a2842db5611cf72c94c25d8951e91f25d08 01-Jan-2015 Nicholas Sauer <nicksauer@google.com> Merge "[FM] FM recording time will display incorrectly when recording time is beyond 60 minutes" into lmp-mr1-dev
663032eb4c7973ca46e706822ee9c426100f0fc2 01-Jan-2015 Nicholas Sauer <nicksauer@google.com> Merge "[FM] If recording to fill up SD card, "insufficient storage" warning will not show up on the save recording dialog" into lmp-mr1-dev
ec7335ddade6439271656665b3152868f884dfcb 24-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] FM recording time will display incorrectly when recording time is beyond 60 minutes

Launch FM from Launcher and power up FM -> Select "Start
Recording" in options menu, check the Recording Timer Text
("00m00s" is OK) -> Wait for FM recording more than 60 minutes
(e.g. 61 minutes 20 seconds), click power key to unlock screen
and check the recording timer text in FM record, the recording
timer text will be "00m20s".

The fix is to follow SoundRecorder's way to show recording timer.

from: https://partner-android-review.googlesource.com/#/c/192375/1

Bug 18842895

Change-Id: Iefb385ab855e2e940d23632502c35bc3e27ad8a5
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
mRecordActivity.java
c185ca2c36fbfd9a78ec4dd662dd1f54c1eac8a9 23-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] If recording to fill up SD card, "insufficient storage" warning will not show up on the save recording dialog

Select "Start Recording" in options menu -> Wait for
SD storage to be nearly fully occupied, The save recording
dialog will show up, but without "insufficient storage"
warning on dialog UI.

The fix is to show "insufficient storage" toast in this
situation.

Bug 18832487
from: https://partner-android-review.googlesource.com/#/c/192347/

Change-Id: I117c61d503349745d65fb5595c935c90c0b29e31
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
mRecordActivity.java
fc770ea37d2ddc3b1dfe8e39b267fc82019311f0 23-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] FM will not change to FM main view after re-plugging in the earphone

Launch FM and play -> Plug out headphone quickly ->
Plug in headphone quickly -> Repeat step 2~3 several
times -> Check the FM screen, FM will not change to FM
main view after re-plugging in the earphone.

The fix is to let FM change to main activity after re-plugging
in the earphone.

Bug 18836352
from: https://partner-android-review.googlesource.com/#/c/192346/

Change-Id: Ib924356e83f794560b91e47b5b35f2087eb876d7
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
mMainActivity.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
13d8588359fa1d89b8a0437c18aa0bd099513458 31-Dec-2014 Nicholas Sauer <nicksauer@google.com> Merge "[FM] PS will disappear after refreshing stations if the station is not added to Favorites" into lmp-mr1-dev
b1bbbc13805bce582c9beb615ed9a46250b96e76 31-Dec-2014 Nicholas Sauer <nicksauer@google.com> Merge "[FM] The channel name will not disappear on the main screen after deleting a channel from the Favorites" into lmp-mr1-dev
0842b6d0acefeec545dc8274b937384545c4cfd1 31-Dec-2014 Nicholas Sauer <nicksauer@google.com> Merge "[FM] FM recording can not be stopped in notification bar" into lmp-mr1-dev
e08e77f19af2119e26934958a33b1d0fe8ee38e2 31-Dec-2014 Nicholas Sauer <nicksauer@google.com> Merge "[FM] FM recording name which contains "%" can not be played in FM" 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>
mMainActivity.java
mService.java
c520ec8077fa89fa4eff9f4cb40cd5bca3e234d4 24-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] PS will disappear after refreshing stations if the station is not added to Favorites

Launch FM and play a station with PS(the station is not
added to Favorites) -> Refresh channels -> After searching
out the channels and tap Back key -> Check the PS information,
PS information will disappear.

The fix is to set correct station name.

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

Bug 18842996

Change-Id: Ib691d3d1472fe032f528987173d3b186ee17bf06
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
mMainActivity.java
135af1d44a6ad4175cd72be7d7545c569b6cf81b 25-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] The channel name will not disappear on the main screen after deleting a channel from the Favorites

Enter FM radio -> Tap star icon to add the channel in
the Favorites -> Rename the channel -> Tap star icon
to delete a channel from the Favorites -> Check the name
on the main screen, the channel name will not disappear.

The CL is to fix this issue.

Bug 18847141

from: https://partner-android-review.googlesource.com/#/c/192388/1

Change-Id: Ia8331caa460f3bf0036c3470705e37d8aaf14e5a
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
mMainActivity.java
mStation.java
830324312ff7654d8818dd9da755e867dfb0cde1 25-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] FM recording can not be stopped in notification bar

Select "Start Recording" in options menu -> Press "Home"
key, drag-down notification bar -> Tap "stop recording"
button -> Check the screen, "Save recording?"dialog will
not pop up.

The fix is set different intent actions to distinguish
which intent is called at onNewIntent(). If clicking stop
button, need to stop recording.

Bug 18849361
from: https://partner-android-review.googlesource.com/#/c/192387/

Change-Id: I229c8cf7c44c7a9ba3b2ba752a47cbcda4690b37
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
mRecordActivity.java
1917535a7b056674aeb02988a4dd2024df9b499a 26-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] FM recording name which contains "%" can not be played in FM

Select "Start Recording" in options menu -> Stop
recording and "Save recording" pops up -> Rename
the recording file to contain "%" -> Save recording
and tap "LISTEN", Saved recording file can not be played
and "Couldn't play the track you requested." displays.

The fix is to encode the record name.

from: https://partner-android-review.googlesource.com/#/c/192398/1

Bug 18849397

Change-Id: I2b58dad093865845fd598483e96775a192946c4c
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
mRecordActivity.java
34dff30da484c87ae4b6aae3277d29d97069ff36 30-Dec-2014 Nicholas Sauer <nicksauer@google.com> Merge "[FM] There is a pop noise when tapping stop button to resume playing" into lmp-mr1-dev
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>
mService.java
e2bd0200a5a30b30aa3d15222494d8e63ab8f92e 29-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] FM icon will disappear after unmounting SD card

Select "Start Recording" in options menu -> Press "Home"
key -> Enter Settings/Storage/Unmount SD card/OK ->Check
the notification bar after unmounting SD card, FM icon will
disappear after unmounting SD card.

The fix is to add the handling of message
FmListener.LISTEN_RECORDSTATE_CHANGED.

Bug 18861474

From: https://partner-android-review.googlesource.com/#/c/192419/1

Change-Id: I39abee765f6eab77865fb1fdb145fb1fb7eb23fe
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
mMainActivity.java
7062ea2021889b5d8842d3be839442e159006410 22-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] FM recording file which has the same name will be saved after changing language

FM recording file "a" has been saved -> Launch FM
and start a FM recording and stop it, type a name
as "a" -> Tap home key and enter settings to change
language -> Launch FM again and tap SAVE, 'a already
exists' do not display and FM recording file can be saved.

The fix is to update some private variables when calling
onCreateDialog().

Bug 18826609

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

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

Change-Id: I3492566267b971ce7bbc15ae4ed30961a9308d25
ialogs/FmSaveDialog.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>
mRecordActivity.java
mService.java
57c1518c4908d8b796e1aea8abd8c5aef508a0d0 22-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] FM UI will hang if we start FM, plug out SD card and then record

Launch FM with SD card -> Plug out SD card ->
Select "Record FM" in options menu -> Tap "Start"
icon, FM UI will hang.

The fix is to handle SD card plug out error.

Bug 18825221

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

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

Change-Id: I9a1a5b10fc9b387119170ec2a828ef2399c958c7
mRecordActivity.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>
mService.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
mService.java
ff42d6228592ae595fa1ca9cadafc84e5a51eb93 15-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] There is no response after tapping FM in notification bar while FM is recoding

SD card inserted and launch FM -> Select "Start Recording"
in option menu -> Press "Home" key, drag-down notification
bar -> Tap on FM, there is no response.

The fix is to enter record screen when clicking record
notification while recording.

Bug 18762408

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

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

Change-Id: I5efdd042eb04ed11051fe2f23a81298e18481805
mRecordActivity.java
6982b3ad17a87e88a8c927a3761208e6389df50d 17-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] FM radio "Plug in headphones" view will flash twice after plugging out headphones while searching

First time launch FM and play a station -> Tap Radio
Station button -> Plug out headphone while searching
station -> Check the display, "Plug in headphones" view
will flash twice.

When plugging out earphone in Radio Station screen, it's
no need to start animation to show no earphone view. Just
show no earphone view.

Bug 18780139

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

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

Change-Id: I4cad7ca328f40057a14823db04d53868fe3867f3
mMainActivity.java
dc76ad071b60c6c8d298c3aba92b8a7dfe5bf25e 17-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] FM default name of recording file is not correct

Launch FM, play a channel without a name or PS info ->
Select "Start Recording" in options menu -> Tap "STOP
RECORDINGS" and check the default name, It is
"FM__MMddyyyy_hhmmss".

The fix is to change recordingName according to different
condition.

Bug 18780825

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

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

Change-Id: I75a3565f689f552e4965ede900f07f68749ed736
mRecordActivity.java
d1e9a1522a48b5a0b70132cc59b547d4363934f8 17-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] "Can't search out available channel" will not pop up when no station is searched

First time Launch FM -> Search stations at the place
where there is no signal -> Wait the searching to
complete, "Can't search out available channel" will not
pop up when no station is searched.

The fix is to show cannot_search toast.

Bug 18780823

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

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

Change-Id: Iebf08187a677ce1b48fc47888b7ef1af00b52b16
mFavoriteActivity.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
mService.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>
mService.java
4260180e8a33e3132e93224bed4af41dcf082d5c 15-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] FM radio should not search station automatically after tapping radio station button the second time

First time launch FM -> Tap radio station button
-> Wait searching complete -> Back to FM main view
-> Tap radio station button again, FM is mute and
searching starts automatically.

The fix is to let FM play normally and searching
should not start automatically.

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

Bug 18762700

Change-Id: I3ec4185a553f398b28e09c3a2f215b75ce62bc5d
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
mFavoriteActivity.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>
mService.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>
mService.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
mFavoriteActivity.java
mListener.java
mMainActivity.java
mService.java
eb6ec9387d7fc2d0eb7b256e55a30fbbb9a6527a 11-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] FM Radio tunes to 100.0 the first time you Stop/Play

Goto All Apps and long-press on FMRadio and slide it to
"App Info" -> Click on "CLEAR DATA" -> Start FM Radio app.
Do not change the station, leave it on whatever the app first
comes up with -> Hit stop button -> Hit Play button, FM radio
tunes to 100.0.

The fix is to update mCurrentStation when FM power up is finished.

Bug 18692583

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

Change-Id: Ifd9d2e9d6aec61573d001e64d1cf255159ed4970
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
mMainActivity.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>
mService.java
40cbbc57444d732004bba3c8464c979f83290279 03-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] FM text is truncated when the device is in landscape position

Open the Fm Radio app and play one radio station ->
Tap on favorite -> Tilt the device in landscape mode
and observe => Respective radio station added to favorites
, FM text is truncated in landscape mode.

The fix is to let FM text not be truncated in landscape
mode.

Bug 18268527

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

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

Change-Id: I88b0013f7e0077707aa30fcc42b66a006ec90de2
iews/FmScroller.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>
mService.java
bdcdbb34841d8084469a3c4892351e3916b942d0 03-Dec-2014 Benson Huang <benson.huang@mediatek.com> [FM] Insufficient sd card space toast message is displayed

Launch FM radio with no sd card -> From menu navigate to
FM recorder -> Tap on record option and observe => Observe
that insufficient sd card space message is displayed but it
is not prompting to insert the card.

The fix is to prompt to insert sd card.

Bug 18268830

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

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

Change-Id: Ia8a494cb2435b0cdbecdaf9a095d13cb98a2c27b
mRecordActivity.java
0b6c29449a2b560c14854d984d2f6a07cdd847b2 02-Dec-2014 Nicholas Sauer <nicksauer@google.com> [FM] Move FM Radio sources - Part 4 (part 2)

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

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

Bug 18057506

Change-Id: Ibd57a1e9b576bf25865a77f85decb56d914ae070
mRecordActivity.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>
mFavoriteActivity.java
mListener.java
mMainActivity.java
mNative.java
mProvider.java
mRecordActivity.java
mRecorder.java
mService.java
mStation.java
mUtils.java
ialogs/FmFavoriteEditDialog.java
ialogs/FmSaveDialog.java
iews/FmReflection.java
iews/FmScroller.java
iews/FmSnackBar.java
iews/FmTouchlessScrollView.java
iews/FmVisualizerView.java