[Android] TV Module

Geoffrey Métais git at videolan.org
Fri Jan 17 15:08:57 CET 2020


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jan 15 17:27:05 2020 +0100| [30c19aac614108f768d6a97fa3db592af8469656] | committer: Geoffrey Métais

TV Module

> https://code.videolan.org/videolan/vlc-android/commit/30c19aac614108f768d6a97fa3db592af8469656
---

 app/build.gradle                                   |   1 +
 app/src/main/AndroidManifest.xml                   |   2 +-
 .../org/videolan/mobile/app/AppSetupDelegate.kt    | 111 ++++++++-------------
 .../java/org/videolan/mobile/app/VLCApplication.kt |  69 +++++++++++++
 build.gradle                                       |   2 +-
 moviepedia/build.gradle                            |   7 +-
 moviepedia/src/main/AndroidManifest.xml            |   8 +-
 .../main/java/org/videolan/moviepedia/Helpers.kt   |  63 ++++++++++++
 .../org/videolan/moviepedia/MoviepediaIndexer.kt   |  15 ++-
 .../provider}/MoviepediaMovieProvider.kt           |   4 +-
 .../moviepedia/provider}/MoviepediaProvider.kt     |   7 +-
 .../provider}/MoviepediaTvshowProvider.kt          |  32 +++++-
 .../datasources/MovieDataSourceFactory.kt          |   2 +-
 .../videolan/moviepedia/ui}/MoviepediaActivity.kt  |  20 ++--
 .../moviepedia/ui}/MoviepediaResultAdapter.kt      |   4 +-
 .../moviepedia/viewmodel}/MediaMetadataModel.kt    |   6 +-
 .../src/main}/res/layout/moviepedia_activity.xml   |   5 +-
 .../src/main}/res/layout/moviepedia_item.xml       |   4 +-
 resources/build.gradle                             |  20 ++--
 .../org/videolan/resources/AppContextProvider.kt   |  24 +++++
 .../main/java/org/videolan/resources/Constants.kt  |   3 +
 .../videolan/resources/interfaces/FocusListener.kt |   6 ++
 .../resources/interfaces/IMediaContentResolver.kt  |  10 ++
 .../resources/interfaces/IndexingListener.kt       |   6 ++
 .../java/org/videolan/resources/util/Extensions.kt |  60 +++++++++++
 .../org/videolan/resources/util}/HeaderProvider.kt |   2 +-
 .../java/org/videolan/resources/util/Helpers.kt    |  87 ++++++++++++++++
 .../src/main}/res/values-h480dp/dimens.xml         |   0
 .../src/main}/res/values-h600dp/dimens.xml         |   0
 .../src/main}/res/values-sw360dp/dimens.xml        |   0
 .../src/main}/res/values-sw480dp/dimens.xml        |   0
 .../src/main}/res/values-sw600dp/dimens.xml        |   0
 .../src/main}/res/values-sw900dp/dimens.xml        |   0
 .../src/main}/res/values-w480dp/dimens.xml         |   0
 .../src/main}/res/values-w480dp/integers.xml       |   0
 .../src/main}/res/values-w600dp/dimens.xml         |   0
 .../src/main}/res/values-w600dp/integers.xml       |   0
 .../src/main}/res/values-w800dp/dimens.xml         |   0
 .../src/main}/res/values-w800dp/integers.xml       |   0
 .../src/main}/res/values/dimens.xml                |   0
 .../src/main}/res/values/integers.xml              |   0
 settings.gradle                                    |   2 +-
 television/.gitignore                              |   1 +
 television/build.gradle                            |  36 +++++++
 television/consumer-rules.pro                      |   0
 television/proguard-rules.pro                      |  21 ++++
 .../videolan/television/ExampleInstrumentedTest.kt |  24 +++++
 television/src/main/AndroidManifest.xml            |  92 +++++++++++++++++
 .../org/videolan/television/ui}/AboutActivity.kt   |   7 +-
 .../org/videolan/television/ui}/CardPresenter.kt   |   4 +-
 .../org/videolan/television/ui}/DetailsActivity.kt |   6 +-
 .../television/ui}/DetailsDescriptionPresenter.kt  |   2 +-
 .../videolan/television/ui}/FileTvItemAdapter.kt   |  13 +--
 .../television/ui}/FocusableConstraintLayout.kt    |   2 +-
 .../television/ui}/FocusableRecyclerView.kt        |   7 +-
 .../television/ui}/FullWidthRowPresenter.kt        |   4 +-
 .../television/ui}/GenericCardPresenter.kt         |   2 +-
 .../org/videolan/television/ui}/LicenceActivity.kt |   8 +-
 .../org/videolan/television/ui}/MainTvActivity.kt  |   9 +-
 .../org/videolan/television/ui}/MainTvFragment.kt  |  48 ++++-----
 .../television/ui}/MediaBrowserAnimatorDelegate.kt |   6 +-
 .../videolan/television/ui}/MediaHeaderAdapter.kt  |   6 +-
 .../television/ui}/MediaImageCardPresenter.kt      |  11 +-
 .../videolan/television/ui}/MediaItemDetails.kt    |   2 +-
 .../television/ui}/MediaItemDetailsFragment.kt     |  28 +++---
 .../videolan/television/ui}/MediaTvItemAdapter.kt  |   9 +-
 .../television/ui}/MetadataCardPresenter.kt        |   4 +-
 .../television/ui}/MoviepediaTvActivity.kt         |   6 +-
 .../television/ui}/MoviepediaTvFragment.kt         |  14 +--
 .../television/ui}/MoviepediaTvItemAdapter.kt      |  17 +++-
 .../ui}/MoviepediaTvshowDetailsActivity.kt         |   6 +-
 .../ui}/MoviepediaTvshowDetailsFragment.kt         |  34 +++----
 .../videolan/television/ui}/NowPlayingDelegate.kt  |   4 +-
 .../videolan/television/ui}/PersonCardPresenter.kt |  11 +-
 .../org/videolan/television/ui}/SearchActivity.kt  |   4 +-
 .../org/videolan/television/ui}/SearchFragment.kt  |   8 +-
 .../org/videolan/television/ui}/TimeUpdater.kt     |   2 +-
 .../videolan/television/ui/TvFocusableAdapter.kt   |  10 ++
 .../org/videolan/television/ui/TvItemAdapter.kt    |   7 ++
 .../television/ui}/TvShowDescriptionPresenter.kt   |   4 +-
 .../java/org/videolan/television/ui}/TvUtil.kt     | 103 ++++++-------------
 .../television/ui}/VideoDetailsPresenter.kt        |  10 +-
 .../ui}/audioplayer/AudioPlayerActivity.kt         |   8 +-
 .../television/ui}/audioplayer/PlaylistAdapter.kt  |   4 +-
 .../ui}/browser/BaseBrowserTvFragment.kt           |  10 +-
 .../television/ui}/browser/BaseTvActivity.kt       |  19 ++--
 .../ui}/browser/FileBrowserTvFragment.kt           |  10 +-
 .../television/ui}/browser/GridFragment.kt         |   6 +-
 .../ui}/browser/MediaBrowserTvFragment.kt          |  13 ++-
 .../ui}/browser/MoviepediaBrowserTvFragment.kt     |  12 +--
 .../videolan/television/ui}/browser/TVActivity.kt  |   6 +-
 .../television/ui}/browser/VerticalGridActivity.kt |  12 +--
 .../browser/interfaces/BrowserActivityInterface.kt |   2 +-
 .../ui}/browser/interfaces/DetailsFragment.kt      |   2 +-
 .../television/ui}/details/MediaListActivity.kt    |  20 ++--
 .../television/ui}/details/MediaListAdapter.kt     |  12 +--
 .../ui}/dialogs/ConfirmationTvActivity.kt          |   4 +-
 .../television/ui}/dialogs/ConfirmationTvDialog.kt |  10 +-
 .../ui}/preferences/BasePreferenceFragment.kt      |   4 +-
 .../ui}/preferences/PreferencesActivity.kt         |   4 +-
 .../ui}/preferences/PreferencesAdvanced.kt         |   2 +-
 .../television/ui}/preferences/PreferencesAudio.kt |   2 +-
 .../ui}/preferences/PreferencesFragment.kt         |   2 +-
 .../ui}/preferences/PreferencesSubtitles.kt        |   2 +-
 .../television/ui}/preferences/PreferencesUi.kt    |   2 +-
 .../television/ui}/preferences/PreferencesVideo.kt |   2 +-
 .../television/ui}/preferences/TvSettings.kt       |   2 +-
 .../java/org/videolan/television/util/Helpers.kt   |  27 +++++
 .../videolan/television/util}/TVSearchProvider.kt  |   8 +-
 .../videolan/television/viewmodel}/MainTvModel.kt  |  24 ++---
 .../television/viewmodel}/MediaBrowserViewModel.kt |   3 +-
 .../viewmodel}/MoviepediaBrowserViewModel.kt       |   5 +-
 .../main}/res/layout/activity_media_list_tv.xml    |   5 +-
 .../res/layout/activity_media_list_tv_item.xml     |   4 +-
 .../src/main}/res/layout/media_browser_tv_item.xml |   8 +-
 .../src/main}/res/layout/movie_browser_tv_item.xml |   6 +-
 .../main}/res/layout/moviepedia_tvshow_details.xml |   2 +-
 .../src/main}/res/layout/song_browser.xml          |   4 +-
 .../src/main}/res/layout/song_header_item.xml      |   2 +-
 .../src/main}/res/layout/tv_audio_player.xml       |   0
 .../src/main}/res/layout/tv_description_row.xml    |   0
 .../src/main}/res/layout/tv_details.xml            |   2 +-
 .../src/main}/res/layout/tv_main.xml               |   2 +-
 .../src/main}/res/layout/tv_next.xml               |   0
 .../src/main}/res/layout/tv_playlist_item.xml      |   0
 .../main}/res/layout/tv_preferences_activity.xml   |   2 +-
 .../src/main}/res/layout/tv_search.xml             |   2 +-
 .../src/main}/res/layout/tv_time.xml               |   0
 .../src/main}/res/layout/tv_vertical_grid.xml      |   0
 .../src/main}/res/layout/tv_video_details.xml      |   0
 .../org/videolan/television/ExampleUnitTest.kt     |  17 ++++
 vlc-android/AndroidManifest.xml                    |  89 -----------------
 .../androidTest/org/videolan/vlc/BaseUITest.kt     |   1 +
 .../org/videolan/vlc/database/MigrationTest.kt     |   7 +-
 vlc-android/build.gradle                           | 107 ++++++++++----------
 vlc-android/res/layout/audio_browser_card_item.xml |   3 +-
 vlc-android/res/layout/playlist_item.xml           |   1 +
 vlc-android/res/xml/preferences.xml                |  10 +-
 .../src/org/videolan/vlc/DebugLogService.kt        |   7 +-
 .../src/org/videolan/vlc/ExternalMonitor.kt        |   2 +-
 .../src/org/videolan/vlc/MediaParsingService.kt    |  35 ++-----
 .../src/org/videolan/vlc/MediaSessionCallback.kt   |   2 +-
 .../src/org/videolan/vlc/PlaybackService.kt        |   4 +-
 .../org/videolan/vlc/PreviewVideoInputService.kt   |   7 +-
 .../src/org/videolan/vlc/RecommendationsService.kt |   9 +-
 vlc-android/src/org/videolan/vlc/StartActivity.kt  |  13 ++-
 .../src/org/videolan/vlc/StoragesMonitor.kt        |   2 +-
 .../vlc/gui/AudioPlayerContainerActivity.kt        |   2 +
 .../src/org/videolan/vlc/gui/BaseActivity.kt       |   6 +-
 .../src/org/videolan/vlc/gui/SearchActivity.kt     |  41 +++-----
 .../src/org/videolan/vlc/gui/SecondaryActivity.kt  |   6 +-
 .../videolan/vlc/gui/audio/AudioBrowserAdapter.kt  |   6 +-
 .../vlc/gui/browser/BaseBrowserFragment.kt         |  16 +--
 .../org/videolan/vlc/gui/helpers/ImageLoader.kt    |  59 +++++------
 .../videolan/vlc/gui/helpers/NotificationHelper.kt |   4 +-
 .../src/org/videolan/vlc/gui/helpers/UiTools.kt    |  38 ++++++-
 .../gui/helpers/hf/StoragePermissionsDelegate.kt   |   2 +-
 .../videolan/vlc/gui/network/MRLPanelFragment.kt   |   3 +-
 .../vlc/gui/onboarding/OnboardingActivity.kt       |   2 +-
 .../org/videolan/vlc/gui/tv/TvFocusableAdapter.kt  |   8 --
 .../src/org/videolan/vlc/gui/tv/TvItemAdapter.kt   |   7 --
 .../videolan/vlc/gui/video/VideoGridFragment.kt    |   9 +-
 .../videolan/vlc/gui/video/VideoPlayerActivity.kt  |  10 +-
 .../src/org/videolan/vlc/gui/view/FastScroller.kt  |   2 +-
 .../gui/view/RecyclerSectionItemGridDecoration.kt  |   3 +-
 .../interfaces/BrowserFragmentInterface.kt         |   2 +-
 .../src/org/videolan/vlc/media/MediaUtils.kt       |  96 ++++++++----------
 .../org/videolan/vlc/providers/BrowserProvider.kt  |   1 +
 .../providers/medialibrary/MedialibraryProvider.kt |   2 +-
 .../src/org/videolan/vlc/util/Kextensions.kt       |  51 +---------
 .../src/org/videolan/vlc/util/ModelsHelper.kt      | 107 +-------------------
 .../src/org/videolan/vlc/util/TvChannels.kt        |   1 +
 .../videolan/vlc/viewmodels/tv/TvBrowserModel.kt   |   2 +-
 173 files changed, 1255 insertions(+), 999 deletions(-)

Diff:   https://code.videolan.org/videolan/vlc-android/commit/30c19aac614108f768d6a97fa3db592af8469656


More information about the Android mailing list