summaryrefslogtreecommitdiffstats
path: root/apps/hosted/android/notification.c
AgeCommit message (Collapse)AuthorFilesLines
2014-03-14Fix reds.Thomas Martitz1-2/+2
Change-Id: I4f065a5b9f96df4d70ee8bb2836effc9b97b01fa
2014-03-14events: Rework event subsystem (add_event, send_event) to be more versatile.Thomas Martitz1-4/+6
add_event_ex is added that takes an extra user_data pointer. This pointer is passed to the callback (add_event and add_event_ex have slightly different callbacks types). All callbacks also get the event id passed. Events added with add_event_ex must be removed with remove_event_ex because the user_data pointer must match in addition to the callback pointer. On the other add_event is simplified to omit the oneshort parameter which was almost always false (still there with add_event_ex). As a side effect the ata_idle_notify callbacks are changed as well, they do not take a data parameter anymore which was always NULL anyway. This commit also adds some documentation to events.h Change-Id: I13e29a0f88ef908f175b376d83550f9e0231f772
2013-07-13Get rid of some superfluous single-purpose functions in playback.Michael Sevakis1-2/+4
* Remove explicit tracking of elapsed time of previous track. * Remove function to obtain auto skip flag. * Most playback events now carry the extra information instead and pass 'struct track_event *' for data. * Tweak scrobbler to use PLAYBACK_EVENT_TRACK_FINISH, which makes it cleaner and removes the struct mp3entry. Change-Id: I500d2abb4056a32646496efc3617406e36811ec5
2012-03-30android: Fix crash on start up.Thomas Martitz1-1/+1
Change-Id: I0343de9347d100182c2ffd28058ac61f15097cc3
2011-12-22Rename 'mp3entry.embed_albumart' to 'mp3entry.has_embedded_albumart' ↵Alexander Levin1-1/+1
(FS#12470). No functional changes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31405 a1c6a512-1295-4272-9138-f99709370657
2011-03-16Android: Partly revert r29569 and only call the new getJavaEnvironment() ↵Thomas Martitz1-4/+1
when needed. The environment is fine to share in general, just not across OS threads, so it's only needed for functions which are possibly called from multiple OS threads (only 1 currently). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29601 a1c6a512-1295-4272-9138-f99709370657
2011-03-11Partly revert "Android: use NewGlobalRef for references that are used globally"Maurus Cuelenaere1-4/+3
The added complexity wasn't needed for most subsystems, as main() never returns so local references can't be freed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29570 a1c6a512-1295-4272-9138-f99709370657
2011-03-11Android: Don't share the JNI environment across threads, but obtain it theMaurus Cuelenaere1-1/+4
correct way git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29569 a1c6a512-1295-4272-9138-f99709370657
2011-03-11Android: use NewGlobalRef for references that are used globallyMaurus Cuelenaere1-3/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29568 a1c6a512-1295-4272-9138-f99709370657
2011-03-11RaaA: move Android apps-code to separate dir under apps/hostedMaurus Cuelenaere1-0/+147
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29563 a1c6a512-1295-4272-9138-f99709370657