/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | VoicemailProviderTest.java | 74 private Uri voicemailUri() { in voicemailUri() method in VoicemailProviderTest 87 Uri uri = mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testInsert() 99 Uri uri = mResolver.insert(voicemailUri(), values); in testInsertReadMessageIsNotNew() 163 final Uri uri = mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testUpdateOwnPackageVoicemail_NotDirty() 175 final Uri uri = mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testUpdateOwnPackageVoicemail_RemovesDirtyStatus() 187 assertEquals(1, getCount(voicemailUri(), null, null)); in testDeleteOwnPackageVoicemail_DeletesRow() 198 assertEquals(1, getCount(voicemailUri(), null, null)); in testDeleteOtherPackageVoicemail_SetsDirtyStatus() 215 int count = mResolver.delete(voicemailUri(), Voicemails._ID + "=" in testDelete() 225 assertEquals(1, getCount(voicemailUri(), null, null)); in testUpdateAfterDelete_lastModifiedNotChanged() 251 Uri uri = mResolver.insert(voicemailUri(), values); in testGetType_ItemUri() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/ |
D | VoicemailPlaybackPresenter.java | 257 Uri voicemailUri, in setPlaybackView() argument 262 mView.setPresenter(this, voicemailUri); in setPlaybackView() 269 if (mMediaPlayer != null && mIsPrepared && voicemailUri.equals(mVoicemailUri)) { in setPlaybackView() 277 if (!voicemailUri.equals(mVoicemailUri)) { in setPlaybackView() 278 mVoicemailUri = voicemailUri; in setPlaybackView() 406 private boolean queryHasContent(Uri voicemailUri) { in queryHasContent() argument 407 if (voicemailUri == null || mContext == null) { in queryHasContent() 412 Cursor cursor = contentResolver.query(voicemailUri, null, null, null, null); in queryHasContent() 874 Uri voicemailUri = input.second; in doInBackground() local 876 try (Cursor callLogInfo = getCallLogInfoCursor(contentResolver, voicemailUri); in doInBackground() argument [all …]
|
D | VoicemailPlaybackLayout.java | 206 public void setPresenter(VoicemailPlaybackPresenter presenter, Uri voicemailUri) { in setPresenter() argument 208 mVoicemailUri = voicemailUri; in setPresenter()
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
D | VoicemailQueryHandler.java | 49 public void markNewVoicemailsAsOld(@Nullable Uri voicemailUri) { in markNewVoicemailsAsOld() argument 57 if (voicemailUri != null) { in markNewVoicemailsAsOld() 70 voicemailUri == null in markNewVoicemailsAsOld() 72 : new String[] {Integer.toString(Calls.VOICEMAIL_TYPE), voicemailUri.toString()}); in markNewVoicemailsAsOld() 76 voicemailUri != null ? voicemailUri.toString() : null, in markNewVoicemailsAsOld()
|
D | CallLogAdapter.java | 224 String voicemailUri = voicemailsToDelete.get(voicemailsToDelete.keyAt(i)); in deleteSelectedItems() local 225 CallLogAsyncTaskUtil.deleteVoicemail(mActivity, Uri.parse(voicemailUri), null); in deleteSelectedItems() 260 if (mActionMode != null && viewHolder.voicemailUri != null) { 261 int id = getVoicemailId(viewHolder.voicemailUri); 269 selectedItems.put(getVoicemailId(viewHolder.voicemailUri), viewHolder.voicemailUri); 315 private static int getVoicemailId(String voicemailUri) { in getVoicemailId() argument 316 Assert.checkArgument(voicemailUri != null); in getVoicemailId() 317 Assert.checkArgument(voicemailUri.length() > 0); in getVoicemailId() 318 return (int) ContentUris.parseId(Uri.parse(voicemailUri)); in getVoicemailId() 409 if (!TextUtils.isEmpty(viewHolder.voicemailUri)) { in expandViewHolderActions() [all …]
|
D | CallLogAsyncTaskUtil.java | 47 @NonNull final Context context, @NonNull final Uri voicemailUri) { in markVoicemailAsRead() argument 64 .update(voicemailUri, values, Voicemails.IS_READ + " = 0", null) in markVoicemailAsRead() 79 final Uri voicemailUri, in deleteVoicemail() argument 90 deleteVoicemailSynchronous(context, voicemailUri); in deleteVoicemail() 103 public static void deleteVoicemailSynchronous(Context context, Uri voicemailUri) { in deleteVoicemailSynchronous() argument 106 context.getContentResolver().update(voicemailUri, values, null, null); in deleteVoicemailSynchronous()
|
D | CallLogNotificationsQueryHelper.java | 213 @Nullable public final Uri voicemailUri; field in CallLogNotificationsQueryHelper.NewCall 224 @Nullable Uri voicemailUri, in NewCall() argument 233 this.voicemailUri = voicemailUri; in NewCall() 316 Uri voicemailUri = voicemailUriString == null ? null : Uri.parse(voicemailUriString); in createNewCallsFromCursor() local 319 voicemailUri, in createNewCallsFromCursor()
|
D | DefaultVoicemailNotifier.java | 151 if (newCall.voicemailUri != null) { in updateNotification() 153 CallLogAsyncTaskUtil.deleteVoicemailSynchronous(context, newCall.voicemailUri); in updateNotification() 328 private PendingIntent createMarkNewVoicemailsAsOldIntent(@Nullable Uri voicemailUri) { in createMarkNewVoicemailsAsOldIntent() argument 331 intent.setData(voicemailUri); in createMarkNewVoicemailsAsOldIntent() 363 if (voicemail.voicemailUri != null) { in createNotificationForVoicemail() 365 createMarkNewVoicemailsAsOldIntent(voicemail.voicemailUri)); in createNotificationForVoicemail() 404 intent.setData(voicemail.voicemailUri); in newVoicemailIntent()
|
D | CallLogListItemViewHolder.java | 182 public String voicemailUri; field in CallLogListItemViewHolder 444 if (!TextUtils.isEmpty(voicemailUri)) { in updatePrimaryActionButton() 504 Uri uri = Uri.parse(voicemailUri); in bindActionButtons() 516 if (!TextUtils.isEmpty(voicemailUri) && canPlaceCallToNumber) { in bindActionButtons() 549 && !TextUtils.isEmpty(voicemailUri)) { in bindActionButtons() 552 Uri uri = Uri.parse(voicemailUri); in bindActionButtons() 741 if (view.getId() == R.id.primary_action_button && !TextUtils.isEmpty(voicemailUri)) { in onClick()
|
D | CallLogNotificationsService.java | 92 public static void markNewVoicemailsAsOld(Context context, @Nullable Uri voicemailUri) { in markNewVoicemailsAsOld() argument 95 serviceIntent.setData(voicemailUri); in markNewVoicemailsAsOld()
|