Home
last modified time | relevance | path

Searched refs:mContact (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/contact/
DContactDetailsViewModel.java103 private Contact mContact; field in ContactDetailsViewModel.ContactDetailsLiveData
109 mContact = contact; in ContactDetailsLiveData()
110 mContactLookupUri = mContact.getLookupUri(); in ContactDetailsLiveData()
111 mAccountName = mContact.getAccountName(); in ContactDetailsLiveData()
118 if (mContact != null) { in onContactListChanged()
120 mContact.getLookupKey(), mContact.getAccountName()); in onContactListChanged()
134 mContact == null ? mContactLookupUri : mContact.getLookupUri()); in onContactListChanged()
143 mContact == null ? mAccountName : mContact.getAccountName()); in onContactListChanged()
150 if (mContact == null) { in onFavoriteContactsChanged()
154 mContact.getLookupKey(), mContact.getAccountName()); in onFavoriteContactsChanged()
[all …]
DContactDetailsFragment.java67 private Contact mContact; field in ContactDetailsFragment
89 mContact = getArguments() == null ? null : getArguments().getParcelable(KEY_CONTACT_ENTITY); in onCreate()
90 if (mContact == null && savedInstanceState != null) { in onCreate()
91 mContact = savedInstanceState.getParcelable(KEY_CONTACT_ENTITY); in onCreate()
95 mContactDetailsLiveData = mContactDetailsViewModel.getContactDetails(mContact); in onCreate()
106 ContactDetailsAdapter contactDetailsAdapter = mContactDetailsAdapterFactory.create(mContact, in onViewCreated()
179 outState.putParcelable(KEY_CONTACT_ENTITY, mContact); in onSaveInstanceState()
DContactDetailsAdapter.java57 private Contact mContact; field in ContactDetailsAdapter
74 mContact = contact; in setContact()
143 viewHolder.bind(mContext, mContact, (PhoneNumber) mItems.get(position)); in onBindViewHolder()
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
DContactPreference.java69 private EmergencyContactManager.Contact mContact; field in ContactPreference
124 if (mContact != null && !phoneUri.equals(mContact.getPhoneUri()) && in setPhoneUri()
128 mContact = mContactFactory.getContact(getContext(), phoneUri); in setPhoneUri()
130 setTitle(mContact.getName()); in setPhoneUri()
131 setKey(mContact.getPhoneUri().toString()); in setPhoneUri()
132 String summary = mContact.getPhoneType() == null ? in setPhoneUri()
133 mContact.getPhoneNumber() : in setPhoneUri()
136 mContact.getPhoneType(), in setPhoneUri()
137 BidiFormatter.getInstance().unicodeWrap(mContact.getPhoneNumber(), in setPhoneUri()
145 mContact.getName())); in setPhoneUri()
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DImageViewDrawableSetter.java45 private Contact mContact; field in ImageViewDrawableSetter
56 mContact = contactData; in setupContactPhoto()
148 if (mContact.isDisplayNameFromOrganization()) { in defaultDrawable()
152 if (TextUtils.isEmpty(mContact.getLookupKey())) { in defaultDrawable()
153 request = new DefaultImageRequest(null, mContact.getDisplayName(), contactType, in defaultDrawable()
156 request = new DefaultImageRequest(mContact.getDisplayName(), mContact.getLookupKey(), in defaultDrawable()
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/preferences/
DContactPreferenceTest.java47 @Mock private EmergencyContactManager.Contact mContact; field in ContactPreferenceTest
58 when(mContactFactory.getContact(any(), any())).thenReturn(mContact); in setUp()
59 when(mContact.getName()).thenReturn(NAME); in setUp()
60 when(mContact.getPhoneUri()).thenReturn(mPhoneUri); in setUp()
61 when(mContact.getPhoneNumber()).thenReturn(PHONE_NUMBER); in setUp()
62 when(mContact.getContactLookupUri()).thenReturn(mPhoneUri); in setUp()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/
DContactResultsLiveData.java165 mContext, mSortOrderPreferenceLiveData).first.compare(o1.mContact, in setValue()
166 o2.mContact)); in setValue()
194 private final Contact mContact; field in ContactResultsLiveData.ContactResultListItem
199 mContact = contact; in ContactResultListItem()
208 return mContact; in getContact()
/packages/apps/Contacts/src/com/android/contacts/model/
DContactLoader.java89 private Contact mContact; field in ContactLoader
291 mContact = null; in setNewLookup()
849 mContact = result; in deliverResult()
869 super.deliverResult(mContact); in deliverResult()
878 for (RawContact rawContact : mContact.getRawContacts()) { in postViewNotificationToSyncAdapter()
924 if (mContact != null) { in onStartLoading()
925 deliverResult(mContact); in onStartLoading()
928 if (takeContentChanged() || mContact == null) { in onStartLoading()
943 mContact = null; in onReset()
951 if (mContact == null || !mContact.isLoaded()) { in cacheResult()
[all …]
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DPhoneFragmentViewModel.java120 private Contact mContact; field in PhoneFragmentViewModel.ContactInfo
125 mContact = InMemoryPhoneBook.get().lookupContactEntry(info.getPhoneNumber()); in ContactInfo()
137 return mContact; in getContact()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/entity/
DUiCallLog.java43 private final Contact mContact; field in UiCallLog
54 mContact = contact; in UiCallLog()
122 return mContact; in getContact()
/packages/apps/Dialer/java/com/android/contacts/common/model/
DContactLoader.java85 private Contact mContact; field in ContactLoader
687 mContact = result; in deliverResult()
710 super.deliverResult(mContact); in deliverResult()
719 for (RawContact rawContact : mContact.getRawContacts()) { in postViewNotificationToSyncAdapter()
761 if (mContact != null) { in onStartLoading()
762 deliverResult(mContact); in onStartLoading()
765 if (takeContentChanged() || mContact == null) { in onStartLoading()
780 mContact = null; in onReset()
/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorFragment.java349 protected Contact mContact; field in ContactEditorFragment
1102 mContact = contact; in setState()
1270 final RawContactDelta readOnly = mState.getByRawContactId(mContact.getNameRawContactId()); in copyReadOnlyName()