Home
last modified time | relevance | path

Searched refs:contactUri (Results 1 – 25 of 71) sorted by relevance

123

/packages/apps/Contacts/src/com/android/contacts/interactions/
DContactDeletionInteraction.java108 Activity activity, Uri contactUri, boolean finishActivityWhenDone) { in start() argument
109 return startWithTestLoaderManager(activity, contactUri, finishActivityWhenDone, null); in start()
125 Activity activity, Uri contactUri, boolean finishActivityWhenDone, in startWithTestLoaderManager() argument
127 if (contactUri == null || activity.isDestroyed()) { in startWithTestLoaderManager()
137 fragment.setContactUri(contactUri); in startWithTestLoaderManager()
143 fragment.setContactUri(contactUri); in startWithTestLoaderManager()
183 public void setContactUri(Uri contactUri) { in setContactUri() argument
184 mContactUri = contactUri; in setContactUri()
223 Uri contactUri = args.getParcelable(ARG_CONTACT_URI); in onCreateLoader() local
225 Uri.withAppendedPath(contactUri, Entity.CONTENT_DIRECTORY), ENTITY_PROJECTION, in onCreateLoader()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/
DContactInfo.java24 public final Uri contactUri; field in ContactInfo
28 public ContactInfo(Uri contactUri) { in ContactInfo() argument
29 this(contactUri, null, null); in ContactInfo()
32 public ContactInfo(Uri contactUri, byte[] photoBytes) { in ContactInfo() argument
33 this(contactUri, photoBytes, null); in ContactInfo()
36 public ContactInfo(Uri contactUri, Bitmap photo) { in ContactInfo() argument
37 this(contactUri, null, photo); in ContactInfo()
40 private ContactInfo(Uri contactUri, byte[] photoBytes, Bitmap photo) { in ContactInfo() argument
41 this.contactUri = contactUri; in ContactInfo()
DSenderInfoLoader.java157 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in loadContactPhotos() local
159 ContactInfo result = new ContactInfo(contactUri); in loadContactPhotos()
223 results.put(email, new ContactInfo(prevResult.contactUri, photo)); in loadContactPhotos()
226 results.put(email, new ContactInfo(prevResult.contactUri, photoBytes)); in loadContactPhotos()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactBrowseListFragment.java544 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 …]
DJoinContactListFragment.java165 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()
/packages/apps/Contacts/src/com/android/contacts/
DContactSaveService.java1031 public static Intent createSetStarredIntent(Context context, Uri contactUri, boolean value) { in createSetStarredIntent() argument
1034 serviceIntent.putExtra(ContactSaveService.EXTRA_CONTACT_URI, contactUri); in createSetStarredIntent()
1041 Uri contactUri = intent.getParcelableExtra(EXTRA_CONTACT_URI); in setStarred() local
1043 if (contactUri == null) { in setStarred()
1050 getContentResolver().update(contactUri, values, null, null); in setStarred()
1053 final Cursor c = getContentResolver().query(contactUri, new String[] {Contacts._ID}, in setStarred()
1075 public static Intent createSetSendToVoicemail(Context context, Uri contactUri, in createSetSendToVoicemail() argument
1079 serviceIntent.putExtra(ContactSaveService.EXTRA_CONTACT_URI, contactUri); in createSetSendToVoicemail()
1086 Uri contactUri = intent.getParcelableExtra(EXTRA_CONTACT_URI); in setSendToVoicemail() local
1088 if (contactUri == null) { in setSendToVoicemail()
[all …]
DNfcHandler.java51 public static void register(Activity activity, Uri contactUri) { in register() argument
56 adapter.setNdefPushMessageCallback(new NfcHandler(activity, contactUri), activity); in register()
59 public NfcHandler(Context context, Uri contactUri) { in NfcHandler() argument
61 mContactUri = contactUri; in NfcHandler()
DShortcutIntentBuilder.java142 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/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
DRawContactUtil.java82 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/experimental/LoaderApp/src/com/android/loaderapp/model/
DContactLoader.java64 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/java/com/android/dialer/contactsfragment/
DContactViewHolder.java41 private Uri contactUri; field in ContactViewHolder
60 public void bind(String headerText, String displayName, Uri contactUri, boolean showHeader) { in bind() argument
62 this.contactUri = contactUri; in bind()
91 photo.getContext(), photo, contactUri, QuickContact.MODE_LARGE, null /* excludeMimes */); in onClick() local
DContactsAdapter.java93 Uri contactUri = getContactUri(cursor); in onBindViewHolder() local
98 contactUri, in onBindViewHolder() local
112 contactViewHolder.bind(header, name, contactUri, showHeader); in onBindViewHolder()
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/util/
DPreferenceUtilsTest.java105 final Uri contactUri = ContactTestUtils.createContact( in testHasAtLeastOneEmergencyContact_set() local
108 .thenReturn(contactUri.toString()); in testHasAtLeastOneEmergencyContact_set()
109 when(mContentResolver.query(eq(contactUri), any(), any(), any(), any())) in testHasAtLeastOneEmergencyContact_set()
128 final Uri contactUri = ContactTestUtils.createContact( in testUpdateSettingsSuggestionState_contactSet() local
131 .thenReturn(contactUri.toString()); in testUpdateSettingsSuggestionState_contactSet()
132 when(mContentResolver.query(eq(contactUri), any(), any(), any(), any())) in testUpdateSettingsSuggestionState_contactSet()
/packages/apps/Dialer/java/com/android/dialer/shortcuts/
DCallContactActivity.java41 private Uri contactUri; field in CallContactActivity
50 contactUri = getIntent().getData(); in onCreate()
76 this, contactUri, false /* isVideoCall */, callSpecificAppData); in makeCall()
114 outState.putParcelable(CONTACT_URI_KEY, contactUri); in onSaveInstanceState()
123 contactUri = savedInstanceState.getParcelable(CONTACT_URI_KEY); in onRestoreInstanceState()
/packages/apps/Contacts/src/com/android/contacts/editor/
DSuggestionEditConfirmationDialogFragment.java33 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/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java1050 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testContactEntitiesWithIdBasedUri() local
1051 Uri entityUri = Uri.withAppendedPath(contactUri, Contacts.Entity.CONTENT_DIRECTORY); in testContactEntitiesWithIdBasedUri()
1174 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testDataInsert() local
1175 Uri contactDataUri = Uri.withAppendedPath(contactUri, Contacts.Data.CONTENT_DIRECTORY); in testDataInsert()
3050 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testUpdateFromMetadataEntry() local
3052 assertStoredValue(contactUri, Contacts.STARRED, 1); in testUpdateFromMetadataEntry()
3055 assertStoredValue(contactUri, Contacts.SEND_TO_VOICEMAIL, 0); in testUpdateFromMetadataEntry()
3490 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testQueryContactData() local
3493 assertStoredValues(contactUri, values); in testQueryContactData()
3504 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testQueryContactWithStatusUpdate() local
[all …]
DContactsActor.java653 Uri contactUri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); in getContactForRawContact() local
654 final Cursor cursor = resolver.query(contactUri, Projections.PROJ_RAW_CONTACTS, null, in getContactForRawContact()
667 Uri contactUri = Uri.withAppendedPath(ContentUris.withAppendedId(Contacts.CONTENT_URI, in getDataCountForContact() local
669 final Cursor cursor = resolver.query(contactUri, Projections.PROJ_ID, null, null, in getDataCountForContact()
678 Uri contactUri = Uri.withAppendedPath(ContentUris.withAppendedId(RawContacts.CONTENT_URI, in getDataCountForRawContact() local
680 final Cursor cursor = resolver.query(contactUri, Projections.PROJ_ID, null, null, in getDataCountForRawContact()
/packages/experimental/LoaderApp/src/com/android/loaderapp/
DContactHeaderWidget.java541 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()
DHomeNormal.java41 public void onContactSelected(Uri contactUri) { in onContactSelected() argument
43 if (contactUri != null) { in onContactSelected()
45 intent.setData(contactUri); in onContactSelected()
DHomeGroupsXLarge.java90 public void onContactSelected(Uri contactUri) { in onContactSelected() argument
91 if (contactUri == null) { in onContactSelected()
95 ContactFragment details = new ContactFragment(contactUri, in onContactSelected()
/packages/apps/Contacts/src/com/android/contacts/dialog/
DCallSubjectDialog.java237 public static void start(Activity activity, long photoId, Uri photoUri, Uri contactUri, in start() argument
243 arguments.putParcelable(ARG_CONTACT_URI, contactUri); in start()
390 private void setPhoto(long photoId, Uri photoUri, Uri contactUri, String displayName, in setPhoto() argument
392 mContactPhoto.assignContactUri(contactUri); in setPhoto()
405 if (contactUri != null) { in setPhoto()
406 lookupKey = UriUtils.getLookupKeyFromUri(contactUri); in setPhoto()
/packages/apps/Dialer/java/com/android/contacts/common/
DContactPhotoManager.java233 Uri contactUri, in loadDialerThumbnailOrPhoto() argument
238 badge.assignContactUri(contactUri); in loadDialerThumbnailOrPhoto()
244 String lookupKey = contactUri == null ? null : UriUtils.getLookupKeyFromUri(contactUri); in loadDialerThumbnailOrPhoto()
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/preferences/
DEmergencyContactsPreferenceTest.java76 final Uri contactUri = ContactTestUtils.createContact( in setUp() local
79 .edit().putString(PreferenceKeys.KEY_EMERGENCY_CONTACTS, contactUri.toString()) in setUp()
83 mPreference.addNewEmergencyContact(contactUri); in setUp()
/packages/apps/Contacts/src/com/android/contacts/model/
DContactLoader.java460 private Contact loadContactEntity(ContentResolver resolver, Uri contactUri) { in loadContactEntity() argument
461 Uri entityUri = Uri.withAppendedPath(contactUri, Contacts.Entity.CONTENT_DIRECTORY); in loadContactEntity()
476 Contact contact = loadContactHeaderData(cursor, contactUri); in loadContactEntity()
589 private Contact loadContactHeaderData(final Cursor cursor, Uri contactUri) { in loadContactHeaderData() argument
591 contactUri.getQueryParameter(ContactsContract.DIRECTORY_PARAM_KEY); in loadContactHeaderData()
617 lookupUri = contactUri; in loadContactHeaderData()
620 return new Contact(mRequestedUri, contactUri, lookupUri, directoryId, lookupKey, in loadContactHeaderData()
/packages/apps/Dialer/java/com/android/contacts/common/model/
DContactLoader.java272 private Contact loadContactEntity(ContentResolver resolver, Uri contactUri) { in loadContactEntity() argument
273 Uri entityUri = Uri.withAppendedPath(contactUri, Contacts.Entity.CONTENT_DIRECTORY); in loadContactEntity()
288 Contact contact = loadContactHeaderData(cursor, contactUri); in loadContactEntity()
415 private Contact loadContactHeaderData(final Cursor cursor, Uri contactUri) { in loadContactHeaderData() argument
417 contactUri.getQueryParameter(ContactsContract.DIRECTORY_PARAM_KEY); in loadContactHeaderData()
444 lookupUri = contactUri; in loadContactHeaderData()
449 contactUri, in loadContactHeaderData()

123