Home
last modified time | relevance | path

Searched refs:Contact (Results 1 – 25 of 33) sorted by relevance

12

/packages/apps/Car/VoiceControl/src/com/android/car/voicecontrol/
DContactsProvider.java26 import com.android.car.telephony.common.Contact;
44 private Observer<List<Contact>> mContactsObserver = this::indexContacts;
45 private Map<String, Set<Contact>> mContactsByPhoneticKey = new HashMap<>();
67 private void indexContacts(List<Contact> contacts) { in indexContacts()
73 Map<String, Set<Contact>> contactsForPhoneticKey = new HashMap<>(); in indexContacts()
74 Consumer<Pair<String, Contact>> indexer = p -> { in indexContacts()
79 Set<Contact> contactSet = contactsForPhoneticKey.computeIfAbsent(phoneticKey, in indexContacts()
85 for (Contact contact : contacts) { in indexContacts()
106 public Contact getContact(String query, @Nullable String deviceAddress) { in getContact()
110 Set<Contact> contactsForPhoneticKey; in getContact()
[all …]
DILocalService.aidl19 import com.android.car.telephony.common.Contact;
31 Contact getContact(String query, String deviceAddress); in getContact()
DInteractionServiceClient.java31 import com.android.car.telephony.common.Contact;
154 public Contact getContact(String query, @Nullable String deviceAddress) { in getContact()
/packages/apps/Dialer/java/com/android/dialer/databasepopulator/
DContactsPopulator.java44 private static final Contact[] SIMPLE_CONTACTS = {
46 Contact.builder()
55 Contact.builder()
64 Contact.builder()
73 Contact.builder()
83 Contact.builder()
90 Contact.builder()
96 Contact.builder()
102 Contact.builder()
108 Contact.builder()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/model/
DContact.java43 public class Contact { class
63 private final Contact.Status mStatus;
81 private Contact(Uri requestedUri, Contact.Status status, Exception exception) { in Contact() method in Contact
110 public Contact( in Contact() method in Contact
153 public Contact(Uri requestedUri, Contact from) { in Contact() method in Contact
189 public static Contact forError(Uri requestedUri, Exception exception) { in forError()
190 return new Contact(requestedUri, Status.ERROR, exception); in forError()
193 public static Contact forNotFound(Uri requestedUri) { in forNotFound()
194 return new Contact(requestedUri, Status.NOT_FOUND, null); in forNotFound()
DContactLoader.java72 public class ContactLoader extends AsyncTaskLoader<Contact> {
77 private static Contact sCachedResult = null;
86 private Contact mContact;
115 public static Contact parseEncodedContactEntity(Uri lookupUri) { in parseEncodedContactEntity()
123 private static Contact loadEncodedContactEntity(Uri uri, Uri lookupUri) throws JSONException { in loadEncodedContactEntity()
134 final Contact contact = in loadEncodedContactEntity()
135 new Contact( in loadEncodedContactEntity()
221 public Contact loadInBackground() { in loadInBackground()
226 final Contact cachedResult = sCachedResult; in loadInBackground()
229 final Contact result; in loadInBackground()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/
DContact.java50 public class Contact { class
96 private final Contact.Status mStatus;
102 private Contact(Uri requestedUri, Contact.Status status, Exception exception) { in Contact() method in Contact
130 public static Contact forError(Uri requestedUri, Exception exception) { in forError()
131 return new Contact(requestedUri, Status.ERROR, exception); in forError()
134 public static Contact forNotFound(Uri requestedUri) { in forNotFound()
135 return new Contact(requestedUri, Status.NOT_FOUND, null); in forNotFound()
141 public Contact(Uri requestedUri, Uri uri, Uri lookupUri, long directoryId, String lookupKey, in Contact() method in Contact
170 public Contact(Uri requestedUri, Contact from) { in Contact() method in Contact
DContactLoader.java75 public class ContactLoader extends AsyncTaskLoader<Contact> {
82 private static Contact sCachedResult = null;
89 private Contact mContact;
295 public Contact loadInBackground() { in loadInBackground()
300 final Contact cachedResult = sCachedResult; in loadInBackground()
303 final Contact result; in loadInBackground()
309 result = new Contact(mRequestedUri, cachedResult); in loadInBackground()
338 return Contact.forError(mRequestedUri, e); in loadInBackground()
349 public static Contact parseEncodedContactEntity(Uri lookupUri) { in parseEncodedContactEntity()
357 private static Contact loadEncodedContactEntity(Uri uri, Uri lookupUri) throws JSONException { in loadEncodedContactEntity()
[all …]
/packages/apps/Contacts/src/com/android/contacts/activities/
DAttachPhotoActivity.java46 import com.android.contacts.model.Contact;
208 public void onContactLoaded(Contact contact) { in onActivityResult()
235 public void onContactLoaded(Contact contact) { in onActivityResult()
255 loader.registerListener(0, new OnLoadCompleteListener<Contact>() { in loadContact()
258 Loader<Contact> loader, Contact contact) { in loadContact()
272 public void onContactLoaded(Contact contact); in onContactLoaded()
281 private void saveContact(Contact contact) { in saveContact()
301 private void saveToContact(Contact contact, RawContactDeltaList deltaList, in saveToContact()
393 public void onContactLoaded(Contact contactToSave) { in createNewRawContact()
/packages/apps/Contacts/src/com/android/contacts/
DViewNotificationService.java26 import com.android.contacts.model.Contact;
46 contactLoader.registerListener(0, new OnLoadCompleteListener<Contact>() { in onStartCommand()
48 public void onLoadComplete(Loader<Contact> loader, Contact data) { in onStartCommand()
/packages/apps/Contacts/src/com/android/contacts/detail/
DContactDisplayUtils.java38 import com.android.contacts.model.Contact;
62 public static CharSequence getDisplayName(Context context, Contact contactData) { in getDisplayName()
85 public static String getPhoneticName(Context context, Contact contactData) { in getPhoneticName()
97 public static String getAttribution(Context context, Contact contactData) { in getAttribution()
118 public static String getCompany(Context context, Contact contactData) { in getCompany()
193 public static void setDisplayName(Context context, Contact contactData, TextView textView) { in setDisplayName()
204 public static void setCompanyName(Context context, Contact contactData, TextView textView) { in setCompanyName()
215 public static void setPhoneticName(Context context, Contact contactData, TextView textView) { in setPhoneticName()
226 public static void setAttribution(Context context, Contact contactData, TextView textView) { in setAttribution()
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DContactLoaderTest.java93 private Contact assertLoadContact(Uri uri) { in assertLoadContact()
99 Contact result = assertLoadContact(null); in testNullUri()
104 Contact result = assertLoadContact(Uri.EMPTY); in testEmptyUri()
109 Contact result = assertLoadContact(Uri.parse("content://wtf")); in testInvalidUri()
125 Contact contact = assertLoadContact(baseUri); in testLoadContactWithContactIdUri()
153 Contact contact = assertLoadContact(legacyUri); in testLoadContactWithOldStyleUri()
184 Contact contact = assertLoadContact(rawContactUri); in testLoadContactWithRawContactIdUri()
208 Contact contact = assertLoadContact(lookupNoIdUri); in testLoadContactWithContactLookupUri()
232 Contact contact = assertLoadContact(lookupUri); in testLoadContactWithContactLookupAndIdUri()
266 Contact contact = assertLoadContact(lookupWithWrongIdUri); in testLoadContactWithContactLookupWithIncorrectIdUri()
[all …]
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/preferences/
DEmergencyContactsPreferenceTest.java94 EmergencyContactManager.Contact contact = mock(EmergencyContactManager.Contact.class); in testAddAndRemoveEmergencyContact()
123 EmergencyContactManager.Contact contactJane = mock(EmergencyContactManager.Contact.class); in testReloadFromPreference()
132 EmergencyContactManager.Contact contactJohn = mock(EmergencyContactManager.Contact.class); in testReloadFromPreference()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DInvisibleContactUtil.java11 import com.android.contacts.model.Contact;
32 public static boolean isInvisibleAndAddable(Contact contactData, Context context) { in isInvisibleAndAddable()
72 public static void addToDefaultGroup(Contact contactData, Context context) { in addToDefaultGroup()
86 public static boolean markAddToDefaultGroup(Contact contactData, in markAddToDefaultGroup()
DDirectoryContactUtil.java27 import com.android.contacts.model.Contact;
40 public static boolean isDirectoryContact(Contact contactData) { in isDirectoryContact()
/packages/apps/EmergencyInfo/src/com/android/emergency/
DEmergencyContactManager.java41 public static Contact getContact(Context context, Uri phoneUri) { in getContact()
92 return new Contact(contactLookupUri, phoneUri, name, phoneNumber, phoneType, photo); in getContact()
122 public static class Contact { class in EmergencyContactManager
140 public Contact(Uri contactLookupUri, in Contact() method in EmergencyContactManager.Contact
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DPhoneFragmentViewModel.java29 import com.android.car.telephony.common.Contact;
120 private Contact mContact;
136 public Contact getContact() { in getContact()
/packages/apps/Dialer/java/com/android/incallui/
DCallerInfoUtils.java25 import com.android.contacts.common.model.Contact;
254 new OnLoadCompleteListener<Contact>() { in sendViewNotification()
256 public void onLoadComplete(Loader<Contact> loader, Contact contact) { in sendViewNotification()
/packages/apps/Contacts/src/com/android/contacts/util/
DImageViewDrawableSetter.java32 import com.android.contacts.model.Contact;
45 private Contact mContact;
55 public Bitmap setupContactPhoto(Contact contactData, ImageView photoView) { in setupContactPhoto()
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
DContactPreference.java63 public EmergencyContactManager.Contact getContact(Context context, Uri phoneUri) {
69 private EmergencyContactManager.Contact mContact;
94 EmergencyContactManager.Contact getContact(Context context, Uri phoneUri); in getContact()
211 EmergencyContactManager.Contact getContact() { in getContact()
/packages/apps/Car/VoiceControl/src/com/android/car/voicecontrol/actuators/
DCommActuator.java32 import com.android.car.telephony.common.Contact;
123 Contact contact = mInteractionService.getContact(query, null); in getPhoneNumberAndName()
143 private String getPhoneNumberFromContact(@Nullable Contact contact) { in getPhoneNumberFromContact()
/packages/apps/Car/VoiceControl/src/com/android/car/telephony/common/
DContact.aidl18 parcelable Contact;
/packages/apps/Traceur/
DOWNERS2 kevinjeon@google.com # Contact kevinjeon@ first for any Traceur issues!
/packages/apps/Dialer/java/com/android/dialer/logging/
Dcontact_lookup_result.proto15 // Contact was not found in any of the sources.
18 // Contact was found in the local database.
/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorFragment.java75 import com.android.contacts.model.Contact;
349 protected Contact mContact;
390 protected final LoaderManager.LoaderCallbacks<Contact> mContactLoaderListener =
391 new LoaderManager.LoaderCallbacks<Contact>() {
396 public Loader<Contact> onCreateLoader(int id, Bundle args) {
404 public void onLoadFinished(Loader<Contact> loader, Contact contact) {
430 public void onLoaderReset(Loader<Contact> loader) {
1094 private void setState(Contact contact) { in setState()

12