/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestProvidersAccess.java | 22 import com.android.documentsui.base.RootInfo; 36 public static final RootInfo DOWNLOADS; 37 public static final RootInfo HOME; 38 public static final RootInfo HAMMY; 39 public static final RootInfo PICKLES; 40 public static final RootInfo RECENTS; 41 public static final RootInfo INSPECTOR; 42 public static final RootInfo IMAGE; 43 public static final RootInfo AUDIO; 44 public static final RootInfo VIDEO; [all …]
|
D | TestDragAndDropManager.java | 32 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() 72 public boolean drop(ClipData clipData, Object localState, RootInfo root, ActionHandler actions, in drop()
|
D | Roots.java | 18 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/ |
D | ProvidersAccessTest.java | 25 import com.android.documentsui.base.RootInfo; 35 private static RootInfo mNull = new RootInfo(); 36 private static RootInfo mEmpty = buildForMimeTypes(); 37 private static RootInfo mWild = buildForMimeTypes("*/*"); 38 private static RootInfo mImages = buildForMimeTypes("image/*"); 39 private static RootInfo mAudio = buildForMimeTypes( 41 private static RootInfo mDocs = buildForMimeTypes( 43 private static RootInfo mMalformed1 = buildForMimeTypes("meow"); 44 private static RootInfo mMalformed2 = buildForMimeTypes("*/meow"); 46 private List<RootInfo> mRoots; [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/ |
D | ProvidersCache.java | 49 import com.android.documentsui.base.RootInfo; 88 private final RootInfo mRecentsRoot; 99 private Multimap<String, RootInfo> mRoots = ArrayListMultimap.create(); 111 mRecentsRoot = new RootInfo() {{ in ProvidersCache() 114 derivedType = RootInfo.TYPE_RECENTS; in ProvidersCache() 161 assert(mRecentsRoot.derivedType == RootInfo.TYPE_RECENTS); in updateAsync() 246 private Collection<RootInfo> loadRootsForAuthority( in loadRootsForAuthority() 250 final ArrayList<RootInfo> roots = new ArrayList<>(); in loadRootsForAuthority() 294 ArrayList<RootInfo> cachedRoots = systemCache.getParcelableArrayList(TAG); in loadRootsForAuthority() 311 final RootInfo root = RootInfo.fromRootsCursor(authority, cursor); in loadRootsForAuthority() [all …]
|
D | ProvidersAccess.java | 25 import com.android.documentsui.base.RootInfo; 45 RootInfo getRootOneshot(String authority, String rootId); in getRootOneshot() 47 Collection<RootInfo> getMatchingRootsBlocking(State state); in getMatchingRootsBlocking() 49 Collection<RootInfo> getRootsBlocking(); in getRootsBlocking() 51 RootInfo getDefaultRootBlocking(State state); in getDefaultRootBlocking() 53 RootInfo getRecentsRoot(); in getRecentsRoot() 63 Collection<RootInfo> getRootsForAuthorityBlocking(String authority); in getRootsForAuthorityBlocking() 65 public static List<RootInfo> getMatchingRoots(Collection<RootInfo> roots, State state) { in getMatchingRoots() 69 final List<RootInfo> matching = new ArrayList<>(); in getMatchingRoots() 70 for (RootInfo root : roots) { in getMatchingRoots()
|
D | RootsLoader.java | 27 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()
|
D | LoadRootTask.java | 28 import com.android.documentsui.base.RootInfo; 32 extends PairedTask<T, Void, RootInfo> { 48 protected RootInfo run(Void... params) { in run() 57 protected void finish(RootInfo root) { in finish()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | RootInfo.java | 54 public class RootInfo implements Durable, Parcelable, Comparable<RootInfo> { class 107 public RootInfo() { in RootInfo() method in RootInfo 178 public static final Creator<RootInfo> CREATOR = new Creator<RootInfo>() { 180 public RootInfo createFromParcel(Parcel in) { 181 final RootInfo root = new RootInfo(); 187 public RootInfo[] newArray(int size) { 188 return new RootInfo[size]; 192 public static RootInfo fromRootsCursor(String authority, Cursor cursor) { in fromRootsCursor() 193 final RootInfo root = new RootInfo(); in fromRootsCursor() 413 if (o instanceof RootInfo) { in equals() [all …]
|
D | DocumentStack.java | 56 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() 221 private void updateRoot(Collection<RootInfo> matchingRoots) throws FileNotFoundException { in updateRoot() 222 for (RootInfo root : matchingRoots) { in updateRoot() 244 Cursor cursor, Collection<RootInfo> matchingRoots, ContentResolver resolver) in fromLastAccessedCursor() 290 mRoot = new RootInfo(); in read()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | RootsMonitor.java | 30 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()
|
D | DragAndDropManager.java | 35 import com.android.documentsui.base.RootInfo; 81 RootInfo root, in startDrag() 93 boolean canSpringOpen(RootInfo root, DocumentInfo doc); in canSpringOpen() 112 View v, RootInfo destRoot, @Nullable DocumentInfo destDoc); in updateState() 131 boolean drop(ClipData clipData, Object localState, RootInfo destRoot, ActionHandler actions, in drop() 178 private RootInfo mDestRoot; 230 RootInfo root, in startDrag() 298 public boolean canSpringOpen(RootInfo root, DocumentInfo doc) { in canSpringOpen() 310 View v, RootInfo destRoot, @Nullable DocumentInfo destDoc) { in updateState() 374 public boolean drop(ClipData clipData, Object localState, RootInfo destRoot, in drop() [all …]
|
D | MultiRootDocumentsLoader.java | 42 import com.android.documentsui.base.RootInfo; 142 Map<String, List<RootInfo>> rootsIndex = indexRoots(); in loadInBackgroundLocked() 144 for (Map.Entry<String, List<RootInfo>> rootEntry : rootsIndex.entrySet()) { in loadInBackgroundLocked() 245 private Map<String, List<RootInfo>> indexRoots() { in indexRoots() 246 final Collection<RootInfo> roots = mProviders.getMatchingRootsBlocking(mState); in indexRoots() 247 HashMap<String, List<RootInfo>> rootsIndex = new HashMap<>(); in indexRoots() 248 for (RootInfo root : roots) { in indexRoots() 271 protected boolean shouldIgnoreRoot(RootInfo root) { in shouldIgnoreRoot() 279 protected abstract QueryTask getQueryTask(String authority, List<RootInfo> rootInfos); in getQueryTask() 364 public final List<RootInfo> rootInfos; [all …]
|
D | ActionHandler.java | 32 import com.android.documentsui.base.RootInfo; 58 void openSettings(RootInfo root); in openSettings() 63 boolean dropOn(DragEvent event, RootInfo root); in dropOn() 68 void ejectRoot(RootInfo root, BooleanConsumer listener); in ejectRoot() 75 void getRootDocument(RootInfo root, int timeout, Consumer<DocumentInfo> callback); in getRootDocument() 92 void openRoot(RootInfo root); in openRoot() 104 void pasteIntoFolder(RootInfo root); in pasteIntoFolder()
|
D | GlobalSearchLoader.java | 28 import com.android.documentsui.base.RootInfo; 66 protected boolean shouldIgnoreRoot(RootInfo root) { in shouldIgnoreRoot() 82 protected QueryTask getQueryTask(String authority, List<RootInfo> rootInfos) { in getQueryTask() 88 public SearchTask(String authority, List<RootInfo> rootInfos) { in SearchTask() 99 protected Uri getQueryUri(RootInfo rootInfo) { in getQueryUri() 107 protected RootCursorWrapper generateResultCursor(RootInfo rootInfo, Cursor oriCursor) { in generateResultCursor()
|
D | RecentsLoader.java | 27 import com.android.documentsui.base.RootInfo; 62 protected boolean shouldIgnoreRoot(RootInfo root) { in shouldIgnoreRoot() 68 protected QueryTask getQueryTask(String authority, List<RootInfo> rootInfos) { in getQueryTask() 74 public RecentsTask(String authority, List<RootInfo> rootInfos) { in RecentsTask() 79 protected Uri getQueryUri(RootInfo rootInfo) { in getQueryUri() 84 protected RootCursorWrapper generateResultCursor(RootInfo rootInfo, Cursor oriCursor) { in generateResultCursor()
|
D | BaseActivity.java | 58 import com.android.documentsui.base.RootInfo; 409 public void onRootPicked(RootInfo root) { in onRootPicked() 500 final RootInfo root = getCurrentRoot(); in canCreateDirectory() 662 final RootInfo root = mState.stack.getRoot(); in updateHeaderTitle() 667 case RootInfo.TYPE_RECENTS: in updateHeaderTitle() 670 case RootInfo.TYPE_IMAGES: in updateHeaderTitle() 671 case RootInfo.TYPE_VIDEO: in updateHeaderTitle() 672 case RootInfo.TYPE_AUDIO: in updateHeaderTitle() 675 case RootInfo.TYPE_DOWNLOADS: in updateHeaderTitle() 676 case RootInfo.TYPE_LOCAL: in updateHeaderTitle() [all …]
|
D | ShortcutsUpdater.java | 27 import com.android.documentsui.base.RootInfo; 51 public void update(Collection<RootInfo> roots) { in update() 83 private List<ShortcutInfo> getDeviceShortcuts(Collection<RootInfo> roots) { in getDeviceShortcuts() 85 for (RootInfo root : roots) { in getDeviceShortcuts() 129 private ShortcutInfo createShortcut(RootInfo root, @DrawableRes int resId) { in createShortcut()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | DocumentsProviderHelper.java | 50 import com.android.documentsui.base.RootInfo; 76 public RootInfo getRoot(String documentId) throws RemoteException { in getRoot() 83 return RootInfo.fromRootsCursor(mAuthority, cursor); in getRoot() 112 public Uri createDocument(RootInfo root, String mimeType, String name) { in createDocument() 140 public Uri createFolder(RootInfo root, String name) { in createFolder() 185 public void assertChildCount(RootInfo root, int expected) throws Exception { in assertChildCount() 204 public void assertHasFile(RootInfo root, String name) throws Exception { in assertHasFile() 223 public void assertHasDirectory(RootInfo root, String name) throws Exception { in assertHasDirectory() 241 public void assertDoesNotExist(RootInfo root, String name) throws Exception { in assertDoesNotExist() 320 RootInfo root, String path, String mimeType, byte[] content, String... streamTypes) in createVirtualFile() [all …]
|
D | TestActivity.java | 39 import com.android.documentsui.base.RootInfo; 59 public RootInfo currentRoot; 68 public TestEventListener<RootInfo> rootPicked; 147 public final void onRootPicked(RootInfo root) { in onRootPicked() 172 public final RootInfo getCurrentRoot() { in getCurrentRoot()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/ |
D | RootsFragment.java | 69 import com.android.documentsui.base.RootInfo; 116 private LoaderCallbacks<Collection<RootInfo>> mCallbacks; 228 mCallbacks = new LoaderCallbacks<Collection<RootInfo>>() { in onActivityCreated() 230 public Loader<Collection<RootInfo>> onCreateLoader(int id, Bundle args) { in onActivityCreated() 236 Loader<Collection<RootInfo>> loader, Collection<RootInfo> roots) { in onActivityCreated() 259 public void onLoaderReset(Loader<Collection<RootInfo>> loader) { in onActivityCreated() 275 Collection<RootInfo> roots, in sortLoadResult() 285 for (final RootInfo root : roots) { in sortLoadResult() 439 final RootInfo root = ((BaseActivity) getActivity()).getCurrentRoot(); in onCurrentRootChanged() 443 final RootInfo testRoot = ((RootItem) item).root; in onCurrentRootChanged() [all …]
|
D | RootItem.java | 37 import com.android.documentsui.base.RootInfo; 45 public final RootInfo root; 51 public RootItem(RootInfo root, ActionHandler actionHandler) { in RootItem() 55 public RootItem(RootInfo root, ActionHandler actionHandler, String packageName) { in RootItem() 62 private static String getStringId(RootInfo root) { in getStringId()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/ |
D | SearchViewManagerTest.java | 53 import com.android.documentsui.base.RootInfo; 353 RootInfo root = spy(new RootInfo()); in testSupportsMimeTypesSearch_showChips() 366 RootInfo root = spy(new RootInfo()); in testNotSupportsMimeTypesSearch_notShowChips() 381 RootInfo root = spy(new RootInfo()); in testSupportsSearch_showMenu() 393 RootInfo root = spy(new RootInfo()); in testNotSupportsSearch_notShowMenuAndChips()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/ |
D | DocumentStackTest.java | 41 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/prefs/ |
D | LocalPreferences.java | 26 import com.android.documentsui.base.RootInfo; 38 public static @ViewMode int getViewMode(Context context, RootInfo root, in getViewMode() 43 public static void setViewMode(Context context, RootInfo root, @ViewMode int viewMode) { in setViewMode() 52 private static String createKey(RootInfo root) { in createKey()
|