Home
last modified time | relevance | path

Searched refs:ContactsUtils (Results 1 – 25 of 40) sorted by relevance

12

/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
DContactsUtilsTests.java28 import com.android.contacts.common.ContactsUtils;
43 assertFalse(ContactsUtils.isGraphic(null)); in testIsGraphicNull()
47 assertFalse(ContactsUtils.isGraphic("")); in testIsGraphicEmpty()
51 assertFalse(ContactsUtils.isGraphic(" ")); in testIsGraphicSpaces()
55 assertTrue(ContactsUtils.isGraphic(".")); in testIsGraphicPunctuation()
59 assertTrue("null:null", ContactsUtils.areObjectsEqual(null, null)); in testAreObjectsEqual()
60 assertTrue("1:1", ContactsUtils.areObjectsEqual(1, 1)); in testAreObjectsEqual()
62 assertFalse("null:1", ContactsUtils.areObjectsEqual(null, 1)); in testAreObjectsEqual()
63 assertFalse("1:null", ContactsUtils.areObjectsEqual(1, null)); in testAreObjectsEqual()
64 assertFalse("1:2", ContactsUtils.areObjectsEqual(1, 2)); in testAreObjectsEqual()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/compat/
DDirectoryCompat.java23 import com.android.contacts.common.ContactsUtils;
28 if (ContactsUtils.FLAG_N_FEATURE) { in getContentUri()
35 if (ContactsUtils.FLAG_N_FEATURE) { in isInvisibleDirectory()
43 if (ContactsUtils.FLAG_N_FEATURE) { in isRemoteDirectoryId()
50 return ContactsUtils.FLAG_N_FEATURE in isEnterpriseDirectoryId()
DPhoneCompat.java22 import com.android.contacts.common.ContactsUtils;
31 if (ContactsUtils.FLAG_N_FEATURE) { in getContentFilterUri()
DCallableCompat.java22 import com.android.contacts.common.ContactsUtils;
31 if (ContactsUtils.FLAG_N_FEATURE) { in getContentFilterUri()
DContactsCompat.java23 import com.android.contacts.common.ContactsUtils;
43 if (ContactsUtils.FLAG_N_FEATURE) { in getContentUri()
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/
DContactInfoHelperTest.java25 import com.android.contacts.common.ContactsUtils;
104 ContactsUtils.USER_TYPE_CURRENT)); in testLookupDisplayNameAlternative_NullLookup()
111 TEST_LOOKUP_KEY, ContactsUtils.USER_TYPE_CURRENT)); in testLookupDisplayNameAlternative_NoResults()
120 , ContactsUtils.USER_TYPE_CURRENT)); in testLookupDisplayNameAlternative_HasDisplayNameAlternative()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DDataAction.java34 import com.android.contacts.common.ContactsUtils;
128 Uri.fromParts(ContactsUtils.SCHEME_SMSTO, number, null)); in DataAction()
164 final Uri mailUri = Uri.fromParts(ContactsUtils.SCHEME_MAILTO, address, null); in DataAction()
198 host = ContactsUtils.lookupProviderNameFromId(protocol); in DataAction()
203 final Uri imUri = new Uri.Builder().scheme(ContactsUtils.SCHEME_IMTO).authority( in DataAction()
336 || !ContactsUtils.areIntentActionEqual(mIntent, that.mIntent)) { in shouldCollapseWith()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DCallerInfo.java38 import com.android.contacts.common.ContactsUtils;
39 import com.android.contacts.common.ContactsUtils.UserType;
201 userType = ContactsUtils.USER_TYPE_CURRENT; in CallerInfo()
221 info.userType = ContactsUtils.USER_TYPE_CURRENT; in getCallerInfo()
270 if (contactId != 0 && (ContactsUtils.FLAG_N_FEATURE in getCallerInfo()
322 info.userType = ContactsUtils.determineUserType(directoryId, contactId); in getCallerInfo()
DStatusBarNotifier.java48 import com.android.contacts.common.ContactsUtils;
49 import com.android.contacts.common.ContactsUtils.UserType;
275 .setContentTitle(getContentString(call, ContactsUtils.USER_TYPE_CURRENT)); in buildAndSendNotification()
446 if (contactInfo.lookupUri != null && contactInfo.userType != ContactsUtils.USER_TYPE_WORK) { in addPersonReference()
540 if(userType == ContactsUtils.USER_TYPE_WORK || isWorkCall) { in getContentString()
/packages/apps/Dialer/src/com/android/dialer/list/
DRegularSearchListAdapter.java24 import com.android.contacts.common.ContactsUtils;
71 ? ContactsUtils.USER_TYPE_WORK : ContactsUtils.USER_TYPE_CURRENT; in getContactInfo()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DContactInfoHelper.java33 import com.android.contacts.common.ContactsUtils;
34 import com.android.contacts.common.ContactsUtils.UserType;
206 info.userType = ContactsUtils.determineUserType(null, in createPhoneLookupContactInfo()
215 if (lookupKey == null || userType == ContactsUtils.USER_TYPE_WORK) { in lookUpDisplayNameAlternative()
408 if (!ContactsUtils.FLAG_N_FEATURE) { in getContactInfoLookupUri()
DDefaultVoicemailNotifier.java39 import com.android.contacts.common.ContactsUtils;
247 if (ContactsUtils.FLAG_N_FEATURE) { in getNotificationDefaults()
DMissedCallNotifier.java30 import com.android.contacts.common.ContactsUtils;
112 titleResId = contactInfo.userType == ContactsUtils.USER_TYPE_WORK in updateMissedCallNotification()
DPhoneQuery.java26 import com.android.contacts.common.ContactsUtils;
/packages/apps/Contacts/src/com/android/contacts/util/
DPhoneCapabilityTester.java30 import com.android.contacts.common.ContactsUtils;
87 Uri.fromParts(ContactsUtils.SCHEME_SMSTO, "", null)); in getSmsComponent()
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupBrowseListFragment.java49 import com.android.contacts.common.ContactsUtils;
148 setAddAccountsVisibility(!ContactsUtils.areGroupWritableAccountsAvailable(mContext)); in onCreateView()
218 setAddAccountsVisibility(!ContactsUtils.areGroupWritableAccountsAvailable(mContext)); in bindGroupList()
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
DContactFragment.java31 import com.android.loaderapp.util.ContactsUtils;
415 imEntry.intent = ContactsUtils.buildImIntent(entryValues); in buildEntries()
426 entry.intent = ContactsUtils.buildImIntent(entryValues); in buildEntries()
628 if (!ContactsUtils.areDataEqual(context, mimetype, data, entry.mimetype, entry.data)) { in shouldCollapseWith()
633 || !ContactsUtils.areIntentActionEqual(intent, entry.intent) in shouldCollapseWith()
634 || !ContactsUtils.areIntentActionEqual(secondaryIntent, entry.secondaryIntent) in shouldCollapseWith()
/packages/apps/Dialer/src/com/android/dialer/util/
DDialerUtils.java38 import com.android.contacts.common.ContactsUtils;
114 Uri.fromParts(ContactsUtils.SCHEME_SMSTO, "", null)); in getSmsComponent()
/packages/apps/Contacts/src/com/android/contacts/editor/
DPhotoEditorView.java37 import com.android.contacts.common.ContactsUtils;
182 final int size = ContactsUtils.getThumbnailSize(getContext()); in setPhotoEntry()
DEditorUiUtils.java50 import com.android.contacts.common.ContactsUtils;
298 final int size = ContactsUtils.getThumbnailSize(context); in getCompressedThumbnailBitmapBytes()
/packages/apps/ContactsCommon/src/com/android/contacts/common/
DContactsUtils.java44 public class ContactsUtils { class
183 host = ContactsUtils.lookupProviderNameFromId(protocol); in getCustomImIntent()
/packages/apps/Contacts/src/com/android/contacts/activities/
DShowOrCreateActivity.java37 import com.android.contacts.common.ContactsUtils;
130 if (ContactsUtils.SCHEME_MAILTO.equals(scheme)) { in onCreate()
DAttachPhotoActivity.java49 import com.android.contacts.common.ContactsUtils;
292 final int size = ContactsUtils.getThumbnailSize(this); in saveToContact()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DRawContactModifier.java49 import com.android.contacts.common.ContactsUtils;
489 if (ContactsUtils.isGraphic(value)) { in isEmpty()
564 if (ContactsUtils.isGraphic(company)) { in parseExtras()
569 if (ContactsUtils.isGraphic(title)) { in parseExtras()
581 if (ContactsUtils.isGraphic(notes)) { in parseExtras()
600 if (ContactsUtils.isGraphic(name)) { in parseStructuredNameExtra()
645 if (ContactsUtils.isGraphic(phoneticName)) { in parseStructuredNameExtra()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DPhoneNumberListAdapter.java38 import com.android.contacts.common.ContactsUtils;
525 final long userType = ContactsUtils.determineUserType(directoryId, null); in bindWorkProfileIcon()
530 !isExtendedDirectory(directoryId) && userType == ContactsUtils.USER_TYPE_WORK); in bindWorkProfileIcon()

12