/packages/apps/Contacts/src/com/android/contacts/interactions/ |
D | ContactDeletionInteraction.java | 112 Activity activity, Uri contactUri, boolean finishActivityWhenDone) { in start() argument 113 return startWithTestLoaderManager(activity, contactUri, finishActivityWhenDone, null); in start() 129 Activity activity, Uri contactUri, boolean finishActivityWhenDone, in startWithTestLoaderManager() argument 131 if (contactUri == null || activity.isDestroyed()) { in startWithTestLoaderManager() 141 fragment.setContactUri(contactUri); in startWithTestLoaderManager() 147 fragment.setContactUri(contactUri); in startWithTestLoaderManager() 187 public void setContactUri(Uri contactUri) { in setContactUri() argument 188 mContactUri = contactUri; in setContactUri() 227 Uri contactUri = args.getParcelable(ARG_CONTACT_URI); in onCreateLoader() local 229 Uri.withAppendedPath(contactUri, Entity.CONTENT_DIRECTORY), ENTITY_PROJECTION, in onCreateLoader() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | ContactBrowseListFragment.java | 544 Uri contactUri = null; in selectDefaultContact() local 552 contactUri = adapter.getContactUri(pos); in selectDefaultContact() 555 if (contactUri == null) { in selectDefaultContact() 556 contactUri = adapter.getFirstContactUri(); in selectDefaultContact() 559 setSelectedContactUri(contactUri, false, mSmoothScrollRequested, false, false); in selectDefaultContact() 601 public void viewContact(int position, Uri contactUri, boolean isEnterpriseContact) { in viewContact() argument 602 setSelectedContactUri(contactUri, false, false, true, false); in viewContact() 603 if (mListener != null) mListener.onViewContactAction(position, contactUri, in viewContact() 607 public void deleteContact(Uri contactUri) { in deleteContact() argument 608 if (mListener != null) mListener.onDeleteContactAction(contactUri); in deleteContact() [all …]
|
D | JoinContactListFragment.java | 165 final Uri contactUri = getAdapter().getContactUri(position); in onItemClick() local 166 if (contactUri != null) mListener.onPickContactAction(contactUri); in onItemClick() 171 final Uri contactUri = data.getData(); in onPickerResult() local 172 if (contactUri != null) mListener.onPickContactAction(contactUri); in onPickerResult()
|
D | ContactsRequest.java | 202 public void setContactUri(Uri contactUri) { in setContactUri() argument 203 this.mContactUri = contactUri; in setContactUri()
|
D | ContactPickerFragment.java | 121 public void editContact(Uri contactUri) { in editContact() argument 123 mListener.onEditContactAction(contactUri); in editContact()
|
/packages/apps/Dialer/java/com/android/dialer/contacts/hiresphoto/ |
D | HighResolutionPhotoRequesterImpl.java | 69 public ListenableFuture<Void> request(Uri contactUri) { in request() argument 73 requestInternal(contactUri); in request() 81 private void requestInternal(Uri contactUri) throws RequestFailedException { 82 for (Long rawContactId : getGoogleRawContactIds(getContactId(contactUri))) { 100 private long getContactId(Uri contactUri) throws RequestFailedException { 104 .query(contactUri, new String[] {Contacts._ID}, null, null, null)) {
|
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/ |
D | ContactViewHolder.java | 43 private Uri contactUri; field in ContactViewHolder 65 String headerText, String displayName, Uri contactUri, long contactId, boolean showHeader) { in bind() argument 67 this.contactUri = contactUri; in bind() 94 onContactSelectedListener.onContactSelected(photo, contactUri, contactId); in onClick()
|
D | ContactsAdapter.java | 119 Uri contactUri = getContactUri(cursor); in onBindViewHolder() local 124 contactUri, in onBindViewHolder() local 139 contactViewHolder.bind(header, name, contactUri, getContactId(cursor), showHeader); in onBindViewHolder()
|
/packages/apps/Dialer/java/com/android/dialer/shortcuts/ |
D | CallContactActivity.java | 41 private Uri contactUri; field in CallContactActivity 50 contactUri = getIntent().getData(); in onCreate() 77 this, contactUri, false /* isVideoCall */, callSpecificAppData); in makeCall() 115 outState.putParcelable(CONTACT_URI_KEY, contactUri); in onSaveInstanceState() 124 contactUri = savedInstanceState.getParcelable(CONTACT_URI_KEY); in onRestoreInstanceState()
|
/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/ |
D | RawContactUtil.java | 82 Uri contactUri = resolver.insert(uri, values); in createRawContact() local 83 return ContentUris.parseId(contactUri); in createRawContact() 92 Uri contactUri = resolver.insert(uri, values); in createRawContactWithAccountDataSet() local 93 return ContentUris.parseId(contactUri); in createRawContactWithAccountDataSet() 131 Uri contactUri = resolver.insert(uri, values); in createRawContactWithBackupId() local 132 return ContentUris.parseId(contactUri); in createRawContactWithBackupId()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | SuggestionEditConfirmationDialogFragment.java | 33 public static void show(ContactEditorFragment fragment, Uri contactUri, long rawContactId) { in show() argument 35 args.putParcelable(ARG_CONTACT_URI, contactUri); in show() 56 final Uri contactUri = in onCreateDialog() 60 targetFragment.doEditSuggestedContact(contactUri, rawContactId); in onCreateDialog()
|
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/util/ |
D | PreferenceUtilsTest.java | 102 final Uri contactUri = ContactTestUtils.createContact( in testHasAtLeastOneEmergencyContact_set() local 105 .thenReturn(contactUri.toString()); in testHasAtLeastOneEmergencyContact_set() 106 when(mContentResolver.query(eq(contactUri), any(), any(), any(), any())) in testHasAtLeastOneEmergencyContact_set() 125 final Uri contactUri = ContactTestUtils.createContact( in testUpdateSettingsSuggestionState_contactSet() local 128 .thenReturn(contactUri.toString()); in testUpdateSettingsSuggestionState_contactSet() 129 when(mContentResolver.query(eq(contactUri), any(), any(), any(), any())) in testUpdateSettingsSuggestionState_contactSet()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ContactSaveService.java | 1035 public static Intent createSetStarredIntent(Context context, Uri contactUri, boolean value) { in createSetStarredIntent() argument 1038 serviceIntent.putExtra(ContactSaveService.EXTRA_CONTACT_URI, contactUri); in createSetStarredIntent() 1045 Uri contactUri = intent.getParcelableExtra(EXTRA_CONTACT_URI); in setStarred() local 1047 if (contactUri == null) { in setStarred() 1054 getContentResolver().update(contactUri, values, null, null); in setStarred() 1057 final Cursor c = getContentResolver().query(contactUri, new String[] {Contacts._ID}, in setStarred() 1079 public static Intent createSetSendToVoicemail(Context context, Uri contactUri, in createSetSendToVoicemail() argument 1083 serviceIntent.putExtra(ContactSaveService.EXTRA_CONTACT_URI, contactUri); in createSetSendToVoicemail() 1090 Uri contactUri = intent.getParcelableExtra(EXTRA_CONTACT_URI); in setSendToVoicemail() local 1092 if (contactUri == null) { in setSendToVoicemail() [all …]
|
D | ShortcutIntentBuilder.java | 142 public void createContactShortcutIntent(Uri contactUri) { in createContactShortcutIntent() argument 143 new ContactLoadingAsyncTask(contactUri).execute(); in createContactShortcutIntent() 276 private void createContactShortcutIntent(Uri contactUri, String contentType, String displayName, in createContactShortcutIntent() argument 283 final long contactId = ContentUris.parseId(contactUri); in createContactShortcutIntent() 296 mContext, contactUri); in createContactShortcutIntent() 310 mListener.onShortcutIntentCreated(contactUri, intent); in createContactShortcutIntent()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | ContactMediaChooser.java | 115 Uri contactUri = data.getData(); in onActivityResult() local 116 if (contactUri != null) { in onActivityResult() 119 contactUri, in onActivityResult()
|
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/preferences/ |
D | EmergencyContactsPreferenceTest.java | 78 final Uri contactUri = ContactTestUtils.createContact( in setUp() local 81 .edit().putString(PreferenceKeys.KEY_EMERGENCY_CONTACTS, contactUri.toString()) in setUp() 85 mPreference.addNewEmergencyContact(contactUri); in setUp()
|
/packages/apps/Contacts/src/com/android/contacts/dialog/ |
D | CallSubjectDialog.java | 237 public static void start(Activity activity, long photoId, Uri photoUri, Uri contactUri, in start() argument 243 arguments.putParcelable(ARG_CONTACT_URI, contactUri); in start() 391 private void setPhoto(long photoId, Uri photoUri, Uri contactUri, String displayName, in setPhoto() argument 393 mContactPhoto.assignContactUri(contactUri); in setPhoto() 406 if (contactUri != null) { in setPhoto() 407 lookupKey = UriUtils.getLookupKeyFromUri(contactUri); in setPhoto()
|
/packages/apps/Dialer/java/com/android/dialer/contactphoto/ |
D | ContactPhotoManager.java | 233 Uri contactUri, in loadDialerThumbnailOrPhoto() argument 238 badge.assignContactUri(contactUri); in loadDialerThumbnailOrPhoto() 244 String lookupKey = contactUri == null ? null : UriUtils.getLookupKeyFromUri(contactUri); in loadDialerThumbnailOrPhoto()
|
/packages/apps/Dialer/java/com/android/dialer/interactions/ |
D | UndemoteOutgoingCallReceiver.java | 82 final Uri contactUri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(number)); in getContactIdFromPhoneNumber() local 88 .query(contactUri, new String[] {PhoneLookup._ID}, null, null, null); in getContactIdFromPhoneNumber()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | Ringer.java | 663 Uri contactUri = call.getHandle(); in shouldRingForContact() local 665 if (contactUri == null) { in shouldRingForContact() 666 contactUri = Uri.EMPTY; in shouldRingForContact() 668 return mNotificationManager.matchesCallFilter(contactUri); in shouldRingForContact() 671 if (contactUri != null) { in shouldRingForContact() 673 personList.add(new Person.Builder().setUri(contactUri.toString()).build()); in shouldRingForContact()
|
/packages/apps/EmergencyInfo/tests/common/src/com/android/emergency/ |
D | ContactTestUtils.java | 35 Uri contactUri = Uri.withAppendedPath(ContactsContract.PhoneLookup.CONTENT_FILTER_URI, in deleteContact() local 37 Cursor cursor = contentResolver.query(contactUri, null, null, null, null); in deleteContact()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsProvider2Test.java | 1305 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testContactEntitiesWithIdBasedUri() local 1306 Uri entityUri = Uri.withAppendedPath(contactUri, Contacts.Entity.CONTENT_DIRECTORY); in testContactEntitiesWithIdBasedUri() 1429 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testDataInsert() local 1430 Uri contactDataUri = Uri.withAppendedPath(contactUri, Contacts.Data.CONTENT_DIRECTORY); in testDataInsert() 3344 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testQueryContactData() local 3347 assertStoredValues(contactUri, values); in testQueryContactData() 3357 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testQueryContactWithStatusUpdate() local 3361 assertStoredValuesWithProjection(contactUri, values); in testQueryContactWithStatusUpdate() 4667 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, in testContactWithoutPhoneticName() local 4669 assertStoredValues(contactUri, values); in testContactWithoutPhoneticName() [all …]
|
D | ContactsActor.java | 750 Uri contactUri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); in getContactForRawContact() local 751 final Cursor cursor = resolver.query(contactUri, Projections.PROJ_RAW_CONTACTS, null, in getContactForRawContact() 764 Uri contactUri = Uri.withAppendedPath(ContentUris.withAppendedId(Contacts.CONTENT_URI, in getDataCountForContact() local 766 final Cursor cursor = resolver.query(contactUri, Projections.PROJ_ID, null, null, in getDataCountForContact() 775 Uri contactUri = Uri.withAppendedPath(ContentUris.withAppendedId(RawContacts.CONTENT_URI, in getDataCountForRawContact() local 777 final Cursor cursor = resolver.query(contactUri, Projections.PROJ_ID, null, null, in getDataCountForRawContact()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | ImplicitIntentsUtil.java | 159 public static Intent getIntentForQuickContactLauncherShortcut(Context context, Uri contactUri) { in getIntentForQuickContactLauncherShortcut() argument 160 final Intent intent = composeQuickContactIntent(context, contactUri, in getIntentForQuickContactLauncherShortcut()
|
/packages/apps/Dialer/java/com/android/dialer/app/list/ |
D | PhoneFavoriteTileView.java | 199 private void sendViewNotification(Context context, Uri contactUri) { 204 loader = new ContactLoader(context, contactUri, true /* postViewNotification */);
|