summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* AudioFX: Fix possible RuntimeExceptioncm-14.0Michael W2016-11-041-1/+3
| | | | | | | | | | Seems like mSessionManager is not initialised in some cases, and the call to destroy() causes a RuntimeException. Wrap with a null check to prevent the failure. Change-Id: I4713e303f3223d60a6674a0a1096c7b7f37a9814 Reference: BugDumps 13-20161014-20 L#3 (cherry picked from commit 57e73c474580531513c016f76bb486190685173d)
* AudioFX: Fix possible NPEMichael W2016-11-041-1/+3
| | | | | | | | | | | The only reliable thing is the initialisation with null -> if it will not be overriden in any of the loops, the call to setChecked() causes an NPE. Wrap the operation with a null check Change-Id: I7aaacf9f5ae53434643df1c477c8ea536f8602ff Reference: BugDumps 13-20161014-20 L#11 (cherry picked from commit b1c9efb6550a7e39ec41c00b08f853279b855ce9)
* AudioFX: fix missing virtualizerRoman Birg2016-10-164-9/+11
| | | | | | | | | | | | | If the device doesn't have headphones plugged in, and the speaker reports that it doesn't support virtualizer strength in speaker mode, we made the assumption it was never available. Just check for a valid refernce to the effect, all AndroidEffects _should_ have a virtualizer. Also moved the prefs version to the prefs manager. Change-Id: Id44087c509ece3d55b42c985660a61222bbdfe17 Ticket: AUDIO-152 Signed-off-by: Roman Birg <roman@cyngn.com>
* audiofx: Don't check if strength is supported for bass boostSteve Kondik2016-09-303-3/+3
| | | | | | | | | | | | | * New Qualcomm DSP supports Psychoacoustic Bass Enhancement for the speaker. When the effect is created in this mode, it does not have a strength control. Since the effects are discovered by attaching to the global session, likely on speaker, the user will end up with the effect disabled. * Ideally we want to show a toggle switch for these kinds of effects, but that can come later. * Bump the prefs version so nothing stays cached. Change-Id: I85b6f504d9037ff290f18724dfc201392b9f46b4
* audiofx: Remove AmbientSteve Kondik2016-09-3010-345/+0
| | | | | | * Not needed in OSS Change-Id: I44a93fab6888d37dce41a402f8603ae9952857d1
* Merge "AudioFX: Update copyright after OSS" into cm-14.0Steve Kondik2016-09-301-5/+1
|\
| * AudioFX: Update copyright after OSSZhao Wei Liew2016-09-301-5/+1
| | | | | | | | | | | | | | The CYNGN AudioFX has been open-sourced, so the original copyright header no longer holds true. Change-Id: Id15e14f5037cf8e1914139477edf12ffaae27833
* | AudioFX: Get rid of the DSPManager overrideZhao Wei Liew2016-09-301-2/+0
|/ | | | | | DSPManager hasn't even been included in the manifest since CM 12. Change-Id: I6e7c8434361d22491aab32d63969398608eb4de3
* AudioFX: Fix possible NPEMichael W2016-09-171-1/+1
| | | | | | | | | | In case updateQsTile() has not been executed before (or been interrupted), mLastLocale has never been set and therefore results in an NPE. Turn around the logic to prevent this Change-Id: Iee6f8fede51c5002820e1ebe9045be79fcd54223 Reference: BugDumps 13-20160902-8 L#8 (cherry picked from commit dfc3f3691163ff3fd254a1ccda720daaecbb38ed)
* Merge "Automatic translation import" into cm-13.0Jessica Wagantall2016-09-120-0/+0
|\
| * Automatic translation importinky@build012016-09-107-0/+7
| | | | | | | | | | Change-Id: I947b27818fa23e28495545962687b302dde6ddf5 Ticket: -
* | Automatic translation importclyde@build012016-09-108-0/+8
|/ | | | | Change-Id: I5ca8a3297a5c5ad7f53f24089f4cc9ecb7762e0d Ticket: -
* Automatic translation importclyde@build012016-09-0668-147/+351
| | | | | Change-Id: I6cc4bd01aef7bfe92c042004466c5ed5e63773eb Ticket: -
* AudioFX: Resync with AOSP translationsMichael Bestas2016-09-0457-17/+121
| | | | Change-Id: I87b3725f993f2d5601ef7d919853667fc6d0cfb2
* AudioFXTests: remove key sign warningRoman Birg2016-08-311-3/+1
| | | | | Change-Id: I749db9a76e31ee023283edc30796874d18425c98 Signed-off-by: Roman Birg <roman@cyngn.com>
* Merge "AudioFX: finish rename; persist process" into cm-13.0Roman Birg2016-08-2970-319/+739
|\
| * AudioFX: finish rename; persist processRoman Birg2016-08-2970-319/+739
| | | | | | | | | | | | | | | | | | | | | | - Set persistent flag for app in the manifest, this backing process shouldn't be dying when the user swipes away the UI - Fix package structure to be org.cyanogenmod.audiofx - Add missing java license headers Change-Id: I03d37b6ca0548d881aaf46754c776da923e1ef59
* | Automatic translation importpinky@build012016-08-27105-551/+878
|/ | | | | Change-Id: Id6b8041002cb061c8c5d534c802610921d9571f7 Ticket: -
* AudioFXTests: rename module back to AudioFXTestsJessica Wagantall2016-08-261-2/+2
| | | | Change-Id: I0b06569df74722ee7d7de2685c022ba879e1c3e4
* Merge "AudioFX: disable debug logging" into cm-13.0Roman Birg2016-08-251-1/+1
|\
| * AudioFX: disable debug loggingRoman Birg2016-08-251-1/+1
| | | | | | | | | | Change-Id: If69e8ad96bab87d5f73290a9e9aaa3e05da40c33 Signed-off-by: Roman Birg <roman@cyngn.com>
* | Merge "AudioFX: remove legacy metrics provider" into cm-13.0Roman Birg2016-08-251-12/+0
|\|
| * AudioFX: remove legacy metrics providerRoman Birg2016-08-251-12/+0
| | | | | | | | | | | | | | No longer used Change-Id: I503812e92da4bd2b40ee84a3838d5c8c46c8af04 Signed-off-by: Roman Birg <roman@cyngn.com>
* | Fix strings.Danny Baumann2016-08-2570-132/+3
|/ | | | | | Remove unused strings and use the correct app name. Change-Id: Ie4d14ec6009edadc2391240b4842f192fcbb4f93
* Merge branch 'cm-13.0-oss' into HEADRoman Birg2016-08-25285-3058/+11035
|\ | | | | | | Change-Id: Ie762fdbe5b70dec6843ce489e78d802662e148fb
| * Revert "Revert "AudioFX: rename module back to AudioFX""Roman Birg2016-08-251-3/+3
| | | | | | | | This reverts commit c7dc272e9b7dbddc1931c54ad50ae8a2d6679292.
| * Revert "AudioFX: rename module back to AudioFX"Roman Birg2016-08-231-3/+3
| | | | | | | | | | | | This reverts commit ecb27c08e3e833304a25160893f6129916ae50c3. Change-Id: I3485ce7950a3a6c0e7b56b475756289fa74e8fe4
| * AudioFX: rename module back to AudioFXRoman Birg2016-08-231-3/+3
| | | | | | | | | | Change-Id: I7326addbad8f4837262fadfbf04712b03a7ca149 Signed-off-by: Roman Birg <roman@cyngn.com>
| * AudioFX: rename package to org.cyanogenmod.audiofxRoman Birg2016-08-2343-2/+1
| | | | | | | | | | | | | | For internal builds we'll keep the com.cyngn.audiofx package name Change-Id: I28703a66308c1018ea0a6f82b73a53959f9b7412 Signed-off-by: Roman Birg <roman@cyngn.com>
| * ModioFX: split backend implementationsRoman Birg2016-08-239-87/+72
| | | | | | | | | | Change-Id: Ib6f345000b25a17a5c7520ea47355f1d96936522 Signed-off-by: Roman Birg <roman@cyngn.com>
| * AudioFX: don't backup app dataRoman Birg2016-08-111-0/+1
| | | | | | | | | | | | | | Ticket: CYNGNOS-3256 Change-Id: Ie3d81e78ae40f61fb5bb7c42941e381ecc5a8f1b Signed-off-by: Roman Birg <roman@cyngn.com>
| * AudioFX: iniitalize services with current deviceRoman Birg2016-06-143-4/+8
| | | | | | | | | | | | | | | | | | | | | | If the user clears app data while not on the speaker device, we won't catch the state properly when the app comes back up and will not serve the proper values to the backend service. Ticket: AUDIO-152 Change-Id: I3ed48edb3bae51bd70bc1aad5b96216b9c77a335 Signed-off-by: Roman Birg <roman@cyngn.com>
| * AudioFX: fix first boot listener regressionRoman Birg2016-06-011-0/+4
| | | | | | | | | | Change-Id: I47693ae45e7fb99fae3aa7f7487d17160b369db9 Ticket: OPO-343
| * Revert "AudioFX: create audio output change listener after it's dependencies"Roman Birg2016-06-011-3/+3
| | | | | | | | | | | | | | | | | | | | This reintroduced the first boot race of not getting audio change callbacks Ticket: OPO-343 This reverts commit f3954b74ef01463592aa3c89099d95bac4cd1bab. Change-Id: I23d1f3c6ffc732c29e63e4d471954960bccf4f09
| * modiofx: Reintroduce deferred release for MaxxAudioSteve Kondik2016-05-252-21/+61
| | | | | | | | | | | | | | * And guard against races correctly by adding a death marker. Change-Id: I28b56e7326163d28293f8f5e9b10a53e7c34a2c0 Fixes: AUDIO-139
| * Automatic translation importMichael Bestas2016-05-252-4/+40
| | | | | | | | | | Ticket: RM-231 Change-Id: Ic6201b4ac8d30d0d7e1d875ec80bc6e98379322f
| * Automatic translation importMichael Bestas2016-05-252-29/+1
| | | | | | | | | | Ticket: RM-231 Change-Id: Ie12f87bc4c18152c37979656b7db180be5551b29
| * AudioFX: fix qs tile updatingRoman Birg2016-05-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | We need to actually update the prefs after a tile toggle. Also we aren't coming from background, so that was not the right flag for the receiver. Instead we need to tell the receiver to come to the FOREGROUND! Ticket: FEIJ-747, FEIJ-695 Change-Id: I43843739958579932ff57c3d83a2e4bce65c33c9 Signed-off-by: Roman Birg <roman@cyngn.com>
| * AudioFX: create audio output change listener after it's dependenciesScott Mertz2016-05-231-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a chance the AudioOutputChangeListener calls back to AudioFxService via it's callbacks before the DevicePreferenceManager is insantiated. Ensure the DevicePreferenceManager is created before registering the callback. Fixes the following error: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.cyngn.audiofx.service.DevicePreferenceManager.isGlobalEnabled()' on a null object reference at com.cyngn.audiofx.service.AudioFxService.updateQsTile(AudioFxService.java:272) at com.cyngn.audiofx.service.AudioFxService.onAudioOutputChanged(AudioFxService.java:249) at com.cyngn.audiofx.service.AudioOutputChangeListener$1.run(AudioOutputChangeListener.java:80) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.os.HandlerThread.run(HandlerThread.java:61) OPO-743 Change-Id: I6cb52e676f4e91934e151b1d95b5f45a2dc85993
| * AudioFX: Disable Ok button if rename text is emptyKeith Mok2016-05-201-1/+25
| | | | | | | | | | | | | | | | | | Disable the ok button using addTextChangedListener when the rename text editable is of zero length. FEIJ-727 Change-Id: I1cd8eadb21bbbf7f3dd7bd693a414a61f71796f7
| * AudioFX: finish swipe animation if hitting off during itRoman Birg2016-05-191-2/+5
| | | | | | | | | | | | | | | | | | | | It was possible for the view pager to pause in between presets and did not allow the user to touch it. Ticket: AUDIO-151 Change-Id: I5a73e8c2e6a7f1953e3abb9c8376a121946f4f07 Signed-off-by: Roman Birg <roman@cyngn.com>
| * AudioFX: fix output listener regressionRoman Birg2016-05-041-2/+2
| | | | | | | | | | | | | | | | | | | | We need to register with Audio Manager before doing anything else to receive callbacks properly. Ticket: OPO-343 Change-Id: I5533b02b533ec160f3ca357692709294c118263f Signed-off-by: Roman Birg <roman@cyngn.com>
| * modiofx: Add a default preset for headphones on Android effectsSteve Kondik2016-04-281-0/+12
| | | | | | | | Change-Id: I1542577007a479b82c4907d81315a058e72df849
| * audiofx: Fix the QS tileSteve Kondik2016-04-284-85/+124
| | | | | | | | | | | | * And clean up device tracking. Change-Id: I4dc935c6a1e17b7dd346b1197876089c3436c7a5
| * audiofx: Update for CMAudioService changesSteve Kondik2016-04-284-26/+69
| | | | | | | | | | | | * Switch to the new broadcast mechanism for audiosessions. Change-Id: Ibf0a8cf04a80762f3e44642cbbe8c56468197035
| * modiofx: Stop being clever with Android effectsSteve Kondik2016-04-261-42/+2
| | | | | | | | | | | | | | * This breaks the UI Ticket: AUDIO-147 Change-Id: I090fdf19767baa57e192f3ecfa55e20963ae3155
| * modiofx: Fix various issues with Android FXSteve Kondik2016-04-193-34/+100
| | | | | | | | | | | | | | * Add device selection and internal effect tracking * Stop calling setGlobalEnabled unconditionally Change-Id: I617a03b12275c16b0efef6d215b5b7499cd98524
| * modiofx: Bump prefs versionSteve Kondik2016-04-181-1/+1
| | | | | | | | | | | | | | * Some of the first-run code changed to ensure our custom presets get created. Change-Id: I6f53a03157f36bedad59bfc366445e78270b67d5
| * audiofx: Don't auto-attach if a recording is activeSteve Kondik2016-04-151-0/+7
| | | | | | | | | | | | | | | | * Some apps use loopback over the headphone path to perform various functions and tests. Disable auto-attach if this is detected since we don't want to interfere with it. Change-Id: I5143fb5b10abc5840331b3393cd12d78c6c43091
| * AudioFX: don't assume stream typeRoman Birg2016-04-153-35/+37
| | | | | | | | | | | | | | | | | | We always assume new sessions are always content type of MUSIC. Actually parse the incoming intent and set the value correctly so we don't apply effects unnecessarily as we only want to support Music for now. Change-Id: I260e3c07ef44ceeaa0d2950f1091b9f4f213f115 Signed-off-by: Roman Birg <roman@cyngn.com>