Home
last modified time | relevance | path

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

12345678910>>...19

/packages/apps/TV/tests/unit/src/com/android/tv/data/
DGenreItemTest.java47 assertEquals(GenreItems.ID_ALL_CHANNELS, GenreItems.getId(null)); in testGetId_base()
48 assertEquals(GenreItems.ID_ALL_CHANNELS, GenreItems.getId(INVALID_GENRE)); in testGetId_base()
49 assertInRange(GenreItems.getId(Genres.FAMILY_KIDS), 1, count - 1); in testGetId_base()
50 assertInRange(GenreItems.getId(Genres.SPORTS), 1, count - 1); in testGetId_base()
51 assertInRange(GenreItems.getId(Genres.SHOPPING), 1, count - 1); in testGetId_base()
52 assertInRange(GenreItems.getId(Genres.MOVIES), 1, count - 1); in testGetId_base()
53 assertInRange(GenreItems.getId(Genres.COMEDY), 1, count - 1); in testGetId_base()
54 assertInRange(GenreItems.getId(Genres.TRAVEL), 1, count - 1); in testGetId_base()
55 assertInRange(GenreItems.getId(Genres.DRAMA), 1, count - 1); in testGetId_base()
56 assertInRange(GenreItems.getId(Genres.EDUCATION), 1, count - 1); in testGetId_base()
[all …]
DChannelDataManagerTest.java163 assertEquals(channel, mChannelDataManager.getChannel(channel.getId())); in testGetChannels()
199 mChannelDataManager.addChannelListener(channel1.getId(), channelListener); in testBrowsable()
202 mChannelDataManager.updateBrowsable(channel1.getId(), false, false); in testBrowsable()
232 mChannelDataManager.addChannelListener(channel1.getId(), channelListener); in testBrowsable_skipNotification()
233 mChannelDataManager.addChannelListener(channel2.getId(), channelListener); in testBrowsable_skipNotification()
236 mChannelDataManager.updateBrowsable(channel1.getId(), false, true); in testBrowsable_skipNotification()
237 mChannelDataManager.updateBrowsable(channel2.getId(), false, true); in testBrowsable_skipNotification()
238 mChannelDataManager.updateBrowsable(channel1.getId(), true, true); in testBrowsable_skipNotification()
273 mChannelDataManager.updateLocked(channel.getId(), true); in testLocked()
274 assertTrue(mChannelDataManager.getChannel(channel.getId()).isLocked()); in testLocked()
[all …]
/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 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/TV/src/com/android/tv/dvr/
DDvrDataManagerInMemoryImpl.java115 long id = r.getId(); in updateRecordedProgram()
125 mRecordedPrograms.remove(scheduledRecording.getId()); in removeRecordedProgram()
132 .checkState(scheduledRecording.getId() == ScheduledRecording.ID_NOT_SET, TAG, in addScheduledRecordingInternal()
138 mScheduledRecordings.put(scheduledRecording.getId(), scheduledRecording); in addScheduledRecordingInternal()
144 SoftPreconditions.checkState(recordedProgram.getId() == RecordedProgram.ID_NOT_SET, TAG, in addRecordedProgramInternal()
149 mRecordedPrograms.put(recordedProgram.getId(), recordedProgram); in addRecordedProgramInternal()
161 mScheduledRecordings.remove(scheduledRecording.getId()); in removeScheduledRecording()
172 long id = r.getId(); in updateScheduledRecording()
DDvrDataManagerImpl.java132 mScheduledRecordings.put(r.getId(), r); in start()
264 if (r.getId() != -1) { in addScheduledRecording()
265 mScheduledRecordings.put(r.getId(), r); in addScheduledRecording()
291 mScheduledRecordings.remove(scheduledRecording.getId()); in removeScheduledRecording()
320 .put(scheduledRecording.getId(), scheduledRecording); in updateScheduledRecording()
328 if (oldValueForProgramId.getId() == scheduledRecording.getId()) { in updateScheduledRecording()
371 mRecordedPrograms.put(r.getId(), r); in onPostExecute()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DCallList.java110 Log.w(this, "Removing call not previously disconnected " + call.getId()); in onCallRemoved()
166 final List<CallUpdateListener> listeners = mCallUpdateListenerMap.get(call.getId()); in onSessionModificationStateChange()
182 final List<CallUpdateListener> listeners = mCallUpdateListenerMap.get(call.getId()); in onLastForwardedNumberChange()
197 final List<CallUpdateListener> listeners = mCallUpdateListenerMap.get(call.getId()); in onChildNumberChange()
206 final List<CallUpdateListener> listeners = mCallUpdateListenerMap.get(call.getId()); in notifyCallUpdateListeners()
496 if (mCallById.containsKey(call.getId())) { in updateCallInMap()
505 mCallById.put(call.getId(), call); in updateCallInMap()
510 mCallById.put(call.getId(), call); in updateCallInMap()
513 } else if (mCallById.containsKey(call.getId())) { in updateCallInMap()
514 mCallById.remove(call.getId()); in updateCallInMap()
[all …]
DAnswerPresenter.java83 if (!call.getId().equals(mCallId)) { in onIncomingCall()
149 mCallId = call.getId(); in processIncomingCall()
157 final List<String> textMsgs = CallList.getInstance().getTextResponses(call.getId()); in processIncomingCall()
177 mCallId = call.getId(); in processVideoUpgradeRequestCall()
225 final List<String> textMsgs = CallList.getInstance().getTextResponses(call.getId()); in onCallChanged()
243 TelecomAdapter.getInstance().answerCall(mCall.getId(), videoState); in onAnswer()
257 TelecomAdapter.getInstance().rejectCall(mCall.getId(), false, null); in onDecline()
270 TelecomAdapter.getInstance().rejectCall(mCall.getId(), true, message); in rejectCallWithMessage()
/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()
304 String inputId = input.getId(); in createActionsInternal()
320 if (input.getId().equals(mNewlyAddedInputId)) { in createActionsInternal()
354 if (action.getId() == ACTION_PLAY_STORE) { in onGuidedActionClicked()
355 mParentFragment.onActionClick(ACTION_CATEGORY, (int) action.getId()); in onGuidedActionClicked()
358 TvInputInfo input = mInputs.get((int) action.getId() - ACTION_INPUT_START); in onGuidedActionClicked()
[all …]
/packages/services/Telephony/src/com/android/phone/vvm/omtp/
DVvmPhoneStateListener.java64 Log.v(TAG, "Notifications channel is active for " + mPhoneAccount.getId()); in onServiceStateChanged()
75 Log.v(TAG, "Signal returned: requesting resync for " + mPhoneAccount.getId()); in onServiceStateChanged()
77 "Signal returned: requesting resync for " + mPhoneAccount.getId()); in onServiceStateChanged()
85 Log.v(TAG, "Signal returned: reattempting activation for " + mPhoneAccount.getId()); in onServiceStateChanged()
87 "Signal returned: reattempting activation for " + mPhoneAccount.getId()); in onServiceStateChanged()
96 Log.v(TAG, "Notifications channel is inactive for " + mPhoneAccount.getId()); in onServiceStateChanged()
/packages/apps/TV/src/com/android/tv/search/
DDataManagerSearch.java106 if (channelsFound.contains(channel.getId())) { in searchFromDataManagers()
119 if (channelsFound.contains(channel.getId())) { in searchFromDataManagers()
131 if (channelsFound.contains(channel.getId())) { in searchFromDataManagers()
134 Program program = mProgramDataManager.getCurrentProgram(channel.getId()); in searchFromDataManagers()
147 if (channelsFound.contains(channel.getId())) { in searchFromDataManagers()
150 Program program = mProgramDataManager.getCurrentProgram(channel.getId()); in searchFromDataManagers()
176 program = mProgramDataManager.getCurrentProgram(channel.getId()); in addResult()
184 long channelId = channel.getId(); in addResult()
216 channelsFound.add(channel.getId()); in addResult()
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
DFavoriteChannelEvaluatorTest.java42 long channelId = addChannel().getId(); in testOneChannelWithNoWatchLog()
103 long channelOne = addChannel().getId(); in testTwoChannelsWithSameWatchDuration()
104 long channelTwo = addChannel().getId(); in testTwoChannelsWithSameWatchDuration()
116 long channelOne = addChannel().getId(); in testTwoChannelsWithDifferentWatchDuration()
117 long channelTwo = addChannel().getId(); in testTwoChannelsWithDifferentWatchDuration()
135 long channelId = addChannel().getId(); in testScoreIncreasesWithNewWatchLog()
DRecommenderTest.java48 return mRecommender.getChannelSortKey(lhs.getId())
49 .compareTo(mRecommender.getChannelSortKey(rhs.getId()));
150 mEvaluator.setChannelScore(mChannel_1.getId(), 1.0); in testRecommendChannels_includeRecommendedOnly_fewChannelsHaveScore()
151 mEvaluator.setChannelScore(mChannel_2.getId(), 1.0); in testRecommendChannels_includeRecommendedOnly_fewChannelsHaveScore()
169 mEvaluator.setChannelScore(mChannel_1.getId(), 1.0); in testRecommendChannels_notIncludeRecommendedOnly_fewChannelsHaveScore()
170 mEvaluator.setChannelScore(mChannel_2.getId(), 1.0); in testRecommendChannels_notIncludeRecommendedOnly_fewChannelsHaveScore()
215 mRecommender.getChannelSortKey(mChannel_1.getId())); in testGetChannelSortKey_recommendFewChannels()
265 mRecommender.getChannelSortKey(channel.getId())); in assertSortKeyNotInvalid()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DInputOptionsFragment.java96 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()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DStorageFragment.java74 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/TV/src/com/android/tv/data/
DTvInputNewComparator.java40 boolean lhsIsNewInput = mSetupUtils.isNewInput(lhs.getId()); in compare()
41 boolean rhsIsNewInput = mSetupUtils.isNewInput(rhs.getId()); in compare()
48 boolean lhsSetupDone = mSetupUtils.isSetupDone(lhs.getId()); in compare()
49 boolean rhsSetupDone = mSetupUtils.isSetupDone(rhs.getId()); in compare()
/packages/apps/Camera2/src/com/android/camera/device/
DCamera2Actions.java79 mLogger.i("executeClose(" + device.getId() + ")"); in executeClose()
135 mLogger.i("mCameraDevice.close(id: " + mCameraDevice.getId() + ")"); in run()
162 mLogger.i("onOpened(id: " + cameraDevice.getId() + ")"); in onOpened()
170 mLogger.w("onClosed(id: " + cameraDevice.getId() + ")"); in onClosed()
178 mLogger.w("onDisconnected(id: " + cameraDevice.getId() + ")"); in onDisconnected()
186 mLogger.e("onError(id: " + cameraDevice.getId() in onError()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DChannelCheckItem.java93 mChannelDataManager.addChannelListener(mChannel.getId(), mChannelListener); in onBind()
94 mProgramDataManager.addOnCurrentProgramUpdatedListener(mChannel.getId(), in onBind()
102 updateProgramTitle(mProgramDataManager.getCurrentProgram(mChannel.getId())); in onUpdate()
107 mChannelDataManager.removeChannelListener(mChannel.getId(), mChannelListener); in onUnbind()
108 mProgramDataManager.removeOnCurrentProgramUpdatedListener(mChannel.getId(), in onUnbind()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DSortedArrayAdapter.java55 public final long getId(int position) { in getId() method in SortedArrayAdapter
60 return item == null ? NO_ID : getId(item); in getId()
68 abstract long getId(T item); in getId() method in SortedArrayAdapter
172 long id = getId(item); in indexOf()
175 if (getId(r) == id) { in indexOf()
/packages/apps/TV/src/com/android/tv/
DChannelTuner.java176 return mCurrentChannel != null ? mCurrentChannel.getId() : Channel.INVALID_ID; in getCurrentChannelId()
189 return TvContract.buildChannelUri(mCurrentChannel.getId()); in getCurrentChannelUri()
219 setCurrentChannelAndNotify(mChannelMap.get(channel.getId())); in moveToAdjacentBrowsableChannel()
239 channelIndex = mChannelIndexMap.get(mCurrentChannel.getId()); in getAdjacentBrowsableChannel()
303 Channel newChannel = mChannelMap.get(channel.getId()); in moveToChannel()
374 long channelId = channel.getId(); in updateChannelData()
382 setCurrentChannelAndNotify(mChannelMap.get(mCurrentChannel.getId())); in updateChannelData()
/packages/apps/TV/src/com/android/tv/util/
DSetupUtils.java138 manager.updateBrowsable(channel.getId(), true, true); in updateChannelBrowsable()
164 String inputId = input.getId(); in markNewChannelsBrowsable()
178 channelDataManager.updateBrowsable(channel.getId(), true); in markNewChannelsBrowsable()
223 if (isNewInput(input.getId())) { in hasNewInput()
243 mRecognizedInputs.add(input.getId()); in markAllInputsRecognized()
254 if (!isRecognizedInput(input.getId())) { in hasUnrecognizedInput()
333 removedInputList.remove(input.getId()); in onInputListUpdated()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageWizardFormatProgress.java98 storage.partitionPrivate(activity.mDisk.getId()); in doInBackground()
105 mPrivateBench = storage.benchmark(privateVol.getId()); in doInBackground()
119 storage.partitionPublic(activity.mDisk.getId()); in doInBackground()
226 && VolumeInfo.ID_PRIVATE_INTERNAL.equals(privateVol.getId())); in onFormatFinished()
233 intent.putExtra(DiskInfo.EXTRA_DISK_ID, mDisk.getId()); in onFormatFinished()
237 intent.putExtra(DiskInfo.EXTRA_DISK_ID, mDisk.getId()); in onFormatFinished()
/packages/services/Telephony/src/com/android/phone/vvm/omtp/sync/
DVoicemailsQueryHelper.java138 sb.append(voicemails.get(i).getId()); in deleteFromDatabase()
150 new String[] { Long.toString(voicemail.getId()) }); in deleteFromDatabase()
174 Uri uri = ContentUris.withAppendedId(mSourceUri, voicemail.getId()); in markReadInDatabase()
184 Uri uri = ContentUris.withAppendedId(mSourceUri, voicemail.getId()); in updateWithTranscription()
202 String phoneAccountId = phoneAccount.getId(); in isVoicemailUnique()
/packages/apps/TV/src/com/android/tv/guide/
DProgramManager.java118 public long getId() { in getId() method in ProgramManager.TableEntry
120 return program != null ? program.getId() : -entryEndUtcMillis; in getId()
332 Program currentProgram = mProgramDataManager.getCurrentProgram(channel.getId()); in buildGenreFilters()
335 mGenreChannelList.get(GenreItems.getId(genre)).add(channel); in buildGenreFilters()
404 long channelId = channel.getId(); in updateTableEntries()
412 Log.d(TAG, "Programs are loaded for channel " + channel.getId() in updateTableEntries()
426 long channelId = channel.getId(); in updateTableEntries()
499 if (entry.getId() == entryId) { in getTableEntry()
624 : mDvrDataManager.getScheduledRecordingForProgramId(program.getId()); in createProgramEntries()
723 if (entries.get(i).getId() == entryId) { in getProgramIdIndex()
/packages/apps/TV/src/com/android/tv/recommendation/
DNotificationService.java209 channel.getId(), notificationId)) { in handleUpdateRecommendation()
291 int index = notificationChannels.indexOfValue(c.getId()); in showRecommendation()
309 if (!isNotifiedChannel(c.getId())) { in showRecommendation()
310 sendNotification(c.getId(), getAvailableNotificationId()); in showRecommendation()
326 if (!isNotifiedChannel(c.getId())) { in changeRecommendation()
327 if(sendNotification(c.getId(), notificationId)) { in changeRecommendation()
366 String inputId = Utils.getInputIdForChannel(this, channel.getId()); in sendNotification()
376 final Program program = Utils.getCurrentProgram(this, channel.getId()); in sendNotification()
410 mNotificationChannels[notificationId] = channel.getId(); in sendNotification()
453 .setSortKey(mRecommender.getChannelSortKey(channel.getId())).build();
DRecommendationDataManager.java156 mAvailableChannelRecordMap.put(channelRecord.getChannel().getId(),
180 mAvailableChannelRecordMap.remove(channelRecord.getChannel().getId());
304 mInputs.add(input.getId()); in onStart()
331 removedChannelIdSet.remove(channel.getId()); in onUpdateChannels()
475 mChannelRecordMap.remove(channel.getId()); in updateChannelRecordMapFromChannel()
476 return mAvailableChannelRecordMap.remove(channel.getId()) != null; in updateChannelRecordMapFromChannel()
478 ChannelRecord channelRecord = mChannelRecordMap.get(channel.getId()); in updateChannelRecordMapFromChannel()
482 mChannelRecordMap.put(channel.getId(), record); in updateChannelRecordMapFromChannel()
484 mAvailableChannelRecordMap.put(channel.getId(), record); in updateChannelRecordMapFromChannel()

12345678910>>...19