Home
last modified time | relevance | path

Searched refs:voicemailUri (Results 1 – 24 of 24) sorted by relevance

/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DVoicemailPlaybackPresenter.java126 protected Uri voicemailUri; field in VoicemailPlaybackPresenter
203 voicemailUri = savedInstanceState.getParcelable(VOICEMAIL_URI_KEY); in init()
248 outState.putParcelable(VOICEMAIL_URI_KEY, voicemailUri); in onSaveInstanceState()
260 Uri voicemailUri, in setPlaybackView() argument
265 this.view.setPresenter(this, voicemailUri); in setPlaybackView()
272 if (mediaPlayer != null && isPrepared && voicemailUri.equals(this.voicemailUri)) { in setPlaybackView()
280 if (!voicemailUri.equals(this.voicemailUri)) { in setPlaybackView()
281 this.voicemailUri = voicemailUri; in setPlaybackView()
319 voicemailUri = null; in resetAll()
399 return queryHasContent(voicemailUri); in checkForContent()
[all …]
DVoicemailPlaybackLayout.java75 private Uri voicemailUri; field in VoicemailPlaybackLayout
94 final Uri deleteUri = voicemailUri;
99 if (Objects.equals(deleteUri, voicemailUri)) {
206 public void setPresenter(VoicemailPlaybackPresenter presenter, Uri voicemailUri) { in setPresenter() argument
208 this.voicemailUri = voicemailUri; in setPresenter()
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/
DNewVoicemailMediaPlayerView.java70 private Uri voicemailUri; field in NewVoicemailMediaPlayerView
124 "the uri for this is " + voicemailUri + " and number is " + numberVoicemailFrom); in reset()
125 voicemailUri = null; in reset()
180 voicemailUri = uri; in bindValuesFromAdapterOfExpandedViewHolderMediaPlayerView()
204 if (mp.isPlaying() && mp.getLastPlayedOrPlayingVoicemailUri().equals(voicemailUri)) { in bindValuesFromAdapterOfExpandedViewHolderMediaPlayerView()
220 } else if (mediaPlayer.isPaused() && mp.getLastPausedVoicemailUri().equals(voicemailUri)) { in bindValuesFromAdapterOfExpandedViewHolderMediaPlayerView()
224 Assert.checkArgument(viewHolder.getViewHolderVoicemailUri().equals(voicemailUri)); in bindValuesFromAdapterOfExpandedViewHolderMediaPlayerView()
302 voicemailUri.toString());
307 mediaPlayer.getLastPlayedOrPlayingVoicemailUri().equals((voicemailUri)),
311 voicemailUri.toString());
[all …]
DNewVoicemailAdapter.java623 Uri voicemailUri) { in deleteViewHolder() argument
629 String.valueOf(voicemailUri)); in deleteViewHolder()
633 Assert.checkArgument(expandedViewHolder.getViewHolderVoicemailUri().equals(voicemailUri)); in deleteViewHolder()
643 voicemailUri); in deleteViewHolder()
647 Context context, View newVoicemailMediaPlayerView, int position, Uri voicemailUri) { in showUndoSnackbar() argument
652 String.valueOf(voicemailUri)); in showUndoSnackbar()
667 voicemailUri); in showUndoSnackbar()
678 String.valueOf(voicemailUri)); in showUndoSnackbar()
699 .executeSerial(new Pair<>(context, voicemailUri)); in showUndoSnackbar()
DVoicemailCursorLoader.java129 String voicemailUri = cursor.getString(VOICEMAIL_URI); in toVoicemailEntry() local
130 if (!TextUtils.isEmpty(voicemailUri)) { in toVoicemailEntry()
131 voicemailEntryBuilder.setVoicemailUri(voicemailUri); in toVoicemailEntry()
DNewVoicemailMediaPlayer.java136 public void pauseMediaPlayer(Uri voicemailUri) { in pauseMediaPlayer() argument
137 pausedUri = voicemailUri; in pauseMediaPlayer()
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/
DTranscriptionRatingHelper.java36 void onRatingSuccess(Uri voicemailUri); in onRatingSuccess() argument
51 Uri voicemailUri, in sendRating() argument
56 .createNonUiTaskBuilder(new RatingWorker(context, ratingValue, voicemailUri)) in sendRating()
57 .onSuccess(output -> successListener.onRatingSuccess(voicemailUri)) in sendRating()
67 private final Uri voicemailUri; field in TranscriptionRatingHelper.RatingWorker
69 private RatingWorker(Context context, TranscriptionRatingValue ratingValue, Uri voicemailUri) { in RatingWorker() argument
72 this.voicemailUri = voicemailUri; in RatingWorker()
81 TranscriptionDbHelper dbHelper = new TranscriptionDbHelper(context, voicemailUri); in doInBackground()
87 ByteString audioData = TranscriptionUtils.getAudioData(context, voicemailUri); in getFeedbackRequest()
88 String salt = voicemailUri.toString(); in getFeedbackRequest()
DTranscriptionTask.java62 protected final Uri voicemailUri; field in TranscriptionTask
85 this.voicemailUri = TranscriptionService.getVoicemailUri(workItem); in TranscriptionTask()
88 dbHelper = new TranscriptionDbHelper(context, voicemailUri); in TranscriptionTask()
232 if (voicemailUri == null) { in readAndValidateAudioFile()
236 VvmLog.i(TAG, "Transcriber.readAndValidateAudioFile, reading: " + voicemailUri); in readAndValidateAudioFile()
239 audioData = TranscriptionUtils.getAudioData(context, voicemailUri); in readAndValidateAudioFile()
243 VvmLog.i(TAG, "readAndValidateAudioFile, unable to read audio data for " + voicemailUri); in readAndValidateAudioFile()
DTranscriptionTaskAsync.java65 "getTranscription, pending transcription, postponing transcription of: " + voicemailUri); in getTranscription()
73 + voicemailUri in getTranscription()
90 voicemailUri, in getTranscription()
103 voicemailUri, in getTranscription()
136 String salt = voicemailUri.toString(); in getUploadRequest()
DGetTranscriptReceiver.java63 Uri voicemailUri, in beginPolling() argument
77 voicemailUri, in beginPolling()
148 Uri voicemailUri, in makeAlarmIntent() argument
155 intent.putExtra(EXTRA_VOICEMAIL_URI, voicemailUri); in makeAlarmIntent()
204 Uri voicemailUri = intent.getParcelableExtra(EXTRA_VOICEMAIL_URI); in doInBackground() local
205 TranscriptionDbHelper dbHelper = new TranscriptionDbHelper(context, voicemailUri); in doInBackground()
DTranscriptionService.java69 Context context, Uri voicemailUri, PhoneAccountHandle account, boolean highPriority) { in scheduleNewVoicemailTranscriptionJob() argument
91 JobWorkItem workItem = makeWorkItem(voicemailUri, account); in scheduleNewVoicemailTranscriptionJob()
254 private static JobWorkItem makeWorkItem(Uri voicemailUri, PhoneAccountHandle account) { in makeWorkItem() argument
256 intent.putExtra(EXTRA_VOICEMAIL_URI, voicemailUri); in makeWorkItem()
DTranscriptionUtils.java36 static ByteString getAudioData(Context context, Uri voicemailUri) { in getAudioData() argument
37 try (InputStream in = context.getContentResolver().openInputStream(voicemailUri)) { in getAudioData()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogAdapter.java284 String voicemailUri = voicemailsToDelete.get(voicemailsToDelete.keyAt(i)); in deleteSelectedItems() local
285 LogUtil.i("CallLogAdapter.deleteSelectedItems", "deleting uri:" + voicemailUri); in deleteSelectedItems()
286 CallLogAsyncTaskUtil.deleteVoicemail(activity, Uri.parse(voicemailUri), null); in deleteSelectedItems()
334 if (actionMode != null && viewHolder.voicemailUri != null) {
338 int id = getVoicemailId(viewHolder.voicemailUri);
430 selectedItems.put(getVoicemailId(viewHolder.voicemailUri), viewHolder.voicemailUri); in checkMarkCallLogEntry()
467 private static int getVoicemailId(String voicemailUri) { in getVoicemailId() argument
468 Assert.checkArgument(voicemailUri != null); in getVoicemailId()
469 Assert.checkArgument(voicemailUri.length() > 0); in getVoicemailId()
470 return (int) ContentUris.parseId(Uri.parse(voicemailUri)); in getVoicemailId()
[all …]
DVoicemailQueryHandler.java55 final @NonNull Context context, final Uri voicemailUri) { in markSingleNewVoicemailAsOld() argument
56 if (voicemailUri == null) { in markSingleNewVoicemailAsOld()
63 .markNewVoicemailsAsOld(context, voicemailUri); in markSingleNewVoicemailAsOld()
68 private void markNewVoicemailsAsOld(Context context, @Nullable Uri voicemailUri) { in markNewVoicemailsAsOld() argument
76 if (voicemailUri != null) { in markNewVoicemailsAsOld()
89 voicemailUri == null in markNewVoicemailsAsOld()
91 : new String[] {Integer.toString(Calls.VOICEMAIL_TYPE), voicemailUri.toString()}); in markNewVoicemailsAsOld()
DCallLogAsyncTaskUtil.java46 @NonNull final Context context, @NonNull final Uri voicemailUri) { in markVoicemailAsRead() argument
47 LogUtil.enterBlock("CallLogAsyncTaskUtil.markVoicemailAsRead, voicemailUri: " + voicemailUri); in markVoicemailAsRead()
64 .update(voicemailUri, values, Voicemails.IS_READ + " = 0", null) in markVoicemailAsRead()
76 final Uri voicemailUri, in deleteVoicemail() argument
87 deleteVoicemailSynchronous(context, voicemailUri); in deleteVoicemail()
100 public static void deleteVoicemailSynchronous(Context context, Uri voicemailUri) { in deleteVoicemailSynchronous() argument
103 context.getContentResolver().update(voicemailUri, values, null, null); in deleteVoicemailSynchronous()
DVisualVoicemailNotifier.java125 @NonNull Context context, @Nullable Uri voicemailUri) { in cancelSingleVoicemailNotification() argument
127 if (voicemailUri == null) { in cancelSingleVoicemailNotification()
133 context, getNotificationTagForUri(voicemailUri), NOTIFICATION_ID); in cancelSingleVoicemailNotification()
137 return getNotificationTagForUri(voicemail.voicemailUri); in getNotificationTagForVoicemail()
140 private static String getNotificationTagForUri(@NonNull Uri voicemailUri) { in getNotificationTagForUri() argument
141 return NOTIFICATION_TAG_PREFIX + voicemailUri; in getNotificationTagForUri()
211 if (voicemail.voicemailUri != null) { in createNotificationForVoicemail()
214 context, voicemail.voicemailUri)); in createNotificationForVoicemail()
273 intent.setData(voicemail.voicemailUri); in newVoicemailIntent()
DCallLogNotificationsQueryHelper.java268 @Nullable public final Uri voicemailUri; field in CallLogNotificationsQueryHelper.NewCall
280 @Nullable Uri voicemailUri, in NewCall() argument
290 this.voicemailUri = voicemailUri; in NewCall()
415 public NewCall queryUnreadVoicemail(Uri voicemailUri) { in queryUnreadVoicemail() argument
424 .is("=", voicemailUri) in queryUnreadVoicemail()
451 Uri voicemailUri = voicemailUriString == null ? null : Uri.parse(voicemailUriString); in createNewCallsFromCursor() local
454 voicemailUri, in createNewCallsFromCursor()
DCallLogNotificationsService.java107 @NonNull Context context, @Nullable Uri voicemailUri) { in createMarkSingleNewVoicemailAsOldIntent() argument
110 intent.setData(voicemailUri); in createMarkSingleNewVoicemailAsOldIntent()
157 Uri voicemailUri = intent.getData(); in onHandleIntent() local
158 VoicemailQueryHandler.markSingleNewVoicemailAsOld(this, voicemailUri); in onHandleIntent()
159 VisualVoicemailNotifier.cancelSingleVoicemailNotification(this, voicemailUri); in onHandleIntent()
DVisualVoicemailUpdateTask.java186 if (newCall.voicemailUri != null) { in filterBlockedNumbers()
188 CallLogAsyncTaskUtil.deleteVoicemailSynchronous(context, newCall.voicemailUri); in filterBlockedNumbers()
215 if (newCall.voicemailUri != null) { in filterSpamNumbers()
217 VoicemailQueryHandler.markSingleNewVoicemailAsOld(context, newCall.voicemailUri); in filterSpamNumbers()
DCallLogListItemViewHolder.java210 public String voicemailUri; field in CallLogListItemViewHolder
515 if (!TextUtils.isEmpty(voicemailUri)) { in updatePrimaryActionButton()
640 Uri uri = Uri.parse(voicemailUri); in bindActionButtons()
666 if (!TextUtils.isEmpty(voicemailUri) && canPlaceCallToNumber) { in bindActionButtons()
752 && !TextUtils.isEmpty(voicemailUri)) { in bindActionButtons()
755 Uri uri = Uri.parse(voicemailUri); in bindActionButtons()
970 if (view.getId() == R.id.primary_action_button && !TextUtils.isEmpty(voicemailUri)) { in onClick()
DPhoneCallDetailsHelper.java339 Uri.parse(details.voicemailUri), in recordTranscriptionRating()
363 Uri.parse(details.voicemailUri), in showVoicemailDonationPromo()
422 public void onRatingSuccess(Uri voicemailUri) { in onRatingSuccess() argument
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DVoicemailProviderTest.java96 private Uri voicemailUri() { in voicemailUri() method in VoicemailProviderTest
111 Uri uri = mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testInsert()
124 Uri uri = mResolver.insert(voicemailUri(), values); in testInsertReadMessageIsNotNew()
150 mResolver.bulkInsert(voicemailUri(), in testBulkInsert()
197 final Uri uri = mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testUpdateOwnPackageVoicemail_NotDirty()
232 final Uri uri = mResolver.insert(voicemailUri(), values); in testUpdateOwnPackageVoicemail_RemovesDirtyStatus()
246 final Uri uri = mResolver.insert(voicemailUri(), values); in testUpdateOwnPackageVoicemail_retainDirtyStatus_dirty()
262 final Uri uri = mResolver.insert(voicemailUri(), values); in testUpdateOwnPackageVoicemail_retainDirtyStatus_notDirty()
278 final Uri uri = mResolver.insert(voicemailUri(), values); in testUpdateOwnPackageVoicemail_retainDirtyStatus_noOtherValues()
292 assertEquals(1, getCount(voicemailUri(), null, null)); in testDeleteOwnPackageVoicemail_DeletesRow()
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/systemcalllog/
DSystemCallLogDataSource.java306 String voicemailUri = cursor.getString(voicemailUriColumn); in handleInsertsAndUpdates() local
351 contentValues.put(AnnotatedCallLog.VOICEMAIL_URI, voicemailUri); in handleInsertsAndUpdates()
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DPhoneCallDetails.java138 public String voicemailUri; field in PhoneCallDetails