Home
last modified time | relevance | path

Searched refs:rootId (Results 1 – 25 of 35) sorted by relevance

12

/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestProvidersAccess.java64 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 …]
DTestDocumentsProvider.java90 public Cursor queryRecentDocuments(String rootId, String[] projection) { in queryRecentDocuments() argument
95 public Cursor querySearchDocuments(String rootId, String query, String[] projection) { in querySearchDocuments() argument
DRoots.java27 root.rootId = id; in create()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DRootInfo.java93 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/
DStubProvider.java129 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 …]
DTestRootProvider.java59 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/
DRootInfoTest.java36 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()
DDocumentStackTest.java51 ROOT_1.rootId = "home";
53 ROOT_2.rootId = "downloads";
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DLoadFirstRootTask.java42 String rootId = null; in getRootId() local
47 rootId = roots.iterator().next().rootId; in getRootId()
50 return rootId; in getRootId()
DProvidersCache.java208 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)) {
DRootCursorWrapper.java51 public RootCursorWrapper(UserId userId, String authority, String rootId, Cursor cursor, in RootCursorWrapper() argument
55 mRootId = rootId; in RootCursorWrapper()
DProvidersAccess.java48 RootInfo getRootOneshot(UserId userId, String authority, String rootId); in getRootOneshot() argument
/packages/apps/DocumentsUI/src/com/android/documentsui/
DMetrics.java400 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()
DGlobalSearchLoader.java110 rootInfo.rootId, "" /* query */); in getQueryUri()
115 return new RootCursorWrapper(rootInfo.userId, authority, rootInfo.rootId, oriCursor, in generateResultCursor()
DLoadDocStackTask.java100 final String rootId = path.getRootId(); in buildStack() local
101 if (rootId == null) { in buildStack()
DRecentsLoader.java99 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/
DEjectRootTask.java48 String rootId, in EjectRootTask() argument
52 mRootId = rootId; in EjectRootTask()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/
DAvrcpNativeInterface.java182 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/
DDocumentProviderRoot.java80 public DocumentProviderRoot setRootId(String rootId) { in setRootId() argument
81 mRootId = rootId; in setRootId()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java835 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/
DAbstractActionHandlerTest.java156 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/
DLocalPreferences.java69 return prefix + root.authority + root.rootId; in createKey()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryState.java79 builder.append(mRoot != null ? mRoot.rootId : "null").append(';'); in getConfigKey()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DActionHandlerTest.java203 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/
DDownloadStorageProvider.java184 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

12