/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;
|
/developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/ |
SyncChannelJobService.java | 84 long channelId = TvUtil.createChannel(mContext, subscription); 85 subscription.setChannelId(channelId); 86 TvContractCompat.requestChannelBrowsable(mContext, channelId);
|
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);
|
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...] |
/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;
|
/hardware/interfaces/radio/1.0/vts/functional/ |
radio_hidl_hal_utils_v1_0.h | 54 int channelId; 335 const RadioResponseInfo& info, int32_t channelId,
|
/hardware/interfaces/radio/1.1/vts/functional/ |
radio_hidl_hal_utils_v1_1.h | 55 int channelId; 336 const RadioResponseInfo& info, int32_t channelId,
|
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/ |
RecommendationUtils.java | 60 long channelId = (long) invocation.getArguments()[0]; 61 return channelRecordSortedMap.get(channelId); 102 long channelId = size(); 103 Channel channel = new Channel.Builder().setId(channelId).build(); 105 put(channelId, channelRecord); 122 long channelId = channelIdList.get(mRandom.nextInt(channelIdList.size())); 123 if (previousChannelId == channelId) { 128 if (!addWatchLog(channelId, latestWatchEndTimeMs, watchedDurationMs)) { 132 previousChannelId = channelId; 138 * Add new watch log to channel that id is {@code ChannelId}. Add watch log starts fro [all...] |
FavoriteChannelEvaluatorTest.java | 47 long channelId = addChannel().getId(); 51 mEvaluator.evaluateChannel(channelId)); 70 for (long channelId : channelIdList) { 72 mEvaluator.evaluateChannel(channelId)); 94 for (long channelId : channelIdList) { 96 addWatchLog(channelId, latestWatchEndTimeMs, durationMs); 104 for (long channelId : channelIdList) { 105 double score = mEvaluator.evaluateChannel(channelId); 147 long channelId = addChannel().getId(); 153 double previousScore = mEvaluator.evaluateChannel(channelId); [all...] |
RecentChannelEvaluatorTest.java | 49 long channelId = addChannel().getId(); 53 mEvaluator.evaluateChannel(channelId)); 72 for (long channelId : channelIdList) { 74 mEvaluator.evaluateChannel(channelId)); 95 for (long channelId : channelIdList) { 96 addWatchLog(channelId, latestWatchEndTimeMs, TimeUnit.HOURS.toMillis(1)); 104 for (long channelId : channelIdList) { 105 double score = mEvaluator.evaluateChannel(channelId); 120 for (long channelId : channelIdList) { 121 double previousScore = mEvaluator.evaluateChannel(channelId); [all...] |
/developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/util/ |
TvUtil.java | 105 long channelId = ContentUris.parseId(channelUrl); 106 Log.d(TAG, "channel id " + channelId); 109 ChannelLogoUtils.storeChannelLogo(context, channelId, bitmap); 111 return channelId; 174 * @param channelId for the channel to listen for changes. 176 public static void scheduleSyncingProgramsForChannel(Context context, long channelId) { 180 new JobInfo.Builder(getJobIdForChannelId(channelId), componentName); 184 TvContractCompat.buildChannelUri(channelId), 191 bundle.putLong(TvContractCompat.EXTRA_CHANNEL_ID, channelId); 196 scheduler.cancel(getJobIdForChannelId(channelId)); [all...] |
/frameworks/base/core/java/android/app/ |
RecoverableSecurityException.java | 121 final String channelId = TAG + "_" + mUserAction.getActionIntent().getCreatorUid(); 122 nm.createNotificationChannel(new NotificationChannel(channelId, TAG, 125 showAsNotification(context, channelId); 142 * @param channelId the {@link NotificationChannel} to use, which must have 146 public void showAsNotification(Context context, String channelId) { 148 final Notification.Builder builder = new Notification.Builder(context, channelId)
|
/frameworks/native/services/sensorservice/hidl/ |
SensorManager.cpp | 97 int channelId = manager.createDirectChannel( 99 if (channelId < 0) { 100 _hidl_cb(nullptr, convertResult(channelId)); 103 if (channelId == 0) { 108 _hidl_cb(sp<IDirectReportChannel>(new DirectReportChannel(manager, channelId)),
|
/packages/apps/Dialer/java/com/android/dialer/notification/ |
VoicemailChannelUtils.java | 104 String channelId = getChannelIdForAccount(handle); 105 if (!doesChannelExist(context, channelId)) { 111 return channelId; 114 private static boolean doesChannelExist(@NonNull Context context, @NonNull String channelId) { 115 return context.getSystemService(NotificationManager.class).getNotificationChannel(channelId) 194 @NonNull Context context, @NonNull String channelId, @Nullable CharSequence nameSuffix) { 202 new NotificationChannel(channelId, name, NotificationManager.IMPORTANCE_DEFAULT);
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
DvrChannelRecordDurationOptionFragment.java | 45 long channelId = args.getLong(DvrHalfSizedDialogFragment.KEY_CHANNEL_ID); 47 .getChannel(channelId);
|
DvrStopRecordingFragment.java | 106 long channelId = args.getLong(DvrHalfSizedDialogFragment.KEY_CHANNEL_ID); 107 mSchedule = getDvrManager().getCurrentRecording(channelId);
|
DvrConflictFragment.java | 216 long channelId = args.getLong(DvrHalfSizedDialogFragment.KEY_CHANNEL_ID); 218 .getChannel(channelId);
|
/packages/apps/TV/src/com/android/tv/search/ |
DataManagerSearch.java | 218 long channelId = channel.getId(); 219 result.channelId = channelId; 224 result.imageUri = TvContract.buildChannelLogoUri(channelId).toString(); 226 result.intentData = buildIntentData(channelId); 237 result.intentData = buildIntentData(channelId); 267 private String buildIntentData(long channelId) { 268 return TvContract.buildChannelUri(channelId).toString();
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
ProgramUtils.java | 49 long channelId = ContentUris.parseId(channelUri); 51 values.put(Programs.COLUMN_CHANNEL_ID, channelId); 62 int index = program.getIndex(timeMs, channelId); 63 timeMs = program.getStartTimeMs(index, channelId);
|
/packages/apps/Dialer/java/com/android/voicemail/impl/settings/ |
VoicemailSettingsFragment.java | 236 String channelId = 239 .putExtra(Settings.EXTRA_CHANNEL_ID, channelId)
|
/packages/apps/TV/src/com/android/tv/data/ |
WatchedHistoryManager.java | 233 public final long channelId; 237 WatchedRecord(long channelId, long watchedStartTime, long duration) { 238 this.channelId = channelId; 245 return "WatchedRecord: id=" + channelId + ",watchedStartTime=" + watchedStartTime 253 return Objects.equals(channelId, that.channelId) 262 return Objects.hash(channelId, watchedStartTime, duration); 268 return record.channelId + " " + record.watchedStartTime + " " + record.duration; 274 long channelId = scanner.nextLong() [all...] |
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
ConflictChecker.java | 209 long channelId = ContentUris.parseId(channelUri); 210 Channel channel = mChannelDataManager.getChannel(channelId);
|
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/ |
DvrScheduleManagerTest.java | 54 long channelId = 0; 57 schedules.add(RecordingTestUtils.createTestRecordingWithPriorityAndPeriod(++channelId, 61 schedules.add(RecordingTestUtils.createTestRecordingWithPriorityAndPeriod(++channelId, 65 schedules.add(RecordingTestUtils.createTestRecordingWithPriorityAndPeriod(++channelId, 69 schedules.add(RecordingTestUtils.createTestRecordingWithPriorityAndPeriod(++channelId, 73 schedules.add(RecordingTestUtils.createTestRecordingWithPriorityAndPeriod(++channelId, 81 long channelId = 0; 85 schedules.add(RecordingTestUtils.createTestRecordingWithPriorityAndPeriod(++channelId, 88 schedules.add(0, RecordingTestUtils.createTestRecordingWithPriorityAndPeriod(++channelId, 96 long channelId = 0 [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));
|