Home
last modified time | relevance | path

Searched refs:RootInfo (Results 1 – 25 of 71) sorted by relevance

123

/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestProvidersAccess.java24 import com.android.documentsui.base.RootInfo;
42 public static final RootInfo DOWNLOADS;
43 public static final RootInfo HOME;
44 public static final RootInfo HAMMY;
45 public static final RootInfo PICKLES;
46 public static final RootInfo RECENTS;
47 public static final RootInfo INSPECTOR;
48 public static final RootInfo IMAGE;
49 public static final RootInfo AUDIO;
50 public static final RootInfo VIDEO;
[all …]
DTestDragAndDropManager.java32 import com.android.documentsui.base.RootInfo;
41 public final TestEventHandler<Pair<ClipData, RootInfo>> dropOnRootHandler =
50 public void startDrag(View v, List<DocumentInfo> srcs, RootInfo root, List<Uri> invalidDest, in startDrag()
56 public boolean canSpringOpen(RootInfo root, DocumentInfo doc) { in canSpringOpen()
64 public int updateState(View v, RootInfo destRoot, @Nullable DocumentInfo destDoc) { in updateState()
77 public boolean drop(ClipData clipData, Object localState, RootInfo root, ActionHandler actions, in drop()
DRoots.java18 import com.android.documentsui.base.RootInfo;
24 public static RootInfo create(String id) { in create()
25 RootInfo root = new RootInfo(); in create()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/roots/
DProvidersAccessTest.java29 import com.android.documentsui.base.RootInfo;
43 private static final Correspondence<RootInfo, RootInfo> USER_ID_MIME_TYPES_CORRESPONDENCE =
44 Correspondence.from((@Nullable RootInfo actual, @Nullable RootInfo expected) -> {
50 private static RootInfo mNull = buildForMimeTypes((String[]) null);
51 private static RootInfo mEmpty = buildForMimeTypes();
52 private static RootInfo mWild = buildForMimeTypes("*/*");
53 private static RootInfo mImages = buildForMimeTypes("image/*");
54 private static RootInfo mAudio = buildForMimeTypes(
56 private static RootInfo mDocs = buildForMimeTypes(
58 private static RootInfo mMalformed1 = buildForMimeTypes("meow");
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/
DRootInfoTest.java33 RootInfo rootInfo = new RootInfo(); in testEquals_sameUser()
38 RootInfo rootInfo2 = new RootInfo(); in testEquals_sameUser()
48 RootInfo rootInfo = new RootInfo(); in testNotEquals_differentUser()
53 RootInfo rootInfo2 = new RootInfo(); in testNotEquals_differentUser()
63 RootInfo rootInfo = new RootInfo(); in testCopyInfo_equal()
68 RootInfo copied = RootInfo.copyRootInfo(rootInfo); in testCopyInfo_equal()
DDocumentStackTest.java41 private static final RootInfo ROOT_1;
42 private static final RootInfo ROOT_2;
50 ROOT_1 = new RootInfo();
52 ROOT_2 = new RootInfo();
195 final RootInfo rootRecent = new RootInfo(); in testIsRecent()
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DProvidersCache.java59 import com.android.documentsui.base.RootInfo;
106 private final Map<UserId, RootInfo> mRecentsRoots = new HashMap<>();
117 private Multimap<UserAuthority, RootInfo> mRoots = ArrayListMultimap.create();
132 private RootInfo generateRecentsRoot(UserId rootUserId) { in generateRecentsRoot()
133 return new RootInfo() {{ in generateRecentsRoot()
137 derivedType = RootInfo.TYPE_RECENTS; in generateRecentsRoot()
145 private RootInfo createOrGetRecentsRoot(UserId userId) {
204 RootInfo recentRoot = createOrGetRecentsRoot(userId);
210 assert (recentRoot.derivedType == RootInfo.TYPE_RECENTS);
299 private Collection<RootInfo> loadRootsForAuthority(UserAuthority userAuthority,
[all …]
DProvidersAccess.java27 import com.android.documentsui.base.RootInfo;
48 RootInfo getRootOneshot(UserId userId, String authority, String rootId); in getRootOneshot()
50 Collection<RootInfo> getMatchingRootsBlocking(State state); in getMatchingRootsBlocking()
52 Collection<RootInfo> getRootsBlocking(); in getRootsBlocking()
54 RootInfo getDefaultRootBlocking(State state); in getDefaultRootBlocking()
56 RootInfo getRecentsRoot(UserId userId); in getRecentsRoot()
66 Collection<RootInfo> getRootsForAuthorityBlocking(UserId userId, String authority); in getRootsForAuthorityBlocking()
68 public static List<RootInfo> getMatchingRoots(Collection<RootInfo> roots, State state) { in getMatchingRoots()
72 final List<RootInfo> matching = new ArrayList<>(); in getMatchingRoots()
73 for (RootInfo root : roots) { in getMatchingRoots()
[all …]
DRootsLoader.java27 import com.android.documentsui.base.RootInfo;
32 public class RootsLoader extends AsyncTaskLoader<Collection<RootInfo>> {
43 private Collection<RootInfo> mResult;
55 public final Collection<RootInfo> loadInBackground() { in loadInBackground()
60 public void deliverResult(Collection<RootInfo> result) { in deliverResult()
DLoadRootTask.java30 import com.android.documentsui.base.RootInfo;
34 extends PairedTask<T, Void, RootInfo> {
56 protected RootInfo run(Void... params) { in run()
65 protected void finish(RootInfo root) { in finish()
89 void onRootLoaded(@Nullable RootInfo root); in onRootLoaded()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DRootInfo.java54 public class RootInfo implements Durable, Parcelable, Comparable<RootInfo> { class
111 public RootInfo() { in RootInfo() method in RootInfo
189 public static final Creator<RootInfo> CREATOR = new Creator<RootInfo>() {
191 public RootInfo createFromParcel(Parcel in) {
192 final RootInfo root = new RootInfo();
198 public RootInfo[] newArray(int size) {
199 return new RootInfo[size];
206 public static RootInfo copyRootInfo(RootInfo root) { in copyRootInfo()
207 final RootInfo newRoot = new RootInfo(); in copyRootInfo()
227 public static RootInfo fromRootsCursor(UserId userId, String authority, Cursor cursor) { in fromRootsCursor()
[all …]
DDocumentStack.java56 private @Nullable RootInfo mRoot;
68 public DocumentStack(RootInfo root, DocumentInfo... docs) { in DocumentStack()
81 public DocumentStack(RootInfo root, List<DocumentInfo> docs) { in DocumentStack()
104 public @Nullable RootInfo getRoot() { in getRoot()
156 public void changeRoot(RootInfo root) { in changeRoot()
222 private void updateRoot(Collection<RootInfo> matchingRoots) throws FileNotFoundException { in updateRoot()
223 for (RootInfo root : matchingRoots) { in updateRoot()
245 Cursor cursor, Collection<RootInfo> matchingRoots, Context context) in fromLastAccessedCursor()
291 mRoot = new RootInfo(); in read()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DRootsMonitor.java30 import com.android.documentsui.base.RootInfo;
80 extends PairedTask<T, RootInfo, RootInfo> {
88 private RootInfo mCurrentRoot;
109 protected RootInfo run(RootInfo... roots) { in run()
112 final Collection<RootInfo> cachedRoots = mProviders.getRootsBlocking(); in run()
113 for (final RootInfo root : cachedRoots) { in run()
121 final RootInfo defaultRoot = mProviders.getDefaultRootBlocking(mState); in run()
130 protected void finish(RootInfo defaultRoot) { in finish()
DActionHandler.java32 import com.android.documentsui.base.RootInfo;
60 void openSettings(RootInfo root); in openSettings()
65 boolean dropOn(DragEvent event, RootInfo root); in dropOn()
70 void ejectRoot(RootInfo root, BooleanConsumer listener); in ejectRoot()
77 void getRootDocument(RootInfo root, int timeout, Consumer<DocumentInfo> callback); in getRootDocument()
92 void requestQuietModeDisabled(RootInfo info, UserId userId); in requestQuietModeDisabled()
96 void openRoot(RootInfo root); in openRoot()
102 void loadCrossProfileRoot(RootInfo info, UserId selectedUser); in loadCrossProfileRoot()
110 void pasteIntoFolder(RootInfo root); in pasteIntoFolder()
DDragAndDropManager.java36 import com.android.documentsui.base.RootInfo;
82 RootInfo root, in startDrag()
94 boolean canSpringOpen(RootInfo root, DocumentInfo doc); in canSpringOpen()
113 View v, RootInfo destRoot, @Nullable DocumentInfo destDoc); in updateState()
138 boolean drop(ClipData clipData, Object localState, RootInfo destRoot, ActionHandler actions, in drop()
186 private RootInfo mDestRoot;
238 RootInfo root, in startDrag()
307 public boolean canSpringOpen(RootInfo root, DocumentInfo doc) { in canSpringOpen()
319 View v, RootInfo destRoot, @Nullable DocumentInfo destDoc) { in updateState()
388 public boolean drop(ClipData clipData, Object localState, RootInfo destRoot, in drop()
[all …]
DMultiRootDocumentsLoader.java42 import com.android.documentsui.base.RootInfo;
145 Map<String, List<RootInfo>> rootsIndex = indexRoots(); in loadInBackgroundLocked()
147 for (Map.Entry<String, List<RootInfo>> rootEntry : rootsIndex.entrySet()) { in loadInBackgroundLocked()
263 private Map<String, List<RootInfo>> indexRoots() { in indexRoots()
264 final Collection<RootInfo> roots = mProviders.getMatchingRootsBlocking(mState); in indexRoots()
265 HashMap<String, List<RootInfo>> rootsIndex = new HashMap<>(); in indexRoots()
266 for (RootInfo root : roots) { in indexRoots()
290 protected boolean shouldIgnoreRoot(RootInfo root) { in shouldIgnoreRoot()
298 protected abstract QueryTask getQueryTask(String authority, List<RootInfo> rootInfos); in getQueryTask()
376 public final List<RootInfo> rootInfos;
[all …]
DGlobalSearchLoader.java28 import com.android.documentsui.base.RootInfo;
69 protected boolean shouldIgnoreRoot(RootInfo root) { in shouldIgnoreRoot()
89 protected QueryTask getQueryTask(String authority, List<RootInfo> rootInfos) { in getQueryTask()
95 public SearchTask(String authority, List<RootInfo> rootInfos) { in SearchTask()
106 protected Uri getQueryUri(RootInfo rootInfo) { in getQueryUri()
114 protected RootCursorWrapper generateResultCursor(RootInfo rootInfo, Cursor oriCursor) { in generateResultCursor()
DRecentsLoader.java27 import com.android.documentsui.base.RootInfo;
80 protected boolean shouldIgnoreRoot(RootInfo root) { in shouldIgnoreRoot()
86 protected QueryTask getQueryTask(String authority, List<RootInfo> rootInfos) { in getQueryTask()
92 public RecentsTask(String authority, List<RootInfo> rootInfos) { in RecentsTask()
97 protected Uri getQueryUri(RootInfo rootInfo) { in getQueryUri()
102 protected RootCursorWrapper generateResultCursor(RootInfo rootInfo, Cursor oriCursor) { in generateResultCursor()
DBaseActivity.java58 import com.android.documentsui.base.RootInfo;
462 public void onRootPicked(RootInfo root) { in onRootPicked()
561 final RootInfo root = getCurrentRoot(); in canCreateDirectory()
728 final RootInfo root = mState.stack.getRoot(); in updateHeaderTitle()
733 case RootInfo.TYPE_RECENTS: in updateHeaderTitle()
736 case RootInfo.TYPE_IMAGES: in updateHeaderTitle()
737 case RootInfo.TYPE_VIDEO: in updateHeaderTitle()
738 case RootInfo.TYPE_AUDIO: in updateHeaderTitle()
741 case RootInfo.TYPE_DOWNLOADS: in updateHeaderTitle()
744 case RootInfo.TYPE_LOCAL: in updateHeaderTitle()
[all …]
DAbstractActionHandler.java56 import com.android.documentsui.base.RootInfo;
161 public void ejectRoot(RootInfo root, BooleanConsumer listener) { in ejectRoot()
180 public void requestQuietModeDisabled(RootInfo info, UserId userId) { in requestQuietModeDisabled()
201 public void getRootDocument(RootInfo root, int timeout, Consumer<DocumentInfo> callback) { in getRootDocument()
263 public void openSettings(RootInfo root) { in openSettings()
278 public boolean dropOn(DragEvent event, RootInfo root) { in dropOn()
283 public void pasteIntoFolder(RootInfo root) { in pasteIntoFolder()
727 public final void loadCrossProfileRoot(RootInfo info, UserId selectedUser) { in loadCrossProfileRoot()
738 private final RootInfo mOriginalRoot;
741 LoadCrossProfileRootCallback(RootInfo rootInfo, UserId selectedUser) { in LoadCrossProfileRootCallback()
[all …]
DShortcutsUpdater.java27 import com.android.documentsui.base.RootInfo;
48 public void update(Collection<RootInfo> roots) { in update()
80 private List<ShortcutInfo> getDeviceShortcuts(Collection<RootInfo> roots) { in getDeviceShortcuts()
82 for (RootInfo root : roots) { in getDeviceShortcuts()
124 private ShortcutInfo createShortcut(RootInfo root, @DrawableRes int resId) { in createShortcut()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DDocumentsProviderHelper.java51 import com.android.documentsui.base.RootInfo;
80 public RootInfo getRoot(String documentId) throws RemoteException { in getRoot()
87 return RootInfo.fromRootsCursor(mUserId, mAuthority, cursor); in getRoot()
116 public Uri createDocument(RootInfo root, String mimeType, String name) { in createDocument()
144 public Uri createFolder(RootInfo root, String name) { in createFolder()
189 public void assertChildCount(RootInfo root, int expected) throws Exception { in assertChildCount()
208 public void assertHasFile(RootInfo root, String name) throws Exception { in assertHasFile()
227 public void assertHasDirectory(RootInfo root, String name) throws Exception { in assertHasDirectory()
245 public void assertDoesNotExist(RootInfo root, String name) throws Exception { in assertDoesNotExist()
325 RootInfo root, String path, String mimeType, byte[] content, String... streamTypes) in createVirtualFile()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
DRootItem.java38 import com.android.documentsui.base.RootInfo;
50 public final RootInfo root;
57 public RootItem(RootInfo root, ActionHandler actionHandler, boolean maybeShowBadge) { in RootItem()
61 public RootItem(RootInfo root, ActionHandler actionHandler, String packageName, in RootItem()
70 private static String getStringId(RootInfo root) { in getStringId()
217 RootInfo stubRootInfo = RootInfo.copyRootInfo(item.root); in createStubItem()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DProfileTabsTest.java30 import com.android.documentsui.base.RootInfo;
183 RootInfo newRoot = RootInfo.copyRootInfo(mTestCommonAddons.mCurrentRoot); in testUpdateView_afterCurrentRootChanged_shouldChangeSelectedUser()
248 public RootInfo getCurrentRoot() { in getCurrentRoot()
270 private RootInfo mCurrentRoot;
283 public void onRootPicked(RootInfo root) { in onRootPicked()
298 public RootInfo getCurrentRoot() { in getCurrentRoot()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/
DSearchViewManagerTest.java54 import com.android.documentsui.base.RootInfo;
429 RootInfo root = spy(new RootInfo()); in testSupportsMimeTypesSearch_showChips()
442 RootInfo root = spy(new RootInfo()); in testNotSupportsMimeTypesSearch_notShowChips()
457 RootInfo root = spy(new RootInfo()); in testSupportsSearch_showMenu()
469 RootInfo root = spy(new RootInfo()); in testNotSupportsSearch_notShowMenuAndChips()

123