/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
D | GenreItemTest.java | 56 assertEquals(GenreItems.ID_ALL_CHANNELS, GenreItems.getId(null)); in testGetId_base() 57 assertEquals(GenreItems.ID_ALL_CHANNELS, GenreItems.getId(INVALID_GENRE)); in testGetId_base() 58 assertInRange(GenreItems.getId(Genres.FAMILY_KIDS), 1, count - 1); in testGetId_base() 59 assertInRange(GenreItems.getId(Genres.SPORTS), 1, count - 1); in testGetId_base() 60 assertInRange(GenreItems.getId(Genres.SHOPPING), 1, count - 1); in testGetId_base() 61 assertInRange(GenreItems.getId(Genres.MOVIES), 1, count - 1); in testGetId_base() 62 assertInRange(GenreItems.getId(Genres.COMEDY), 1, count - 1); in testGetId_base() 63 assertInRange(GenreItems.getId(Genres.TRAVEL), 1, count - 1); in testGetId_base() 64 assertInRange(GenreItems.getId(Genres.DRAMA), 1, count - 1); in testGetId_base() 65 assertInRange(GenreItems.getId(Genres.EDUCATION), 1, count - 1); in testGetId_base() [all …]
|
D | ChannelDataManagerTest.java | 172 assertEquals(channel, mChannelDataManager.getChannel(channel.getId())); in testGetChannels() 209 mChannelDataManager.addChannelListener(channel1.getId(), channelListener); in testBrowsable() 212 mChannelDataManager.updateBrowsable(channel1.getId(), false, false); in testBrowsable() 243 mChannelDataManager.addChannelListener(channel1.getId(), channelListener); in testBrowsable_skipNotification() 244 mChannelDataManager.addChannelListener(channel2.getId(), channelListener); in testBrowsable_skipNotification() 247 mChannelDataManager.updateBrowsable(channel1.getId(), false, true); in testBrowsable_skipNotification() 248 mChannelDataManager.updateBrowsable(channel2.getId(), false, true); in testBrowsable_skipNotification() 249 mChannelDataManager.updateBrowsable(channel1.getId(), true, true); in testBrowsable_skipNotification() 284 mChannelDataManager.updateLocked(channel.getId(), true); in testLocked() 285 assertTrue(mChannelDataManager.getChannel(channel.getId()).isLocked()); in testLocked() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sorting/ |
D | SortModelTest.java | 97 assertSame(dimension, mModel.getDimensionById(dimension.getId())); in testDimensionSame_getDimensionById() 105 mModel.setDimensionVisibility(DIMENSION_1.getId(), View.GONE); in testSetDimensionVisibility() 118 mModel.setDefaultDimension(DIMENSION_1.getId()); in testSortByDefault() 130 mModel.sortByUser(DIMENSION_1.getId(), SortDimension.SORT_DIRECTION_DESCENDING); in testSortByUser() 142 mModel.sortByUser(DIMENSION_1.getId(), SortDimension.SORT_DIRECTION_DESCENDING); in testOrderNotChanged_sortByDefaultAfterSortByUser() 143 mModel.setDefaultDimension(DIMENSION_2.getId()); in testOrderNotChanged_sortByDefaultAfterSortByUser() 155 mModel.setDefaultDimension(DIMENSION_2.getId()); in testOrderChanged_sortByUserAfterSortByDefault() 156 mModel.sortByUser(DIMENSION_1.getId(), SortDimension.SORT_DIRECTION_DESCENDING); in testOrderChanged_sortByUserAfterSortByDefault() 168 mModel.sortByUser(DIMENSION_1.getId(), SortDimension.SORT_DIRECTION_DESCENDING); in testSortByUserTwice() 169 mModel.sortByUser(DIMENSION_2.getId(), SortDimension.SORT_DIRECTION_ASCENDING); in testSortByUserTwice() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
D | SeriesRecordingDetailsFragment.java | 115 List<RecordedProgram> programs = mDvrDataManager.getRecordedPrograms(mSeries.getId()); in updateWatchAction() 126 .getWatchedPosition(mRecommendRecordedProgram.getId()); in updateWatchAction() 146 mRecordedPrograms = mDvrDataManager.getRecordedPrograms(mSeries.getId()); in onLoadRecordingDetails() 189 mDvrDataManager.checkAndRemoveEmptySeriesRecording(mSeries.getId()); in onDestroy() 199 if (action.getId() == ACTION_WATCH) { in onCreateOnActionClickedListener() 201 } else if (action.getId() == ACTION_SERIES_SCHEDULES) { in onCreateOnActionClickedListener() 203 } else if (action.getId() == ACTION_DELETE) { in onCreateOnActionClickedListener() 204 DvrUiHelper.startSeriesDeletionActivity(getContext(), mSeries.getId()); in onCreateOnActionClickedListener() 238 if (mSeries.getId() == series.getId()) { 247 if (series.getId() == mSeries.getId()) { [all …]
|
D | SeriesRecordingPresenter.java | 74 if (scheduledRecording.getSeriesRecordingId() == mSeriesRecording.getId()) { in onScheduledRecordingAdded() 84 if (scheduledRecording.getSeriesRecordingId() == mSeriesRecording.getId()) { in onScheduledRecordingRemoved() 98 mWatchedPositionManager.addListener(this, recordedProgram.getId()); in onRecordedProgramsAdded() 113 if (mWatchedPositionManager.getWatchedPosition(recordedProgram.getId()) in onRecordedProgramsRemoved() 115 mWatchedPositionManager.removeListener(this, recordedProgram.getId()); in onRecordedProgramsRemoved() 141 mDvrDataManager.getRecordedPrograms(mSeriesRecording.getId())) { in onBound() 142 if (mWatchedPositionManager.getWatchedPosition(recordedProgram.getId()) in onBound() 144 mWatchedPositionManager.addListener(this, recordedProgram.getId()); in onBound() 162 mDvrDataManager.getRecordedPrograms(mSeriesRecording.getId()); in updateCardViewContent() 164 count = mDvrManager.getAvailableScheduledRecording(mSeriesRecording.getId()).size(); in updateCardViewContent() [all …]
|
D | DvrBrowseFragment.java | 432 if (latestProgram != null && latestProgram.getId() == recordedProgram.getId()) { in handleRecordedProgramRemoved() 458 } else if (latestProgram.getId() == recordedProgram.getId()) { in handleRecordedProgramChanged() 514 int genreId = GenreItems.getId(genre); in getGenreAdapters() 599 mDvrDataManager.getRecordedPrograms(seriesRecording.getId())) { in updateLatestRecordedProgram() 614 public long getId(Object item) { in getId() method in DvrBrowseFragment.ScheduleAdapter 616 return ((ScheduledRecording) item).getId(); in getId() 639 public long getId(SeriesRecording item) { in getId() method in DvrBrowseFragment.SeriesAdapter 640 return item.getId(); in getId() 654 public long getId(Object item) { in getId() method in DvrBrowseFragment.RecordedProgramAdapter 657 return ((SeriesRecording) item).getId(); in getId() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ |
D | DvrDataManagerImpl.java | 146 if (Utils.isBundledInput(input.getId())) { 148 unhideInput(input.getId()); 150 hideInput(input.getId()); 199 mSeriesRecordings.put(r.getId(), r); in start() 202 mSeriesRecordingsForRemovedInput.put(r.getId(), r); in start() 205 if (maxId < r.getId()) { in start() 206 maxId = r.getId(); in start() 231 mScheduledRecordingsForRemovedInput.put(r.getId(), r); in start() 235 mScheduledRecordings.put(r.getId(), r); in start() 265 if (maxId < r.getId()) { in start() [all …]
|
D | DvrScheduleManager.java | 141 String inputId = input.getId(); in DvrScheduleManager() 167 String inputId = input.getId(); in DvrScheduleManager() 177 conflictInfo.remove(schedule.getId()); in DvrScheduleManager() 203 String inputId = input.getId(); in DvrScheduleManager() 212 if (i.next().getId() == schedule.getId()) { in DvrScheduleManager() 226 ConflictInfo oldConflictInfo = conflictInfo.get(schedule.getId()); in DvrScheduleManager() 314 oldConflictMap.put(conflictInfo.schedule.getId(), conflictInfo.schedule); in onSchedulesChanged() 323 conflictInfos.put(conflictInfo.schedule.getId(), conflictInfo); in onSchedulesChanged() 324 if (oldConflictMap.remove(conflictInfo.schedule.getId()) == null) { in onSchedulesChanged() 553 ScheduledRecording.builder(input.getId(), program) in getConflictingSchedules() [all …]
|
D | DvrManager.java | 193 schedule = createScheduledRecordingBuilder(input.getId(), program) in addSchedule() 196 : seriesRecording.getId()) in addSchedule() 211 TvInputInfo input = Utils.getTvInputInfoForChannelId(mAppContext, channel.getId()); in addSchedule() 216 addScheduleInternal(input.getId(), channel.getId(), startTime, endTime); in addSchedule() 250 SeriesRecording seriesRecording = SeriesRecording.builder(input.getId(), selectedProgram) in addSeriesRecording() 284 .setSeriesRecordingId(series.getId()).build()); in addRecordedProgramToSeriesRecording() 311 mDataManager.getScheduledRecordingForProgramId(program.getId()); in addScheduleToSeriesRecording() 315 .setSeriesRecordingId(series.getId()) in addScheduleToSeriesRecording() 322 toAdd.add(createScheduledRecordingBuilder(input.getId(), program) in addScheduleToSeriesRecording() 324 .setSeriesRecordingId(series.getId()) in addScheduleToSeriesRecording() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | InputTaskScheduler.java | 87 mId = scheduledRecording.getId(); in HandlerWrapper() 167 if (mPendingRecordings.get(schedule.getId()) != null in handleAddSchedule() 168 || mWaitingSchedules.containsKey(schedule.getId())) { in handleAddSchedule() 171 mWaitingSchedules.put(schedule.getId(), schedule); in handleAddSchedule() 185 HandlerWrapper wrapper = mPendingRecordings.get(schedule.getId()); in handleRemoveSchedule() 190 if (mWaitingSchedules.containsKey(schedule.getId())) { in handleRemoveSchedule() 191 mWaitingSchedules.remove(schedule.getId()); in handleRemoveSchedule() 206 HandlerWrapper wrapper = mPendingRecordings.get(schedule.getId()); in handleUpdateSchedule() 214 mWaitingSchedules.put(schedule.getId(), schedule); in handleUpdateSchedule() 220 if (mWaitingSchedules.containsKey(schedule.getId())) { in handleUpdateSchedule() [all …]
|
D | SeriesRecordingScheduler.java | 124 FetchSeriesInfoTask task = mFetchSeriesInfoTasks.get(seriesRecording.getId()); 127 mFetchSeriesInfoTasks.remove(seriesRecording.getId()); 266 mFetchSeriesInfoTasks.put(seriesRecording.getId(), task); in executeFetchSeriesInfoTask() 284 mPendingSeriesRecordings.add(r.getId()); in pauseUpdate() 329 mPendingSeriesRecordings.add(r.getId()); in updateSchedules() 353 SeriesRecording seriesRecording = mDataManager.getSeriesRecording(iter.next().getId()); in updateSchedules() 412 result.put(seriesRecording.getId(), new ArrayList<>()); in pickOneProgramPerEpisode() 413 seriesRecordingIds.put(seriesRecording.getSeriesId(), seriesRecording.getId()); in pickOneProgramPerEpisode() 471 dataManager.getScheduledRecordingForProgramId(program.getId()); in isProgramScheduled() 503 seriesRecording.getId()); in onPostExecute() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | DvrSeriesSettingsFragment.java | 114 mId2Channel.put(channel.getId(), channel); in onAttach() 124 mSelectedChannelId = channel.getId(); in onAttach() 196 long actionId = action.getId(); in onGuidedActionClicked() 226 mSeriesRecording.getId()); in onGuidedActionClicked() 234 long actionId = action.getId(); in onSubGuidedActionClicked() 271 || seriesRecording.getId() == mSeriesRecording.getId()) { in updatePriorityGuidedAction() 275 && seriesRecording.getId() != mSeriesRecording.getId() in updatePriorityGuidedAction() 330 .id(SUB_ACTION_ID_CHANNEL_ONE_BASE + channel.getId()) in buildChannelSubAction() 349 if (series.getId() == mSeriesRecording.getId()) { in onSeriesRecordingRemoved() 359 if (seriesRecording.getId() == mSeriesRecordingId) { in onSeriesRecordingChanged()
|
D | SortedArrayAdapter.java | 96 long newItemId = getId(item); in add() 118 long newItemId = getId(item); in addExtraItem() 142 mIds.remove(getId((T) get(i))); in removeItems() 192 public long getId(int position) { in getId() method in SortedArrayAdapter 193 return getId((T) get(position)); in getId() 202 protected abstract long getId(T item); in getId() method in SortedArrayAdapter 205 long id = getId(item); in indexWithId() 208 if (getId(r) == id) { in indexWithId()
|
D | DvrSeriesDeletionFragment.java | 113 mDvrWatchedPositionManager.getWatchedPosition(recording.getId()); in onCreateActions() 122 mWatchedRecordings.add(recording.getId()); in onCreateActions() 127 .id(recording.getId()) in onCreateActions() 148 long actionId = action.getId(); in onGuidedActionClicked() 154 idsToDelete.add(guidedAction.getId()); in onGuidedActionClicked() 170 long recordingId = guidedAction.getId(); in onGuidedActionClicked() 185 notifyActionChanged(findActionPositionById(guidedAction.getId())); in onGuidedActionClicked() 205 if (action.getId() == ACTION_DIVIDER) { in onCreateActionsStylist()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
D | SeriesScheduleRowAdapter.java | 66 mInputId = input.getId(); in SeriesScheduleRowAdapter() 102 mDataManager.getScheduledRecordingForProgramId(program.getId()); in setPrograms() 107 mPrograms.put(program.getId(), program); in setPrograms() 130 public long getId(int position) { in getId() method in SeriesScheduleRowAdapter 133 return ((EpisodicProgramRow) obj).getProgram().getId(); in getId() 138 return super.getId(position); in getId() 208 if (seriesRecording.getId() == mSeriesRecording.getId()) { in onSeriesRecordingUpdated() 226 if (((EpisodicProgramRow) item).getProgram().getId() == programId) { in findRowIndexByProgramId() 247 removeItems(findRowIndexByProgramId(program.getId()), 1); in handleUpdateRow() 251 notifyItemRangeChanged(findRowIndexByProgramId(program.getId()), 1); in handleUpdateRow()
|
/packages/apps/TV/src/com/android/tv/onboarding/ |
D | SetupSourcesFragment.java | 246 if (newList.size() > 0 && mSetupUtils.isNewInput(newList.get(0).getId())) { in buildInputs() 247 mNewlyAddedInputId = newList.get(0).getId(); in buildInputs() 256 if (mSetupUtils.isNewInput(input.getId())) { in buildInputs() 257 mSetupUtils.markAsKnownInput(input.getId()); in buildInputs() 260 if (!mSetupUtils.isSetupDone(input.getId())) { in buildInputs() 297 String inputId = input.getId(); in createActionsInternal() 313 if (input.getId().equals(mNewlyAddedInputId)) { in createActionsInternal() 349 if (action.getId() == ACTION_ONLINE_STORE) { in onGuidedActionClicked() 350 mParentFragment.onActionClick(ACTION_CATEGORY, (int) action.getId()); in onGuidedActionClicked() 353 int index = (int) action.getId() - ACTION_INPUT_START; in onGuidedActionClicked() [all …]
|
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/ |
D | DvrDataManagerInMemoryImpl.java | 163 long id = r.getId(); in updateRecordedProgram() 173 mRecordedPrograms.remove(scheduledRecording.getId()); in removeRecordedProgram() 180 .checkState(scheduledRecording.getId() == ScheduledRecording.ID_NOT_SET, TAG, in addScheduledRecordingInternal() 186 mScheduledRecordings.put(scheduledRecording.getId(), scheduledRecording); in addScheduledRecordingInternal() 192 SoftPreconditions.checkState(recordedProgram.getId() == RecordedProgram.ID_NOT_SET, TAG, in addRecordedProgramInternal() 197 mRecordedPrograms.put(recordedProgram.getId(), recordedProgram); in addRecordedProgramInternal() 205 mSeriesRecordings.put(r.getId(), r); in addSeriesRecording() 213 mScheduledRecordings.remove(r.getId()); in removeScheduledRecording() 226 mSeriesRecordings.remove(r.getId()); in removeSeriesRecording() 234 long id = r.getId(); in updateScheduledRecording() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | InCallServiceFixture.java | 68 if (mCallById.containsKey(call.getId())) { in addCall() 69 throw new RuntimeException("Call " + call.getId() + " already added"); in addCall() 71 mCallById.put(call.getId(), call); in addCall() 72 mLatestCallId = call.getId(); in addCall() 77 if (!mCallById.containsKey(call.getId())) { in updateCall() 78 throw new RuntimeException("Call " + call.getId() + " not added yet"); in updateCall() 80 mCallById.put(call.getId(), call); in updateCall() 81 mLatestCallId = call.getId(); in updateCall()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | AppNotificationSettings.java | 188 if (group.getId() == null) { in populateChannelList() 195 groupCategory.setKey(group.getId()); in populateChannelList() 234 channelPref.setKey(channel.getId()); in populateSingleChannelPrefs() 241 channelArgs.putString(Settings.EXTRA_CHANNEL_ID, channel.getId()); in populateSingleChannelPrefs() 386 return left.getId().compareTo(right.getId()); 396 if (left.getId() == null && right.getId() != null) { 398 } else if (right.getId() == null && left.getId() != null) { 401 return left.getId().compareTo(right.getId());
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallsManager.java | 874 call.getId()); in processIncomingCallIntent() 931 "handOverFrom=%s, handOverTo=%s", fromCall.getId(), call.getId()); in processIncomingCallIntent() 933 "handOverFrom=%s, handOverTo=%s", fromCall.getId(), call.getId()); in processIncomingCallIntent() 1178 call.getId()); in startOutgoingCall() 1678 Log.d("phoneAccountSelected: default to voip mode for call %s", call.getId()); in phoneAccountSelected() 2289 call.getId(), handoverTo.getId()); in completeHandoverFrom() 2291 call.getId(), handoverTo.getId()); in completeHandoverFrom() 2311 Log.i(this, "rejectHandoverTo: from=%s, to=%s", handoverFrom.getId(), handoverTo.getId()); in rejectHandoverTo() 2313 handoverTo.getId(), handoverFrom.getId()); in rejectHandoverTo() 2315 handoverTo.getId(), handoverFrom.getId()); in rejectHandoverTo() [all …]
|
D | CallAudioManager.java | 99 Log.d(LOG_TAG, "Call state changed for TC@%s: %s -> %s", call.getId(), in onCallStateChanged() 138 Log.w(LOG_TAG, "Call TC@%s is being added twice.", call.getId()); in addCall() 142 Log.d(LOG_TAG, "Call added with id TC@%s in state %s", call.getId(), in addCall() 159 Log.d(LOG_TAG, "Call removed with id TC@%s in state %s", call.getId(), in removeCall() 183 Log.d(LOG_TAG, "Removing call which became external ID %s", call.getId()); in onExternalCallChanged() 186 Log.d(LOG_TAG, "Adding external call which was pulled with ID %s", call.getId()); in onExternalCallChanged() 192 call.getId()); in onExternalCallChanged() 311 Log.i(LOG_TAG, "Call TC@" + call.getId() + " left conference and will" + in onIsConferencedChanged() 337 VideoProfile.videoStateToString(newVideoState), call.getId()); in onVideoStateChanged() 344 " to %s", call.getId(), VideoProfile.videoStateToString(previousVideoState), in onVideoStateChanged() [all …]
|
/packages/apps/TV/src/com/android/tv/search/ |
D | DataManagerSearch.java | 109 if (channelsFound.contains(channel.getId())) { in searchFromDataManagers() 127 if (channelsFound.contains(channel.getId())) { in searchFromDataManagers() 151 if (channelsFound.contains(channel.getId())) { in searchFromDataManagers() 154 Program program = mProgramDataManager.getCurrentProgram(channel.getId()); in searchFromDataManagers() 172 if (channelsFound.contains(channel.getId())) { in searchFromDataManagers() 175 Program program = mProgramDataManager.getCurrentProgram(channel.getId()); in searchFromDataManagers() 210 program = mProgramDataManager.getCurrentProgram(channel.getId()); in addResult() 218 long channelId = channel.getId(); in addResult() 250 channelsFound.add(channel.getId()); in addResult()
|
/packages/apps/TV/src/com/android/tv/util/ |
D | TvInputManagerHelper.java | 190 mInputMap.put(inputInfo.getId(), inputInfo); 191 mTvInputLabels.put(inputInfo.getId(), inputInfo.loadLabel(mContext).toString()); 194 mTvInputCustomLabels.put(inputInfo.getId(), inputCustomLabel.toString()); 200 inputInfo.getId())); 241 String inputId = input.getId(); in start() 355 String label = mTvInputLabels.get(info.getId()); in loadLabel() 358 mTvInputLabels.put(info.getId(), label); in loadLabel() 367 String customLabel = mTvInputCustomLabels.get(info.getId()); in loadCustomLabel() 372 mTvInputCustomLabels.put(info.getId(), customLabel); in loadCustomLabel() 457 return getInputState(inputInfo.getId()); in getInputState() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/ |
D | StorageFragment.java | 74 bundle.putString(VolumeInfo.EXTRA_VOLUME_ID, volumeInfo.getId()); in prepareArgs() 140 && !TextUtils.equals(currentExternal.getId(), mVolumeInfo.getId())) { in refresh() 144 if (TextUtils.equals(candidate.getId(), mVolumeInfo.getId())) { in refresh() 153 MigrateStorageActivity.getLaunchIntent(getContext(), mVolumeInfo.getId(), true)); in refresh() 157 final boolean privateInternal = VolumeInfo.ID_PRIVATE_INTERNAL.equals(mVolumeInfo.getId()); in refresh() 161 mEjectPref.setIntent(UnmountActivity.getIntent(getContext(), mVolumeInfo.getId(), in refresh()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
D | InputOptionsFragment.java | 96 mShowPref.setChecked(!mHiddenIds.contains(mInputInfo.getId())); in refresh() 99 final CharSequence customLabel = mCustomLabels.get(mInputInfo.getId()); in refresh() 161 mCustomLabels.remove(mInputInfo.getId()); in setInputName() 163 mCustomLabels.put(mInputInfo.getId(), name.toString()); in setInputName() 171 final boolean wasVisible = !mHiddenIds.contains(mInputInfo.getId()); in setInputVisible() 178 mHiddenIds.remove(mInputInfo.getId()); in setInputVisible() 180 mHiddenIds.add(mInputInfo.getId()); in setInputVisible()
|