/packages/apps/Dialer/tests/src/com/android/dialer/interactions/ |
D | PhoneNumberInteractionTest.java | 91 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, 13); in testSendSmsWhenOnlyOneNumberAvailable() local 92 expectQuery(contactUri) in testSendSmsWhenOnlyOneNumberAvailable() 99 interaction.startInteraction(contactUri); in testSendSmsWhenOnlyOneNumberAvailable() 129 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, 13); in testSendSmsWhenThereIsPrimaryNumber() local 130 expectQuery(contactUri) in testSendSmsWhenThereIsPrimaryNumber() 139 interaction.startInteraction(contactUri); in testSendSmsWhenThereIsPrimaryNumber() 170 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, 13); in testCallNumberWhenThereAreDuplicates() local 171 expectQuery(contactUri) in testCallNumberWhenThereAreDuplicates() 180 interaction.startInteraction(contactUri); in testCallNumberWhenThereAreDuplicates() 191 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, 13); in testCallWithSip() local [all …]
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | ContactBrowseListFragment.java | 543 Uri contactUri = null; in selectDefaultContact() local 551 contactUri = adapter.getContactUri(pos); in selectDefaultContact() 554 if (contactUri == null) { in selectDefaultContact() 555 contactUri = adapter.getFirstContactUri(); in selectDefaultContact() 558 setSelectedContactUri(contactUri, false, mSmoothScrollRequested, false, false); in selectDefaultContact() 604 public void viewContact(Uri contactUri) { in viewContact() argument 605 setSelectedContactUri(contactUri, false, false, true, false); in viewContact() 606 if (mListener != null) mListener.onViewContactAction(contactUri); in viewContact() 609 public void editContact(Uri contactUri) { in editContact() argument 610 if (mListener != null) mListener.onEditContactAction(contactUri); in editContact() [all …]
|
D | JoinContactListFragment.java | 158 final Uri contactUri = getAdapter().getContactUri(position); in onItemClick() local 159 if (contactUri != null) mListener.onPickContactAction(contactUri); in onItemClick() 164 final Uri contactUri = data.getData(); in onPickerResult() local 165 if (contactUri != null) mListener.onPickContactAction(contactUri); in onPickerResult()
|
D | OnContactBrowserActionListener.java | 51 void onDeleteContactAction(Uri contactUri); in onDeleteContactAction() argument 56 void onAddToFavoritesAction(Uri contactUri); in onAddToFavoritesAction() argument 61 void onRemoveFromFavoritesAction(Uri contactUri); in onRemoveFromFavoritesAction() argument
|
D | ContactTileListFragment.java | 54 void onContactSelected(Uri contactUri, Rect targetRect); in onContactSelected() argument 213 public void onContactSelected(Uri contactUri, Rect targetRect) { 215 mListener.onContactSelected(contactUri, targetRect);
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
D | ContactDeletionInteraction.java | 94 Activity activity, Uri contactUri, boolean finishActivityWhenDone) { in start() argument 95 return startWithTestLoaderManager(activity, contactUri, finishActivityWhenDone, null); in start() 111 Activity activity, Uri contactUri, boolean finishActivityWhenDone, in startWithTestLoaderManager() argument 113 if (contactUri == null) { in startWithTestLoaderManager() 123 fragment.setContactUri(contactUri); in startWithTestLoaderManager() 129 fragment.setContactUri(contactUri); in startWithTestLoaderManager() 169 public void setContactUri(Uri contactUri) { in setContactUri() argument 170 mContactUri = contactUri; in setContactUri() 209 Uri contactUri = args.getParcelable(ARG_CONTACT_URI); in onCreateLoader() local 211 Uri.withAppendedPath(contactUri, Entity.CONTENT_DIRECTORY), ENTITY_PROJECTION, in onCreateLoader() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/ |
D | ContactInfo.java | 24 public final Uri contactUri; field in ContactInfo 29 public ContactInfo(Uri contactUri, Integer status) { in ContactInfo() argument 30 this(contactUri, status, null, null); in ContactInfo() 33 public ContactInfo(Uri contactUri, Integer status, byte[] photoBytes) { in ContactInfo() argument 34 this(contactUri, status, photoBytes, null); in ContactInfo() 37 public ContactInfo(Uri contactUri, Integer status, Bitmap photo) { in ContactInfo() argument 38 this(contactUri, status, null, photo); in ContactInfo() 41 private ContactInfo(Uri contactUri, Integer status, byte[] photoBytes, Bitmap photo) { in ContactInfo() argument 42 this.contactUri = contactUri; in ContactInfo()
|
D | SenderInfoLoader.java | 141 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in loadContactPhotos() local 147 ContactInfo result = new ContactInfo(contactUri, status); in loadContactPhotos() 193 new ContactInfo(prevResult.contactUri, prevResult.status, photo)); in loadContactPhotos() 197 prevResult.contactUri, prevResult.status, photoBytes)); in loadContactPhotos()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ContactSaveService.java | 802 public static Intent createSetStarredIntent(Context context, Uri contactUri, boolean value) { in createSetStarredIntent() argument 805 serviceIntent.putExtra(ContactSaveService.EXTRA_CONTACT_URI, contactUri); in createSetStarredIntent() 812 Uri contactUri = intent.getParcelableExtra(EXTRA_CONTACT_URI); in setStarred() local 814 if (contactUri == null) { in setStarred() 821 getContentResolver().update(contactUri, values, null, null); in setStarred() 824 final Cursor c = getContentResolver().query(contactUri, new String[] {Contacts._ID}, in setStarred() 845 public static Intent createSetSendToVoicemail(Context context, Uri contactUri, in createSetSendToVoicemail() argument 849 serviceIntent.putExtra(ContactSaveService.EXTRA_CONTACT_URI, contactUri); in createSetSendToVoicemail() 856 Uri contactUri = intent.getParcelableExtra(EXTRA_CONTACT_URI); in setSendToVoicemail() local 858 if (contactUri == null) { in setSendToVoicemail() [all …]
|
D | NfcHandler.java | 65 Uri contactUri = mContactFragment.getUri(); in createNdefMessage() local 67 if (contactUri != null) { in createNdefMessage() 68 final String lookupKey = Uri.encode(contactUri.getPathSegments().get(2)); in createNdefMessage()
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | PeopleActivity.java | 974 Uri contactUri = mRequest.getContactUri(); in configureContactListFragmentForRequest() local 975 if (contactUri != null) { in configureContactListFragmentForRequest() 982 mAllFragment.setSelectedContactUri(contactUri); in configureContactListFragmentForRequest() 1146 public void onAddToFavoritesAction(Uri contactUri) { in onAddToFavoritesAction() argument 1149 getContentResolver().update(contactUri, values, null, null); in onAddToFavoritesAction() 1153 public void onRemoveFromFavoritesAction(Uri contactUri) { in onRemoveFromFavoritesAction() argument 1156 getContentResolver().update(contactUri, values, null, null); in onRemoveFromFavoritesAction() 1160 public void onDeleteContactAction(Uri contactUri) { in onDeleteContactAction() argument 1161 ContactDeletionInteraction.start(PeopleActivity.this, contactUri, false); in onDeleteContactAction() 1226 public void onDeleteRequested(Uri contactUri) { in onDeleteRequested() argument [all …]
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
D | ContactLoader.java | 64 Uri contactUri = null; in loadInBackground() local 68 contactUri = Contacts.lookupContact(resolver, mLookupUri); in loadInBackground() 72 if (contactUri == null) { in loadInBackground() 75 result.uri = contactUri; in loadInBackground() 78 final Uri dataUri = Uri.withAppendedPath(contactUri, Contacts.Data.CONTENT_DIRECTORY); in loadInBackground() 116 final long contactId = ContentUris.parseId(contactUri); in loadInBackground()
|
/packages/apps/Dialer/src/com/android/dialer/ |
D | CallDetailActivity.java | 285 final Uri contactUri = args.getParcelable(BUNDLE_CONTACT_URI_EXTRA); 286 if (contactUri == null) { 289 return new ContactLoader(CallDetailActivity.this, contactUri, 469 final Uri contactUri = firstDetails.contactUri; in updateData() local 497 if (contactUri != null && !UriUtils.isEncodedContactUri(contactUri)) { in updateData() 498 mainActionIntent = new Intent(Intent.ACTION_VIEW, contactUri); in updateData() 506 } else if (UriUtils.isEncodedContactUri(contactUri)) { in updateData() 508 bundle.putParcelable(BUNDLE_CONTACT_URI_EXTRA, contactUri); in updateData() 632 final String lookupKey = ContactInfoHelper.getLookupKeyFromUri(contactUri); in updateData()
|
D | PhoneCallDetails.java | 54 public final Uri contactUri; field in PhoneCallDetails 79 int numberType, CharSequence numberLabel, Uri contactUri, in PhoneCallDetails() argument 92 this.contactUri = contactUri; in PhoneCallDetails()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsProvider2Test.java | 855 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testContactEntitiesWithIdBasedUri() local 856 Uri entityUri = Uri.withAppendedPath(contactUri, Contacts.Entity.CONTENT_DIRECTORY); in testContactEntitiesWithIdBasedUri() 978 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testDataInsert() local 979 Uri contactDataUri = Uri.withAppendedPath(contactUri, Contacts.Data.CONTENT_DIRECTORY); in testDataInsert() 2206 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testQueryContactData() local 2208 assertStoredValues(contactUri, values); in testQueryContactData() 2219 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testQueryContactWithStatusUpdate() local 2220 assertStoredValuesWithProjection(contactUri, values); in testQueryContactWithStatusUpdate() 3422 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, in testContactWithoutPhoneticName() local 3424 assertStoredValues(contactUri, values); in testContactWithoutPhoneticName() [all …]
|
D | ContactsActor.java | 446 Uri contactUri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); in getContactForRawContact() local 447 final Cursor cursor = resolver.query(contactUri, Projections.PROJ_RAW_CONTACTS, null, in getContactForRawContact() 460 Uri contactUri = Uri.withAppendedPath(ContentUris.withAppendedId(Contacts.CONTENT_URI, in getDataCountForContact() local 462 final Cursor cursor = resolver.query(contactUri, Projections.PROJ_ID, null, null, in getDataCountForContact() 471 Uri contactUri = Uri.withAppendedPath(ContentUris.withAppendedId(RawContacts.CONTENT_URI, in getDataCountForRawContact() local 473 final Cursor cursor = resolver.query(contactUri, Projections.PROJ_ID, null, null, in getDataCountForRawContact()
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/ |
D | ContactHeaderWidget.java | 541 private void bindFromContactUriInternal(Uri contactUri, boolean resetQueryHandler) { in bindFromContactUriInternal() argument 542 mContactUri = contactUri; in bindFromContactUriInternal() 543 startContactQuery(contactUri, resetQueryHandler); in bindFromContactUriInternal() 586 private void startContactQuery(Uri contactUri, boolean resetQueryHandler) { in startContactQuery() argument 591 mQueryHandler.startQuery(TOKEN_CONTACT_INFO, contactUri, contactUri, ContactQuery.COLUMNS, in startContactQuery()
|
D | HomeNormal.java | 41 public void onContactSelected(Uri contactUri) { in onContactSelected() argument 43 if (contactUri != null) { in onContactSelected() 45 intent.setData(contactUri); in onContactSelected()
|
D | HomeGroupsXLarge.java | 90 public void onContactSelected(Uri contactUri) { in onContactSelected() argument 91 if (contactUri == null) { in onContactSelected() 95 ContactFragment details = new ContactFragment(contactUri, in onContactSelected()
|
D | HomeXLarge.java | 75 public void onContactSelected(Uri contactUri) { in onContactSelected() argument 77 mDetails.loadContact(contactUri); in onContactSelected()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
D | ShortcutIntentBuilder.java | 133 public void createContactShortcutIntent(Uri contactUri) { in createContactShortcutIntent() argument 134 new ContactLoadingAsyncTask(contactUri).execute(); in createContactShortcutIntent() 261 private void createContactShortcutIntent(Uri contactUri, String contentType, String displayName, in createContactShortcutIntent() argument 276 shortcutIntent.setDataAndType(contactUri, contentType); in createContactShortcutIntent() 294 mListener.onShortcutIntentCreated(contactUri, intent); in createContactShortcutIntent()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
D | ContactLoader.java | 448 private Contact loadContactEntity(ContentResolver resolver, Uri contactUri) { in loadContactEntity() argument 449 Uri entityUri = Uri.withAppendedPath(contactUri, Contacts.Entity.CONTENT_DIRECTORY); in loadContactEntity() 464 Contact contact = loadContactHeaderData(cursor, contactUri); in loadContactEntity() 600 private Contact loadContactHeaderData(final Cursor cursor, Uri contactUri) { in loadContactHeaderData() argument 602 contactUri.getQueryParameter(ContactsContract.DIRECTORY_PARAM_KEY); in loadContactHeaderData() 628 lookupUri = contactUri; in loadContactHeaderData() 631 return new Contact(mRequestedUri, contactUri, lookupUri, directoryId, lookupKey, in loadContactHeaderData()
|
/packages/apps/Contacts/src/com/android/contacts/group/ |
D | GroupDetailFragment.java | 90 public void onContactSelected(Uri contactUri); in onContactSelected() argument 219 public void onContactSelected(Uri contactUri, Rect targetRect) { 220 mListener.onContactSelected(contactUri);
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
D | CallLogAdapter.java | 882 private void setPhoto(CallLogListItemViews views, long photoId, Uri contactUri, 884 views.quickContactView.assignContactUri(contactUri); 891 private void setPhoto(CallLogListItemViews views, Uri photoUri, Uri contactUri, 893 views.quickContactView.assignContactUri(contactUri);
|
/packages/apps/Dialer/src/com/android/dialer/interactions/ |
D | UndemoteOutgoingCallReceiver.java | 67 final Uri contactUri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, in getContactIdFromPhoneNumber() local 69 final Cursor cursor = context.getContentResolver().query(contactUri, new String[] { in getContactIdFromPhoneNumber()
|