/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactDirectoryManagerTest.java | 35 import android.provider.ContactsContract.Directory; 75 new String[] { Directory.ACCOUNT_NAME, Directory.ACCOUNT_TYPE, in createResponseCursor() 76 Directory.DISPLAY_NAME, Directory.TYPE_RESOURCE_ID, in createResponseCursor() 77 Directory.EXPORT_SUPPORT, Directory.SHORTCUT_SUPPORT, in createResponseCursor() 78 Directory.PHOTO_SUPPORT }); in createResponseCursor() 170 Directory.EXPORT_SUPPORT_NONE, Directory.SHORTCUT_SUPPORT_NONE, in testScanAllProviders() 171 Directory.PHOTO_SUPPORT_FULL_SIZE_ONLY); in testScanAllProviders() 173 Directory.EXPORT_SUPPORT_ANY_ACCOUNT, Directory.SHORTCUT_SUPPORT_DATA_ITEMS_ONLY, in testScanAllProviders() 174 Directory.PHOTO_SUPPORT_THUMBNAIL_ONLY); in testScanAllProviders() 181 Directory.EXPORT_SUPPORT_SAME_ACCOUNT_ONLY, Directory.SHORTCUT_SUPPORT_FULL, in testScanAllProviders() [all …]
|
D | DirectoryTest.java | 30 import android.provider.ContactsContract.Directory; 55 ContentUris.withAppendedId(Directory.CONTENT_URI, Directory.DEFAULT); in testDefaultDirectory() 57 values.put(Directory.PACKAGE_NAME, getContext().getPackageName()); in testDefaultDirectory() 58 values.put(Directory.DIRECTORY_AUTHORITY, ContactsContract.AUTHORITY); in testDefaultDirectory() 59 values.put(Directory.TYPE_RESOURCE_ID, R.string.default_directory); in testDefaultDirectory() 60 values.put(Directory.EXPORT_SUPPORT, Directory.EXPORT_SUPPORT_NONE); in testDefaultDirectory() 61 values.putNull(Directory.ACCOUNT_NAME); in testDefaultDirectory() 62 values.putNull(Directory.ACCOUNT_TYPE); in testDefaultDirectory() 63 values.putNull(Directory.DISPLAY_NAME); in testDefaultDirectory() 71 ContentUris.withAppendedId(Directory.CONTENT_URI, Directory.LOCAL_INVISIBLE); in testInvisibleLocalDirectory() [all …]
|
D | ContactsDatabaseHelperUpgradeTest.java | 30 import android.provider.ContactsContract.Directory; 503 new TableColumn(Directory._ID, INTEGER, false, null), 504 new TableColumn(Directory.PACKAGE_NAME, TEXT, true, null), 505 new TableColumn(Directory.DIRECTORY_AUTHORITY, TEXT, true, null), 506 new TableColumn(Directory.TYPE_RESOURCE_ID, INTEGER, false, null), 508 new TableColumn(Directory.ACCOUNT_TYPE, TEXT, false, null), 509 new TableColumn(Directory.ACCOUNT_NAME, TEXT, false, null), 510 new TableColumn(Directory.DISPLAY_NAME, TEXT, false, null), 511 new TableColumn(Directory.EXPORT_SUPPORT, INTEGER, true, 512 String.valueOf(Directory.EXPORT_SUPPORT_NONE)), [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactDirectoryManager.java | 34 import android.provider.ContactsContract.Directory; 69 int exportSupport = Directory.EXPORT_SUPPORT_NONE; 70 int shortcutSupport = Directory.SHORTCUT_SUPPORT_NONE; 71 int photoSupport = Directory.PHOTO_SUPPORT_NONE; 85 Directory.ACCOUNT_NAME, 86 Directory.ACCOUNT_TYPE, 87 Directory.DISPLAY_NAME, 88 Directory.TYPE_RESOURCE_ID, 89 Directory.EXPORT_SUPPORT, 90 Directory.SHORTCUT_SUPPORT, [all …]
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | DirectoryListLoader.java | 26 import android.provider.ContactsContract.Directory; 46 public static final String ORDER_BY = Directory._ID; 49 Directory._ID, 50 Directory.PACKAGE_NAME, 51 Directory.TYPE_RESOURCE_ID, 52 Directory.DISPLAY_NAME, 53 Directory.PHOTO_SUPPORT, 64 return Directory.CONTENT_URI; in getDirectoryUri() 75 Directory._ID, 77 Directory.DISPLAY_NAME, [all …]
|
D | ContactEntryListAdapter.java | 27 import android.provider.ContactsContract.Directory; 149 partition.setDirectoryId(Directory.DEFAULT); in createDefaultDirectoryPartition() 171 && ((DirectoryPartition) partition).getDirectoryId() == Directory.DEFAULT) { in removeDirectoriesAfterDefault() 406 int idColumnIndex = cursor.getColumnIndex(Directory._ID); in changeDirectories() 408 int displayNameColumnIndex = cursor.getColumnIndex(Directory.DISPLAY_NAME); in changeDirectories() 409 int photoSupportColumnIndex = cursor.getColumnIndex(Directory.PHOTO_SUPPORT); in changeDirectories() 436 partition.setPhotoSupported(photoSupport == Directory.PHOTO_SUPPORT_THUMBNAIL_ONLY in changeDirectories() 437 || photoSupport == Directory.PHOTO_SUPPORT_FULL); in changeDirectories() 593 ((DirectoryPartition)partition).getDirectoryId() == Directory.DEFAULT) { in configureDefaultPartition() 763 if (uri != null && directoryId != Directory.DEFAULT) { in getContactUri()
|
D | DefaultContactListAdapter.java | 29 import android.provider.ContactsContract.Directory; 127 if (directoryId != Directory.DEFAULT && directoryId != Directory.LOCAL_INVISIBLE) { in appendSearchParameters() 150 if (directoryId == Directory.DEFAULT && isSectionHeaderDisplayEnabled()) { in configureUri() 174 if (directoryId != Directory.DEFAULT) { in configureSelection()
|
D | ContactListAdapter.java | 24 import android.provider.ContactsContract.Directory; 174 if (uri != null && directoryId != Directory.DEFAULT) { in getContactUri() 215 return directoryId != Directory.DEFAULT && directoryId != Directory.LOCAL_INVISIBLE in isSelectedContact() 324 if (mSelectedContactId != 0 && (mSelectedContactDirectoryId == Directory.DEFAULT in getSelectedContactPosition() 325 || mSelectedContactDirectoryId == Directory.LOCAL_INVISIBLE)) { in getSelectedContactPosition()
|
D | ContactBrowseListFragment.java | 33 import android.provider.ContactsContract.Directory; 260 if (mSelectedContactDirectoryId != Directory.DEFAULT in refreshSelectedContactUri() 261 && mSelectedContactDirectoryId != Directory.LOCAL_INVISIBLE) { in refreshSelectedContactUri() 354 mSelectedContactDirectoryId = TextUtils.isEmpty(directoryParam) ? Directory.DEFAULT in parseSelectedContactUri() 373 mSelectedContactDirectoryId = Directory.DEFAULT; in parseSelectedContactUri()
|
/packages/apps/Dialer/java/com/android/dialer/searchfragment/directories/ |
D | DirectoriesCursorLoader.java | 40 ContactsContract.Directory._ID, 41 ContactsContract.Directory.DISPLAY_NAME, 42 ContactsContract.Directory.PHOTO_SUPPORT, 53 ContactsContract.Directory.ENTERPRISE_CONTENT_URI, in DirectoriesCursorLoader() 57 ContactsContract.Directory._ID); in DirectoriesCursorLoader() 76 public static List<Directory> toDirectories(Cursor cursor) { in toDirectories() 82 List<Directory> directories = new ArrayList<>(); in toDirectories() 86 Directory.create( in toDirectories() 96 public abstract static class Directory { class in DirectoriesCursorLoader 97 public static Directory create(long id, @Nullable String displayName, boolean supportsPhotos) { in create()
|
D | DirectoryContactsCursorLoader.java | 30 import com.android.dialer.searchfragment.directories.DirectoriesCursorLoader.Directory; 51 private final List<Directory> directories; 54 public DirectoryContactsCursorLoader(Context context, String query, List<Directory> directories) { in DirectoryContactsCursorLoader() 70 Directory directory = directories.get(i); in loadInBackground() 72 if (!ContactsContract.Directory.isRemoteDirectoryId(directory.getId()) in loadInBackground() 73 && !ContactsContract.Directory.isEnterpriseDirectoryId(directory.getId())) { in loadInBackground()
|
D | DirectoryContactsCursor.java | 28 import com.android.dialer.searchfragment.directories.DirectoriesCursorLoader.Directory; 62 Context context, Cursor[] cursors, List<Directory> directories) { in newInstance() 80 Context context, Cursor[] cursors, List<Directory> directories) { in insertHeaders() 89 Directory directory = directories.get(i); in insertHeaders()
|
/packages/services/Car/procfs-inspector/server/ |
D | directory.cpp | 21 procfsinspector::Directory::Directory(const char* path) { in Directory() function in procfsinspector::Directory 28 bool procfsinspector::Directory::Entry::isEmpty() const { in isEmpty() 32 procfsinspector::Directory::Entry::Entry(std::string parent, std::string child) : in Entry() 41 std::string procfsinspector::Directory::Entry::str() { in str() 45 uid_t procfsinspector::Directory::Entry::getOwnerUserId() { in getOwnerUserId() 57 procfsinspector::Directory::Entry procfsinspector::Directory::next(unsigned char type) { in next()
|
D | directory.h | 30 class Directory { 52 Directory(const char* path);
|
/packages/apps/Contacts/src/com/android/contacts/compat/ |
D | DirectorySdkCompat.java | 20 import android.provider.ContactsContract.Directory; 26 public static final Uri ENTERPRISE_CONTENT_URI = Directory.ENTERPRISE_CONTENT_URI; 27 public static final long ENTERPRISE_LOCAL_DEFAULT = Directory.ENTERPRISE_DEFAULT; 28 public static final long ENTERPRISE_LOCAL_INVISIBLE = Directory.ENTERPRISE_LOCAL_INVISIBLE; 31 return CompatUtils.isNCompatible() ? Directory.isRemoteDirectoryId(directoryId) : false; in isRemoteDirectoryId() 35 return CompatUtils.isNCompatible() ? Directory.isEnterpriseDirectoryId(directoryId) : false; in isEnterpriseDirectoryId()
|
D | DirectoryCompat.java | 20 import android.provider.ContactsContract.Directory; 30 return Directory.CONTENT_URI; in getContentUri() 35 return (directoryId == Directory.LOCAL_INVISIBLE in isInvisibleDirectory() 38 return directoryId == Directory.LOCAL_INVISIBLE; in isInvisibleDirectory() 45 return !(directoryId == Directory.DEFAULT || directoryId == Directory.LOCAL_INVISIBLE); in isRemoteDirectoryId()
|
/packages/apps/Dialer/java/com/android/dialer/common/cp2/ |
D | DirectoryUtils.java | 19 import android.provider.ContactsContract.Directory; 26 return directoryId == Directory.LOCAL_INVISIBLE in isInvisibleDirectoryId() 27 || directoryId == Directory.ENTERPRISE_LOCAL_INVISIBLE; in isInvisibleDirectoryId() 32 return Directory.isEnterpriseDirectoryId(directoryId) in isLocalEnterpriseDirectoryId() 33 && !Directory.isRemoteDirectoryId(directoryId); in isLocalEnterpriseDirectoryId()
|
/packages/apps/Dialer/java/com/android/dialer/phonelookup/cp2/ |
D | Cp2ExtendedDirectoryPhoneLookup.java | 23 import android.provider.ContactsContract.Directory; 130 Directory.ENTERPRISE_CONTENT_URI, in queryCp2ForExtendedDirectoryIds() 131 /* projection = */ new String[] {ContactsContract.Directory._ID}, in queryCp2ForExtendedDirectoryIds() 134 /* sortOrder = */ ContactsContract.Directory._ID)) { in queryCp2ForExtendedDirectoryIds() 148 int idColumnIndex = cursor.getColumnIndexOrThrow(ContactsContract.Directory._ID); in queryCp2ForExtendedDirectoryIds() 242 return Directory.isRemoteDirectoryId(directoryId) 243 || Directory.isEnterpriseDirectoryId(directoryId);
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | ContactLoader.java | 36 import android.provider.ContactsContract.Directory; 273 Directory.DISPLAY_NAME, 274 Directory.PACKAGE_NAME, 275 Directory.TYPE_RESOURCE_ID, 276 Directory.ACCOUNT_TYPE, 277 Directory.ACCOUNT_NAME, 278 Directory.EXPORT_SUPPORT, 391 final String directoryName = uri.getQueryParameter(Directory.DISPLAY_NAME); in loadEncodedContactEntity() 395 json.optInt(Directory.EXPORT_SUPPORT, in loadEncodedContactEntity() 396 Directory.EXPORT_SUPPORT_SAME_ACCOUNT_ONLY)); in loadEncodedContactEntity() [all …]
|
/packages/apps/Dialer/java/com/android/contacts/common/model/ |
D | ContactLoader.java | 35 import android.provider.ContactsContract.Directory; 155 final String directoryName = uri.getQueryParameter(Directory.DISPLAY_NAME); in loadEncodedContactEntity() 163 json.optInt(Directory.EXPORT_SUPPORT, Directory.EXPORT_SUPPORT_SAME_ACCOUNT_ONLY)); in loadEncodedContactEntity() 170 json.optInt(Directory.EXPORT_SUPPORT, Directory.EXPORT_SUPPORT_ANY_ACCOUNT)); in loadEncodedContactEntity() 419 directoryParameter == null ? Directory.DEFAULT : Long.parseLong(directoryParameter); in loadContactHeaderData() 439 if (directoryId == Directory.DEFAULT || directoryId == Directory.LOCAL_INVISIBLE) { in loadContactHeaderData() 555 ContentUris.withAppendedId(Directory.CONTENT_URI, directoryId), in loadDirectoryMetaData() 941 Directory.DISPLAY_NAME, 942 Directory.PACKAGE_NAME, 943 Directory.TYPE_RESOURCE_ID, [all …]
|
/packages/modules/Virtualization/zipfuse/src/ |
D | inode.rs | 55 Directory(HashMap<CString, DirectoryEntry>), enumerator 67 Directory, enumerator 73 matches!(&self.data, InodeDataData::Directory(_)) in is_dir() 78 InodeDataData::Directory(hash) => Some(hash), in get_directory() 94 InodeData { mode, size: 0, data: InodeDataData::Directory(HashMap::new()) } in new_dir() 107 InodeDataData::Directory(hashtable) => { in add_to_directory() 155 let kind = if data.is_dir() { InodeKind::Directory } else { InodeKind::File }; in add()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | ContactUtil.java | 29 import android.provider.ContactsContract.Directory; 235 ContactsContract.DIRECTORY_PARAM_KEY, String.valueOf(Directory.DEFAULT)) in getPhones() 297 return filterPhonesInternal(context, Phone.CONTENT_FILTER_URI, query, Directory.DEFAULT); in filterPhones() 306 Directory.ENTERPRISE_DEFAULT); in filterPhonesEnterprise() 361 return filterEmailsInternal(context, Email.CONTENT_FILTER_URI, query, Directory.DEFAULT); in filterEmails() 370 Directory.ENTERPRISE_DEFAULT); in filterEmailsEnterprise() 400 ContactsContract.DIRECTORY_PARAM_KEY, String.valueOf(Directory.DEFAULT)) in lookupEmail()
|
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/ |
D | ContactInfoHelper.java | 26 import android.provider.ContactsContract.Directory; 109 if (Directory.isEnterpriseDirectoryId(directoryId)) { in lookUpDisplayNameAlternative() 114 if (Directory.isRemoteDirectoryId(directoryId)) { in lookUpDisplayNameAlternative() 281 Uri uri = Directory.ENTERPRISE_CONTENT_URI; in getRemoteDirectories() 283 context.getContentResolver().query(uri, new String[] {Directory._ID}, null, null, null); in getRemoteDirectories() 287 int idIndex = cursor.getColumnIndex(Directory._ID); in getRemoteDirectories() 291 if (Directory.isRemoteDirectoryId(directoryId)) { in getRemoteDirectories()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/enterprise/ |
D | EnterpriseContactsCursorWrapper.java | 30 import android.provider.ContactsContract.Directory; 65 && Directory.isRemoteDirectoryId(directoryId); in EnterpriseContactsCursorWrapper() 150 Uri.Builder builder = Directory.ENTERPRISE_FILE_URI.buildUpon(); in getRemoteDirectoryFileUri()
|
/packages/apps/Dialer/java/com/android/contacts/common/ |
D | ContactsUtils.java | 20 import android.provider.ContactsContract.Directory; 63 return Directory.isEnterpriseDirectoryId(directoryId) ? USER_TYPE_WORK : USER_TYPE_CURRENT; in determineUserType()
|