/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/ |
D | RootsCacheTest.java | 25 import com.android.documentsui.model.RootInfo; 34 private static RootInfo mNull = new RootInfo(); 35 private static RootInfo mEmpty = buildForMimeTypes(); 36 private static RootInfo mWild = buildForMimeTypes("*/*"); 37 private static RootInfo mImages = buildForMimeTypes("image/*"); 38 private static RootInfo mAudio = buildForMimeTypes( 40 private static RootInfo mDocs = buildForMimeTypes( 42 private static RootInfo mMalformed1 = buildForMimeTypes("meow"); 43 private static RootInfo mMalformed2 = buildForMimeTypes("*/meow"); 45 private List<RootInfo> mRoots; [all …]
|
D | DocumentsProviderHelper.java | 44 import com.android.documentsui.model.RootInfo; 69 public RootInfo getRoot(String documentId) throws RemoteException { in getRoot() 76 return RootInfo.fromRootsCursor(mAuthority, cursor); in getRoot() 105 public Uri createDocument(RootInfo root, String mimeType, String name) { in createDocument() 133 public Uri createFolder(RootInfo root, String name) { in createFolder() 164 public void assertChildCount(RootInfo root, int expected) throws Exception { in assertChildCount() 183 public void assertHasFile(RootInfo root, String name) throws Exception { in assertHasFile() 202 public void assertHasDirectory(RootInfo root, String name) throws Exception { in assertHasDirectory() 220 public void assertDoesNotExist(RootInfo root, String name) throws Exception { in assertDoesNotExist() 290 RootInfo root, String path, String mimeType, byte[] content, String... streamTypes) in createVirtualFile()
|
D | ActivityTest.java | 44 import com.android.documentsui.model.RootInfo; 68 public RootInfo rootDir0; 69 public RootInfo rootDir1; 85 protected RootInfo getInitialRoot() { in getInitialRoot()
|
D | StubProvider.java | 88 private final Map<String, RootInfo> mRoots = new HashMap<>(); 128 final RootInfo rootInfo = new RootInfo(file, getSize(rootId)); in clearCacheAndBuildRoots() 151 for (Map.Entry<String, RootInfo> entry : mRoots.entrySet()) { in queryRoots() 153 final RootInfo info = entry.getValue(); in queryRoots() 628 RootInfo root = mRoots.get(rootId); in setSize() 715 final static class RootInfo { class in StubProvider 725 RootInfo(File file, long capacity) { in RootInfo() method in StubProvider.RootInfo 752 public final RootInfo rootInfo; 765 private StubDocument(File file, RootInfo rootInfo) { in StubDocument() 775 public static StubDocument createRootDocument(File file, RootInfo rootInfo) { in createRootDocument()
|
D | FilesActivityUiTest.java | 36 import com.android.documentsui.model.RootInfo; 46 protected RootInfo getInitialRoot() { in getInitialRoot()
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | RootsCache.java | 42 import com.android.documentsui.model.RootInfo; 71 private final RootInfo mRecentsRoot; 82 private Multimap<String, RootInfo> mRoots = ArrayListMultimap.create(); 94 mRecentsRoot = new RootInfo() {{ in RootsCache() 97 derivedType = RootInfo.TYPE_RECENTS; in RootsCache() 135 assert(mRecentsRoot.derivedType == RootInfo.TYPE_RECENTS); in updateAsync() 229 private final Multimap<String, RootInfo> mTaskRoots = ArrayListMultimap.create(); 297 private Collection<RootInfo> loadRootsForAuthority(ContentResolver resolver, String authority, in loadRootsForAuthority() 320 final ArrayList<RootInfo> roots = new ArrayList<>(); in loadRootsForAuthority() 327 final RootInfo root = RootInfo.fromRootsCursor(authority, cursor); in loadRootsForAuthority() [all …]
|
D | RootsLoader.java | 22 import com.android.documentsui.model.RootInfo; 26 public class RootsLoader extends AsyncTaskLoader<Collection<RootInfo>> { 32 private Collection<RootInfo> mResult; 44 public final Collection<RootInfo> loadInBackground() { in loadInBackground() 49 public void deliverResult(Collection<RootInfo> result) { in deliverResult()
|
D | LoadRootTask.java | 23 import com.android.documentsui.model.RootInfo; 25 final class LoadRootTask extends PairedTask<BaseActivity, Void, RootInfo> { 36 protected RootInfo run(Void... params) { in run() 42 protected void finish(RootInfo root) { in finish()
|
D | RootsFragment.java | 49 import com.android.documentsui.model.RootInfo; 68 private LoaderCallbacks<Collection<RootInfo>> mCallbacks; 106 mCallbacks = new LoaderCallbacks<Collection<RootInfo>>() { in onActivityCreated() 108 public Loader<Collection<RootInfo>> onCreateLoader(int id, Bundle args) { in onActivityCreated() 114 Loader<Collection<RootInfo>> loader, Collection<RootInfo> result) { in onActivityCreated() 128 public void onLoaderReset(Loader<Collection<RootInfo>> loader) { in onActivityCreated() 160 final RootInfo root = ((BaseActivity) getActivity()).getCurrentRoot(); in onCurrentRootChanged() 164 final RootInfo testRoot = ((RootItem) item).root; in onCurrentRootChanged() 194 RootInfo newRoot = ((RootItem) item).root; 244 public final RootInfo root; [all …]
|
D | BaseActivity.java | 60 import com.android.documentsui.model.RootInfo; 240 void onRootPicked(RootInfo root) { in onRootPicked() 318 final RootInfo root = getCurrentRoot(); in onOptionsItemSelected() 350 final RootInfo root = getCurrentRoot(); in canCreateDirectory() 418 RootInfo root = getCurrentRoot(); in reloadSearch() 443 final RootInfo root = getCurrentRoot(); in canSearchRoot() 582 public RootInfo getCurrentRoot() { in getCurrentRoot() 716 DocumentInfo getRootDocumentBlocking(RootInfo root) { in getRootDocumentBlocking() 781 private RootInfo mRoot; 783 public PickRootTask(BaseActivity activity, RootInfo root) { in PickRootTask() [all …]
|
D | LocalPreferences.java | 30 import com.android.documentsui.model.RootInfo; 44 public static @ViewMode int getViewMode(Context context, RootInfo root, in getViewMode() 62 public static void setViewMode(Context context, RootInfo root, @ViewMode int viewMode) { in setViewMode() 71 private static String createKey(RootInfo root) { in createKey()
|
D | FilesActivity.java | 47 import com.android.documentsui.model.RootInfo; 179 final RootInfo root = getCurrentRoot(); in onResume() 202 final RootInfo root = getCurrentRoot(); in onPrepareOptionsMenu() 262 final RootInfo root = getCurrentRoot(); in refreshDirectory() 276 void onRootPicked(RootInfo root) { in onRootPicked() 478 final Collection<RootInfo> roots = in run() 485 final RootInfo root = roots.iterator().next(); in run()
|
D | NavigationView.java | 37 import com.android.documentsui.model.RootInfo; 202 final RootInfo root = mEnv.getCurrentRoot(); in getView() 222 final RootInfo root = mEnv.getCurrentRoot(); in getDropDownView() 233 RootInfo getCurrentRoot(); in getCurrentRoot()
|
D | RecentsLoader.java | 37 import com.android.documentsui.model.RootInfo; 83 private final HashMap<RootInfo, RecentsTask> mTasks = new HashMap<>(); 117 final Collection<RootInfo> roots = mRoots.getMatchingRootsBlocking(mState); in loadInBackgroundLocked() 118 for (RootInfo root : roots) { in loadInBackgroundLocked()
|
D | DirectoryLoader.java | 40 import com.android.documentsui.model.RootInfo; 53 private final RootInfo mRoot; 62 public DirectoryLoader(Context context, int type, RootInfo root, DocumentInfo doc, Uri uri, in DirectoryLoader()
|
D | SearchViewManager.java | 35 import com.android.documentsui.model.RootInfo; 104 void update(RootInfo root) { in update()
|
D | State.java | 32 import com.android.documentsui.model.RootInfo; 141 public void onRootChanged(RootInfo root) { in onRootChanged()
|
D | DocumentsActivity.java | 53 import com.android.documentsui.model.RootInfo; 261 final RootInfo root = getCurrentRoot(); in refreshDirectory() 320 void onRootPicked(RootInfo root) { in onRootPicked() 477 final Collection<RootInfo> matchingRoots = roots.getMatchingRootsBlocking(mState); in run()
|
D | Metrics.java | 36 import com.android.documentsui.model.RootInfo; 355 public static void logRootVisited(Context context, RootInfo info) { in logRootVisited() 695 private static @Root int sanitizeRoot(RootInfo root) { in sanitizeRoot()
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/ |
D | RootInfo.java | 51 public class RootInfo implements Durable, Parcelable, Comparable<RootInfo> { class 98 public RootInfo() { in RootInfo() method in RootInfo 164 public static final Creator<RootInfo> CREATOR = new Creator<RootInfo>() { 166 public RootInfo createFromParcel(Parcel in) { 167 final RootInfo root = new RootInfo(); 173 public RootInfo[] newArray(int size) { 174 return new RootInfo[size]; 178 public static RootInfo fromRootsCursor(String authority, Cursor cursor) { in fromRootsCursor() 179 final RootInfo root = new RootInfo(); in fromRootsCursor() 347 if (o instanceof RootInfo) { in equals() [all …]
|
D | DocumentStack.java | 40 public RootInfo root; 56 public void updateRoot(Collection<RootInfo> matchingRoots) throws FileNotFoundException { in updateRoot() 57 for (RootInfo root : matchingRoots) { in updateRoot() 109 root = new RootInfo(); in read()
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/services/ |
D | AbstractJobTest.java | 35 import com.android.documentsui.model.RootInfo; 53 RootInfo mSrcRoot; 54 RootInfo mDestRoot;
|
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/ |
D | ExternalStorageProvider.java | 87 private static class RootInfo { class in ExternalStorageProvider 107 private ArrayMap<String, RootInfo> mRoots = new ArrayMap<>(); 181 final RootInfo root = new RootInfo(); in updateVolumesLocked() 226 final RootInfo root = new RootInfo(); in updateVolumesLocked() 326 RootInfo root; in getFileForDocId() 401 for (RootInfo root : mRoots.values()) { in queryRoots() 645 final RootInfo root = mRoots.valueAt(i);
|
/frameworks/base/packages/DocumentsUI/perf-tests/src/com/android/documentsui/ |
D | FilesActivityPerfTest.java | 31 import com.android.documentsui.model.RootInfo; 60 protected RootInfo getInitialRoot() { in getInitialRoot()
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | DirectoryFragment.java | 103 import com.android.documentsui.model.RootInfo; 171 private RootInfo mRoot; 976 private void showNoResults(RootInfo root) { in showNoResults() 1132 private boolean canCopy(List<DocumentInfo> files, RootInfo root, DocumentInfo dest) { in canCopy() 1711 FragmentManager fm, RootInfo root, DocumentInfo doc, int anim) { in showDirectory() 1719 public static void reloadSearch(FragmentManager fm, RootInfo root, DocumentInfo doc, in reloadSearch() 1730 public static void reload(FragmentManager fm, int type, RootInfo root, DocumentInfo doc, in reload() 1741 public static void create(FragmentManager fm, int type, RootInfo root, DocumentInfo doc, in create() 1760 private static String buildStateKey(RootInfo root, DocumentInfo doc) { in buildStateKey()
|