summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix MediaSession queue handling.stable/cm-13.0-ZNH5YDanny Baumann2016-12-031-24/+16
| | | | | | | | | | | - Go back to using the queue position instead of the track ID as queue item ID, as the track ID can be present multiple times in the queue and the queue item ID is supposed to be unique in the whole queue - Make sure no null items are passed in RM-290 Change-Id: I9390ab8c7a5a20f2a2bb1efad02e460ecf7dc2e5
* Eleven: Correctly set shake to playSean Maas2016-12-031-1/+1
| | | | | | | | Oops, this is disabled by default. RM-290 Change-Id: Ifc30a1311c3f0c3665f3296c1247822ffe7f81e6
* eleven: Add support for the MediaSession queueSteve Kondik2016-12-031-1/+103
| | | | | | | | | * This allows remote controls to view the contents of the queue and select the active track based on the queue id. RM-290 Change-Id: I205225864d10044ef60c3fe2bc877525c437d506
* Eleven: Set preferences on playSean Maas2016-12-032-16/+7
| | | | | | | | | | | The shake to play and lockscreen album art settings were not being set when playback started without the app, ex. with a headphone button. This caused them both to be set to false until the app was opened. RM-290 Change-Id: Id15c134e9001bba62faa04266726c1e10fbfb9dd
* Eleven: Do not uppercase unnecessarilyZhao Wei Liew2016-12-032-4/+4
| | | | | | | | Please do not yell in my face. RM-290 Change-Id: I8f1aa19ad8239aa093e6af78df18bdd4387f84a1
* Avoid NPEMarcos Marado2016-12-031-1/+2
| | | | | | RM-290 Change-Id: Ib6a44e2f2ee023992ce3539a9aa1b7ed0be9d3ef
* eleven: Runtime permissionsSteve Kondik2016-09-162-17/+109
| | | | | | | | | | * Add prompting for storage permissions in order to bump the API level up to level 23. RM-290 Change-Id: Id3fc4ee06fe3534b2f94408e96a8163f4fae8f98 (cherry picked from commit da1629dce3bf475957a53df89e25ad0af0de61dd)
* Handle headset hook multi click in playback service.Danny Baumann2016-09-162-158/+94
| | | | | | | | | | | We usually get media button events via the session callback now, so only handling those events in the button receiver (which is only triggered if e.g. media buttons are pressed without us running after reboot) is not sufficient. RM-290 Change-Id: I50ff266af826edd016804b267323effe1056f045
* Convert to new media button receiver logic.Danny Baumann2016-09-161-10/+10
| | | | | | | | | | | | | | Commit Ide906efdf90a6f42f3fcb6c5386328301165cb7c changed the media button receiving logic to be routed through MediaSession, but missed to also convert the media button intent receiver registration used for receiving button events if our playback is stopped. Also add the possible stop action (we're handling onStop after all) missing in the aforementioned commit. RM-290 Change-Id: Idd4b8bc00f58eee2ff7fc2e5a685b7918988c37c
* handle media keysShaleen Jain2016-08-061-1/+10
| | | | | | | | | | | This lets Eleven respond to physical media keys on some devices as well as when the volumn buttons are long pressed when the screen is off and the 'Playback control' preference is true in settings. RM-290 Change-Id: Ide906efdf90a6f42f3fcb6c5386328301165cb7c (cherry picked from commit 815e4d86dc19e623b32366b035d027a3ffa169fa)
* Eleven: fix possible NPEMichael W2016-06-181-0/+3
| | | | | | | Fix for the case when name is null Change-Id: I90909497129c09f6ab8a4eebd0935c2d38de5b39 Reference: BugDump 13-20160610-16 L#80
* Generate all color swatches.Danny Baumann2016-04-271-6/+1
| | | | | | | | | | While we only use the vibrant colors in the UI, we also use the palette to determine the dominant color and compare the vibrant colors against that. If the dominant color is one of the muted swatches, by only generating the vibrant swatches we needlessly exclude one of the vibrant colors from being used as visualizer color. Change-Id: I3ca1059a653ff39b49b6a38a934863ef6ad2d976
* Add toString() methods to BitmapWithColors class.Danny Baumann2016-04-271-0/+13
| | | | | | Eases debugging. Change-Id: I34d4d0ae888f4768232fd8a526a47111720d1faf
* Load palette in background.Danny Baumann2016-04-271-0/+7
| | | | Change-Id: I03322c552ee1151be14e1d7c4db2a8f493d34580
* Improve visualizer color selection.Danny Baumann2016-04-272-17/+89
| | | | | | Make sure to select the color that contrasts the most to the artwork. Change-Id: I0043463e05132a01f8ff3351565b672825779079
* Eleven: Cleanup all the whitespaceMichael Bestas2016-04-2576-235/+229
| | | | Change-Id: I82024ce0ada3220b6b87178ea36303b53445e065
* CodeCleanup : Replace StringBuffer with StringRazorSharp2016-04-166-49/+34
| | | | Change-Id: I1f93ec71097c916e047d92d5413b9702272b500b
* Eleven: Simplify a boolean expressionRazorSharp2016-04-161-3/+2
| | | | Change-Id: I6bd01f9a194117238712734757e059aa8e24313c
* Eleven: much materialJoey Rizzoli2016-04-1513-97/+60
| | | | | | | | | - Remove old font, let's use the system's - Vector drawables - Update colors Change-Id: I6c4335f388c88fd4ce6d10e4995692aaf0679a49 Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
* Eleven: Use appropriate String value comparisonRazorSharp2016-04-111-1/+2
| | | | Change-Id: Iad2ef9085b7f011ccc9e95e9f3874ad5a547daad
* Eleven: Remove unnecessary local variablesRazorSharp2016-04-116-16/+9
| | | | Change-Id: Ic92632873f75bd2d4569a4700a744a3ca17e99cb
* Codecleanup: Use Chained append calls to improve the performanceRazorSharp2016-02-204-5/+8
| | | | Change-Id: Ieb9d4ba314d4859f5f17af5cbedd8c06c06ac0b7
* CodeCleanup : Remove redundant Type CastingRazorSharp2016-02-202-2/+3
| | | | Change-Id: I1d539acc4e8bae4a0f9996297936e5c862679660
* Eleven: Synchronization on a non-final field 'mPauseLock'RazorSharp2016-02-201-1/+1
| | | | Change-Id: I957b2d5010f31edab105c3ffd553feafe32bb99f
* Improve preview activity behaviour.Danny Baumann2016-02-041-1/+1
| | | | | | | Move the seek bar to the very end on completion, and make sure the preview activity isn't added to the (main) player task. Change-Id: Ic55e2b04b4be4172a7dcca45ff5f30e54c9e5d23
* Eleven: Remove wakelockmyfluxi2015-12-231-32/+5
| | | | | | | We do not need this, let the device sleep during (offloaded) playback. Change-Id: I596b480a6361745b96b547c93f1d5433e18069e0
* Eleven: lastFM: Replace HttpStatus use with HttpURLConnectionBrandon McAnsh2015-10-091-2/+1
| | | | | | | | | * org.apache.http.* is now deprecated https://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-apache-http-client Change-Id: Ibd1b044609d8057a67e2928e494c8a0dbd8f8fee Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
* Eleven: Visualizer: Add back landscape modeLinus Lee2015-08-132-13/+17
| | | | | | | | | - Disable visualizer when queue panel is on top - For some reason, the layout size isn't picked up by its parent, so for now force it to be square in onMeasure Change-Id: I71d3489def08a1ea347801211d92cd113b9cbd5f
* Add ability to seek through track with circular motionLinus Lee2015-08-114-33/+211
| | | | | | | | | | With this patch, if you do a circular gesture motion on the large play button, you can seek the track instead of using the long press of the next/previous buttons Also change the progress bar to 1000 to allow for smaller updates Change-Id: I38512b2439227686bc6363e77b1858dbb5764a9f
* Visualizer tweaksUtkarsh Gupta2015-08-084-64/+42
| | | | | | | | | | | - Show visualizer even when sliding panels - Hide visualizer in power save mode - Ignore first 2 bytes of FFT Data - they are quite random - Hide visualizer in landscape mode - Reduce color update delay Change-Id: I90f1a442db2f56f0e4075ff096711c163626731b Signed-off-by: Utkarsh Gupta <utkarsh.eminem@gmail.com>
* Upgrade visualizerUtkarsh Gupta2015-07-214-210/+232
| | | | | | | | | | | * A different visualizer: http://imgur.com/npV2zyO * Much smoother than the current one, Always stays above 60fps (even in powersave mode). * Abandon android-visualizer library. * Set visualizer color alpha to 75% Change-Id: I08ad5815893735f4427e84d460c4f7a06bf4b019 Signed-off-by: Utkarsh Gupta <utkarsh.eminem@gmail.com>
* eleven: fix invalid srt formatsJorge Ruesga2015-07-131-0/+6
| | | | | | | | | Check for invalid time formats in srt files too. If there is an exception loading the file just throw out the entire file. Change-Id: Ic6011f843d1c433e9d8d84281c1c98dc5deaf547 JIRA: NIGHTLIES-1552 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Dynamically generate visualizer colorUtkarsh Gupta2015-07-073-62/+84
| | | | | | | | | * Set visualizer color along with status bar * Fix visualizer not showing up after window focus lost * Cache visualizer parameters Change-Id: I915e91f485b6e8b8600dad8d9ce304089ba53003 Signed-off-by: Utkarsh Gupta <utkarsh.eminem@gmail.com>
* AudioPreviewActivity: Better external audio previewingMartin Brabham2015-06-154-5/+854
| | | | | | - Adds a pop up activity that previews the audio with minimal playback controls Change-Id: I163e47b3ec91603d788cfdbc8ad0262b33d786e6
* Eleven: Add playlist cover art to search resultsLinus Lee2015-05-291-46/+5
| | | | | Change-Id: I63f3b15cc9757b0daa945e4d8a3920c28673713d (cherry picked from commit b84e90377248a0155019915529d45461c3403d44)
* Eleven: remove an unnecessary check when playing music to improve perfLinus Lee2015-05-291-9/+0
| | | | | Change-Id: Ic9b6d1ee2f80446013dd0794696e8cd66a73221e (cherry picked from commit bda812eec5dd254ff5ab32773dc6aa24f3171b60)
* Eleven: Add a play Album option on songsLinus Lee2015-05-293-0/+19
| | | | | Change-Id: I62bf42f98ba8457b0121b723b7e4ace218805577 (cherry picked from commit 40c5425291bd07cb17a31f8d8169e142a51b7a19)
* Add Landscape support to ElevenLinus Lee2015-05-205-30/+93
| | | | | | | | This adds most of the support. There is a bug around the album art not loading on rotation - but this patch covers pretty much every other case Change-Id: If9033b0323beab8837493d289dcf77b76d1ea8c9
* Merge "Eleven: Show/Hide album art on lockscreen" into cm-12.1Abhisek Devkota2015-04-205-9/+63
|\
| * Eleven: Show/Hide album art on lockscreenMikalacki Sava2015-04-175-9/+63
| | | | | | | | | | | | Added preference option to show/hide album art on lockscreen. Change-Id: Iea2173288fc279f15abe6675a0ffd582e35ad321
* | Eleven: properly send open/close session eventsRoman Birg2015-04-201-4/+11
|/ | | | | | | | These were being fired off at device boot and there was a session being held for the entire duration. Only request the session when playing. Change-Id: I37ebc5a6898453dd090cc68ee2126e9c5d08d892 Signed-off-by: Roman Birg <roman@cyngn.com>
* Eleven: shake to play next song, only available while music is playing.stable/cm-12.0-YNG1IMikalacki Sava2015-02-236-2/+408
| | | | | | | | Allows user to shake his device to switch to next song. This feature is available through settings and is invoked only while music is playing. Change-Id: Ifb0866565d49443af7f3ac679e80601660506515
* Eleven: Fix crash in LetterTileDrawablemorckx2015-01-191-1/+1
| | | | | | | - Make sure that the title string is not empty. Change-Id: Ifa4b4f916f476519ecef19629e5b9d33ac0642e1 Signed-off-by: morckx <morckx@gmail.com>
* Eleven: Fix LocalizedSongSort - Missed Collate keywordlinus_lee2015-01-072-4/+8
| | | | Change-Id: Ief86b3fea672bcc498a4560fab40486657cc2751
* Eleven: Fix equalizer not pausing, action bar hiding and 1px equalizer on xxhdpilinus_lee2015-01-052-21/+2
| | | | | | | | | 1) Equalizer was not pausing because HomeActivity onSlide wasn't calling super.onSlide 2) Action bar hiding - the hiding/showing of the action bar was ripped out in materialize but was missing in one spot so in some sceanrios we were hiding it and never showing it again 3) the 1px equalizer fuzz was really bothering me especially since it showed while paused Change-Id: I47475e3ea724fa460125c753fb64ec2dd7f095d5
* Make buttons more touch friendly.Danny Baumann2014-12-271-0/+1
| | | | | | | Do this by replacing margins and empty space around buttons by padding. Doing this also makes the ripple touch feedback look better. Change-Id: I7f2e933b9f7b481c9456f56860483c2e5e96b67b
* Eleven: materializelinuxx2014-12-2728-3144/+451
| | | | | | | | -Material Ui theme -New launcher icon -Better tabs Change-Id: I712ac2eb5256841cf89d198eed775ce8afe9d09c
* Eleven: Show error message for corrupt tracks (additional codepaths)linus_lee2014-12-271-17/+30
| | | | | | | | | | Add showing error message for code paths where the media player fails gracefully Unfortunately adding the logic to remove the bad track is not trivial because the removeTracks logic automatically does other things to try to go to the next track. For now I will leave the logic so that it goes on to the next track and make a note on the music service rewrite notes to cover this scenario as well. Change-Id: Ib7ae5ce7819b15cdb3ada4995bc0734ab2d9b0a2
* Eleven: Add some caching logic to BitmapWithColors for perf optimizationlinus_lee2014-12-233-39/+55
| | | | Change-Id: I9fe5e83b9b1b5bb8ca24978436ed371eec2db399
* Eleven: Make sure we have vibrant colors for all default colorslinus_lee2014-12-207-49/+149
| | | | Change-Id: I4be163e75fc35d3b139439c504d769d17d980ace