Home
last modified time | relevance | path

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

12

/packages/apps/Contacts/tests/src/com/android/contacts/interactions/
DPhoneNumberInteractionTest.java91 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/interactions/
DContactDeletionInteraction.java94 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/Contacts/src/com/android/contacts/list/
DContactBrowseListFragment.java559 Uri contactUri = null; in selectDefaultContact() local
567 contactUri = adapter.getContactUri(pos); in selectDefaultContact()
570 if (contactUri == null) { in selectDefaultContact()
571 contactUri = adapter.getFirstContactUri(); in selectDefaultContact()
574 setSelectedContactUri(contactUri, false, mSmoothScrollRequested, false, false); in selectDefaultContact()
620 public void viewContact(Uri contactUri) { in viewContact() argument
621 setSelectedContactUri(contactUri, false, false, true, false); in viewContact()
622 if (mListener != null) mListener.onViewContactAction(contactUri); in viewContact()
625 public void editContact(Uri contactUri) { in editContact() argument
626 if (mListener != null) mListener.onEditContactAction(contactUri); in editContact()
[all …]
DOnContactBrowserActionListener.java51 void onDeleteContactAction(Uri contactUri); in onDeleteContactAction() argument
56 void onAddToFavoritesAction(Uri contactUri); in onAddToFavoritesAction() argument
61 void onRemoveFromFavoritesAction(Uri contactUri); in onRemoveFromFavoritesAction() argument
66 void onCallContactAction(Uri contactUri); in onCallContactAction() argument
71 void onSmsContactAction(Uri contactUri); in onSmsContactAction() argument
DJoinContactListFragment.java154 final Uri contactUri = getAdapter().getContactUri(position); in onItemClick() local
155 if (contactUri != null) mListener.onPickContactAction(contactUri); in onItemClick()
160 final Uri contactUri = data.getData(); in onPickerResult() local
161 if (contactUri != null) mListener.onPickContactAction(contactUri); in onPickerResult()
DContactTileListFragment.java52 void onContactSelected(Uri contactUri, Rect targetRect); in onContactSelected() argument
211 public void onContactSelected(Uri contactUri, Rect targetRect) {
213 mListener.onContactSelected(contactUri, targetRect);
DShortcutIntentBuilder.java127 public void createContactShortcutIntent(Uri contactUri) { in createContactShortcutIntent() argument
128 new ContactLoadingAsyncTask(contactUri).execute(); in createContactShortcutIntent()
253 private void createContactShortcutIntent(Uri contactUri, String contentType, String displayName, in createContactShortcutIntent() argument
268 shortcutIntent.setDataAndType(contactUri, contentType); in createContactShortcutIntent()
286 mListener.onShortcutIntentCreated(contactUri, intent); in createContactShortcutIntent()
DOnContactPickerActionListener.java29 void onPickContactAction(Uri contactUri); in onPickContactAction() argument
DContactsRequest.java242 public void setContactUri(Uri contactUri) { in setContactUri() argument
243 this.mContactUri = contactUri; in setContactUri()
DContactPickerFragment.java141 public void editContact(Uri contactUri) { in editContact() argument
142 mListener.onEditContactAction(contactUri); in editContact()
/packages/apps/Contacts/src/com/android/contacts/
DCallContactActivity.java37 Uri contactUri = getIntent().getData(); in onCreate() local
38 if (contactUri == null) { in onCreate()
48 if (Contacts.CONTENT_ITEM_TYPE.equals(getContentResolver().getType(contactUri))) { in onCreate()
49 PhoneNumberInteraction.startInteractionForPhoneCall(this, contactUri); in onCreate()
51 startActivity(ContactsUtils.getCallIntent(contactUri)); in onCreate()
DPhoneCallDetails.java52 public final Uri contactUri; field in PhoneCallDetails
71 CharSequence name, int numberType, CharSequence numberLabel, Uri contactUri, in PhoneCallDetails() argument
83 this.contactUri = contactUri; in PhoneCallDetails()
DContactSaveService.java816 public static Intent createSetStarredIntent(Context context, Uri contactUri, boolean value) { in createSetStarredIntent() argument
819 serviceIntent.putExtra(ContactSaveService.EXTRA_CONTACT_URI, contactUri); in createSetStarredIntent()
826 Uri contactUri = intent.getParcelableExtra(EXTRA_CONTACT_URI); in setStarred() local
828 if (contactUri == null) { in setStarred()
835 getContentResolver().update(contactUri, values, null, null); in setStarred()
841 public static Intent createSetSendToVoicemail(Context context, Uri contactUri, in createSetSendToVoicemail() argument
845 serviceIntent.putExtra(ContactSaveService.EXTRA_CONTACT_URI, contactUri); in createSetSendToVoicemail()
852 Uri contactUri = intent.getParcelableExtra(EXTRA_CONTACT_URI); in setSendToVoicemail() local
854 if (contactUri == null) { in setSendToVoicemail()
861 getContentResolver().update(contactUri, values, null, null); in setSendToVoicemail()
[all …]
DNfcHandler.java65 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/experimental/LoaderApp/src/com/android/loaderapp/
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()
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()
DHomeXLarge.java75 public void onContactSelected(Uri contactUri) { in onContactSelected() argument
77 mDetails.loadContact(contactUri); in onContactSelected()
/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/Contacts/src/com/android/contacts/activities/
DPeopleActivity.java963 Uri contactUri = mRequest.getContactUri(); in configureContactListFragmentForRequest() local
964 if (contactUri != null) { in configureContactListFragmentForRequest()
971 mAllFragment.setSelectedContactUri(contactUri); in configureContactListFragmentForRequest()
1118 public void onAddToFavoritesAction(Uri contactUri) { in onAddToFavoritesAction() argument
1121 getContentResolver().update(contactUri, values, null, null); in onAddToFavoritesAction()
1125 public void onRemoveFromFavoritesAction(Uri contactUri) { in onRemoveFromFavoritesAction() argument
1128 getContentResolver().update(contactUri, values, null, null); in onRemoveFromFavoritesAction()
1132 public void onCallContactAction(Uri contactUri) { in onCallContactAction() argument
1133 PhoneNumberInteraction.startInteractionForPhoneCall(PeopleActivity.this, contactUri); in onCallContactAction()
1137 public void onSmsContactAction(Uri contactUri) { in onSmsContactAction() argument
[all …]
DGroupDetailActivity.java107 public void onContactSelected(Uri contactUri) {
108 Intent intent = new Intent(Intent.ACTION_VIEW, contactUri);
DJoinContactActivity.java115 public void onPickContactAction(Uri contactUri) { in setupActionListener()
116 Intent intent = new Intent(null, contactUri); in setupActionListener()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java446 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()
DContactsProvider2Test.java792 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testContactEntitiesWithIdBasedUri() local
793 Uri entityUri = Uri.withAppendedPath(contactUri, Contacts.Entity.CONTENT_DIRECTORY); in testContactEntitiesWithIdBasedUri()
915 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testDataInsert() local
916 Uri contactDataUri = Uri.withAppendedPath(contactUri, Contacts.Data.CONTENT_DIRECTORY); in testDataInsert()
1958 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testQueryContactData() local
1960 assertStoredValues(contactUri, values); in testQueryContactData()
1971 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testQueryContactWithStatusUpdate() local
1972 assertStoredValuesWithProjection(contactUri, values); in testQueryContactWithStatusUpdate()
3068 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, in testContactWithoutPhoneticName() local
3070 assertStoredValues(contactUri, values); in testContactWithoutPhoneticName()
[all …]
/packages/apps/Contacts/src/com/android/contacts/socialwidget/
DSocialWidgetProvider.java110 final Uri contactUri = in loadWidgetData() local
112 if (contactUri == null) { in loadWidgetData()
116 final ContactLoader contactLoader = new ContactLoader(context, contactUri, false, true, in loadWidgetData()

12