Searched refs:rootId (Results 1 - 25 of 27) sorted by relevance

12

/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
H A DRoots.java27 root.rootId = id;
H A DTestProvidersAccess.java47 DOWNLOADS.rootId = Providers.ROOT_ID_DOWNLOADS;
55 HOME.rootId = Providers.ROOT_ID_HOME;
63 HAMMY.rootId = "hamsandwich";
67 PICKLES.rootId = "pickles";
78 INSPECTOR.rootId = InspectorProvider.ROOT_ID;
108 public RootInfo getRootOneshot(String authority, String rootId) { argument
111 if (rootId.equals(root.rootId)) {
H A DTestDocumentsProvider.java88 public Cursor queryRecentDocuments(String rootId, String[] projection) { argument
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
H A DRootInfo.java87 public String rootId; field in class:RootInfo
111 rootId = null;
132 rootId = DurableUtils.readNullableString(in);
151 DurableUtils.writeNullableString(out, rootId);
188 root.rootId = getCursorString(cursor, Root.COLUMN_ROOT_ID);
240 return DocumentsContract.buildRootUri(authority, rootId);
244 return authority == null && rootId == null;
251 return isExternalStorage() && "home".equals(rootId);
264 && Providers.ROOT_ID_IMAGES.equals(rootId);
269 && Providers.ROOT_ID_VIDEOS.equals(rootId);
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
H A DLoadRootTask.java51 String rootId = DocumentsContract.getRootId(mRootUri);
52 return mProviders.getRootOneshot(mRootUri.getAuthority(), rootId);
H A DProvidersCache.java154 assert(mRecentsRoot.rootId == null);
313 public RootInfo getRootOneshot(String authority, String rootId) { argument
314 return getRootOneshot(authority, rootId, false);
317 public RootInfo getRootOneshot(String authority, String rootId, boolean forceRefresh) { argument
319 RootInfo root = forceRefresh ? null : getRootLocked(authority, rootId);
323 root = getRootLocked(authority, rootId);
329 public RootInfo getRootBlocking(String authority, String rootId) { argument
333 return getRootLocked(authority, rootId);
337 private RootInfo getRootLocked(String authority, String rootId) { argument
339 if (Objects.equals(root.rootId, rootI
[all...]
H A DRootCursorWrapper.java42 public static final String COLUMN_ROOT_ID = "android:rootId";
45 public RootCursorWrapper(String authority, String rootId, Cursor cursor, int maxCount) { argument
47 mRootId = rootId;
H A DProvidersAccess.java45 RootInfo getRootOneshot(String authority, String rootId); argument
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
H A DEjectRootTask.java45 String rootId,
49 mRootId = rootId;
42 EjectRootTask( ContentResolver resolver, String authority, String rootId, BooleanConsumer finishCallback) argument
H A DRootItem.java60 return String.format(STRING_ID_FORMAT, authority, root.rootId);
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
H A DStubProvider.java125 for (String rootId : rootIds) {
127 final File file = new File(getContext().getCacheDir(), rootId);
131 final RootInfo rootInfo = new RootInfo(file, getSize(rootId));
133 if(rootId.equals(ROOT_1_ID)) {
138 mRoots.put(rootId, rootInfo);
147 private long getSize(String rootId) { argument
148 final String key = STORAGE_SIZE_KEY + "." + rootId;
268 public Cursor queryRecentDocuments(String rootId, String[] projection) argument
276 public Cursor querySearchDocuments(String rootId, String query, String[] projection) argument
279 StubDocument parentDocument = mRoots.get(rootId)
670 setSize(String rootId, long rootSize) argument
691 createRegularFile(String rootId, String path, String mimeType, byte[] content) argument
704 createVirtualFile( String rootId, String path, String mimeType, List<String> streamTypes, byte[] content) argument
720 getFile(String rootId, String path) argument
735 createFile(String rootId, String path, String mimeType, byte[] content) argument
[all...]
H A DTestRootProvider.java59 public TestRootProvider(String rootName, String rootId, int flags, String rootDocId) { argument
61 mRootId = rootId;
H A DDocumentsProviderHelper.java309 args.putString(StubProvider.EXTRA_ROOT, root.rootId);
/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DLoadDocStackTask.java96 final String rootId = path.getRootId();
97 if (rootId == null) {
H A DDirectoryLoader.java136 cursor = new RootCursorWrapper(mUri.getAuthority(), mRoot.rootId, cursor, -1);
H A DAbstractActionHandler.java151 root.rootId,
559 mState.stack.getRoot().rootId,
H A DRecentsLoader.java236 rootsIndex.get(root.authority).add(root.rootId);
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/
H A DDocumentStackTest.java49 ROOT_1.rootId = "home";
51 ROOT_2.rootId = "downloads";
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
H A DDirectoryState.java77 builder.append(mRoot != null ? mRoot.rootId : "null").append(';');
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
H A DAbstractActionHandlerTest.java118 TestProvidersAccess.HOME.rootId,
167 TestProvidersAccess.HOME.rootId,
193 TestProvidersAccess.HOME.rootId,
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaDocumentsProvider.java412 public Cursor queryRecentDocuments(String rootId, String[] projection) argument
420 if (TYPE_IMAGES_ROOT.equals(rootId)) {
428 } else if (TYPE_VIDEOS_ROOT.equals(rootId)) {
437 throw new UnsupportedOperationException("Unsupported root " + rootId);
447 public Cursor querySearchDocuments(String rootId, String query, String[] projection) argument
456 if (TYPE_IMAGES_ROOT.equals(rootId)) {
464 } else if (TYPE_VIDEOS_ROOT.equals(rootId)) {
472 } else if (TYPE_AUDIO_ROOT.equals(rootId)) {
481 throw new UnsupportedOperationException("Unsupported root " + rootId);
/packages/apps/DocumentsUI/src/com/android/documentsui/prefs/
H A DLocalPreferences.java54 return ROOT_VIEW_MODE_PREFIX + root.authority + root.rootId;
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadStorageProvider.java144 final String rootId = (parentDocId == null) ? DOC_ID_ROOT : null;
146 return new Path(rootId, findDocumentPath(parent, doc));
297 public Cursor queryRecentDocuments(String rootId, String[] projection) argument
332 public Cursor querySearchDocuments(String rootId, String query, String[] projection) argument
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
H A DFilesActivity.java318 if (mProviders.getRootBlocking(root.authority, root.rootId) == null) {
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
H A DActionHandlerTest.java416 TestProvidersAccess.HOME.rootId,

Completed in 355 milliseconds

12