Home
last modified time | relevance | path

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

12

/aosp12/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
H A DTestProvidersAccess.java74 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;
156 NO_TREE_ROOT.rootId = "1";
198 HOME.rootId = Providers.ROOT_ID_HOME;
216 PICKLES.rootId = "pickles";
[all …]
H A DTestDocumentsProvider.java89 public Cursor queryRecentDocuments(String rootId, String[] projection) { in queryRecentDocuments() argument
94 public Cursor querySearchDocuments(String rootId, String query, String[] projection) { in querySearchDocuments() argument
H A DRoots.java27 root.rootId = id; in create()
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/base/
H A DRootInfo.java93 public String rootId; field in RootInfo
119 rootId = null; in reset()
169 DurableUtils.writeNullableString(out, rootId); in write()
210 newRoot.rootId = root.rootId; in copyRootInfo()
298 return authority == null && rootId == null; in isRecents()
321 && Providers.ROOT_ID_IMAGES.equals(rootId); in isImages()
326 && Providers.ROOT_ID_VIDEOS.equals(rootId); in isVideos()
331 && Providers.ROOT_ID_AUDIO.equals(rootId); in isAudio()
476 && Objects.equals(rootId, other.rootId); in equals()
484 return Objects.hash(userId, authority, rootId); in hashCode()
[all …]
/aosp12/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/
H A 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()
H A DDocumentStackTest.java51 ROOT_1.rootId = "home";
53 ROOT_2.rootId = "downloads";
/aosp12/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
H A DStubProvider.java129 for (String rootId : rootIds) { 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()
571 String rootId = extras.getString(EXTRA_PARENT_ID); in dispatchCreateDocumentWithFlags() local
699 public void setSize(String rootId, long rootSize) { in setSize() argument
700 RootInfo root = mRoots.get(rootId); in setSize()
702 final String key = STORAGE_SIZE_KEY + "." + rootId; in setSize()
750 StubDocument root = mRoots.get(rootId).document; in getFile()
[all …]
H A DTestRootProvider.java59 public TestRootProvider(String rootName, String rootId, int flags, String rootDocId) { in TestRootProvider() argument
61 mRootId = rootId; in TestRootProvider()
/aosp12/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
H A DExternalStorageProvider.java90 public String rootId; field in ExternalStorageProvider.RootInfo
172 final String rootId; in updateVolumesLocked() local
179 rootId = ROOT_ID_PRIMARY_EMULATED; in updateVolumesLocked()
204 rootId = volume.getFsUuid(); in updateVolumesLocked()
212 if (TextUtils.isEmpty(rootId)) { in updateVolumesLocked()
216 if (mRoots.containsKey(rootId)) { in updateVolumesLocked()
222 mRoots.put(rootId, root); in updateVolumesLocked()
224 root.rootId = rootId; in updateVolumesLocked()
613 RootInfo root = mRoots.get(rootId); in querySearchDocuments()
622 public void ejectRoot(String rootId) { in ejectRoot() argument
[all …]
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
H A DLoadFirstRootTask.java42 String rootId = null; in getRootId() local
47 rootId = roots.iterator().next().rootId; in getRootId()
50 return rootId; in getRootId()
H A 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)) {
H A DRootCursorWrapper.java51 public RootCursorWrapper(UserId userId, String authority, String rootId, Cursor cursor, in RootCursorWrapper() argument
55 mRootId = rootId; in RootCursorWrapper()
/aosp12/frameworks/base/core/java/android/provider/
H A DDocumentsProvider.java472 public Cursor queryRecentDocuments(String rootId, String[] projection) in queryRecentDocuments() argument
505 @NonNull String rootId, @Nullable String[] projection, @Nullable Bundle queryArgs, in queryRecentDocuments()
507 Preconditions.checkNotNull(rootId, "rootId can not be null"); in queryRecentDocuments()
509 Cursor c = queryRecentDocuments(rootId, projection); in queryRecentDocuments()
666 public Cursor querySearchDocuments(String rootId, String query, String[] projection) in querySearchDocuments() argument
716 public Cursor querySearchDocuments(@NonNull String rootId, in querySearchDocuments() argument
718 Preconditions.checkNotNull(rootId, "rootId can not be null"); in querySearchDocuments()
720 return querySearchDocuments(rootId, DocumentsContract.getSearchDocumentsQuery(queryArgs), in querySearchDocuments()
731 public void ejectRoot(String rootId) { in ejectRoot() argument
1107 final String rootId = DocumentsContract.getRootId(rootUri); in callUnchecked() local
[all …]
H A DDocumentsContract.java919 public static Uri buildRootUri(String authority, String rootId) { in buildRootUri() argument
921 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId).build(); in buildRootUri()
932 public static Uri buildRecentDocumentsUri(String authority, String rootId) { in buildRecentDocumentsUri() argument
934 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId) in buildRecentDocumentsUri()
1082 String authority, String rootId, String query) { in buildSearchDocumentsUri() argument
1084 .appendPath(PATH_ROOT).appendPath(rootId).appendPath(PATH_SEARCH) in buildSearchDocumentsUri()
1796 public Path(@Nullable String rootId, List<String> path) { in Path() argument
1800 mRootId = rootId; in Path()
1865 final String rootId = in.readString();
1867 return new Path(rootId, path);
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
H A DAvrcpNativeInterface.java158 void setBrowsedPlayerResponse(int playerId, boolean success, String rootId, int numItems) { in setBrowsedPlayerResponse() argument
161 + " rootId=" + rootId in setBrowsedPlayerResponse()
163 setBrowsedPlayerResponseNative(playerId, success, rootId, numItems); in setBrowsedPlayerResponse()
265 int playerId, boolean success, String rootId, int numItems); in setBrowsedPlayerResponseNative() argument
/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DDisplayAreaPolicyBuilder.java262 final int rootId = displayAreaHierarchy.mRoot.mFeatureId; in validateIds() local
263 if (!allIdSet.add(rootId) || !uniqueIdSet.add(rootId)) { in validateIds()
265 "RootDisplayArea must have unique id, but id=" + rootId + " is not unique."); in validateIds()
267 if (rootId > FEATURE_VENDOR_LAST) { in validateIds()
356 final int rootId = options.getInt(KEY_ROOT_DISPLAY_AREA_ID); in apply() local
357 if (mDisplayRoot.mFeatureId == rootId) { in apply()
361 if (mDisplayAreaGroupRoots.get(i).mFeatureId == rootId) { in apply()
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
H A DEjectRootTask.java48 String rootId, in EjectRootTask() argument
52 mRootId = rootId; in EjectRootTask()
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/
H A 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()
H A DGlobalSearchLoader.java110 rootInfo.rootId, "" /* query */); in getQueryUri()
115 return new RootCursorWrapper(rootInfo.userId, authority, rootInfo.rootId, oriCursor, in generateResultCursor()
H A DLoadDocStackTask.java100 final String rootId = path.getRootId(); in buildStack() local
101 if (rootId == null) { in buildStack()
H A DRecentsLoader.java98 return DocumentsContract.buildRecentDocumentsUri(authority, rootInfo.rootId); in getQueryUri()
103 return new RootCursorWrapper(rootInfo.userId, authority, rootInfo.rootId, oriCursor, in generateResultCursor()
/aosp12/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/browse/
H A DMediaItemsRepository.java197 String rootId = mBrowsingState.mBrowser.getRoot(); in onMediaBrowsingStateChanged() local
198 getCache().mRootId = rootId; in onMediaBrowsingStateChanged()
199 getMediaChildren(rootId); in onMediaBrowsingStateChanged()
/aosp12/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
H A DAbstractActionHandlerTest.java131 TestProvidersAccess.HOME.rootId, in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation()
175 TestProvidersAccess.HOME.rootId, in testOpensContainerDocuments_ClickArchiveInSearch_opensArchiveInArchiveProvider()
210 TestProvidersAccess.HOME.rootId, in testLaunchToDocuments()
236 TestProvidersAccess.HOME.rootId, in testLaunchToDocuments_convertsTreeUriToDocumentUri()
/aosp12/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaDocumentsProvider.java833 public Cursor queryRecentDocuments(String rootId, String[] projection, in queryRecentDocuments() argument
860 if (TYPE_IMAGES_ROOT.equals(rootId)) { in queryRecentDocuments()
868 } else if (TYPE_VIDEOS_ROOT.equals(rootId)) { in queryRecentDocuments()
876 } else if (TYPE_DOCUMENTS_ROOT.equals(rootId)) { in queryRecentDocuments()
887 throw new UnsupportedOperationException("Unsupported root " + rootId); in queryRecentDocuments()
897 public Cursor querySearchDocuments(String rootId, String[] projection, Bundle queryArgs) in querySearchDocuments() argument
916 if (TYPE_IMAGES_ROOT.equals(rootId)) { in querySearchDocuments()
939 } else if (TYPE_VIDEOS_ROOT.equals(rootId)) { in querySearchDocuments()
958 } else if (TYPE_AUDIO_ROOT.equals(rootId)) { in querySearchDocuments()
978 } else if (TYPE_DOCUMENTS_ROOT.equals(rootId)) { in querySearchDocuments()
[all …]
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/prefs/
H A DLocalPreferences.java69 return prefix + root.authority + root.rootId; in createKey()

12