/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
H A D | Roots.java | 27 root.rootId = id;
|
H A D | TestProvidersAccess.java | 47 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 D | TestDocumentsProvider.java | 88 public Cursor queryRecentDocuments(String rootId, String[] projection) { argument
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
H A D | RootInfo.java | 87 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 D | LoadRootTask.java | 51 String rootId = DocumentsContract.getRootId(mRootUri); 52 return mProviders.getRootOneshot(mRootUri.getAuthority(), rootId);
|
H A D | ProvidersCache.java | 154 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 D | RootCursorWrapper.java | 42 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 D | ProvidersAccess.java | 45 RootInfo getRootOneshot(String authority, String rootId); argument
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/ |
H A D | EjectRootTask.java | 45 String rootId, 49 mRootId = rootId; 42 EjectRootTask( ContentResolver resolver, String authority, String rootId, BooleanConsumer finishCallback) argument
|
H A D | RootItem.java | 60 return String.format(STRING_ID_FORMAT, authority, root.rootId);
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
H A D | StubProvider.java | 125 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 D | TestRootProvider.java | 59 public TestRootProvider(String rootName, String rootId, int flags, String rootDocId) { argument 61 mRootId = rootId;
|
H A D | DocumentsProviderHelper.java | 309 args.putString(StubProvider.EXTRA_ROOT, root.rootId);
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
H A D | LoadDocStackTask.java | 96 final String rootId = path.getRootId(); 97 if (rootId == null) {
|
H A D | DirectoryLoader.java | 136 cursor = new RootCursorWrapper(mUri.getAuthority(), mRoot.rootId, cursor, -1);
|
H A D | AbstractActionHandler.java | 151 root.rootId, 559 mState.stack.getRoot().rootId,
|
H A D | RecentsLoader.java | 236 rootsIndex.get(root.authority).add(root.rootId);
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/ |
H A D | DocumentStackTest.java | 49 ROOT_1.rootId = "home"; 51 ROOT_2.rootId = "downloads";
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
H A D | DirectoryState.java | 77 builder.append(mRoot != null ? mRoot.rootId : "null").append(';');
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
H A D | AbstractActionHandlerTest.java | 118 TestProvidersAccess.HOME.rootId, 167 TestProvidersAccess.HOME.rootId, 193 TestProvidersAccess.HOME.rootId,
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
H A D | MediaDocumentsProvider.java | 412 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 D | LocalPreferences.java | 54 return ROOT_VIEW_MODE_PREFIX + root.authority + root.rootId;
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | DownloadStorageProvider.java | 144 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 D | FilesActivity.java | 318 if (mProviders.getRootBlocking(root.authority, root.rootId) == null) {
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/ |
H A D | ActionHandlerTest.java | 416 TestProvidersAccess.HOME.rootId,
|