Home
last modified time | relevance | path

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

12

/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/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.java53 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument
71 configureUri(loader, directoryId, filter); in configureLoader()
84 appendSearchParameters(builder, query, directoryId); in configureLoader()
91 configureUri(loader, directoryId, filter); in configureLoader()
98 configureSelection(loader, directoryId, filter); in configureLoader()
122 private void appendSearchParameters(Builder builder, String query, long directoryId) { in appendSearchParameters() argument
125 String.valueOf(directoryId)); in appendSearchParameters()
126 if (directoryId != Directory.DEFAULT && directoryId != Directory.LOCAL_INVISIBLE) { in appendSearchParameters()
128 String.valueOf(getDirectoryResultLimit(getDirectoryById(directoryId)))); in appendSearchParameters()
133 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()
DDirectoryPartition.java56 public void setDirectoryId(long directoryId) { in setDirectoryId() argument
57 this.mDirectoryId = directoryId; in setDirectoryId()
DContactEntryListFragment.java361 long directoryId = args != null && args.containsKey(DIRECTORY_ID_ARG_KEY) in onCreateLoader() local
364 mAdapter.configureLoader(loader, directoryId); in onCreateLoader()
388 long directoryId = partition.getDirectoryId();
390 if (directoryId == Directory.DEFAULT) {
397 args.putLong(DIRECTORY_ID_ARG_KEY, directoryId);
/packages/apps/Dialer/java/com/android/dialer/phonelookup/cp2/
DCp2ExtendedDirectoryPhoneLookup.java150 long directoryId = cursor.getLong(idColumnIndex); in queryCp2ForExtendedDirectoryIds() local
152 if (isExtendedDirectory(directoryId)) { in queryCp2ForExtendedDirectoryIds()
171 for (long directoryId : directoryIds) {
172 cp2InfoFutures.add(queryCp2ForDirectoryContact(number, directoryId));
187 private ListenableFuture<Cp2Info> queryCp2ForDirectoryContact(String number, long directoryId) {
195 getContentUriForContacts(number, directoryId),
204 directoryId);
212 directoryId);
218 Cp2Projections.buildCp2ContactInfoFromCursor(appContext, cursor, directoryId));
227 static Uri getContentUriForContacts(String number, long directoryId) {
[all …]
DCp2Projections.java90 Context appContext, Cursor cursor, long directoryId) { in buildCp2ContactInfoFromCursor() argument
125 ContactsContract.DIRECTORY_PARAM_KEY, String.valueOf(directoryId)) in buildCp2ContactInfoFromCursor()
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/
DContactInfoHelper.java101 Context context, String lookupKey, @UserType long userType, @Nullable Long directoryId) { in lookUpDisplayNameAlternative() argument
107 if (directoryId != null) { in lookUpDisplayNameAlternative()
109 if (Directory.isEnterpriseDirectoryId(directoryId)) { in lookUpDisplayNameAlternative()
114 if (Directory.isRemoteDirectoryId(directoryId)) { in lookUpDisplayNameAlternative()
146 public static Uri getContactInfoLookupUri(String number, long directoryId) { in getContactInfoLookupUri() argument
156 if (directoryId != -1) { in getContactInfoLookupUri()
158 ContactsContract.DIRECTORY_PARAM_KEY, String.valueOf(directoryId)); in getContactInfoLookupUri()
208 public ContactInfo lookupNumber(String number, String countryIso, long directoryId) { in lookupNumber() argument
219 info = lookupContactFromUri(getContactInfoLookupUri(number, directoryId)); in lookupNumber()
224 info = queryContactInfoForPhoneNumber(username, countryIso, directoryId); in lookupNumber()
[all …]
DCachedNumberLookupService.java68 void setSource(ContactSource.Type sourceType, String name, long directoryId); in setSource() argument
70 void setDirectorySource(String name, long directoryId); in setDirectorySource() 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()
297 int token, Object cookie, CallerInfo ci, long directoryId) { in onDirectoryQueryComplete() argument
310 addCallerInfoIntoCache(ci, directoryId); in onDirectoryQueryComplete()
315 private void addCallerInfoIntoCache(CallerInfo ci, long directoryId) { in addCallerInfoIntoCache() argument
323 cachedContactInfo.setDirectorySource(directoryLabel, directoryId); in addCallerInfoIntoCache()
340 OnQueryCompleteListener newListener(long directoryId) { in newListener() argument
341 return new DirectoryQueryCompleteListener(directoryId); in newListener()
[all …]
DCallerInfo.java296 Long directoryId = null; in getCallerInfo() local
299 directoryId = Long.parseLong(directory); in getCallerInfo()
304 info.userType = ContactsUtils.determineUserType(directoryId, contactId); in getCallerInfo()
308 context, info.lookupKeyOrNull, info.userType, directoryId); in getCallerInfo()
/packages/apps/Dialer/java/com/android/dialer/searchfragment/nearbyplaces/
DNearbyPlacesCursor.java30 private final long directoryId; field in NearbyPlacesCursor
37 Context context, Cursor nearbyPlacesCursor, long directoryId) { in newInstance() argument
40 return new NearbyPlacesCursor(new Cursor[] {headerCursor, nearbyPlacesCursor}, directoryId); in newInstance()
43 private NearbyPlacesCursor(Cursor[] cursors, long directoryId) { in NearbyPlacesCursor() argument
46 this.directoryId = directoryId; in NearbyPlacesCursor()
74 return directoryId; in getDirectoryId()
DNearbyPlacesCursorLoader.java35 private final long directoryId; field in NearbyPlacesCursorLoader
44 this.directoryId = getDirectoryId(directoryIds); in NearbyPlacesCursorLoader()
49 if (directoryId == INVALID_DIRECTORY_ID) { in loadInBackground()
53 return NearbyPlacesCursor.newInstance(getContext(), super.loadInBackground(), directoryId); in loadInBackground()
/packages/apps/Dialer/java/com/android/dialer/common/cp2/
DDirectoryUtils.java25 public static boolean isInvisibleDirectoryId(long directoryId) { in isInvisibleDirectoryId() argument
26 return directoryId == Directory.LOCAL_INVISIBLE in isInvisibleDirectoryId()
27 || directoryId == Directory.ENTERPRISE_LOCAL_INVISIBLE; in isInvisibleDirectoryId()
31 public static boolean isLocalEnterpriseDirectoryId(long directoryId) { in isLocalEnterpriseDirectoryId() argument
32 return Directory.isEnterpriseDirectoryId(directoryId) in isLocalEnterpriseDirectoryId()
33 && !Directory.isRemoteDirectoryId(directoryId); in isLocalEnterpriseDirectoryId()
/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/contacts/common/
DContactsUtils.java60 public static @UserType long determineUserType(Long directoryId, Long contactId) { in determineUserType() argument
62 if (directoryId != null) { in determineUserType()
63 return Directory.isEnterpriseDirectoryId(directoryId) ? USER_TYPE_WORK : USER_TYPE_CURRENT; in determineUserType()
/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/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/model/
DContactLoader.java361 final long directoryId = in loadEncodedContactEntity() local
372 directoryId, in loadEncodedContactEntity()
582 final long directoryId = directoryParameter == null in loadContactHeaderData() local
603 if (directoryId == Directory.DEFAULT || directoryId == Directory.LOCAL_INVISIBLE) { in loadContactHeaderData()
610 return new Contact(mRequestedUri, contactUri, lookupUri, directoryId, lookupKey, in loadContactHeaderData()
702 long directoryId = result.getDirectoryId(); in loadDirectoryMetaData() local
705 ContentUris.withAppendedId(Directory.CONTENT_URI, directoryId), in loadDirectoryMetaData()
/packages/apps/Contacts/src/com/android/contacts/
DContactsUtils.java255 public static @UserType long determineUserType(Long directoryId, Long contactId) { in determineUserType() argument
257 if (directoryId != null) { in determineUserType()
258 return DirectoryCompat.isEnterpriseDirectoryId(directoryId) ? USER_TYPE_WORK in determineUserType()

12