/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestProvidersAccess.java | 53 DOWNLOADS.rootId = Providers.ROOT_ID_DOWNLOADS; 63 HOME.rootId = Providers.ROOT_ID_HOME; 73 HAMMY.rootId = "hamsandwich"; 80 PICKLES.rootId = "pickles"; 93 INSPECTOR.rootId = InspectorProvider.ROOT_ID; 100 IMAGE.rootId = Providers.ROOT_ID_IMAGES; 106 AUDIO.rootId = Providers.ROOT_ID_AUDIO; 112 VIDEO.rootId = Providers.ROOT_ID_VIDEOS; 118 EXTERNALSTORAGE.rootId = Providers.ROOT_ID_DEVICE; 148 public RootInfo getRootOneshot(String authority, String rootId) { in getRootOneshot() argument [all …]
|
D | TestDocumentsProvider.java | 89 public Cursor queryRecentDocuments(String rootId, String[] projection) { in queryRecentDocuments() argument 94 public Cursor querySearchDocuments(String rootId, String query, String[] projection) { in querySearchDocuments() argument
|
D | Roots.java | 27 root.rootId = id; in create()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | StubProvider.java | 125 for (String rootId : rootIds) { in clearCacheAndBuildRoots() 127 final File file = new File(getContext().getCacheDir(), rootId); in clearCacheAndBuildRoots() 131 final RootInfo rootInfo = new RootInfo(file, getSize(rootId)); in clearCacheAndBuildRoots() 133 if(rootId.equals(ROOT_1_ID)) { in clearCacheAndBuildRoots() 138 mRoots.put(rootId, rootInfo); in clearCacheAndBuildRoots() 147 private long getSize(String rootId) { in getSize() argument 148 final String key = STORAGE_SIZE_KEY + "." + rootId; in getSize() 268 public Cursor queryRecentDocuments(String rootId, String[] projection) in queryRecentDocuments() argument 276 public Cursor querySearchDocuments(String rootId, String query, String[] projection) in querySearchDocuments() argument 279 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/src/com/android/documentsui/base/ |
D | RootInfo.java | 89 public String rootId; field in RootInfo 114 rootId = null; in reset() 138 rootId = DurableUtils.readNullableString(in); in read() 158 DurableUtils.writeNullableString(out, rootId); in write() 195 root.rootId = getCursorString(cursor, Root.COLUMN_ROOT_ID); in fromRootsCursor() 248 return DocumentsContract.buildRootUri(authority, rootId); in getUri() 252 return authority == null && rootId == null; in isRecents() 262 return isExternalStorage() && "home".equals(rootId); in isExternalStorageHome() 275 && Providers.ROOT_ID_IMAGES.equals(rootId); in isImages() 280 && Providers.ROOT_ID_VIDEOS.equals(rootId); in isVideos() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/ |
D | ProvidersCache.java | 159 assert(mRecentsRoot.rootId == null); in updateAsync() 340 public RootInfo getRootOneshot(String authority, String rootId) { in getRootOneshot() argument 341 return getRootOneshot(authority, rootId, false); in getRootOneshot() 344 public RootInfo getRootOneshot(String authority, String rootId, boolean forceRefresh) { in getRootOneshot() argument 346 RootInfo root = forceRefresh ? null : getRootLocked(authority, rootId); in getRootOneshot() 350 root = getRootLocked(authority, rootId); in getRootOneshot() 356 public RootInfo getRootBlocking(String authority, String rootId) { in getRootBlocking() argument 360 return getRootLocked(authority, rootId); in getRootBlocking() 364 private RootInfo getRootLocked(String authority, String rootId) { in getRootLocked() argument 366 if (Objects.equals(root.rootId, rootId)) { in getRootLocked()
|
D | LoadFirstRootTask.java | 38 String rootId = null; in getRootId() local 42 rootId = roots.iterator().next().rootId; in getRootId() 45 return rootId; in getRootId()
|
D | RootCursorWrapper.java | 45 public RootCursorWrapper(String authority, String rootId, Cursor cursor, int maxCount) { in RootCursorWrapper() argument 47 mRootId = rootId; in RootCursorWrapper()
|
D | ProvidersAccess.java | 45 RootInfo getRootOneshot(String authority, String rootId); in getRootOneshot() argument
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/ |
D | AvrcpNativeInterface.java | 138 void setBrowsedPlayerResponse(int playerId, boolean success, String rootId, int numItems) { in setBrowsedPlayerResponse() argument 141 + " rootId=" + rootId in setBrowsedPlayerResponse() 143 setBrowsedPlayerResponseNative(playerId, success, rootId, numItems); in setBrowsedPlayerResponse() 243 int playerId, boolean success, String rootId, int numItems); in setBrowsedPlayerResponseNative() argument
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | Metrics.java | 367 String rootId = getRootIdSafely(uri); in sanitizeRoot() local 368 if (rootId == null) { in sanitizeRoot() 371 switch (rootId) { in sanitizeRoot() 382 rootId = getRootIdSafely(uri); in sanitizeRoot() 383 if (rootId == null) { in sanitizeRoot() 386 if (Providers.ROOT_ID_HOME.equals(rootId)) { in sanitizeRoot()
|
D | GlobalSearchLoader.java | 103 rootInfo.rootId, "" /* query */); in getQueryUri() 108 return new RootCursorWrapper(authority, rootInfo.rootId, oriCursor, -1 /* maxCount */); in generateResultCursor()
|
D | RecentsLoader.java | 80 return DocumentsContract.buildRecentDocumentsUri(authority, rootInfo.rootId); in getQueryUri() 85 return new RootCursorWrapper(authority, rootInfo.rootId, oriCursor, MAX_DOCS_FROM_ROOT); in generateResultCursor()
|
D | LoadDocStackTask.java | 95 final String rootId = path.getRootId(); in buildStack() local 96 if (rootId == null) { in buildStack()
|
D | AbstractActionHandler.java | 154 root.rootId, in ejectRoot() 611 mState.stack.getRoot().rootId, in onCreateLoader()
|
D | DirectoryLoader.java | 145 cursor = new RootCursorWrapper(mUri.getAuthority(), mRoot.rootId, cursor, -1); in loadInBackground()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | AbstractActionHandlerTest.java | 124 TestProvidersAccess.HOME.rootId, in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation() 168 TestProvidersAccess.HOME.rootId, in testOpensContainerDocuments_ClickArchiveInSearch_opensArchiveInArchiveProvider() 203 TestProvidersAccess.HOME.rootId, in testLaunchToDocuments() 229 TestProvidersAccess.HOME.rootId, in testLaunchToDocuments_convertsTreeUriToDocumentUri()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/ |
D | EjectRootTask.java | 48 String rootId, in EjectRootTask() argument 52 mRootId = rootId; in EjectRootTask()
|
D | RootItem.java | 67 return String.format(STRING_ID_FORMAT, authority, root.rootId); in getStringId()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaDocumentsProvider.java | 738 String rootId, String[] projection, @Nullable Bundle queryArgs, in queryRecentDocuments() argument 764 if (TYPE_IMAGES_ROOT.equals(rootId)) { in queryRecentDocuments() 772 } else if (TYPE_VIDEOS_ROOT.equals(rootId)) { in queryRecentDocuments() 781 throw new UnsupportedOperationException("Unsupported root " + rootId); in queryRecentDocuments() 791 public Cursor querySearchDocuments(String rootId, String[] projection, Bundle queryArgs) in querySearchDocuments() argument 809 if (TYPE_IMAGES_ROOT.equals(rootId)) { in querySearchDocuments() 832 } else if (TYPE_VIDEOS_ROOT.equals(rootId)) { in querySearchDocuments() 851 } else if (TYPE_AUDIO_ROOT.equals(rootId)) { in querySearchDocuments() 872 throw new UnsupportedOperationException("Unsupported root " + rootId); in querySearchDocuments()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/ |
D | DocumentStackTest.java | 51 ROOT_1.rootId = "home"; 53 ROOT_2.rootId = "downloads";
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadStorageProvider.java | 182 final String rootId = (parentDocId == null) ? DOC_ID_ROOT : null; in findDocumentPath() local 192 return new Path(rootId, findDocumentPath(parent, doc)); in findDocumentPath() 367 public Cursor queryRecentDocuments(String rootId, String[] projection, in queryRecentDocuments() argument 436 public Cursor querySearchDocuments(String rootId, String[] projection, Bundle queryArgs) in querySearchDocuments() argument
|
/packages/apps/DocumentsUI/src/com/android/documentsui/prefs/ |
D | LocalPreferences.java | 53 return ROOT_VIEW_MODE_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()
|