/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestProvidersAccess.java | 64 DOWNLOADS.rootId = Providers.ROOT_ID_DOWNLOADS; 74 HOME.rootId = Providers.ROOT_ID_HOME; 85 HAMMY.rootId = "hamsandwich"; 93 PICKLES.rootId = "pickles"; 111 INSPECTOR.rootId = InspectorProvider.ROOT_ID; 119 IMAGE.rootId = Providers.ROOT_ID_IMAGES; 126 AUDIO.rootId = Providers.ROOT_ID_AUDIO; 133 VIDEO.rootId = Providers.ROOT_ID_VIDEOS; 140 DOCUMENT.rootId = Providers.ROOT_ID_DOCUMENTS; 147 EXTERNALSTORAGE.rootId = Providers.ROOT_ID_DEVICE; [all …]
|
D | TestDocumentsProvider.java | 90 public Cursor queryRecentDocuments(String rootId, String[] projection) { in queryRecentDocuments() argument 95 public Cursor querySearchDocuments(String rootId, String query, String[] projection) { in querySearchDocuments() argument
|
D | Roots.java | 27 root.rootId = id; in create()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | RootInfo.java | 93 public String rootId; field in RootInfo 119 rootId = null; in reset() 148 rootId = DurableUtils.readNullableString(in); in read() 169 DurableUtils.writeNullableString(out, rootId); in write() 210 newRoot.rootId = root.rootId; in copyRootInfo() 231 root.rootId = getCursorString(cursor, Root.COLUMN_ROOT_ID); in fromRootsCursor() 290 return DocumentsContract.buildRootUri(authority, rootId); in getUri() 298 return authority == null && rootId == null; in isRecents() 308 return isExternalStorage() && "home".equals(rootId); in isExternalStorageHome() 321 && Providers.ROOT_ID_IMAGES.equals(rootId); in isImages() [all …]
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | StubProvider.java | 129 for (String rootId : rootIds) { in clearCacheAndBuildRoots() 131 final File file = new File(getContext().getCacheDir(), rootId); in clearCacheAndBuildRoots() 135 final RootInfo rootInfo = new RootInfo(file, getSize(rootId)); in clearCacheAndBuildRoots() 137 if(rootId.equals(ROOT_1_ID)) { in clearCacheAndBuildRoots() 142 mRoots.put(rootId, rootInfo); in clearCacheAndBuildRoots() 151 private long getSize(String rootId) { in getSize() argument 152 final String key = STORAGE_SIZE_KEY + "." + rootId; in getSize() 288 public Cursor queryRecentDocuments(String rootId, String[] projection) in queryRecentDocuments() argument 296 public Cursor querySearchDocuments(String rootId, String query, String[] projection) in querySearchDocuments() argument 299 StubDocument parentDocument = mRoots.get(rootId).document; in querySearchDocuments() [all …]
|
D | TestRootProvider.java | 59 public TestRootProvider(String rootName, String rootId, int flags, String rootDocId) { in TestRootProvider() argument 61 mRootId = rootId; in TestRootProvider()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/ |
D | RootInfoTest.java | 36 rootInfo.rootId = "root"; in testEquals_sameUser() 41 rootInfo2.rootId = "root"; in testEquals_sameUser() 51 rootInfo.rootId = "root"; in testNotEquals_differentUser() 56 rootInfo2.rootId = "root"; in testNotEquals_differentUser() 66 rootInfo.rootId = "root"; in testCopyInfo_equal()
|
D | DocumentStackTest.java | 51 ROOT_1.rootId = "home"; 53 ROOT_2.rootId = "downloads";
|
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/ |
D | LoadFirstRootTask.java | 42 String rootId = null; in getRootId() local 47 rootId = roots.iterator().next().rootId; in getRootId() 50 return rootId; in getRootId()
|
D | ProvidersCache.java | 208 assert (recentRoot.rootId == null); 397 public RootInfo getRootOneshot(UserId userId, String authority, String rootId) { 398 return getRootOneshot(userId, authority, rootId, false); 401 public RootInfo getRootOneshot(UserId userId, String authority, String rootId, 405 RootInfo root = forceRefresh ? null : getRootLocked(userAuthority, rootId); 409 root = getRootLocked(userAuthority, rootId); 415 public RootInfo getRootBlocking(UserId userId, String authority, String rootId) { 419 return getRootLocked(new UserAuthority(userId, authority), rootId); 423 private RootInfo getRootLocked(UserAuthority userAuthority, String rootId) { 425 if (Objects.equals(root.rootId, rootId)) {
|
D | RootCursorWrapper.java | 51 public RootCursorWrapper(UserId userId, String authority, String rootId, Cursor cursor, in RootCursorWrapper() argument 55 mRootId = rootId; in RootCursorWrapper()
|
D | ProvidersAccess.java | 48 RootInfo getRootOneshot(UserId userId, String authority, String rootId); in getRootOneshot() argument
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | Metrics.java | 400 String rootId = getRootIdSafely(uri); in sanitizeRoot() local 401 if (rootId == null) { in sanitizeRoot() 404 switch (rootId) { in sanitizeRoot() 417 rootId = getRootIdSafely(uri); in sanitizeRoot() 418 if (rootId == null) { in sanitizeRoot() 421 if (Providers.ROOT_ID_HOME.equals(rootId)) { in sanitizeRoot()
|
D | GlobalSearchLoader.java | 110 rootInfo.rootId, "" /* query */); in getQueryUri() 115 return new RootCursorWrapper(rootInfo.userId, authority, rootInfo.rootId, oriCursor, in generateResultCursor()
|
D | LoadDocStackTask.java | 100 final String rootId = path.getRootId(); in buildStack() local 101 if (rootId == null) { in buildStack()
|
D | RecentsLoader.java | 99 return DocumentsContract.buildRecentDocumentsUri(authority, rootInfo.rootId); in getQueryUri() 104 return new RootCursorWrapper(rootInfo.userId, authority, rootInfo.rootId, oriCursor, in generateResultCursor()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/ |
D | EjectRootTask.java | 48 String rootId, in EjectRootTask() argument 52 mRootId = rootId; in EjectRootTask()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/ |
D | AvrcpNativeInterface.java | 182 void setBrowsedPlayerResponse(int playerId, boolean success, String rootId, int numItems) { in setBrowsedPlayerResponse() argument 189 + rootId in setBrowsedPlayerResponse() 192 setBrowsedPlayerResponseNative(playerId, success, rootId, numItems); in setBrowsedPlayerResponse() 391 int playerId, boolean success, String rootId, int numItems); in setBrowsedPlayerResponseNative() argument
|
/packages/modules/HealthFitness/tests/integrationtests/utils/HealthConnectDocumentProviderTestUtils/src/android/healthconnect/tests/documentprovider/utils/ |
D | DocumentProviderRoot.java | 80 public DocumentProviderRoot setRootId(String rootId) { in setRootId() argument 81 mRootId = rootId; in setRootId()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaDocumentsProvider.java | 835 public Cursor queryRecentDocuments(String rootId, String[] projection, in queryRecentDocuments() argument 862 if (TYPE_IMAGES_ROOT.equals(rootId)) { in queryRecentDocuments() 870 } else if (TYPE_VIDEOS_ROOT.equals(rootId)) { in queryRecentDocuments() 878 } else if (TYPE_DOCUMENTS_ROOT.equals(rootId)) { in queryRecentDocuments() 889 throw new UnsupportedOperationException("Unsupported root " + rootId); in queryRecentDocuments() 899 public Cursor querySearchDocuments(String rootId, String[] projection, Bundle queryArgs) in querySearchDocuments() argument 918 if (TYPE_IMAGES_ROOT.equals(rootId)) { in querySearchDocuments() 941 } else if (TYPE_VIDEOS_ROOT.equals(rootId)) { in querySearchDocuments() 960 } else if (TYPE_AUDIO_ROOT.equals(rootId)) { in querySearchDocuments() 980 } else if (TYPE_DOCUMENTS_ROOT.equals(rootId)) { in querySearchDocuments() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | AbstractActionHandlerTest.java | 156 TestProvidersAccess.HOME.rootId, in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation() 200 TestProvidersAccess.HOME.rootId, in testOpensContainerDocuments_ClickArchiveInSearch_opensArchiveInArchiveProvider() 235 TestProvidersAccess.HOME.rootId, in testLaunchToDocuments() 261 TestProvidersAccess.HOME.rootId, in testLaunchToDocuments_convertsTreeUriToDocumentUri()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/prefs/ |
D | LocalPreferences.java | 69 return prefix + root.authority + root.rootId; in createKey()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | DirectoryState.java | 79 builder.append(mRoot != null ? mRoot.rootId : "null").append(';'); in getConfigKey()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/ |
D | ActionHandlerTest.java | 203 TestProvidersAccess.HOME.rootId, in testInitLocation_LaunchToDocuments() 270 String rootId = TestProvidersAccess.NO_TREE_ROOT.rootId; in testInitLocation_DefaultToDeviceRoot_ActionOpenTree_RootDoesNotSupportChildren() local 271 Uri hintUri = DocumentsContract.buildRootUri(authority, rootId); in testInitLocation_DefaultToDeviceRoot_ActionOpenTree_RootDoesNotSupportChildren()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadStorageProvider.java | 184 final String rootId = (parentDocId == null) ? DOC_ID_ROOT : null; in findDocumentPath() local 194 return new Path(rootId, findDocumentPath(parent, doc)); in findDocumentPath() 357 public Cursor queryRecentDocuments(String rootId, String[] projection, in queryRecentDocuments() argument 427 public Cursor querySearchDocuments(String rootId, String[] projection, Bundle queryArgs) in querySearchDocuments() argument
|