Home
last modified time | relevance | path

Searched refs:directoryId (Results 1 – 25 of 44) sorted by relevance

12

/packages/apps/Contacts/src/com/android/contacts/list/
DPhoneNumberListAdapter.java195 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 …]
DDefaultContactListAdapter.java82 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument
100 configureUri(loader, directoryId, filter); in configureLoader()
113 appendSearchParameters(builder, query, directoryId); in configureLoader()
120 configureUri(loader, directoryId, filter); in configureLoader()
127 configureSelection(loader, directoryId, filter); in configureLoader()
151 private void appendSearchParameters(Builder builder, String query, long directoryId) { in appendSearchParameters() argument
154 String.valueOf(directoryId)); in appendSearchParameters()
155 if (directoryId != Directory.DEFAULT && directoryId != Directory.LOCAL_INVISIBLE) { in appendSearchParameters()
157 String.valueOf(getDirectoryResultLimit(getDirectoryById(directoryId)))); in appendSearchParameters()
162 protected void configureUri(CursorLoader loader, long directoryId, ContactListFilter filter) { in configureUri() argument
[all …]
DContactListAdapter.java173 long directoryId = ((DirectoryPartition)getPartition(partitionIndex)).getDirectoryId(); in getContactUri() local
174 if (uri != null && directoryId != Directory.DEFAULT) { in getContactUri()
176 ContactsContract.DIRECTORY_PARAM_KEY, String.valueOf(directoryId)).build(); in getContactUri()
205 long directoryId = ((DirectoryPartition)getPartition(partitionIndex)).getDirectoryId(); in isSelectedContact() local
206 if (getSelectedContactDirectoryId() != directoryId) { in isSelectedContact()
215 return directoryId != Directory.DEFAULT && directoryId != Directory.LOCAL_INVISIBLE in isSelectedContact()
DContactEntryListAdapter.java207 public abstract void configureLoader(CursorLoader loader, long directoryId); in configureLoader() argument
623 final long directoryId = directoryPartition.getDirectoryId(); in bindWorkProfileIcon() local
624 final long userType = ContactsUtils.determineUserType(directoryId, null); in bindWorkProfileIcon()
637 long directoryId = directoryPartition.getDirectoryId(); in bindHeaderView() local
641 if (!DirectoryCompat.isRemoteDirectoryId(directoryId)) { in bindHeaderView()
761 long directoryId = ((DirectoryPartition)getPartition(partitionIndex)).getDirectoryId(); in getContactUri() local
763 if (uri != null && directoryId != Directory.DEFAULT) { in getContactUri()
765 ContactsContract.DIRECTORY_PARAM_KEY, String.valueOf(directoryId)).build(); in getContactUri()
DDirectoryListLoader.java162 long directoryId = cursor.getLong(DirectoryQuery.ID); in loadInBackground() local
164 && DirectoryCompat.isInvisibleDirectory(directoryId)) { in loadInBackground()
181 result.addRow(new Object[]{directoryId, directoryType, displayName, photoSupport}); in loadInBackground()
/packages/apps/Dialer/java/com/android/contacts/common/list/
DDefaultContactListAdapter.java44 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument
60 appendSearchParameters(builder, query, directoryId); in configureLoader()
66 configureUri(loader, directoryId, filter); in configureLoader()
68 configureSelection(loader, directoryId, filter); in configureLoader()
87 private void appendSearchParameters(Builder builder, String query, long directoryId) { in appendSearchParameters() argument
89 builder.appendQueryParameter(ContactsContract.DIRECTORY_PARAM_KEY, String.valueOf(directoryId)); in appendSearchParameters()
90 if (directoryId != Directory.DEFAULT && directoryId != Directory.LOCAL_INVISIBLE) { in appendSearchParameters()
93 String.valueOf(getDirectoryResultLimit(getDirectoryById(directoryId)))); in appendSearchParameters()
98 protected void configureUri(CursorLoader loader, long directoryId, ContactListFilter filter) { in configureUri() argument
101 if (directoryId == Directory.DEFAULT && isSectionHeaderDisplayEnabled()) { in configureUri()
[all …]
DPhoneNumberListAdapter.java97 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument
102 if (isExtendedDirectory(directoryId)) { in configureLoader()
103 final DirectoryPartition directory = getExtendedDirectoryFromId(directoryId); in configureLoader()
115 final boolean isRemoteDirectoryQuery = DirectoryCompat.isRemoteDirectoryId(directoryId); in configureLoader()
129 ContactsContract.DIRECTORY_PARAM_KEY, String.valueOf(directoryId)); in configureLoader()
133 String.valueOf(getDirectoryResultLimit(getDirectoryById(directoryId)))); in configureLoader()
145 applyFilter(loader, builder, directoryId, getFilter()); in configureLoader()
178 protected boolean isExtendedDirectory(long directoryId) { in isExtendedDirectory() argument
179 return directoryId >= mFirstExtendedDirectoryId; in isExtendedDirectory()
182 private DirectoryPartition getExtendedDirectoryFromId(long directoryId) { in getExtendedDirectoryFromId() argument
[all …]
DContactEntryListAdapter.java210 public abstract void configureLoader(CursorLoader loader, long directoryId); in configureLoader() argument
595 final long directoryId = directoryPartition.getDirectoryId(); in bindWorkProfileIcon() local
596 final long userType = ContactsUtils.determineUserType(directoryId, null); in bindWorkProfileIcon()
609 long directoryId = directoryPartition.getDirectoryId(); in bindHeaderView() local
613 if (!DirectoryCompat.isRemoteDirectoryId(directoryId)) { in bindHeaderView()
744 long directoryId = ((DirectoryPartition) getPartition(partitionIndex)).getDirectoryId(); in getContactUri() local
746 if (uri != null && directoryId != Directory.DEFAULT) { in getContactUri()
750 ContactsContract.DIRECTORY_PARAM_KEY, String.valueOf(directoryId)) in getContactUri()
DDirectoryListLoader.java138 long directoryId = cursor.getLong(DirectoryQuery.ID); in loadInBackground() local
139 if (!mLocalInvisibleDirectoryEnabled && DirectoryCompat.isInvisibleDirectory(directoryId)) { in loadInBackground()
157 result.addRow(new Object[] {directoryId, directoryType, displayName, photoSupport}); in loadInBackground()
DContactEntryListFragment.java335 long directoryId = in onCreateLoader() local
339 mAdapter.configureLoader(loader, directoryId); in onCreateLoader()
365 long directoryId = partition.getDirectoryId();
367 if (directoryId == Directory.DEFAULT) {
374 args.putLong(DIRECTORY_ID_ARG_KEY, directoryId);
/packages/apps/Contacts/src/com/android/contacts/compat/
DDirectoryCompat.java33 public static boolean isInvisibleDirectory(long directoryId) { in isInvisibleDirectory() argument
35 return (directoryId == Directory.LOCAL_INVISIBLE in isInvisibleDirectory()
36 || directoryId == DirectorySdkCompat.ENTERPRISE_LOCAL_INVISIBLE); in isInvisibleDirectory()
38 return directoryId == Directory.LOCAL_INVISIBLE; in isInvisibleDirectory()
41 public static boolean isRemoteDirectoryId(long directoryId) { in isRemoteDirectoryId() argument
43 return DirectorySdkCompat.isRemoteDirectoryId(directoryId); in isRemoteDirectoryId()
45 return !(directoryId == Directory.DEFAULT || directoryId == Directory.LOCAL_INVISIBLE); in isRemoteDirectoryId()
48 public static boolean isEnterpriseDirectoryId(long directoryId) { in isEnterpriseDirectoryId() argument
50 ? DirectorySdkCompat.isEnterpriseDirectoryId(directoryId) in isEnterpriseDirectoryId()
DDirectorySdkCompat.java30 public static boolean isRemoteDirectoryId(long directoryId) { in isRemoteDirectoryId() argument
31 return CompatUtils.isNCompatible() ? Directory.isRemoteDirectoryId(directoryId) : false; in isRemoteDirectoryId()
34 public static boolean isEnterpriseDirectoryId(long directoryId) { in isEnterpriseDirectoryId() argument
35 return CompatUtils.isNCompatible() ? Directory.isEnterpriseDirectoryId(directoryId) : false; in isEnterpriseDirectoryId()
/packages/apps/Dialer/java/com/android/contacts/common/compat/
DDirectoryCompat.java33 public static boolean isInvisibleDirectory(long directoryId) { in isInvisibleDirectory() argument
35 return (directoryId == Directory.LOCAL_INVISIBLE in isInvisibleDirectory()
36 || directoryId == Directory.ENTERPRISE_LOCAL_INVISIBLE); in isInvisibleDirectory()
38 return directoryId == Directory.LOCAL_INVISIBLE; in isInvisibleDirectory()
41 public static boolean isRemoteDirectoryId(long directoryId) { in isRemoteDirectoryId() argument
43 return Directory.isRemoteDirectoryId(directoryId); in isRemoteDirectoryId()
45 return !(directoryId == Directory.DEFAULT || directoryId == Directory.LOCAL_INVISIBLE); in isRemoteDirectoryId()
48 public static boolean isEnterpriseDirectoryId(long directoryId) { in isEnterpriseDirectoryId() argument
49 return VERSION.SDK_INT >= VERSION_CODES.N && Directory.isEnterpriseDirectoryId(directoryId); in isEnterpriseDirectoryId()
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/
DContactInfoHelper.java108 Context context, String lookupKey, @UserType long userType, @Nullable Long directoryId) { in lookUpDisplayNameAlternative() argument
114 if (directoryId != null) { in lookUpDisplayNameAlternative()
116 if (DirectoryCompat.isEnterpriseDirectoryId(directoryId)) { in lookUpDisplayNameAlternative()
121 if (DirectoryCompat.isRemoteDirectoryId(directoryId)) { in lookUpDisplayNameAlternative()
153 public static Uri getContactInfoLookupUri(String number, long directoryId) { in getContactInfoLookupUri() argument
158 if (directoryId != -1) { in getContactInfoLookupUri()
172 if (directoryId != -1) { in getContactInfoLookupUri()
174 ContactsContract.DIRECTORY_PARAM_KEY, String.valueOf(directoryId)); in getContactInfoLookupUri()
225 public ContactInfo lookupNumber(String number, String countryIso, long directoryId) { in lookupNumber() argument
236 info = lookupContactFromUri(getContactInfoLookupUri(number, directoryId)); in lookupNumber()
[all …]
DCachedNumberLookupService.java70 void setSource(ContactSource.Type sourceType, String name, long directoryId); in setSource() argument
72 void setDirectorySource(String name, long directoryId); in setDirectorySource() argument
74 void setExtendedSource(String name, long directoryId); in setExtendedSource() argument
/packages/apps/Dialer/java/com/android/incallui/
DCallerInfoAsyncQuery.java206 long directoryId = directoryIds[i]; in startOtherDirectoriesQuery() local
207 Uri uri = ContactInfoHelper.getContactInfoLookupUri(info.phoneNumber, directoryId); in startOtherDirectoriesQuery()
209 Log.d(LOG_TAG, "directoryId: " + directoryId + " uri: " + uri); in startOtherDirectoriesQuery()
211 OnQueryCompleteListener intermediateListener = listenerFactory.newListener(directoryId); in startOtherDirectoriesQuery()
298 int token, Object cookie, CallerInfo ci, long directoryId) { in onDirectoryQueryComplete() argument
311 addCallerInfoIntoCache(ci, directoryId); in onDirectoryQueryComplete()
316 private void addCallerInfoIntoCache(CallerInfo ci, long directoryId) { in addCallerInfoIntoCache() argument
324 cachedContactInfo.setDirectorySource(directoryLabel, directoryId); in addCallerInfoIntoCache()
341 OnQueryCompleteListener newListener(long directoryId) { in newListener() argument
342 return new DirectoryQueryCompleteListener(directoryId); in newListener()
[all …]
DCallerInfo.java308 Long directoryId = null; in getCallerInfo() local
311 directoryId = Long.parseLong(directory); in getCallerInfo()
316 info.userType = ContactsUtils.determineUserType(directoryId, contactId); in getCallerInfo()
320 context, info.lookupKeyOrNull, info.userType, directoryId); in getCallerInfo()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleRecipientEntry.java32 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/java/com/android/dialer/app/list/
DRegularSearchListAdapter.java49 final long directoryId = partition.getDirectoryId(); in getContactInfo() local
50 final boolean isExtendedDirectory = isExtendedDirectory(directoryId); in getContactInfo()
67 !isExtendedDirectory && DirectoryCompat.isEnterpriseDirectoryId(directoryId) in getContactInfo()
75 cacheInfo.setExtendedSource(sourceName, directoryId); in getContactInfo()
77 cacheInfo.setDirectorySource(sourceName, directoryId); in getContactInfo()
/packages/apps/Messaging/src/com/android/messaging/util/
DContactUtil.java310 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/providers/ContactsProvider/src/com/android/providers/contacts/enterprise/
DEnterpriseContactsCursorWrapper.java59 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()
/packages/apps/Dialer/java/com/android/contacts/common/
DContactsUtils.java60 public static @UserType long determineUserType(Long directoryId, Long contactId) { in determineUserType() argument
62 if (directoryId != null) { in determineUserType()
63 return DirectoryCompat.isEnterpriseDirectoryId(directoryId) in determineUserType()
/packages/apps/Contacts/src/com/android/contacts/model/
DContactLoader.java371 final long directoryId = in loadEncodedContactEntity() local
382 directoryId, in loadEncodedContactEntity()
592 final long directoryId = directoryParameter == null in loadContactHeaderData() local
613 if (directoryId == Directory.DEFAULT || directoryId == Directory.LOCAL_INVISIBLE) { in loadContactHeaderData()
620 return new Contact(mRequestedUri, contactUri, lookupUri, directoryId, lookupKey, in loadContactHeaderData()
714 long directoryId = result.getDirectoryId(); in loadDirectoryMetaData() local
717 ContentUris.withAppendedId(Directory.CONTENT_URI, directoryId), in loadDirectoryMetaData()
/packages/apps/Dialer/java/com/android/contacts/common/model/
DContactLoader.java126 final long directoryId = in loadEncodedContactEntity() local
138 directoryId, in loadEncodedContactEntity()
418 final long directoryId = in loadContactHeaderData() local
439 if (directoryId == Directory.DEFAULT || directoryId == Directory.LOCAL_INVISIBLE) { in loadContactHeaderData()
451 directoryId, in loadContactHeaderData()
549 long directoryId = result.getDirectoryId(); in loadDirectoryMetaData() local
555 ContentUris.withAppendedId(Directory.CONTENT_URI, directoryId), in loadDirectoryMetaData()
/packages/apps/Contacts/src/com/android/contacts/
DContactsUtils.java254 public static @UserType long determineUserType(Long directoryId, Long contactId) { in determineUserType() argument
256 if (directoryId != null) { in determineUserType()
257 return DirectoryCompat.isEnterpriseDirectoryId(directoryId) ? USER_TYPE_WORK in determineUserType()

12