/developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/ |
D | SyncProgramsJobService.java | 57 final long channelId = getChannelId(jobParameters); in onStartJob() local 58 if (channelId == -1L) { in onStartJob() 61 Log.d(TAG, "onStartJob(): Scheduling syncing for programs for channel " + channelId); in onStartJob() 70 SyncProgramsJobService.this, channelId); in onStartJob() 75 mSyncProgramsTask.execute(channelId); in onStartJob() 108 private void syncPrograms(long channelId, List<Movie> initialMovies) { in syncPrograms() argument 109 Log.d(TAG, "Sync programs for channel: " + channelId); in syncPrograms() 115 TvContractCompat.buildChannelUri(channelId), in syncPrograms() 123 Log.d(TAG, "Channel is not browsable: " + channelId); in syncPrograms() 124 deletePrograms(channelId, movies); in syncPrograms() [all …]
|
D | MainActivity.java | 94 long channelId = TvUtil.createChannel(mContext, subscription); in doInBackground() local 96 subscription.setChannelId(channelId); in doInBackground() 100 TvUtil.scheduleSyncingProgramsForChannel(getApplicationContext(), channelId); in doInBackground() local 101 return channelId; in doInBackground() 105 protected void onPostExecute(Long channelId) { in onPostExecute() argument 106 super.onPostExecute(channelId); in onPostExecute() 107 promptUserToDisplayChannel(channelId); in onPostExecute() 111 private void promptUserToDisplayChannel(long channelId) { in promptUserToDisplayChannel() argument 114 intent.putExtra(TvContractCompat.EXTRA_CHANNEL_ID, channelId); in promptUserToDisplayChannel()
|
D | SyncChannelJobService.java | 84 long channelId = TvUtil.createChannel(mContext, subscription); in doInBackground() local 85 subscription.setChannelId(channelId); in doInBackground() 86 TvContractCompat.requestChannelBrowsable(mContext, channelId); in doInBackground()
|
D | AppLinkActivity.java | 110 private void startPlaying(long channelId, Movie movie, long position) { in startPlaying() argument 113 playMovieIntent.putExtra(PlaybackActivity.EXTRA_CHANNEL_ID, channelId); in startPlaying()
|
/developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/model/ |
D | MockDatabase.java | 168 public static Subscription findSubscriptionByChannelId(Context context, long channelId) { in findSubscriptionByChannelId() argument 170 if (subscription.getChannelId() == channelId) { in findSubscriptionByChannelId() 201 public static void saveMovies(Context context, long channelId, List<Movie> movies) { in saveMovies() argument 202 SharedPreferencesHelper.storeMovies(context, channelId, movies); in saveMovies() 212 public static void removeMovies(Context context, long channelId) { in removeMovies() argument 213 saveMovies(context, channelId, Collections.<Movie>emptyList()); in removeMovies() 224 public static void saveMovie(Context context, long channelId, Movie movie) { in saveMovie() argument 225 List<Movie> movies = getMovies(context, channelId); in saveMovie() 232 saveMovies(context, channelId, movies); in saveMovie() 252 public static List<Movie> getMovies(Context context, long channelId) { in getMovies() argument [all …]
|
D | Subscription.java | 19 private long channelId; field in Subscription 42 return channelId; in getChannelId() 45 public void setChannelId(long channelId) { in setChannelId() argument 46 this.channelId = channelId; in setChannelId()
|
/developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/playback/ |
D | WatchNextAdapter.java | 35 Context context, long channelId, Movie movie, long position, long duration) { in updateProgress() argument 38 Movie entity = MockDatabase.findMovieById(context, channelId, movie.getId()); in updateProgress() 44 channelId, movie.getId())); in updateProgress() 49 WatchNextProgram program = createWatchNextProgram(channelId, entity, position, duration); in updateProgress() 59 MockDatabase.saveMovie(context, channelId, entity); in updateProgress() 78 long channelId, Movie movie, long position, long duration) { in createWatchNextProgram() argument 81 Uri intentUri = AppLinkHelper.buildPlaybackUri(channelId, movie.getId(), position); in createWatchNextProgram() 96 public void removeFromWatchNext(Context context, long channelId, long movieId) { in removeFromWatchNext() argument 97 Movie movie = MockDatabase.findMovieById(context, channelId, movieId); in removeFromWatchNext() 114 MockDatabase.saveMovie(context, channelId, movie); in removeFromWatchNext()
|
/developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/util/ |
D | TvUtil.java | 105 long channelId = ContentUris.parseId(channelUrl); in createChannel() local 106 Log.d(TAG, "channel id " + channelId); in createChannel() 109 ChannelLogoUtils.storeChannelLogo(context, channelId, bitmap); in createChannel() 111 return channelId; in createChannel() 176 public static void scheduleSyncingProgramsForChannel(Context context, long channelId) { in scheduleSyncingProgramsForChannel() argument 180 new JobInfo.Builder(getJobIdForChannelId(channelId), componentName); in scheduleSyncingProgramsForChannel() 184 TvContractCompat.buildChannelUri(channelId), in scheduleSyncingProgramsForChannel() 191 bundle.putLong(TvContractCompat.EXTRA_CHANNEL_ID, channelId); in scheduleSyncingProgramsForChannel() 196 scheduler.cancel(getJobIdForChannelId(channelId)); in scheduleSyncingProgramsForChannel() 200 private static int getJobIdForChannelId(long channelId) { in getJobIdForChannelId() argument [all …]
|
D | AppLinkHelper.java | 29 public static Uri buildPlaybackUri(long channelId, long movieId) { in buildPlaybackUri() argument 30 return buildPlaybackUri(channelId, movieId, DEFAULT_POSITION); in buildPlaybackUri() 41 public static Uri buildPlaybackUri(long channelId, long movieId, long position) { in buildPlaybackUri() argument 44 .appendPath(String.valueOf(channelId)) in buildPlaybackUri() 192 private PlaybackAction(long channelId, long movieId, long position) { in PlaybackAction() argument 193 this.mChannelId = channelId; in PlaybackAction()
|
D | SharedPreferencesHelper.java | 81 public static List<Movie> readMovies(Context context, long channelId) { in readMovies() argument 82 return getList(context, Movie.class, PREFS_SUBSCRIBED_MOVIES_PREFIX + channelId); in readMovies() 92 public static void storeMovies(Context context, long channelId, List<Movie> movies) { in storeMovies() argument 93 setList(context, movies, PREFS_SUBSCRIBED_MOVIES_PREFIX + channelId); in storeMovies()
|
/developers/samples/android/wearable/wear/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/util/ |
D | NotificationUtil.java | 46 String channelId = mockNotificationData.getChannelId(); in createNotificationChannel() local 59 new NotificationChannel(channelId, channelName, channelImportance); in createNotificationChannel() 71 return channelId; in createNotificationChannel()
|
/developers/build/prebuilts/gradle/WearNotifications/Shared/src/main/java/com/example/android/wearable/wear/common/util/ |
D | NotificationUtil.java | 39 String channelId = mockNotificationData.getChannelId(); in createNotificationChannel() local 52 new NotificationChannel(channelId, channelName, channelImportance); in createNotificationChannel() 64 return channelId; in createNotificationChannel()
|
/developers/samples/android/wearable/wear/WearNotifications/Shared/src/main/java/com/example/android/wearable/wear/common/util/ |
D | NotificationUtil.java | 39 String channelId = mockNotificationData.getChannelId(); in createNotificationChannel() local 52 new NotificationChannel(channelId, channelName, channelImportance); in createNotificationChannel() 64 return channelId; in createNotificationChannel()
|
/developers/build/prebuilts/gradle/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/ |
D | NotificationsActivity.java | 283 String channelId = mockNotificationData.getChannelId(); in createNotificationChannel() local 296 new NotificationChannel(channelId, channelName, channelImportance); in createNotificationChannel() 309 return channelId; in createNotificationChannel()
|
/developers/samples/android/wearable/wear/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/ |
D | NotificationsActivity.java | 313 String channelId = mockNotificationData.getChannelId(); in createNotificationChannel() local 326 new NotificationChannel(channelId, channelName, channelImportance); in createNotificationChannel() 339 return channelId; in createNotificationChannel()
|
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/ |
D | TvContractUtils.java | 170 long channelId = cursor.getLong(0); in buildChannelMap() local 172 channelMap.put(channelId, getChannelByNumber(channelNumber, channels)); in buildChannelMap()
|