/packages/services/Mtp/src/com/android/mtp/ |
D | MtpDatabaseConstants.java | 22 import android.provider.DocumentsContract.Root; 62 Root.COLUMN_ROOT_ID); 118 static final String SELECTION_ROOT_ID = Root.COLUMN_ROOT_ID + " = ?"; 141 Root.COLUMN_ROOT_ID + " INTEGER PRIMARY KEY," + 142 Root.COLUMN_FLAGS + " INTEGER NOT NULL," + 143 Root.COLUMN_AVAILABLE_BYTES + " INTEGER," + 144 Root.COLUMN_CAPACITY_BYTES + " INTEGER," + 145 Root.COLUMN_MIME_TYPES + " TEXT NOT NULL);"; 157 COLUMN_MAP_ROOTS.put(Root.COLUMN_ROOT_ID, TABLE_ROOT_EXTRA + "." + Root.COLUMN_ROOT_ID); in COLUMN_MAP_ROOTS.put() 158 COLUMN_MAP_ROOTS.put(Root.COLUMN_FLAGS, TABLE_ROOT_EXTRA + "." + Root.COLUMN_FLAGS); in COLUMN_MAP_ROOTS.put() [all …]
|
D | MtpDatabase.java | 40 import android.provider.DocumentsContract.Root; 174 storageCursor.getColumnIndex(Root.COLUMN_CAPACITY_BYTES); in queryRoots() 176 storageCursor.getColumnIndex(Root.COLUMN_AVAILABLE_BYTES); in queryRoots() 187 values.put(Root.COLUMN_CAPACITY_BYTES, capacityBytes); in queryRoots() 188 values.put(Root.COLUMN_AVAILABLE_BYTES, availableBytes); in queryRoots() 190 values.putNull(Root.COLUMN_CAPACITY_BYTES); in queryRoots() 191 values.putNull(Root.COLUMN_AVAILABLE_BYTES); in queryRoots() 193 if (storageCursor.getCount() == 1 && values.containsKey(Root.COLUMN_TITLE)) { in queryRoots() 197 Root.COLUMN_TITLE, in queryRoots() 200 values.getAsString(Root.COLUMN_TITLE), in queryRoots() [all …]
|
D | MtpDocumentsProvider.java | 44 import android.provider.DocumentsContract.Root; 73 Root.COLUMN_ROOT_ID, Root.COLUMN_FLAGS, Root.COLUMN_ICON, 74 Root.COLUMN_TITLE, Root.COLUMN_DOCUMENT_ID, 75 Root.COLUMN_AVAILABLE_BYTES,
|
/packages/modules/HealthFitness/tests/integrationtests/utils/HealthConnectDocumentProviderTestUtils/src/android/healthconnect/tests/documentprovider/utils/ |
D | DocumentProviderRoot.java | 37 mRootId = bundle.getString(DocumentsContract.Root.COLUMN_ROOT_ID); in DocumentProviderRoot() 38 mTitle = bundle.getString(DocumentsContract.Root.COLUMN_TITLE); in DocumentProviderRoot() 39 mSummary = bundle.getString(DocumentsContract.Root.COLUMN_SUMMARY); in DocumentProviderRoot() 41 if (bundle.containsKey(DocumentsContract.Root.COLUMN_FLAGS)) { in DocumentProviderRoot() 42 mFlags = bundle.getInt(DocumentsContract.Root.COLUMN_FLAGS); in DocumentProviderRoot() 45 if (bundle.containsKey(DocumentsContract.Root.COLUMN_ICON)) { in DocumentProviderRoot() 46 mIconResourceId = bundle.getInt(DocumentsContract.Root.COLUMN_ICON); in DocumentProviderRoot() 49 mMimeTypes = bundle.getString(DocumentsContract.Root.COLUMN_MIME_TYPES); in DocumentProviderRoot() 55 row.add(DocumentsContract.Root.COLUMN_ROOT_ID, mRootId); in build() 59 row.add(DocumentsContract.Root.COLUMN_TITLE, mTitle); in build() [all …]
|
D | FakeDocumentProviderRoots.java | 31 DocumentsContract.Root.COLUMN_ROOT_ID, 32 DocumentsContract.Root.COLUMN_TITLE, 33 DocumentsContract.Root.COLUMN_SUMMARY, 34 DocumentsContract.Root.COLUMN_FLAGS, 35 DocumentsContract.Root.COLUMN_ICON, 36 DocumentsContract.Root.COLUMN_MIME_TYPES,
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestProvidersAccess.java | 20 import android.provider.DocumentsContract.Root; 60 flags = Root.FLAG_SUPPORTS_CREATE; 67 DOWNLOADS.flags = Root.FLAG_LOCAL_ONLY 68 | Root.FLAG_SUPPORTS_CREATE 69 | Root.FLAG_SUPPORTS_RECENTS; 77 HOME.flags = Root.FLAG_LOCAL_ONLY 78 | Root.FLAG_SUPPORTS_CREATE 79 | Root.FLAG_SUPPORTS_IS_CHILD 80 | Root.FLAG_SUPPORTS_RECENTS; 88 HAMMY.flags = Root.FLAG_LOCAL_ONLY; [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | GlobalSearchLoaderTest.java | 105 TestProvidersAccess.DOWNLOADS.flags |= DocumentsContract.Root.FLAG_SUPPORTS_SEARCH; in setUp() 110 TestProvidersAccess.DOWNLOADS.flags &= ~DocumentsContract.Root.FLAG_SUPPORTS_SEARCH; in tearDown() 115 TestProvidersAccess.PICKLES.flags |= DocumentsContract.Root.FLAG_LOCAL_ONLY; in testNotSearchableRoot_beIgnored() 117 TestProvidersAccess.PICKLES.flags &= ~DocumentsContract.Root.FLAG_LOCAL_ONLY; in testNotSearchableRoot_beIgnored() 123 TestProvidersAccess.PICKLES.flags |= DocumentsContract.Root.FLAG_SUPPORTS_SEARCH; in testNotLocalOnlyRoot_beIgnored() 125 TestProvidersAccess.PICKLES.flags &= ~DocumentsContract.Root.FLAG_SUPPORTS_SEARCH; in testNotLocalOnlyRoot_beIgnored() 130 TestProvidersAccess.HOME.flags |= DocumentsContract.Root.FLAG_SUPPORTS_SEARCH; in testShowAdvance_storageRoot_beIgnored() 132 TestProvidersAccess.HOME.flags &= ~(DocumentsContract.Root.FLAG_SUPPORTS_SEARCH); in testShowAdvance_storageRoot_beIgnored() 208 TestProvidersAccess.PICKLES.flags |= (DocumentsContract.Root.FLAG_SUPPORTS_SEARCH in testSearchResult_includeDirectory_excludedOtherUsers() 209 | DocumentsContract.Root.FLAG_LOCAL_ONLY); in testSearchResult_includeDirectory_excludedOtherUsers() [all …]
|
/packages/apps/Traceur/src/com/android/traceur/ |
D | StorageProvider.java | 28 import android.provider.DocumentsContract.Root; 50 Root.COLUMN_ROOT_ID, 51 Root.COLUMN_ICON, 52 Root.COLUMN_TITLE, 53 Root.COLUMN_FLAGS, 54 Root.COLUMN_DOCUMENT_ID, 81 row.add(Root.COLUMN_ROOT_ID, DOC_ID_ROOT); in queryRoots() 82 row.add(Root.COLUMN_FLAGS, Root.FLAG_LOCAL_ONLY); in queryRoots() 83 row.add(Root.COLUMN_MIME_TYPES, MIME_TYPE); in queryRoots() 84 row.add(Root.COLUMN_ICON, R.drawable.bugfood_icon_green); in queryRoots() [all …]
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | TestRootProvider.java | 26 import android.provider.DocumentsContract.Root; 38 Root.COLUMN_ROOT_ID, 39 Root.COLUMN_FLAGS, 40 Root.COLUMN_TITLE, 41 Root.COLUMN_DOCUMENT_ID, 42 Root.COLUMN_AVAILABLE_BYTES 71 row.add(Root.COLUMN_ROOT_ID, mRootId); in queryRoots() 72 row.add(Root.COLUMN_TITLE, mRootName); in queryRoots() 73 row.add(Root.COLUMN_FLAGS, mFlags); in queryRoots() 74 row.add(Root.COLUMN_DOCUMENT_ID, mRootDocId); in queryRoots() [all …]
|
D | StubProvider.java | 37 import android.provider.DocumentsContract.Root; 84 Root.COLUMN_ROOT_ID, Root.COLUMN_FLAGS, Root.COLUMN_TITLE, Root.COLUMN_DOCUMENT_ID, 85 Root.COLUMN_AVAILABLE_BYTES 164 row.add(Root.COLUMN_ROOT_ID, id); in queryRoots() 165 row.add(Root.COLUMN_FLAGS, info.flags); in queryRoots() 166 row.add(Root.COLUMN_TITLE, id); in queryRoots() 167 row.add(Root.COLUMN_DOCUMENT_ID, info.document.documentId); in queryRoots() 168 row.add(Root.COLUMN_AVAILABLE_BYTES, info.getRemainingCapacity()); in queryRoots() 788 private static final int DEFAULT_ROOTS_FLAGS = Root.FLAG_SUPPORTS_SEARCH 789 | Root.FLAG_SUPPORTS_CREATE | Root.FLAG_SUPPORTS_IS_CHILD; [all …]
|
D | PagingProvider.java | 22 import android.provider.DocumentsContract.Root; 40 private static final int ROOT_FLAGS = Root.FLAG_SUPPORTS_SEARCH | Root.FLAG_SUPPORTS_IS_CHILD;
|
D | BrokenProvider.java | 20 import android.provider.DocumentsContract.Root; 42 Root.FLAG_SUPPORTS_CREATE, in BrokenProvider()
|
/packages/services/Mtp/tests/src/com/android/mtp/ |
D | MtpDatabaseTest.java | 31 import android.provider.DocumentsContract.Root; 116 Root.COLUMN_ROOT_ID, in testPutSingleStorageDocuments() 117 Root.COLUMN_FLAGS, in testPutSingleStorageDocuments() 118 Root.COLUMN_ICON, in testPutSingleStorageDocuments() 119 Root.COLUMN_TITLE, in testPutSingleStorageDocuments() 120 Root.COLUMN_SUMMARY, in testPutSingleStorageDocuments() 121 Root.COLUMN_DOCUMENT_ID, in testPutSingleStorageDocuments() 122 Root.COLUMN_AVAILABLE_BYTES, in testPutSingleStorageDocuments() 123 Root.COLUMN_CAPACITY_BYTES in testPutSingleStorageDocuments() 128 assertEquals(1, getInt(cursor, Root.COLUMN_ROOT_ID)); in testPutSingleStorageDocuments() [all …]
|
D | MtpDocumentsProviderTest.java | 31 import android.provider.DocumentsContract.Root; 151 DocumentsContract.Root.COLUMN_TITLE, in testOpenDeviceOnDemand() 152 DocumentsContract.Root.COLUMN_DOCUMENT_ID in testOpenDeviceOnDemand() 217 Root.FLAG_SUPPORTS_IS_CHILD | in testQueryRoots() 218 Root.FLAG_SUPPORTS_CREATE | in testQueryRoots() 219 Root.FLAG_LOCAL_ONLY, in testQueryRoots() 236 Root.FLAG_SUPPORTS_IS_CHILD | Root.FLAG_LOCAL_ONLY, cursor.getInt(1)); in testQueryRoots() 283 Root.FLAG_SUPPORTS_IS_CHILD | Root.FLAG_SUPPORTS_CREATE | Root.FLAG_LOCAL_ONLY, in testQueryRoots_error() 293 Root.FLAG_SUPPORTS_IS_CHILD | Root.FLAG_SUPPORTS_CREATE | Root.FLAG_LOCAL_ONLY, in testQueryRoots_error() 961 return getStrings(mProvider.queryRoots(strings(DocumentsContract.Root.COLUMN_ROOT_ID))); in setupRoots()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | RootInfo.java | 34 import android.provider.DocumentsContract.Root; 231 root.rootId = getCursorString(cursor, Root.COLUMN_ROOT_ID); in fromRootsCursor() 232 root.flags = getCursorInt(cursor, Root.COLUMN_FLAGS); in fromRootsCursor() 233 root.icon = getCursorInt(cursor, Root.COLUMN_ICON); in fromRootsCursor() 234 root.title = getCursorString(cursor, Root.COLUMN_TITLE); in fromRootsCursor() 235 root.summary = getCursorString(cursor, Root.COLUMN_SUMMARY); in fromRootsCursor() 236 root.documentId = getCursorString(cursor, Root.COLUMN_DOCUMENT_ID); in fromRootsCursor() 237 root.availableBytes = getCursorLong(cursor, Root.COLUMN_AVAILABLE_BYTES); in fromRootsCursor() 238 root.mimeTypes = getCursorString(cursor, Root.COLUMN_MIME_TYPES); in fromRootsCursor() 239 root.queryArgs = getCursorString(cursor, Root.COLUMN_QUERY_ARGS); in fromRootsCursor() [all …]
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/exportimport/ |
D | DocumentProvidersManager.java | 105 int titleIndex = cursor.getColumnIndex(DocumentsContract.Root.COLUMN_TITLE); in readDocumentProvidersFromCursor() 106 int summaryIndex = cursor.getColumnIndex(DocumentsContract.Root.COLUMN_SUMMARY); in readDocumentProvidersFromCursor() 107 int iconResourceIndex = cursor.getColumnIndex(DocumentsContract.Root.COLUMN_ICON); in readDocumentProvidersFromCursor() 108 int rootDocumentIndex = cursor.getColumnIndex(DocumentsContract.Root.COLUMN_ROOT_ID); in readDocumentProvidersFromCursor() 129 int flagsIndex = cursor.getColumnIndex(DocumentsContract.Root.COLUMN_FLAGS); in isDocumentProviderSupported() 132 if ((flags & DocumentsContract.Root.FLAG_LOCAL_ONLY) in isDocumentProviderSupported() 133 == DocumentsContract.Root.FLAG_LOCAL_ONLY) { in isDocumentProviderSupported() 137 if ((flags & DocumentsContract.Root.FLAG_SUPPORTS_CREATE) in isDocumentProviderSupported() 138 != DocumentsContract.Root.FLAG_SUPPORTS_CREATE) { in isDocumentProviderSupported() 142 int mimeTypesIndex = cursor.getColumnIndex(DocumentsContract.Root.COLUMN_MIME_TYPES); in isDocumentProviderSupported()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/ |
D | ResourcesProvider.java | 27 import android.provider.DocumentsContract.Root; 45 Root.COLUMN_ROOT_ID, Root.COLUMN_FLAGS, Root.COLUMN_TITLE, Root.COLUMN_DOCUMENT_ID 82 row.add(Root.COLUMN_ROOT_ID, "root-id"); in queryRoots() 83 row.add(Root.COLUMN_FLAGS, 0); in queryRoots() 84 row.add(Root.COLUMN_TITLE, "ResourcesProvider"); in queryRoots() 85 row.add(Root.COLUMN_DOCUMENT_ID, "root-document-id"); in queryRoots()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaDocumentsProvider.java | 48 import android.provider.DocumentsContract.Root; 99 Root.COLUMN_ROOT_ID, Root.COLUMN_FLAGS, Root.COLUMN_ICON, 100 Root.COLUMN_TITLE, Root.COLUMN_DOCUMENT_ID, Root.COLUMN_MIME_TYPES, 101 Root.COLUMN_QUERY_ARGS 1118 int flags = Root.FLAG_LOCAL_ONLY | Root.FLAG_SUPPORTS_RECENTS | Root.FLAG_SUPPORTS_SEARCH; in includeImagesRoot() 1120 flags |= Root.FLAG_EMPTY; in includeImagesRoot() 1125 row.add(Root.COLUMN_ROOT_ID, TYPE_IMAGES_ROOT); in includeImagesRoot() 1126 row.add(Root.COLUMN_FLAGS, flags); in includeImagesRoot() 1127 row.add(Root.COLUMN_TITLE, getContext().getString(R.string.root_images)); in includeImagesRoot() 1128 row.add(Root.COLUMN_DOCUMENT_ID, TYPE_IMAGES_ROOT); in includeImagesRoot() [all …]
|
/packages/apps/DocumentsUI/perf-tests/src/com/android/documentsui/ |
D | StressProvider.java | 30 import android.provider.DocumentsContract.Root; 71 Root.COLUMN_ROOT_ID, Root.COLUMN_FLAGS, Root.COLUMN_TITLE, Root.COLUMN_DOCUMENT_ID, 72 Root.COLUMN_AVAILABLE_BYTES 180 row.add(Root.COLUMN_ROOT_ID, root.id); in includeRoot() 181 row.add(Root.COLUMN_FLAGS, 0); in includeRoot() 182 row.add(Root.COLUMN_TITLE, root.id); in includeRoot() 183 row.add(Root.COLUMN_DOCUMENT_ID, root.documentId); in includeRoot()
|
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/exportimport/ |
D | QueryDocumentProvidersTest.java | 123 .setFlags(DocumentsContract.Root.FLAG_SUPPORTS_CREATE) in queryDocumentProviders_singleRoot_returnsRoot() 145 DocumentsContract.Root.FLAG_SUPPORTS_CREATE in queryDocumentProviders_singleRootLocalOnly_returnsEmpty() 146 | DocumentsContract.Root.FLAG_LOCAL_ONLY) in queryDocumentProviders_singleRootLocalOnly_returnsEmpty() 181 .setFlags(DocumentsContract.Root.FLAG_SUPPORTS_CREATE) in queryDocumentProviders_singleRootDoesNotSupportZipMimeType_returnsEmpty() 199 .setFlags(DocumentsContract.Root.FLAG_SUPPORTS_CREATE) in queryDocumentProviders_singleRootSupportsMultipleMimeTypes_returnsRoot() 221 .setFlags(DocumentsContract.Root.FLAG_SUPPORTS_CREATE) in queryDocumentProviders_singleRootSupportsAllMimeTypes_returnsRoot() 241 .setFlags(DocumentsContract.Root.FLAG_SUPPORTS_CREATE) in queryDocumentProviders_multipleRoots_returnsRoots() 251 .setFlags(DocumentsContract.Root.FLAG_SUPPORTS_CREATE) in queryDocumentProviders_multipleRoots_returnsRoots() 279 .setFlags(DocumentsContract.Root.FLAG_SUPPORTS_CREATE) in queryDocumentProviders_secondDocumentProviderThrowsException_returnsRoot() 303 .setFlags(DocumentsContract.Root.FLAG_SUPPORTS_CREATE) in queryDocumentProviders_singleRootFromMultipleDocumentProviders_returnsRoots() [all …]
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadStorageProvider.java | 48 import android.provider.DocumentsContract.Root; 87 Root.COLUMN_ROOT_ID, Root.COLUMN_FLAGS, Root.COLUMN_ICON, 88 Root.COLUMN_TITLE, Root.COLUMN_DOCUMENT_ID, Root.COLUMN_QUERY_ARGS 169 row.add(Root.COLUMN_ROOT_ID, DOC_ID_ROOT); in queryRoots() 170 row.add(Root.COLUMN_FLAGS, Root.FLAG_LOCAL_ONLY | Root.FLAG_SUPPORTS_RECENTS in queryRoots() 171 | Root.FLAG_SUPPORTS_CREATE | Root.FLAG_SUPPORTS_SEARCH); in queryRoots() 172 row.add(Root.COLUMN_ICON, R.mipmap.ic_launcher_download); in queryRoots() 173 row.add(Root.COLUMN_TITLE, getContext().getString(R.string.root_downloads)); in queryRoots() 174 row.add(Root.COLUMN_DOCUMENT_ID, DOC_ID_ROOT); in queryRoots() 175 row.add(Root.COLUMN_QUERY_ARGS, SUPPORTED_QUERY_ARGS); in queryRoots()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/ |
D | ArchivesProvider.java | 32 import android.provider.DocumentsContract.Root; 60 Root.COLUMN_ROOT_ID, Root.COLUMN_DOCUMENT_ID, Root.COLUMN_TITLE, Root.COLUMN_FLAGS, 61 Root.COLUMN_ICON};
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/ |
D | MenuManagerTest.java | 25 import android.provider.DocumentsContract.Root; 707 testRootInfo.flags = Root.FLAG_SUPPORTS_CREATE; in testRootContextMenu() 719 testRootInfo.flags = Root.FLAG_HAS_SETTINGS; in testRootContextMenu_HasRootSettings() 735 testRootInfo.flags = Root.FLAG_SUPPORTS_CREATE; in testRootContextMenu_NothingToPaste() 745 testRootInfo.flags = Root.FLAG_SUPPORTS_CREATE; in testRootContextMenu_PasteIntoWritableRoot() 755 testRootInfo.flags = Root.FLAG_SUPPORTS_EJECT; in testRootContextMenu_Eject() 763 testRootInfo.flags = Root.FLAG_SUPPORTS_EJECT; in testRootContextMenu_EjectInProcess()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | PickResult.java | 30 private @MetricConsts.Root int mRoot; 133 public void setRoot(@MetricConsts.Root int root) { in setRoot()
|
/packages/modules/Bluetooth/system/gd/docs/testing/ |
D | cert_test.md | 54 **gRPC Root Server Port** 65 should have no knowledge of how this component works * **Root-Canal**: A 126 * gRPC Root Server Port: 8896 130 * gRPC Root Server Port: 8897 139 (`ssh -L`). Both gRPC Root Server Port and gRPC Facade Port need to be 204 * rootcanal_logs.txt: Root-Canal stdout and stderrr, host test only
|