Home
last modified time | relevance | path

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

12

/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
DRootsCacheTest.java25 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 …]
DDocumentsProviderHelper.java44 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()
DActivityTest.java44 import com.android.documentsui.model.RootInfo;
68 public RootInfo rootDir0;
69 public RootInfo rootDir1;
85 protected RootInfo getInitialRoot() { in getInitialRoot()
DStubProvider.java88 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()
DFilesActivityUiTest.java36 import com.android.documentsui.model.RootInfo;
46 protected RootInfo getInitialRoot() { in getInitialRoot()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRootsCache.java42 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 …]
DRootsLoader.java22 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()
DLoadRootTask.java23 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()
DRootsFragment.java49 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 …]
DBaseActivity.java60 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 …]
DLocalPreferences.java30 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()
DFilesActivity.java47 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()
DNavigationView.java37 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()
DRecentsLoader.java37 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()
DDirectoryLoader.java40 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()
DSearchViewManager.java35 import com.android.documentsui.model.RootInfo;
104 void update(RootInfo root) { in update()
DState.java32 import com.android.documentsui.model.RootInfo;
141 public void onRootChanged(RootInfo root) { in onRootChanged()
DDocumentsActivity.java53 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()
DMetrics.java36 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/
DRootInfo.java51 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 …]
DDocumentStack.java40 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/
DAbstractJobTest.java35 import com.android.documentsui.model.RootInfo;
53 RootInfo mSrcRoot;
54 RootInfo mDestRoot;
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
DExternalStorageProvider.java87 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/
DFilesActivityPerfTest.java31 import com.android.documentsui.model.RootInfo;
60 protected RootInfo getInitialRoot() { in getInitialRoot()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryFragment.java103 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()

12