From b75a02a4261d28404690e71d8f35db6fbae2fe29 Mon Sep 17 00:00:00 2001 From: bju Date: Sat, 19 Mar 2011 15:55:13 +0100 Subject: First revision --- androvdr/.classpath | 7 + androvdr/.project | 33 ++ androvdr/.settings/org.eclipse.jdt.core.prefs | 12 + androvdr/AndroidManifest.xml | 29 ++ androvdr/default.properties | 11 + androvdr/res/drawable-hdpi/icon.png | Bin 0 -> 4147 bytes androvdr/res/drawable-ldpi/icon.png | Bin 0 -> 1723 bytes androvdr/res/drawable-mdpi/icon.png | Bin 0 -> 2574 bytes androvdr/res/drawable/channels.gif | Bin 0 -> 106 bytes androvdr/res/drawable/settings.gif | Bin 0 -> 104 bytes androvdr/res/drawable/timer_active.png | Bin 0 -> 202 bytes androvdr/res/drawable/timer_inactive.png | Bin 0 -> 232 bytes androvdr/res/drawable/timer_none.png | Bin 0 -> 102 bytes androvdr/res/drawable/timer_recording.png | Bin 0 -> 248 bytes androvdr/res/drawable/timers.gif | Bin 0 -> 86 bytes androvdr/res/drawable/vdr_logo.jpg | Bin 0 -> 12240 bytes androvdr/res/drawable/whatson.gif | Bin 0 -> 107 bytes androvdr/res/layout/channel_item.xml | 21 ++ androvdr/res/layout/channel_list.xml | 10 + androvdr/res/layout/epg_detail.xml | 84 +++++ androvdr/res/layout/epg_list.xml | 50 +++ androvdr/res/layout/epg_search.xml | 32 ++ androvdr/res/layout/epg_search_times_item.xml | 8 + androvdr/res/layout/epg_search_times_list.xml | 25 ++ androvdr/res/layout/event_item.xml | 40 ++ androvdr/res/layout/main.xml | 21 ++ androvdr/res/layout/timer_detail.xml | 99 +++++ androvdr/res/layout/timer_list.xml | 11 + androvdr/res/layout/vdrmanager.xml | 28 ++ androvdr/res/layout/vdrmanager_menu_item.xml | 21 ++ androvdr/res/layout/video.xml | 27 ++ androvdr/res/menu/channel_list_item_menu.xml | 11 + androvdr/res/menu/epg_list_item_menu.xml | 17 + androvdr/res/menu/epg_list_menu.xml | 11 + androvdr/res/menu/epg_search_time_item_menu.xml | 8 + androvdr/res/menu/main_menu.xml | 14 + androvdr/res/values/action_menu.xml | 10 + androvdr/res/values/application.xml | 4 + androvdr/res/values/channel_list_menu.xml | 7 + androvdr/res/values/common.xml | 6 + androvdr/res/values/epg.xml | 18 + androvdr/res/values/epg_list_menu.xml | 13 + androvdr/res/values/epg_search_times.xml | 6 + androvdr/res/values/errors.xml | 6 + androvdr/res/values/main_menu.xml | 8 + androvdr/res/values/preferences.xml | 49 +++ androvdr/res/values/preferences_keys.xml | 29 ++ androvdr/res/values/progress.xml | 20 + androvdr/res/values/strings.xml | 5 + androvdr/res/values/timers.xml | 13 + androvdr/res/xml/preferences.xml | 103 ++++++ .../de/bjusystems/androvdr/app/AndroVdrApp.java | 134 +++++++ .../de/bjusystems/androvdr/data/AliveState.java | 36 ++ .../src/de/bjusystems/androvdr/data/Channel.java | 41 +++ androvdr/src/de/bjusystems/androvdr/data/Epg.java | 65 ++++ .../bjusystems/androvdr/data/EpgSearchParams.java | 43 +++ .../androvdr/data/EpgSearchTimeValue.java | 49 +++ .../androvdr/data/EpgSearchTimeValues.java | 62 ++++ .../src/de/bjusystems/androvdr/data/Event.java | 21 ++ .../bjusystems/androvdr/data/EventFormatter.java | 43 +++ .../de/bjusystems/androvdr/data/EventListItem.java | 100 +++++ .../androvdr/data/MenuActionHandler.java | 16 + .../de/bjusystems/androvdr/data/Preferences.java | 312 ++++++++++++++++ .../src/de/bjusystems/androvdr/data/Timer.java | 186 ++++++++++ .../de/bjusystems/androvdr/data/WakeupState.java | 36 ++ .../bjusystems/androvdr/gui/AndroVdrActivity.java | 228 ++++++++++++ .../de/bjusystems/androvdr/gui/ChannelAdapter.java | 75 ++++ .../de/bjusystems/androvdr/gui/ChannelHolder.java | 9 + .../androvdr/gui/ChannelListActivity.java | 187 ++++++++++ .../androvdr/gui/EpgDetailsActivity.java | 91 +++++ .../bjusystems/androvdr/gui/EpgListActivity.java | 408 +++++++++++++++++++++ .../bjusystems/androvdr/gui/EpgSearchActivity.java | 63 ++++ .../androvdr/gui/EpgSearchTimesListActivity.java | 130 +++++++ .../de/bjusystems/androvdr/gui/EventAdapter.java | 171 +++++++++ .../androvdr/gui/EventListItemHolder.java | 12 + .../androvdr/gui/PreferencesActivity.java | 34 ++ .../androvdr/gui/SvdrpProgressDialog.java | 72 ++++ .../androvdr/gui/TimerDetailsActivity.java | 232 ++++++++++++ .../bjusystems/androvdr/gui/TimerListActivity.java | 238 ++++++++++++ .../de/bjusystems/androvdr/gui/VideoActivity.java | 67 ++++ .../androvdr/tasks/AsyncProgressTask.java | 55 +++ .../bjusystems/androvdr/tasks/DeleteTimerTask.java | 18 + .../bjusystems/androvdr/tasks/ToggleTimerTask.java | 25 ++ .../androvdr/utils/date/DateFormatter.java | 43 +++ .../bjusystems/androvdr/utils/http/HttpHelper.java | 263 +++++++++++++ .../androvdr/utils/svdrp/AliveClient.java | 49 +++ .../androvdr/utils/svdrp/ChannelClient.java | 44 +++ .../bjusystems/androvdr/utils/svdrp/EpgClient.java | 91 +++++ .../androvdr/utils/svdrp/SetTimerClient.java | 59 +++ .../androvdr/utils/svdrp/SvdrpAsyncListener.java | 7 + .../androvdr/utils/svdrp/SvdrpAsyncTask.java | 61 +++ .../androvdr/utils/svdrp/SvdrpClient.java | 275 ++++++++++++++ .../androvdr/utils/svdrp/SvdrpEvent.java | 17 + .../androvdr/utils/svdrp/SvdrpException.java | 22 ++ .../androvdr/utils/svdrp/SvdrpListener.java | 7 + .../androvdr/utils/svdrp/TimerClient.java | 50 +++ .../androvdr/utils/svdrp/WakeupClient.java | 51 +++ .../androvdr/utils/wakeup/AsyncWakeupTask.java | 94 +++++ .../androvdr/utils/wakeup/WakeupProgress.java | 8 + 99 files changed, 5327 insertions(+) create mode 100644 androvdr/.classpath create mode 100644 androvdr/.project create mode 100644 androvdr/.settings/org.eclipse.jdt.core.prefs create mode 100644 androvdr/AndroidManifest.xml create mode 100644 androvdr/default.properties create mode 100644 androvdr/res/drawable-hdpi/icon.png create mode 100644 androvdr/res/drawable-ldpi/icon.png create mode 100644 androvdr/res/drawable-mdpi/icon.png create mode 100644 androvdr/res/drawable/channels.gif create mode 100644 androvdr/res/drawable/settings.gif create mode 100644 androvdr/res/drawable/timer_active.png create mode 100644 androvdr/res/drawable/timer_inactive.png create mode 100644 androvdr/res/drawable/timer_none.png create mode 100644 androvdr/res/drawable/timer_recording.png create mode 100644 androvdr/res/drawable/timers.gif create mode 100644 androvdr/res/drawable/vdr_logo.jpg create mode 100644 androvdr/res/drawable/whatson.gif create mode 100644 androvdr/res/layout/channel_item.xml create mode 100644 androvdr/res/layout/channel_list.xml create mode 100644 androvdr/res/layout/epg_detail.xml create mode 100644 androvdr/res/layout/epg_list.xml create mode 100644 androvdr/res/layout/epg_search.xml create mode 100644 androvdr/res/layout/epg_search_times_item.xml create mode 100644 androvdr/res/layout/epg_search_times_list.xml create mode 100644 androvdr/res/layout/event_item.xml create mode 100644 androvdr/res/layout/main.xml create mode 100644 androvdr/res/layout/timer_detail.xml create mode 100644 androvdr/res/layout/timer_list.xml create mode 100644 androvdr/res/layout/vdrmanager.xml create mode 100644 androvdr/res/layout/vdrmanager_menu_item.xml create mode 100644 androvdr/res/layout/video.xml create mode 100644 androvdr/res/menu/channel_list_item_menu.xml create mode 100644 androvdr/res/menu/epg_list_item_menu.xml create mode 100644 androvdr/res/menu/epg_list_menu.xml create mode 100644 androvdr/res/menu/epg_search_time_item_menu.xml create mode 100644 androvdr/res/menu/main_menu.xml create mode 100644 androvdr/res/values/action_menu.xml create mode 100644 androvdr/res/values/application.xml create mode 100644 androvdr/res/values/channel_list_menu.xml create mode 100644 androvdr/res/values/common.xml create mode 100644 androvdr/res/values/epg.xml create mode 100644 androvdr/res/values/epg_list_menu.xml create mode 100644 androvdr/res/values/epg_search_times.xml create mode 100644 androvdr/res/values/errors.xml create mode 100644 androvdr/res/values/main_menu.xml create mode 100644 androvdr/res/values/preferences.xml create mode 100644 androvdr/res/values/preferences_keys.xml create mode 100644 androvdr/res/values/progress.xml create mode 100644 androvdr/res/values/strings.xml create mode 100644 androvdr/res/values/timers.xml create mode 100644 androvdr/res/xml/preferences.xml create mode 100644 androvdr/src/de/bjusystems/androvdr/app/AndroVdrApp.java create mode 100644 androvdr/src/de/bjusystems/androvdr/data/AliveState.java create mode 100644 androvdr/src/de/bjusystems/androvdr/data/Channel.java create mode 100644 androvdr/src/de/bjusystems/androvdr/data/Epg.java create mode 100644 androvdr/src/de/bjusystems/androvdr/data/EpgSearchParams.java create mode 100644 androvdr/src/de/bjusystems/androvdr/data/EpgSearchTimeValue.java create mode 100644 androvdr/src/de/bjusystems/androvdr/data/EpgSearchTimeValues.java create mode 100644 androvdr/src/de/bjusystems/androvdr/data/Event.java create mode 100644 androvdr/src/de/bjusystems/androvdr/data/EventFormatter.java create mode 100644 androvdr/src/de/bjusystems/androvdr/data/EventListItem.java create mode 100644 androvdr/src/de/bjusystems/androvdr/data/MenuActionHandler.java create mode 100644 androvdr/src/de/bjusystems/androvdr/data/Preferences.java create mode 100644 androvdr/src/de/bjusystems/androvdr/data/Timer.java create mode 100644 androvdr/src/de/bjusystems/androvdr/data/WakeupState.java create mode 100644 androvdr/src/de/bjusystems/androvdr/gui/AndroVdrActivity.java create mode 100644 androvdr/src/de/bjusystems/androvdr/gui/ChannelAdapter.java create mode 100644 androvdr/src/de/bjusystems/androvdr/gui/ChannelHolder.java create mode 100644 androvdr/src/de/bjusystems/androvdr/gui/ChannelListActivity.java create mode 100644 androvdr/src/de/bjusystems/androvdr/gui/EpgDetailsActivity.java create mode 100644 androvdr/src/de/bjusystems/androvdr/gui/EpgListActivity.java create mode 100644 androvdr/src/de/bjusystems/androvdr/gui/EpgSearchActivity.java create mode 100644 androvdr/src/de/bjusystems/androvdr/gui/EpgSearchTimesListActivity.java create mode 100644 androvdr/src/de/bjusystems/androvdr/gui/EventAdapter.java create mode 100644 androvdr/src/de/bjusystems/androvdr/gui/EventListItemHolder.java create mode 100644 androvdr/src/de/bjusystems/androvdr/gui/PreferencesActivity.java create mode 100644 androvdr/src/de/bjusystems/androvdr/gui/SvdrpProgressDialog.java create mode 100644 androvdr/src/de/bjusystems/androvdr/gui/TimerDetailsActivity.java create mode 100644 androvdr/src/de/bjusystems/androvdr/gui/TimerListActivity.java create mode 100644 androvdr/src/de/bjusystems/androvdr/gui/VideoActivity.java create mode 100644 androvdr/src/de/bjusystems/androvdr/tasks/AsyncProgressTask.java create mode 100644 androvdr/src/de/bjusystems/androvdr/tasks/DeleteTimerTask.java create mode 100644 androvdr/src/de/bjusystems/androvdr/tasks/ToggleTimerTask.java create mode 100644 androvdr/src/de/bjusystems/androvdr/utils/date/DateFormatter.java create mode 100644 androvdr/src/de/bjusystems/androvdr/utils/http/HttpHelper.java create mode 100644 androvdr/src/de/bjusystems/androvdr/utils/svdrp/AliveClient.java create mode 100644 androvdr/src/de/bjusystems/androvdr/utils/svdrp/ChannelClient.java create mode 100644 androvdr/src/de/bjusystems/androvdr/utils/svdrp/EpgClient.java create mode 100644 androvdr/src/de/bjusystems/androvdr/utils/svdrp/SetTimerClient.java create mode 100644 androvdr/src/de/bjusystems/androvdr/utils/svdrp/SvdrpAsyncListener.java create mode 100644 androvdr/src/de/bjusystems/androvdr/utils/svdrp/SvdrpAsyncTask.java create mode 100644 androvdr/src/de/bjusystems/androvdr/utils/svdrp/SvdrpClient.java create mode 100644 androvdr/src/de/bjusystems/androvdr/utils/svdrp/SvdrpEvent.java create mode 100644 androvdr/src/de/bjusystems/androvdr/utils/svdrp/SvdrpException.java create mode 100644 androvdr/src/de/bjusystems/androvdr/utils/svdrp/SvdrpListener.java create mode 100644 androvdr/src/de/bjusystems/androvdr/utils/svdrp/TimerClient.java create mode 100644 androvdr/src/de/bjusystems/androvdr/utils/svdrp/WakeupClient.java create mode 100644 androvdr/src/de/bjusystems/androvdr/utils/wakeup/AsyncWakeupTask.java create mode 100644 androvdr/src/de/bjusystems/androvdr/utils/wakeup/WakeupProgress.java diff --git a/androvdr/.classpath b/androvdr/.classpath new file mode 100644 index 0000000..79a8481 --- /dev/null +++ b/androvdr/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/androvdr/.project b/androvdr/.project new file mode 100644 index 0000000..0ebf06a --- /dev/null +++ b/androvdr/.project @@ -0,0 +1,33 @@ + + + AndroVdr + + + + + + com.android.ide.eclipse.adt.ResourceManagerBuilder + + + + + com.android.ide.eclipse.adt.PreCompilerBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + com.android.ide.eclipse.adt.ApkBuilder + + + + + + com.android.ide.eclipse.adt.AndroidNature + org.eclipse.jdt.core.javanature + + diff --git a/androvdr/.settings/org.eclipse.jdt.core.prefs b/androvdr/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..b95f163 --- /dev/null +++ b/androvdr/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,12 @@ +#Fri Mar 04 00:03:01 CET 2011 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.5 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.5 diff --git a/androvdr/AndroidManifest.xml b/androvdr/AndroidManifest.xml new file mode 100644 index 0000000..fd2376c --- /dev/null +++ b/androvdr/AndroidManifest.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/androvdr/default.properties b/androvdr/default.properties new file mode 100644 index 0000000..9d135cb --- /dev/null +++ b/androvdr/default.properties @@ -0,0 +1,11 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must be checked in Version Control Systems. +# +# To customize properties used by the Ant build system use, +# "build.properties", and override values to adapt the script to your +# project structure. + +# Project target. +target=android-7 diff --git a/androvdr/res/drawable-hdpi/icon.png b/androvdr/res/drawable-hdpi/icon.png new file mode 100644 index 0000000..8074c4c Binary files /dev/null and b/androvdr/res/drawable-hdpi/icon.png differ diff --git a/androvdr/res/drawable-ldpi/icon.png b/androvdr/res/drawable-ldpi/icon.png new file mode 100644 index 0000000..1095584 Binary files /dev/null and b/androvdr/res/drawable-ldpi/icon.png differ diff --git a/androvdr/res/drawable-mdpi/icon.png b/androvdr/res/drawable-mdpi/icon.png new file mode 100644 index 0000000..a07c69f Binary files /dev/null and b/androvdr/res/drawable-mdpi/icon.png differ diff --git a/androvdr/res/drawable/channels.gif b/androvdr/res/drawable/channels.gif new file mode 100644 index 0000000..f9874ff Binary files /dev/null and b/androvdr/res/drawable/channels.gif differ diff --git a/androvdr/res/drawable/settings.gif b/androvdr/res/drawable/settings.gif new file mode 100644 index 0000000..5d36e7c Binary files /dev/null and b/androvdr/res/drawable/settings.gif differ diff --git a/androvdr/res/drawable/timer_active.png b/androvdr/res/drawable/timer_active.png new file mode 100644 index 0000000..7b67f94 Binary files /dev/null and b/androvdr/res/drawable/timer_active.png differ diff --git a/androvdr/res/drawable/timer_inactive.png b/androvdr/res/drawable/timer_inactive.png new file mode 100644 index 0000000..c7a75c4 Binary files /dev/null and b/androvdr/res/drawable/timer_inactive.png differ diff --git a/androvdr/res/drawable/timer_none.png b/androvdr/res/drawable/timer_none.png new file mode 100644 index 0000000..dbf17ad Binary files /dev/null and b/androvdr/res/drawable/timer_none.png differ diff --git a/androvdr/res/drawable/timer_recording.png b/androvdr/res/drawable/timer_recording.png new file mode 100644 index 0000000..2031530 Binary files /dev/null and b/androvdr/res/drawable/timer_recording.png differ diff --git a/androvdr/res/drawable/timers.gif b/androvdr/res/drawable/timers.gif new file mode 100644 index 0000000..3577dab Binary files /dev/null and b/androvdr/res/drawable/timers.gif differ diff --git a/androvdr/res/drawable/vdr_logo.jpg b/androvdr/res/drawable/vdr_logo.jpg new file mode 100644 index 0000000..bba3a1f Binary files /dev/null and b/androvdr/res/drawable/vdr_logo.jpg differ diff --git a/androvdr/res/drawable/whatson.gif b/androvdr/res/drawable/whatson.gif new file mode 100644 index 0000000..5a35904 Binary files /dev/null and b/androvdr/res/drawable/whatson.gif differ diff --git a/androvdr/res/layout/channel_item.xml b/androvdr/res/layout/channel_item.xml new file mode 100644 index 0000000..dd09400 --- /dev/null +++ b/androvdr/res/layout/channel_item.xml @@ -0,0 +1,21 @@ + + + + + + + + + \ No newline at end of file diff --git a/androvdr/res/layout/channel_list.xml b/androvdr/res/layout/channel_list.xml new file mode 100644 index 0000000..dd6ec31 --- /dev/null +++ b/androvdr/res/layout/channel_list.xml @@ -0,0 +1,10 @@ + + diff --git a/androvdr/res/layout/epg_detail.xml b/androvdr/res/layout/epg_detail.xml new file mode 100644 index 0000000..7752819 --- /dev/null +++ b/androvdr/res/layout/epg_detail.xml @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +