Home
last modified time | relevance | path

Searched refs:getId (Results 1 – 25 of 879) sorted by relevance

12345678910>>...36

/packages/apps/TV/tests/robotests/src/com/android/tv/data/
DGenreItemTest.java56 assertThat(GenreItems.getId(null)).isEqualTo(GenreItems.ID_ALL_CHANNELS); in testGetId_base()
57 assertThat(GenreItems.getId(INVALID_GENRE)).isEqualTo(GenreItems.ID_ALL_CHANNELS); 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 …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sorting/
DSortModelTest.java98 assertSame(dimension, mModel.getDimensionById(dimension.getId())); in testDimensionSame_getDimensionById()
106 mModel.setDimensionVisibility(DIMENSION_1.getId(), View.GONE); in testSetDimensionVisibility()
119 mModel.setDefaultDimension(DIMENSION_1.getId()); in testSortByDefault()
131 mModel.sortByUser(DIMENSION_1.getId(), SortDimension.SORT_DIRECTION_DESCENDING); in testSortByUser()
143 mModel.sortByUser(DIMENSION_1.getId(), SortDimension.SORT_DIRECTION_DESCENDING); in testOrderNotChanged_sortByDefaultAfterSortByUser()
144 mModel.setDefaultDimension(DIMENSION_2.getId()); in testOrderNotChanged_sortByDefaultAfterSortByUser()
156 mModel.setDefaultDimension(DIMENSION_2.getId()); in testOrderChanged_sortByUserAfterSortByDefault()
157 mModel.sortByUser(DIMENSION_1.getId(), SortDimension.SORT_DIRECTION_DESCENDING); in testOrderChanged_sortByUserAfterSortByDefault()
169 mModel.sortByUser(DIMENSION_1.getId(), SortDimension.SORT_DIRECTION_DESCENDING); in testSortByUserTwice()
170 mModel.sortByUser(DIMENSION_2.getId(), SortDimension.SORT_DIRECTION_ASCENDING); in testSortByUserTwice()
[all …]
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/prefs/
DTmaEnumPrefs.java28 String getId(); in getId() method
48 public String getId() { in getId() method in TmaEnumPrefs.TmaAccountType
49 return mPrefValue.getId(); in getId()
77 public String getId() { in getId() method in TmaEnumPrefs.TmaReplyDelay
78 return mPrefValue.getId(); in getId()
105 public String getId() { in getId() method in TmaEnumPrefs.TmaBrowseNodeType
106 return mPrefValue.getId(); in getId()
128 public String getId() { in getId() method in TmaEnumPrefs.TmaLoginEventOrder
129 return mPrefValue.getId(); in getId()
150 public String getId() { in getId() method in TmaEnumPrefs.PrefValueImpl
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DSeriesRecordingDetailsFragment.java113 List<RecordedProgram> programs = mDvrDataManager.getRecordedPrograms(mSeries.getId()); in updateWatchAction()
125 mRecommendRecordedProgram.getId()); in updateWatchAction()
148 mRecordedPrograms = mDvrDataManager.getRecordedPrograms(mSeries.getId()); in onLoadRecordingDetails()
198 mDvrDataManager.checkAndRemoveEmptySeriesRecording(mSeries.getId()); in onDestroy()
208 if (action.getId() == ACTION_WATCH) { in onCreateOnActionClickedListener()
210 } else if (action.getId() == ACTION_SERIES_SCHEDULES) { in onCreateOnActionClickedListener()
212 } else if (action.getId() == ACTION_DELETE) { in onCreateOnActionClickedListener()
213 DvrUiHelper.startSeriesDeletionActivity(getContext(), mSeries.getId()); in onCreateOnActionClickedListener()
246 if (mSeries.getId() == series.getId()) {
255 if (series.getId() == mSeries.getId()) {
[all …]
DSeriesRecordingPresenter.java74 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 …]
DCurrentRecordingDetailsFragment.java60 if (schedule.getId() == getRecording().getId()) {
70 if (schedule.getId() == getRecording().getId()
154 if (action.getId() == ACTION_STOP_RECORDING) { in onCreateOnActionClickedListener()
171 } else if (action.getId() == ACTION_RESUME_PLAYING) { in onCreateOnActionClickedListener()
175 mRecordedProgram.getId())); in onCreateOnActionClickedListener()
176 } else if (action.getId() == ACTION_PLAY_FROM_BEGINNING) { in onCreateOnActionClickedListener()
DDvrBrowseFragment.java507 if (latestProgram != null && latestProgram.getId() == recordedProgram.getId()) { in handleRecordedProgramRemoved()
535 } else if (latestProgram.getId() == recordedProgram.getId()) { in handleRecordedProgramChanged()
591 int genreId = GenreItems.getId(genre); in getGenreAdapters()
680 mDvrDataManager.getRecordedPrograms(seriesRecording.getId())) { in updateLatestRecordedProgram()
696 public long getId(Object item) { in getId() method in DvrBrowseFragment.ScheduleAdapter
698 return ((ScheduledRecording) item).getId(); in getId()
720 public long getId(SeriesRecording item) { in getId() method in DvrBrowseFragment.SeriesAdapter
721 return item.getId(); in getId()
735 public long getId(Object item) { in getId() method in DvrBrowseFragment.RecordedProgramAdapter
738 return ((SeriesRecording) item).getId(); in getId()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/app/
DNotificationPreferenceController.java183 return Objects.equals(NotificationChannel.DEFAULT_CHANNEL_ID, mChannel.getId()); in isDefaultChannel()
191 if (left.getId() == null && right.getId() != null) {
193 } else if (right.getId() == null && left.getId() != null) {
196 return left.getId().compareTo(right.getId());
203 } else if (left.getId().equals(NotificationChannel.DEFAULT_CHANNEL_ID)) {
206 } else if (right.getId().equals(NotificationChannel.DEFAULT_CHANNEL_ID)) {
210 return left.getId().compareTo(right.getId());
/packages/services/Telecomm/src/com/android/server/telecom/
DCallDiagnosticServiceController.java238 private final CallIdMapper mCallIdMapper = new CallIdMapper(Call::getId);
263 Log.i(this, "onCallAdded: skipping call %s as non-sim or external.", call.getId()); in onCallAdded()
288 call.getId()); in onCallDisconnected()
298 Log.w(this, "onCallDisconnected: callId=%s, exception=%s", call.getId(), e); in onCallDisconnected()
311 Log.i(this, "onCallRemoved: skipping call %s as non-sim or external.", call.getId()); in onCallRemoved()
594 Log.w(this, "sendCallToBoundService: initializing %s", call.getId()); in sendCallToBoundService()
597 Log.w(this, "sendCallToBoundService: not bound, skipping %s", call.getId()); in sendCallToBoundService()
600 Log.w(this, "sendCallToBoundService: callId=%s, exception=%s", call.getId(), e); in sendCallToBoundService()
613 callDiagnosticService.removeDiagnosticCall(call.getId()); in removeCallFromBoundService()
616 Log.w(this, "removeCallFromBoundService: callId=%s, exception=%s", call.getId(), e); in removeCallFromBoundService()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DInputTaskScheduler.java81 mId = scheduledRecording.getId(); in HandlerWrapper()
191 if (mPendingRecordings.get(schedule.getId()) != null in handleAddSchedule()
192 || mWaitingSchedules.containsKey(schedule.getId())) { in handleAddSchedule()
195 mWaitingSchedules.put(schedule.getId(), schedule); in handleAddSchedule()
207 HandlerWrapper wrapper = mPendingRecordings.get(schedule.getId()); in handleRemoveSchedule()
212 if (mWaitingSchedules.containsKey(schedule.getId())) { in handleRemoveSchedule()
213 mWaitingSchedules.remove(schedule.getId()); in handleRemoveSchedule()
226 HandlerWrapper wrapper = mPendingRecordings.get(schedule.getId()); in handleUpdateSchedule()
234 mWaitingSchedules.put(schedule.getId(), schedule); in handleUpdateSchedule()
240 if (mWaitingSchedules.containsKey(schedule.getId())) { in handleUpdateSchedule()
[all …]
DSeriesRecordingScheduler.java126 mFetchSeriesInfoTasks.get(seriesRecording.getId());
129 mFetchSeriesInfoTasks.remove(seriesRecording.getId());
269 mFetchSeriesInfoTasks.put(seriesRecording.getId(), task); in executeFetchSeriesInfoTask()
284 mPendingSeriesRecordings.add(r.getId()); in pauseUpdate()
327 mPendingSeriesRecordings.add(r.getId()); in updateSchedules()
354 SeriesRecording seriesRecording = mDataManager.getSeriesRecording(iter.next().getId()); in updateSchedules()
413 result.put(seriesRecording.getId(), new ArrayList<>()); in pickOneProgramPerEpisode()
414 seriesRecordingIds.put(seriesRecording.getSeriesId(), seriesRecording.getId()); in pickOneProgramPerEpisode()
474 dataManager.getScheduledRecordingForProgramId(program.getId()); in isProgramScheduled()
507 mDataManager.getSeriesRecording(seriesRecording.getId()); in onPostExecute()
[all …]
/packages/apps/TV/tests/robotests/src/com/android/tv/
DSetupPassthroughActivityTest.java149 SetupPassthroughActivity activity = createSetupActivityFor(testInput.getId()); in create_validInput()
168 CommonUtils.createSetupIntent(new Intent(), testInput.getId())); in create_trustedCallingPackage()
191 CommonUtils.createSetupIntent(new Intent(), testInput.getId())); in create_nonTrustedCallingPackage()
213 CommonUtils.createSetupIntent(new Intent(), testInput.getId())); in create_nullCallingPackage()
229 SetupPassthroughActivity activity = createSetupActivityFor(testInput.getId()); in onActivityResult_canceled()
241 SetupPassthroughActivity activity = createSetupActivityFor(testInput.getId()); in onActivityResult_ok()
262 StringListParam.newBuilder().addElement(testInput.getId()).build()); in onActivityResult_3rdPartyEpg_ok()
263 SetupPassthroughActivity activity = createSetupActivityFor(testInput.getId()); in onActivityResult_3rdPartyEpg_ok()
266 data.putExtra(TvInputInfo.EXTRA_INPUT_ID, testInput.getId()); in onActivityResult_3rdPartyEpg_ok()
284 SetupPassthroughActivity activity = createSetupActivityFor(testInput.getId()); in onActivityResult_3rdPartyEpg_notAllowed()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DSeriesScheduleRowAdapter.java66 mInputId = input.getId(); in SeriesScheduleRowAdapter()
105 mDataManager.getScheduledRecordingForProgramId(program.getId()); in setPrograms()
110 mPrograms.put(program.getId(), program); in setPrograms()
139 public long getId(int position) { in getId() method in SeriesScheduleRowAdapter
142 return ((EpisodicProgramRow) obj).getProgram().getId(); in getId()
147 return super.getId(position); in getId()
217 if (seriesRecording.getId() == mSeriesRecording.getId()) { in onSeriesRecordingUpdated()
235 if (((EpisodicProgramRow) item).getProgram().getId() == programId) { in findRowIndexByProgramId()
256 removeItems(findRowIndexByProgramId(program.getId()), 1); in handleUpdateRow()
260 notifyItemRangeChanged(findRowIndexByProgramId(program.getId()), 1); in handleUpdateRow()
/packages/modules/ExtServices/java/tests/src/android/ext/services/notification/
DNotificationEntryTest.java112 StatusBarNotification sbn = generateSbn(channel.getId()); in testHasPerson()
125 StatusBarNotification sbn = generateSbn(channel.getId()); in testNotPerson()
134 StatusBarNotification sbn = generateSbn(channel.getId(), DEFAULT_SMS_PACKAGE_NAME); in testHasPerson_matchesDefaultSmsApp()
143 StatusBarNotification sbn = generateSbn(channel.getId(), "abc"); in testHasPerson_doesntMatchDefaultSmsApp()
153 Notification n = new Notification.Builder(mContext, channel.getId()) in testIsInboxStyle()
165 Notification n = new Notification.Builder(mContext, channel.getId()) in testIsMessagingStyle()
177 Notification n = new Notification.Builder(mContext, channel.getId()) in testIsNotPersonStyle()
192 mContext, mPackageManager, generateSbn(channel.getId()), channel, mSmsHelper); in testIsAudioAttributes()
201 mContext, mPackageManager, generateSbn(channel.getId()), channel, mSmsHelper); in testIsNotAudioAttributes()
210 Notification n = new Notification.Builder(mContext, channel.getId()) in testIsCategory()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/
DDvrDataManagerImpl.java163 if (CommonUtils.isBundledInput(input.getId())) {
165 unhideInput(input.getId());
167 hideInput(input.getId());
246 mSeriesRecordings.put(r.getId(), r); in start()
249 mSeriesRecordingsForRemovedInput.put(r.getId(), r); in start()
252 if (maxId < r.getId()) { in start()
253 maxId = r.getId(); in start()
282 mScheduledRecordingsForRemovedInput.put(r.getId(), r); in start()
287 mScheduledRecordings.put(r.getId(), r); in start()
335 if (maxId < r.getId()) { in start()
[all …]
DDvrScheduleManager.java137 String inputId = input.getId(); in DvrScheduleManager()
164 String inputId = input.getId(); in DvrScheduleManager()
175 conflictInfo.remove(schedule.getId()); in DvrScheduleManager()
201 String inputId = input.getId(); in DvrScheduleManager()
212 if (i.next().getId() == schedule.getId()) { in DvrScheduleManager()
227 ConflictInfo oldConflictInfo = conflictInfo.get(schedule.getId()); in DvrScheduleManager()
313 oldConflictMap.put(conflictInfo.schedule.getId(), conflictInfo.schedule); in onSchedulesChanged()
322 conflictInfos.put(conflictInfo.schedule.getId(), conflictInfo); in onSchedulesChanged()
323 if (oldConflictMap.remove(conflictInfo.schedule.getId()) == null) { in onSchedulesChanged()
531 ScheduledRecording.builder(input.getId(), program) in getConflictingSchedules()
[all …]
DDvrManager.java224 createScheduledRecordingBuilder(input.getId(), program) in addSchedule()
229 : seriesRecording.getId()) in addSchedule()
250 TvInputInfo input = Utils.getTvInputInfoForChannelId(mAppContext, channel.getId()); in addSchedule()
255 addScheduleInternal(input.getId(), channel.getId(), startTime, endTime); in addSchedule()
292 SeriesRecording.builder(input.getId(), selectedProgram) in addSeriesRecording()
327 .setSeriesRecordingId(series.getId()) in addRecordedProgramToSeriesRecording()
355 mDataManager.getScheduledRecordingForProgramId(program.getId()); in addScheduleToSeriesRecording()
360 .setSeriesRecordingId(series.getId()) in addScheduleToSeriesRecording()
368 createScheduledRecordingBuilder(input.getId(), program) in addScheduleToSeriesRecording()
370 .setSeriesRecordingId(series.getId()) in addScheduleToSeriesRecording()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrSeriesSettingsFragment.java120 mId2Channel.put(channel.getId(), channel); in onAttach()
130 mSelectedChannelId = channel.getId(); in onAttach()
206 long actionId = action.getId(); in onGuidedActionClicked()
239 mSeriesRecording.getId()); in onGuidedActionClicked()
247 long actionId = action.getId(); in onSubGuidedActionClicked()
284 || seriesRecording.getId() == mSeriesRecording.getId()) { in updatePriorityGuidedAction()
288 && seriesRecording.getId() != mSeriesRecording.getId() in updatePriorityGuidedAction()
355 .id(SUB_ACTION_ID_CHANNEL_ONE_BASE + channel.getId()) in buildChannelSubAction()
374 if (series.getId() == mSeriesRecording.getId()) { in onSeriesRecordingRemoved()
384 if (seriesRecording.getId() == mSeriesRecordingId) { in onSeriesRecordingChanged()
DSortedArrayAdapter.java93 long newItemId = getId(item); in add()
115 long newItemId = getId(item); in addExtraItem()
137 mIds.remove(getId((T) get(i))); in removeItems()
186 public long getId(int position) { in getId() method in SortedArrayAdapter
187 return getId((T) get(position)); in getId()
196 protected abstract long getId(T item); in getId() method in SortedArrayAdapter
199 long id = getId(item); in indexWithId()
202 if (getId(r) == id) { in indexWithId()
DDvrSeriesDeletionFragment.java123 mDvrWatchedPositionManager.getWatchedPosition(recording.getId()); in onCreateActions()
134 mWatchedRecordings.add(recording.getId()); in onCreateActions()
140 .id(recording.getId()) in onCreateActions()
163 long actionId = action.getId(); in onGuidedActionClicked()
171 long recordingId = guidedAction.getId(); in onGuidedActionClicked()
186 notifyActionChanged(findActionPositionById(guidedAction.getId())); in onGuidedActionClicked()
206 if (action.getId() == ACTION_DIVIDER) { in onCreateActionsStylist()
225 mIdsToDelete.add(guidedAction.getId());
239 if (mIdsToDelete.contains(r.getId())
/packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/
DDvrDataManagerInMemoryImpl.java162 long id = r.getId(); in updateRecordedProgram()
172 mRecordedPrograms.remove(scheduledRecording.getId()); in removeRecordedProgram()
184 scheduledRecording.getId() == ScheduledRecording.ID_NOT_SET, in addScheduledRecordingInternal()
195 mScheduledRecordings.put(scheduledRecording.getId(), scheduledRecording); in addScheduledRecordingInternal()
204 recordedProgram.getId() == RecordedProgram.ID_NOT_SET, in addRecordedProgramInternal()
209 mRecordedPrograms.put(recordedProgram.getId(), recordedProgram); in addRecordedProgramInternal()
217 mSeriesRecordings.put(r.getId(), r); in addSeriesRecording()
225 mScheduledRecordings.remove(r.getId()); in removeScheduledRecording()
238 mSeriesRecordings.remove(r.getId()); in removeSeriesRecording()
246 long id = r.getId(); in updateScheduledRecording()
[all …]
/packages/apps/TV/src/com/android/tv/onboarding/
DSetupSourcesFragment.java261 if (newList.size() > 0 && mSetupUtils.isNewInput(newList.get(0).getId())) { in buildInputs()
262 mNewlyAddedInputId = newList.get(0).getId(); in buildInputs()
271 if (mSetupUtils.isNewInput(input.getId())) { in buildInputs()
272 mSetupUtils.markAsKnownInput(input.getId()); in buildInputs()
275 if (!mSetupUtils.isSetupDone(input.getId())) { in buildInputs()
314 String inputId = input.getId(); in createActionsInternal()
334 if (input.getId().equals(mNewlyAddedInputId)) { in createActionsInternal()
373 if (action.getId() == ACTION_ONLINE_STORE) { in onGuidedActionClicked()
374 mParentFragment.onActionClick(ACTION_CATEGORY, (int) action.getId()); in onGuidedActionClicked()
377 int index = (int) action.getId() - ACTION_INPUT_START; in onGuidedActionClicked()
[all …]
/packages/apps/TV/src/com/android/tv/search/
DDataManagerSearch.java105 if (channelsFound.contains(channel.getId())) { in searchFromDataManagers()
128 if (channelsFound.contains(channel.getId())) { in searchFromDataManagers()
163 if (channelsFound.contains(channel.getId())) { in searchFromDataManagers()
166 Program program = mProgramDataManager.getCurrentProgram(channel.getId()); in searchFromDataManagers()
189 if (channelsFound.contains(channel.getId())) { in searchFromDataManagers()
192 Program program = mProgramDataManager.getCurrentProgram(channel.getId()); in searchFromDataManagers()
236 program = mProgramDataManager.getCurrentProgram(channel.getId()); in addResult()
244 long channelId = channel.getId(); in addResult()
267 result.setIntentExtraData(TvContract.buildProgramUri(program.getId()).toString()); in addResult()
281 channelsFound.add(channel.getId()); in addResult()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DInCallServiceFixture.java68 if (mCallById.containsKey(call.getId())) { in addCall()
69 throw new RuntimeException("Call " + call.getId() + " already added"); in addCall()
71 mLatestCallId = call.getId(); in addCall()
72 mCallById.put(call.getId(), call); in addCall()
78 if (!mCallById.containsKey(call.getId())) { in updateCall()
85 mLatestCallId = call.getId(); in updateCall()
86 mCallById.put(call.getId(), call); in updateCall()
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/tzs2range/write/
DBankedTzIdSetsPackerTest.java48 assertEquals(0, bank1Helper.getId()); in simplePacking()
57 assertEquals(1, bank2Helper.getId()); in simplePacking()
81 assertEquals(0, bank1_1Helper.getId()); in overflowPacking()
85 assertEquals(0, bank1_2Helper.getId()); in overflowPacking()
88 assertEquals(0, bank1_1Helper2.getId()); in overflowPacking()
91 assertEquals(0, bank1_2Helper2.getId()); in overflowPacking()
95 assertEquals(1, bank2Helper.getId()); in overflowPacking()

12345678910>>...36