HomeSort by relevance Sort by last modified time
    Searched refs:channelId (Results 1 - 25 of 182) sorted by null

1 2 3 4 5 6 7 8

  /packages/apps/TV/src/com/android/tv/data/
OnCurrentProgramUpdatedListener.java 21 void onCurrentProgramUpdated(long channelId, Program program);
ProgramDataManager.java 229 public Program getCurrentProgram(long channelId) {
230 return mChannelIdCurrentProgramMap.get(channelId);
296 public List<Program> getPrograms(long channelId, long startTime) {
298 ArrayList<Program> cachedPrograms = mChannelIdProgramCache.get(channelId);
338 * @param channelId A channel ID to get notified. If it's {@link Channel#INVALID_ID}, the
342 long channelId, OnCurrentProgramUpdatedListener listener) {
343 mChannelId2ProgramUpdatedListeners.put(channelId, listener);
351 long channelId, OnCurrentProgramUpdatedListener listener) {
352 mChannelId2ProgramUpdatedListeners.remove(channelId, listener);
355 private void notifyCurrentProgramUpdate(long channelId, Program program)
    [all...]
  /packages/apps/TV/src/com/android/tv/recommendation/
RandomEvaluator.java 21 public double evaluateChannel(long channelId) {
FavoriteChannelEvaluator.java 38 public double evaluateChannel(long channelId) {
39 ChannelRecord cr = getRecommender().getChannelRecord(channelId);
  /packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
RecentChannelEvaluatorTest.java 48 long channelId = addChannel().getId();
52 Recommender.Evaluator.NOT_RECOMMENDED, mEvaluator.evaluateChannel(channelId));
73 for (long channelId : channelIdList) {
75 Recommender.Evaluator.NOT_RECOMMENDED, mEvaluator.evaluateChannel(channelId));
98 for (long channelId : channelIdList) {
99 addWatchLog(channelId, latestWatchEndTimeMs, TimeUnit.HOURS.toMillis(1));
107 for (long channelId : channelIdList) {
108 double score = mEvaluator.evaluateChannel(channelId);
125 for (long channelId : channelIdList) {
126 double previousScore = mEvaluator.evaluateChannel(channelId);
    [all...]
FavoriteChannelEvaluatorTest.java 46 long channelId = addChannel().getId();
50 Recommender.Evaluator.NOT_RECOMMENDED, mEvaluator.evaluateChannel(channelId));
71 for (long channelId : channelIdList) {
73 Recommender.Evaluator.NOT_RECOMMENDED, mEvaluator.evaluateChannel(channelId));
97 for (long channelId : channelIdList) {
99 addWatchLog(channelId, latestWatchEndTimeMs, durationMs);
107 for (long channelId : channelIdList) {
108 double score = mEvaluator.evaluateChannel(channelId);
162 long channelId = addChannel().getId();
170 double previousScore = mEvaluator.evaluateChannel(channelId);
    [all...]
RecommendationUtils.java 65 long channelId = (long) invocation.getArguments()[0];
66 return channelRecordSortedMap.get(channelId);
109 long channelId = size();
110 ChannelImpl channel = new ChannelImpl.Builder().setId(channelId).build();
112 put(channelId, channelRecord);
129 long channelId = channelIdList.get(mRandom.nextInt(channelIdList.size()));
130 if (previousChannelId == channelId) {
135 if (!addWatchLog(channelId, latestWatchEndTimeMs, watchedDurationMs)) {
139 previousChannelId = channelId;
145 * Add new watch log to channel that id is {@code ChannelId}. Add watch log starts fro
    [all...]
EvaluatorTestCase.java 72 public void addWatchLog(long channelId, long watchStartTimeMs, long durationTimeMs) {
74 mChannelRecordSortedMap.addWatchLog(channelId, watchStartTimeMs, durationTimeMs));
98 for (long channelId : mChannelRecordSortedMap.keySet()) {
99 double score = mEvaluator.evaluateChannel(channelId);
101 "Channel " + channelId + " score of " + score + "is not valid",
134 public ChannelRecord getChannelRecord(long channelId) {
135 return mChannelRecordSortedMap.get(channelId);
  /developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/
SyncProgramsJobService.java 57 final long channelId = getChannelId(jobParameters);
58 if (channelId == -1L) {
61 Log.d(TAG, "onStartJob(): Scheduling syncing for programs for channel " + channelId);
70 SyncProgramsJobService.this, channelId);
75 mSyncProgramsTask.execute(channelId);
108 private void syncPrograms(long channelId, List<Movie> initialMovies) {
109 Log.d(TAG, "Sync programs for channel: " + channelId);
115 TvContractCompat.buildChannelUri(channelId),
123 Log.d(TAG, "Channel is not browsable: " + channelId);
124 deletePrograms(channelId, movies)
    [all...]
MainActivity.java 94 long channelId = TvUtil.createChannel(mContext, subscription);
96 subscription.setChannelId(channelId);
100 TvUtil.scheduleSyncingProgramsForChannel(getApplicationContext(), channelId);
101 return channelId;
105 protected void onPostExecute(Long channelId) {
106 super.onPostExecute(channelId);
107 promptUserToDisplayChannel(channelId);
111 private void promptUserToDisplayChannel(long channelId) {
114 intent.putExtra(TvContractCompat.EXTRA_CHANNEL_ID, channelId);
  /packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/
RecordingTestUtils.java 28 long id, String inputId, long channelId, long startTime, long endTime) {
29 return ScheduledRecording.builder(inputId, channelId, startTime, endTime)
31 .setChannelId(channelId)
36 String inputId, long channelId, long startTime, long endTime) {
38 ScheduledRecording.ID_NOT_SET, inputId, channelId, startTime, endTime);
42 long channelId, long priority, long startTime, long endTime) {
44 .setChannelId(channelId)
50 long id, long channelId, long priority, long startTime, long endTime) {
53 .setChannelId(channelId)
  /developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/model/
Subscription.java 19 private long channelId;
42 return channelId;
45 public void setChannelId(long channelId) {
46 this.channelId = channelId;
MockDatabase.java 164 * @param channelId of the channel that the subscription is associated with.
168 public static Subscription findSubscriptionByChannelId(Context context, long channelId) {
170 if (subscription.getChannelId() == channelId) {
198 * @param channelId of the channel that the movies are associated with.
201 public static void saveMovies(Context context, long channelId, List<Movie> movies) {
202 SharedPreferencesHelper.storeMovies(context, channelId, movies);
210 * @param channelId of the channel that the movies are associated with.
212 public static void removeMovies(Context context, long channelId) {
213 saveMovies(context, channelId, Collections.<Movie>emptyList());
221 * @param channelId of the subscription that the movie is associated with
    [all...]
  /frameworks/base/core/java/android/bluetooth/
BluetoothHealthCallback.java 59 * @param channelId The id associated with the channel. This id will be used in future calls
65 int channelId) {
68 + "ChannelId:" + channelId);
  /frameworks/native/services/sensorservice/hidl/
DirectReportChannel.cpp 26 DirectReportChannel::DirectReportChannel(::android::SensorManager& manager, int channelId)
27 : mManager(manager), mId(channelId) {}
  /packages/apps/TV/src/com/android/tv/guide/
ProgramManager.java 134 oldEntry.channelId,
152 oldEntry.channelId,
171 oldEntry.channelId,
333 int getProgramIdIndex(long channelId, long entryId) {
334 List<TableEntry> entries = mChannelIdEntriesMap.get(channelId);
346 int getProgramIndexAtTime(long channelId, long time) {
347 List<TableEntry> entries = mChannelIdEntriesMap.get(channelId);
392 * Returns the index of channel with {@code channelId} within the currently managed channels.
395 int getChannelIndex(long channelId) {
396 return getChannelIndex(mChannelDataManager.getChannel(channelId));
    [all...]
  /frameworks/support/tv-provider/src/main/java/androidx/tvprovider/media/tv/
PreviewChannelHelper.java 96 * TV content provider for you and returns a channelId. Next you must use the channelId
102 * TvContractCompat.requestChannelBrowsable(context,channelId)
106 * permission through the following intent. So take the channelId returned by
112 * intent.putExtra(TvContractCompat.EXTRA_CHANNEL_ID, channelId);
122 * @return channelId or -1 if insertion fails. This is the id the system assigns to your
133 long channelId = ContentUris.parseId(channelUri);
134 boolean logoAdded = addChannelLogo(channelId, channel);
137 deletePreviewChannel(channelId);
139 + channelId + ") was not created")
    [all...]
ChannelLogoUtils.java 67 * @param channelId the ID of the target channel with which the fetched logo should be
77 public static boolean storeChannelLogo(@NonNull Context context, long channelId,
109 return fetchedLogo != null && storeChannelLogo(context, channelId, fetchedLogo);
117 * @param channelId the ID of the target channel with which the given logo should be associated
125 public static boolean storeChannelLogo(@NonNull Context context, long channelId,
128 Uri localUri = TvContract.buildChannelLogoUri(channelId);
143 * @param channelId the ID of the channel whose logo is supposed to be loaded
150 public static Bitmap loadChannelLogo(@NonNull Context context, long channelId) {
154 TvContract.buildChannelLogoUri(channelId)));
157 Log.i(TAG, "Channel logo for channel (ID:" + channelId + ") not found.", e)
    [all...]
  /developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/playback/
WatchNextAdapter.java 35 Context context, long channelId, Movie movie, long position, long duration) {
38 Movie entity = MockDatabase.findMovieById(context, channelId, movie.getId());
44 channelId, movie.getId()));
49 WatchNextProgram program = createWatchNextProgram(channelId, entity, position, duration);
59 MockDatabase.saveMovie(context, channelId, entity);
78 long channelId, Movie movie, long position, long duration) {
81 Uri intentUri = AppLinkHelper.buildPlaybackUri(channelId, movie.getId(), position);
96 public void removeFromWatchNext(Context context, long channelId, long movieId) {
97 Movie movie = MockDatabase.findMovieById(context, channelId, movieId);
114 MockDatabase.saveMovie(context, channelId, movie)
    [all...]
  /packages/providers/TvProvider/tests/src/com/android/providers/tv/
ColumnFilterTest.java 82 long channelId = insertChannel(false);
93 assertEquals(channelId, cursor.getLong(2));
97 long channelId = insertChannel(false);
104 long channelId = insertChannel(false);
116 long channelId = insertChannel(true);
127 assertEquals(channelId, cursor.getLong(2));
131 long channelId = insertChannel(false);
145 assertEquals(channelId, cursor.getLong(2));
  /frameworks/base/services/core/java/com/android/server/notification/
NotificationManagerInternal.java 23 NotificationChannel getNotificationChannel(String pkg, int uid, String channelId);
RankingConfig.java 43 NotificationChannel getNotificationChannel(String pkg, int uid, String channelId, boolean includeDeleted);
44 void deleteNotificationChannel(String pkg, int uid, String channelId);
45 void permanentlyDeleteNotificationChannel(String pkg, int uid, String channelId);
  /developers/build/prebuilts/gradle/WearNotifications/Shared/src/main/java/com/example/android/wearable/wear/common/util/
NotificationUtil.java 39 String channelId = mockNotificationData.getChannelId();
52 new NotificationChannel(channelId, channelName, channelImportance);
64 return channelId;
  /developers/samples/android/wearable/wear/WearNotifications/Shared/src/main/java/com/example/android/wearable/wear/common/util/
NotificationUtil.java 39 String channelId = mockNotificationData.getChannelId();
52 new NotificationChannel(channelId, channelName, channelImportance);
64 return channelId;
  /packages/apps/TV/src/com/android/tv/search/
AutoValue_LocalSearchProvider_SearchResult.java 31 private final long channelId;
47 long channelId,
61 this.channelId = channelId;
79 return channelId;
158 + "channelId=" + channelId + ", "
182 return (this.channelId == that.getChannelId())
204 h$ ^= (int) ((channelId >>> 32) ^ channelId);
    [all...]

Completed in 395 milliseconds

1 2 3 4 5 6 7 8