summaryrefslogtreecommitdiffstats
path: root/fmapp2
Commit message (Collapse)AuthorAgeFilesLines
* Reset notch filter only if it is set.Rupesh Tatiya2016-03-221-11/+16
| | | | | | | | | | | | | | | Everytime there is data activity, notch filter settings need to be updated. This request gets queued and executed after a delay of 10 seconds. The update request might take 2 seconds in the worst case. Data activity might change very rapidly resulting in large number of RESET_NOTCH_FILTER messages being put queue before the first request itself is processed. In such scenario, multiple requests are processed together and they will take time to execute greater than ANR threashold time. CRs-Fixed: 958512 Change-Id: I78521f425d7419f3a3d577cc573560d3601b1b1e
* FM: Fix ANR due to incorrect error handling in stopRecordingDibyendu Roy2016-03-221-11/+9
| | | | | | | | | | | | stopRecording() API gets called from onRecordingStopped() callback function. As a result, when recording can't be stopped successfully in error scenarios, stopRecording() gets called in loop. This fix removes the call stopRecording() from callback function and does the required UI update. CRs-Fixed: 943288 Change-Id: I0e2ea2adeb0c603f16541d04a5a244bc1fcd51d7
* FM: stop AudioTrack before switching output devicekexiao2016-03-222-8/+5
| | | | | | | | | | When FM sound comes out from speaker, turn off FM then the sound come out from headset for 0.5s. Make sure the AudioTrack is stopped before switching output device. CRs-Fixed: 940232 Change-Id: I55da27408371cad4af90a7ec3dc7e8a52736096c
* Change FM off button to release media and audio resources.Rupesh Tatiya2016-03-223-72/+23
| | | | | | | | | | | | | | | | | | | | When FM application is launched, no other Media consuming application can receive key events (play, pause etc.) because FM service is the owner of MediaSession and AudioFocus. This does not bode well for user experience. Change the behaviour of FM off button so that we release MediaSession and AudioFocus so that other applications can work. The same behaviour is enabled when antenna is pulled out. We differentiate FM off from remote bluetooth headset start/stop i.e. when remote headset does start/stop, it starts/stops FM. This means that if user presses FM off button, user has to explicitly turn it on again. Also remove old FM Media Button Intent receiver as it is deprecated. CRs-Fixed: 936190 Change-Id: I32fef8e43b226a260d5483b40f5825926c023e62
* fmapp2: de-select A2DP audio route on A2DP disconnection.Rupesh Tatiya2016-03-221-0/+1
| | | | | | | | | When audio is routed from wired headset to Bluetooth headset and Bluetooth is disconnected, Audio goes to speaker instead of wired headset. De-select Bluetooth and let audio routing policy select correct device. CRs-Fixed: 943979 Change-Id: I4f9a446bc0dd7749e62a79c8b8531094572045f6
* fmapp2: Allow switching between wired and Bluetooth headsetRupesh Tatiya2016-03-222-18/+59
| | | | | | | | Remove previous restriction that audio can not be switched between wired and Bluetooth headset as Android Audio framework puts no such restriction. CRs-Fixed: 945076 Change-Id: I1cd683c5cdc584a799749e3b147a6e8b4be45248
* FM: Regional requirement for FMXuebo Li2016-03-222-3/+59
| | | | | | | | | - Add resource to customize FM-recorder files name format. - Add resource to customize the save path of FM-recorder files. - Add resource to customize media type. Change-Id: I5d547ec691d44621b19b2c8435c290b8eafeabc5 CRs-Fixed: 933506
* Revert "FMRecorder : Save to a private temporary file while recording"Xuebo Li2016-03-221-15/+5
| | | | | | This reverts commit 92871d4e2a9fb803a046d5fc3109ca5b5e8aeddb. Change-Id: Iff2ffa10e00b05cdcc9ca3a1f59b5525247f4b03
* FM: update fm app to use device loopbackDhananjay Kumar2016-03-221-4/+59
| | | | | | | Update fm app to use device loopback for playback on headset, headphone or speaker. Change-Id: I44642858cc9a42fad0fad2ad3f8487aaa624d35e
* Fix translations breakageAbhisek Devkota2016-03-191-1/+1
| | | | Change-Id: I3a8b8dee88f9667d1ec7f8c15e8035116a655780
* Automatic translation importMichael Bestas2016-03-17156-225/+5354
| | | | Change-Id: I33d547feae3dc617e5c054c5076eab38a6a74b7d
* fmapp2: String improvementsMichael Bestas2016-03-122-3/+3
| | | | Change-Id: I3ac560a32437eac593fa8274b9b0a2c1c96a468e
* FMRecorder : Save to a private temporary file while recordingstaging/for-cm13.0Danesh M2016-02-191-5/+15
| | | | | | | While recording save to a temporary private file and once finished, move to external storage Change-Id: If82a84beeffe2ea8e5ba4bf7e93e4f3d6203e10f
* Fm : Update India bandsDanesh M2016-02-193-19/+4
| | | | Change-Id: I1727b585865b422ef5124a3da2d2be384f9fdfa1
* Automatic translation importMichael Bestas2016-02-196-15/+93
| | | | Change-Id: I72fce8b4efe95bd4b3067c13b45d4d5efa036f47
* Automatic translation importMichael Bestas2016-02-199-2/+678
| | | | Change-Id: I9c52baab3f9408544332c1a0c3ca4f8c1066709e
* Automatic translation importMichael Bestas2016-02-198-37/+445
| | | | Change-Id: Ifad029bbcc74b97cb4d9f28e6406bcdf87f2f9af
* Automatic translation importMichael Bestas2016-02-1913-182/+784
| | | | Change-Id: I1e02aedf9dfc53eb8d85dc99d9b2e1552b2671ab
* Automatic translation importMichael Bestas2016-02-197-173/+99
| | | | Change-Id: Ie74cc6cc2adee5b41eea693463c6c6937c0ea850
* Automatic translation importMichael Bestas2016-02-199-596/+114
| | | | Change-Id: I30d19ec52f42727e622eb8a0be045b6e3f5ec177
* Automatic translation importMichael Bestas2016-02-1957-3178/+1949
| | | | Change-Id: I7d728d06dea4d37bba0f93e0660ffbd03e555cfa
* FMRadio : Fix headphone iconEd Falk2016-02-199-9/+40
| | | | | | | | Original headphones were mis-matched w.r.t. default/selected. This change normalizes the icon. Also fixes a couple compiler warnings in FMRadio.java Change-Id: Iee383bc23455562f21c3c431d5b291506e0e3e13
* FMRadio : Fix settings UI bugsEd Falk2016-02-192-13/+7
| | | | | | | | | Setting any user-defined parameter caused the band to switch from user-defined to Indonesia. Fixed. Also removed some bogus localization while I was there. Issue-Id: CYNGNOS-778 Change-Id: I256f04eab39b820b33676bf598322d480d6dfa44
* Fix camel caseMichael Bestas2016-02-191-2/+2
| | | | Change-Id: I8d3bf40aa1ab4643b3062eb86a89ccd21577ce23
* Fix compileAbhisek Devkota2016-02-191-0/+3
| | | | | | | Partial revert of I6be12d05f9efdec7ec189d30f625d7f82746b5a6 to fix build. Change-Id: I5161a726287585624d756fbaf721eb7a814a4794
* FMRadio : Localization of band typesEd Falk2016-02-19103-3793/+2886
| | | | | | | | | | | | | Previously, FmRadio could only display the type names for English and two dialects of Chinese, despite already having a full set of localized names in the resources. This change moves the names from <array>s to <string>s and then uses them in PresetStation.java This looks like a massive change, but it's mostly moving strings to different resource files. Change-Id: I6be12d05f9efdec7ec189d30f625d7f82746b5a6 Issue-id: CYNGNOS-995
* Automatic translation importMichael Bestas2016-02-191-0/+4
| | | | Change-Id: Idb56bfcc4caaf68d9a94b1167083375e4724c1f9
* Automatic translation importMichael Bestas2016-02-194-0/+147
| | | | Change-Id: If85930e3d64ebefd88696042e6f51ce7433c7599
* FMRadio : improved band selectionEd Falk2016-02-192-1/+29
| | | | | | | | | | | Now tries to obtain the location from the telephone network instead of locale. This will select the band based on where the user actually *is*, rather than based on their language selection. If the telephone network fails, falls back and uses the locale. Change-Id: Id05f399d9f14911004fd3bca98230deb31ae768d Issue-id: CYNGNOS-738
* FMRadio : cleaned up band selection codeEd Falk2016-02-191-59/+60
| | | | | | | | | Based on the code reviews on my previous commit, my earlier code (which was admittedly slapped together in a hurry) was too sloppy. this is a more elegant solution. Change-Id: I08fc64ad628a3c8cb9e634310b89ac8abae2d7c8 Issue-id: CYNGNOS-738
* Automatic translation importMichael Bestas2016-02-192-0/+128
| | | | Change-Id: Ic54438e22251f7dd851161efbeeaa528774a543f
* FMRadio : Select band based on countryEd Falk2016-02-191-1/+72
| | | | | | | | | Checks the locale country code, and if found in the lists of known codes, returns the appropriate regional band. If not, accepts the default from resources as before. Change-Id: Icaa98ded11e548afc8be446e7bc80a1066bee873 Issue-id: CYNGNOS-738
* Automatic translation importMichael Bestas2016-02-194-14/+37
| | | | Change-Id: I850c668d3f179158cddf541a82178b04aa176ff6
* Automatic translation importTom Powell2016-02-191-1/+1
| | | | Change-Id: I6175f6d2435cdf32111abba6f924955df1ec091c
* FMRadio : Keep track of scanned frequencies in serviceDanesh M2016-02-193-17/+31
| | | | | | | | By keeping track of scanned frequencies in the service, this allows us to fetch it when the activity is resumed and not rely on having active callbacks. Change-Id: Idea9cab3e5fd2a789333c3f126416e0102613aa8
* Automatic translation importMichael Bestas2016-02-192-9/+9
| | | | Change-Id: I7d242dbbf78208ef956cb28f2fe1d92dc1702bf6
* FMRadio : Ensure scan state is kept in syncDanesh M2016-02-193-0/+24
| | | | | | | | | | | In the middle of a scan, the user could navigate away from the activity, during which the scan could've finished. The activity is no longer synchronized with the service and causes issues where the dialog for scan keeps showing...etc Fix this by syncing state in onResume issue-id: CRACKLING-529 Change-Id: Ief3138e4d6e157ad0b060dc3aced18668959f4e1
* Automatic translation importMichael Bestas2016-02-193-9/+9
| | | | Change-Id: Ib51550e41f394af460fd0b56f77006267f3d2fe2
* Automatic translation importMichael Bestas2016-02-196-2/+619
| | | | Change-Id: Ic50c972516ba160f8ec013090559bb4353b8fc08
* FM: The collect channel disappear when quit FMlijun.xie2016-02-191-0/+1
| | | | | | | | | | | | | | | [Procedures]: 1.FM->collect one channel 2.Quit FM and enter FM 3.Check the collect channel [Expect results]: The collect channel exist [Actual results]: The collect channel disappear Change-Id: I50f9f8d849d7d1bfab1159be51e9ad0ef2bac0a9
* Automatic translation importMichael Bestas2016-02-193-3/+5
| | | | Change-Id: I0730dc0437cf92b1fac11535e93e71ff6e360faa
* Automatic translation importMichael Bestas2016-02-193-17/+17
| | | | Change-Id: I02f6fb0e96d85e487b2e1e1b148a4626e6e46bad
* Fix status text to reflect when FM is enabled.Martin Brabham2016-02-191-1/+5
| | | | Change-Id: Idbb39cdd8c6eb016d4644d9e31290507d17ce820
* Automatic translation importMichael Bestas2016-02-195-4/+438
| | | | Change-Id: I98a0e58d1ebfea736baf2db104a0278894d2f52c
* Automatic translation importMichael Bestas2016-02-192-0/+114
| | | | Change-Id: I226f7d3f47ec4ca923ac2516af871e0f73fa2242
* FM: fix mRadioTextScroller usage in transmitter activityHamster Tian2016-02-191-2/+25
| | | | | | | | | | | | | | | | | | | | | | | Reproduction of NPE: 1. Add "ro.fm.transmitter=true" to build.prop 2. Reboot the device 3. FM Transmitter app appears 4. Remove headphones (if plugged in) and open the app Reason: mRadioTextScroller is not initialized when activity is being created. When transmission starts (which will happen automatically on app start if antenna is available) enableRadioOnOffUI will be called, and calls to mRadioTextScroller in enableRadioOnOffUI will fail. Fix: Add initialization for mRadioTextScroller. Also added some mRadioTextScroller.mOriginalString operations just like FMRadio.java Change-Id: I81d0c924801446258e3a62f479f0f9b31b7f15a8
* Automatic translation importMichael Bestas2016-02-191-0/+44
| | | | Change-Id: I34b64292bf8443c2debf9b61ed8f7c2115ffbd3d
* Automatic translation importMichael Bestas2016-02-192-0/+4
| | | | Change-Id: I5a34c6a40acb5373ad2b97cc1012b54ed2e35aa3
* Automatic translation importMichael Bestas2016-02-1913-80/+147
| | | | Change-Id: Ic963d3bbef477d44e949b8119a46024b0da3389c
* FM: respect hw.fm.internal_antennaDhruv Paranjape2016-02-191-5/+3
| | | | | | PS2: Patch from here: http://forum.xda-developers.com/showpost.php?p=60580714&postcount=86 Change-Id: Ic3104de252bac108c925e7cd5f50d9e89ca63779