/packages/apps/ContactsCommon/src/com/android/contacts/common/compat/ |
D | DirectoryCompat.java | 34 public static boolean isInvisibleDirectory(long directoryId) { in isInvisibleDirectory() argument 36 return (directoryId == Directory.LOCAL_INVISIBLE in isInvisibleDirectory() 37 || directoryId == DirectorySdkCompat.ENTERPRISE_LOCAL_INVISIBLE); in isInvisibleDirectory() 39 return directoryId == Directory.LOCAL_INVISIBLE; in isInvisibleDirectory() 42 public static boolean isRemoteDirectoryId(long directoryId) { in isRemoteDirectoryId() argument 44 return DirectorySdkCompat.isRemoteDirectoryId(directoryId); in isRemoteDirectoryId() 46 return !(directoryId == Directory.DEFAULT || directoryId == Directory.LOCAL_INVISIBLE); in isRemoteDirectoryId() 49 public static boolean isEnterpriseDirectoryId(long directoryId) { in isEnterpriseDirectoryId() argument 51 ? DirectorySdkCompat.isEnterpriseDirectoryId(directoryId) in isEnterpriseDirectoryId()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
D | DefaultContactListAdapter.java | 83 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument 102 appendSearchParameters(builder, query, directoryId); in configureLoader() 111 configureUri(loader, directoryId, filter); in configureLoader() 113 configureSelection(loader, directoryId, filter); in configureLoader() 132 private void appendSearchParameters(Builder builder, String query, long directoryId) { in appendSearchParameters() argument 135 String.valueOf(directoryId)); in appendSearchParameters() 136 if (directoryId != Directory.DEFAULT && directoryId != Directory.LOCAL_INVISIBLE) { in appendSearchParameters() 138 String.valueOf(getDirectoryResultLimit(getDirectoryById(directoryId)))); in appendSearchParameters() 143 protected void configureUri(CursorLoader loader, long directoryId, ContactListFilter filter) { in configureUri() argument 154 if (directoryId == Directory.DEFAULT && isSectionHeaderDisplayEnabled()) { in configureUri() [all …]
|
D | PhoneNumberListAdapter.java | 195 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument 200 if (isExtendedDirectory(directoryId)) { in configureLoader() 201 final DirectoryPartition directory = getExtendedDirectoryFromId(directoryId); in configureLoader() 215 = DirectoryCompat.isRemoteDirectoryId(directoryId); in configureLoader() 229 String.valueOf(directoryId)); in configureLoader() 232 String.valueOf(getDirectoryResultLimit(getDirectoryById(directoryId)))); in configureLoader() 241 applyFilter(loader, builder, directoryId, getFilter()); in configureLoader() 274 protected boolean isExtendedDirectory(long directoryId) { in isExtendedDirectory() argument 275 return directoryId >= mFirstExtendedDirectoryId; in isExtendedDirectory() 278 private DirectoryPartition getExtendedDirectoryFromId(long directoryId) { in getExtendedDirectoryFromId() argument [all …]
|
D | ContactListAdapter.java | 177 long directoryId = ((DirectoryPartition)getPartition(partitionIndex)).getDirectoryId(); in getContactUri() local 178 if (uri != null && directoryId != Directory.DEFAULT) { in getContactUri() 180 ContactsContract.DIRECTORY_PARAM_KEY, String.valueOf(directoryId)).build(); in getContactUri() 201 long directoryId = ((DirectoryPartition)getPartition(partitionIndex)).getDirectoryId(); in isSelectedContact() local 202 if (getSelectedContactDirectoryId() != directoryId) { in isSelectedContact() 211 return directoryId != Directory.DEFAULT && directoryId != Directory.LOCAL_INVISIBLE in isSelectedContact()
|
D | ContactEntryListAdapter.java | 211 public abstract void configureLoader(CursorLoader loader, long directoryId); in configureLoader() argument 627 final long directoryId = directoryPartition.getDirectoryId(); in bindWorkProfileIcon() local 628 final long userType = ContactsUtils.determineUserType(directoryId, null); in bindWorkProfileIcon() 641 long directoryId = directoryPartition.getDirectoryId(); in bindHeaderView() local 645 if (!DirectoryCompat.isRemoteDirectoryId(directoryId)) { in bindHeaderView() 792 long directoryId = ((DirectoryPartition)getPartition(partitionIndex)).getDirectoryId(); in getContactUri() local 794 if (uri != null && directoryId != Directory.DEFAULT) { in getContactUri() 796 ContactsContract.DIRECTORY_PARAM_KEY, String.valueOf(directoryId)).build(); in getContactUri()
|
D | DirectoryListLoader.java | 164 long directoryId = cursor.getLong(DirectoryQuery.ID); in loadInBackground() local 166 && DirectoryCompat.isInvisibleDirectory(directoryId)) { in loadInBackground() 183 result.addRow(new Object[]{directoryId, directoryType, displayName, photoSupport}); in loadInBackground()
|
D | DirectoryPartition.java | 56 public void setDirectoryId(long directoryId) { in setDirectoryId() argument 57 this.mDirectoryId = directoryId; in setDirectoryId()
|
D | ContactEntryListFragment.java | 347 long directoryId = args != null && args.containsKey(DIRECTORY_ID_ARG_KEY) in onCreateLoader() local 350 mAdapter.configureLoader(loader, directoryId); in onCreateLoader() 374 long directoryId = partition.getDirectoryId(); 376 if (directoryId == Directory.DEFAULT) { 383 args.putLong(DIRECTORY_ID_ARG_KEY, directoryId);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | BugleRecipientEntry.java | 32 final long contactId, final Long directoryId, final long dataId, in BugleRecipientEntry() argument 36 directoryId, dataId, photoThumbnailUri, isFirstLevel, isValid, lookupKey); in BugleRecipientEntry() 41 final String destinationLabel, final long contactId, final Long directoryId, in constructTopLevelEntry() argument 45 destinationLabel, contactId, directoryId, dataId, (thumbnailUriAsString != null in constructTopLevelEntry() 51 final String destinationLabel, final long contactId, final Long directoryId, in constructSecondLevelEntry() argument 55 destinationLabel, contactId, directoryId, dataId, (thumbnailUriAsString != null in constructSecondLevelEntry()
|
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ |
D | CallerInfoAsyncQuery.java | 441 long directoryId = directoryIds[i]; in startOtherDirectoriesQuery() local 442 Uri uri = ContactInfoHelper.getContactInfoLookupUri(info.phoneNumber, directoryId); in startOtherDirectoriesQuery() 444 Log.d(LOG_TAG, "directoryId: " + directoryId + " uri: " + uri); in startOtherDirectoriesQuery() 447 listenerFactory.newListener(directoryId); in startOtherDirectoriesQuery() 496 DirectoryQueryCompleteListener(long directoryId) { in DirectoryQueryCompleteListener() argument 497 mDirectoryId = directoryId; in DirectoryQueryCompleteListener() 515 long directoryId) { in onDirectoryQueryComplete() argument 528 addCallerInfoIntoCache(ci, directoryId); in onDirectoryQueryComplete() 533 private void addCallerInfoIntoCache(CallerInfo ci, long directoryId) { in addCallerInfoIntoCache() argument 539 cachedContactInfo.setDirectorySource(directoryLabel, directoryId); in addCallerInfoIntoCache() [all …]
|
/packages/apps/ContactsCommon/src-N/com/android/contacts/common/compat/ |
D | DirectorySdkCompat.java | 31 public static boolean isRemoteDirectoryId(long directoryId) { in isRemoteDirectoryId() argument 32 return Directory.isRemoteDirectoryId(directoryId); in isRemoteDirectoryId() 35 public static boolean isEnterpriseDirectoryId(long directoryId) { in isEnterpriseDirectoryId() argument 36 return Directory.isEnterpriseDirectoryId(directoryId); in isEnterpriseDirectoryId()
|
/packages/apps/Dialer/src/com/android/dialer/list/ |
D | RegularSearchListAdapter.java | 52 final long directoryId = partition.getDirectoryId(); in getContactInfo() local 53 final boolean isExtendedDirectory = isExtendedDirectory(directoryId); in getContactInfo() 70 && DirectoryCompat.isEnterpriseDirectoryId(directoryId) in getContactInfo() 77 cacheInfo.setExtendedSource(sourceName, directoryId); in getContactInfo() 79 cacheInfo.setDirectorySource(sourceName, directoryId); in getContactInfo()
|
/packages/apps/Dialer/src/com/android/dialer/service/ |
D | CachedNumberLookupService.java | 22 public void setSource(int sourceType, String name, long directoryId); in setSource() argument 23 public void setDirectorySource(String name, long directoryId); in setDirectorySource() argument 24 public void setExtendedSource(String name, long directoryId); in setExtendedSource() argument
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/enterprise/ |
D | EnterpriseContactsCursorWrapper.java | 59 int[] contactIdIndices, @Nullable Long directoryId) { in EnterpriseContactsCursorWrapper() argument 63 this.mDirectoryId = directoryId; in EnterpriseContactsCursorWrapper() 64 this.mIsDirectoryRemote = directoryId != null in EnterpriseContactsCursorWrapper() 65 && Directory.isRemoteDirectoryId(directoryId); in EnterpriseContactsCursorWrapper()
|
D | EnterprisePolicyGuard.java | 90 final long directoryId = Long.parseLong(directory); in isCrossProfileAllowed() local 91 if (Directory.isRemoteDirectoryId(directoryId) in isCrossProfileAllowed()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | ContactUtil.java | 310 final Uri phoneFilterBaseUri, final String query, final long directoryId) { in filterPhonesInternal() argument 314 Uri phoneFilterUri = buildDirectorySearchUri(phoneFilterBaseUri, query, directoryId); in filterPhonesInternal() 374 final Uri filterEmailsBaseUri, final String query, final long directoryId) { in filterEmailsInternal() argument 379 directoryId); in filterEmailsInternal() 550 final long directoryId) { in buildDirectorySearchUri() argument 553 ContactsContract.DIRECTORY_PARAM_KEY, String.valueOf(directoryId)) in buildDirectorySearchUri()
|
/packages/apps/ContactsCommon/src-pre-N/com/android/contacts/common/compat/ |
D | DirectorySdkCompat.java | 33 public static boolean isRemoteDirectoryId(long directoryId) { in isRemoteDirectoryId() argument 38 public static boolean isEnterpriseDirectoryId(long directoryId) { in isEnterpriseDirectoryId() argument
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
D | ContactsUtils.java | 268 public static @UserType long determineUserType(Long directoryId, Long contactId) { in determineUserType() argument 270 if (directoryId != null) { in determineUserType() 271 return DirectoryCompat.isEnterpriseDirectoryId(directoryId) ? USER_TYPE_WORK in determineUserType()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
D | ContactLoader.java | 391 final long directoryId = in loadEncodedContactEntity() local 402 directoryId, in loadEncodedContactEntity() 641 final long directoryId = directoryParameter == null in loadContactHeaderData() local 662 if (directoryId == Directory.DEFAULT || directoryId == Directory.LOCAL_INVISIBLE) { in loadContactHeaderData() 669 return new Contact(mRequestedUri, contactUri, lookupUri, directoryId, lookupKey, in loadContactHeaderData() 763 long directoryId = result.getDirectoryId(); in loadDirectoryMetaData() local 766 ContentUris.withAppendedId(Directory.CONTENT_URI, directoryId), in loadDirectoryMetaData()
|
D | Contact.java | 143 public Contact(Uri requestedUri, Uri uri, Uri lookupUri, long directoryId, String lookupKey, in Contact() argument 153 mDirectoryId = directoryId; in Contact()
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
D | ContactInfoHelper.java | 404 public static Uri getContactInfoLookupUri(String number, long directoryId) { in getContactInfoLookupUri() argument 409 if (directoryId != -1) { in getContactInfoLookupUri() 421 if (directoryId != -1) { in getContactInfoLookupUri() 423 String.valueOf(directoryId)); in getContactInfoLookupUri()
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | EmailAddressListAdapter.java | 80 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument 93 String.valueOf(directoryId)); in configureLoader()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactDirectoryManagerTest.java | 523 long directoryId = cursor.getLong(0); in testForwardingToDirectoryProvider() local 527 ContactsContract.DIRECTORY_PARAM_KEY, String.valueOf(directoryId)).build(); in testForwardingToDirectoryProvider() 563 long directoryId = cursor.getLong(0); in testProjectionPopulated() local 567 ContactsContract.DIRECTORY_PARAM_KEY, String.valueOf(directoryId)).build(); in testProjectionPopulated()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/ |
D | EnterprisePolicyGuardTest.java | 217 private static Uri appendDirectoryId(Uri uri, int directoryId) { in appendDirectoryId() argument 219 String.valueOf(directoryId)).build(); in appendDirectoryId()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsProvider2.java | 5526 final long directoryId = in queryDirectoryIfNecessary() local 5531 if (isEnterpriseUri || directoryId > Long.MIN_VALUE) { in queryDirectoryIfNecessary() 5533 directoryId, cancellationSignal); in queryDirectoryIfNecessary() 5698 private DirectoryInfo getDirectoryAuthority(String directoryId) { in getDirectoryAuthority() argument 5720 return mDirectoryCache.get(directoryId); in getDirectoryAuthority() 5731 String[] selectionArgs, String sortOrder, final long directoryId, in queryLocal() argument 5754 appendLocalDirectoryAndAccountSelectionIfNeeded(qb, directoryId, uri); in queryLocal() 5909 qb, uri, projection, filterParam, directoryId, in queryLocal() 7035 sortOrder, directoryId, cancellationSignal); in queryLocal() 7174 final long directoryId = in queryMergedDataPhones() local [all …]
|