Home
last modified time | relevance | path

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

/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
DRootsCacheTest.java23 import com.android.documentsui.model.RootInfo;
31 private static RootInfo buildForMimeTypes(String... mimeTypes) { in buildForMimeTypes()
32 final RootInfo root = new RootInfo(); in buildForMimeTypes()
37 private RootInfo mNull = new RootInfo();
38 private RootInfo mEmpty = buildForMimeTypes();
39 private RootInfo mWild = buildForMimeTypes("*/*");
40 private RootInfo mImages = buildForMimeTypes("image/*");
41 private RootInfo mAudio = buildForMimeTypes("audio/*", "application/ogg", "application/x-flac");
42 private RootInfo mDocs = buildForMimeTypes("application/msword", "application/vnd.ms-excel");
43 private RootInfo mMalformed1 = buildForMimeTypes("meow");
[all …]
DStubProvider.java74 private Map<String, RootInfo> mRoots;
106 final RootInfo rootInfo = new RootInfo(rootId, getSize(rootId)); in clearCacheAndBuildRoots()
123 for (Map.Entry<String, RootInfo> entry : mRoots.entrySet()) { in queryRoots()
125 final RootInfo info = entry.getValue(); in queryRoots()
389 RootInfo root = mRoots.get(rootId); in setSize()
455 final class RootInfo { class in StubProvider
461 RootInfo(String name, long capacity) { in RootInfo() method in StubProvider.RootInfo
482 public final RootInfo rootInfo;
493 StubDocument(File file, String mimeType, RootInfo rootInfo) { in StubDocument()
DCopyTest.java38 import com.android.documentsui.model.RootInfo;
115 private List<RootInfo> mRoots;
138 mRoots.add(RootInfo.fromRootsCursor(AUTHORITY, cursor)); in setUp()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRootsCache.java40 import com.android.documentsui.model.RootInfo;
69 private final RootInfo mRecentsRoot = new RootInfo();
75 private Multimap<String, RootInfo> mRoots = ArrayListMultimap.create();
161 private final Multimap<String, RootInfo> mTaskRoots = ArrayListMultimap.create();
243 private Collection<RootInfo> loadRootsForAuthority(ContentResolver resolver, String authority) { in loadRootsForAuthority()
254 final List<RootInfo> roots = Lists.newArrayList(); in loadRootsForAuthority()
263 final RootInfo root = RootInfo.fromRootsCursor(authority, cursor); in loadRootsForAuthority()
280 public RootInfo getRootOneshot(String authority, String rootId) { in getRootOneshot()
282 RootInfo root = getRootLocked(authority, rootId); in getRootOneshot()
292 public RootInfo getRootBlocking(String authority, String rootId) { in getRootBlocking()
[all …]
DRootsLoader.java23 import com.android.documentsui.model.RootInfo;
27 public class RootsLoader extends AsyncTaskLoader<Collection<RootInfo>> {
33 private Collection<RootInfo> mResult;
45 public final Collection<RootInfo> loadInBackground() { in loadInBackground()
50 public void deliverResult(Collection<RootInfo> result) { in deliverResult()
54 Collection<RootInfo> oldResult = mResult; in deliverResult()
DRootsFragment.java46 import com.android.documentsui.model.RootInfo;
63 private LoaderCallbacks<Collection<RootInfo>> mCallbacks;
104 mCallbacks = new LoaderCallbacks<Collection<RootInfo>>() { in onActivityCreated()
106 public Loader<Collection<RootInfo>> onCreateLoader(int id, Bundle args) { in onActivityCreated()
112 Loader<Collection<RootInfo>> loader, Collection<RootInfo> result) { in onActivityCreated()
124 public void onLoaderReset(Loader<Collection<RootInfo>> loader) { in onActivityCreated()
154 final RootInfo root = ((BaseActivity) getActivity()).getCurrentRoot(); in onCurrentRootChanged()
158 final RootInfo testRoot = ((RootItem) item).root; in onCurrentRootChanged()
223 public final RootInfo root;
225 public RootItem(RootInfo root) { in RootItem()
[all …]
DBaseActivity.java67 import com.android.documentsui.model.RootInfo;
103 final RootInfo root = getCurrentRoot(); in onResume()
128 final RootInfo root = getCurrentRoot(); in onPrepareOptionsMenu()
161 void onRootPicked(RootInfo root) { in onRootPicked()
227 final RootInfo root = getCurrentRoot(); in onOptionsItemSelected()
468 RootInfo getCurrentRoot() { in getCurrentRoot()
506 private RootInfo mRoot;
508 public PickRootTask(RootInfo root) { in PickRootTask()
564 final Collection<RootInfo> matchingRoots = roots.getMatchingRootsBlocking(state); in doInBackground()
647 final RootInfo root = getCurrentRoot(); in getView()
[all …]
DRecentLoader.java38 import com.android.documentsui.model.RootInfo;
84 private final HashMap<RootInfo, RecentTask> mTasks = Maps.newHashMap();
174 final Collection<RootInfo> roots = mRoots.getMatchingRootsBlocking(mState); in loadInBackground()
175 for (RootInfo root : roots) { in loadInBackground()
DDirectoryLoader.java45 import com.android.documentsui.model.RootInfo;
75 private final RootInfo mRoot;
83 public DirectoryLoader(Context context, int type, RootInfo root, DocumentInfo doc, Uri uri, in DirectoryLoader()
DDocumentsActivity.java73 import com.android.documentsui.model.RootInfo;
268 private class RestoreRootTask extends AsyncTask<Void, Void, RootInfo> {
276 protected RootInfo doInBackground(Void... params) { in doInBackground()
282 protected void onPostExecute(RootInfo root) { in onPostExecute()
465 final RootInfo root = getCurrentRoot(); in onPrepareOptionsMenu()
547 final RootInfo root = getCurrentRoot(); in onDirectoryChanged()
603 void onRootPicked(RootInfo root) { in onRootPicked()
DDirectoryFragment.java89 import com.android.documentsui.model.RootInfo;
142 public static void showNormal(FragmentManager fm, RootInfo root, DocumentInfo doc, int anim) { in showNormal()
146 public static void showSearch(FragmentManager fm, RootInfo root, String query, int anim) { in showSearch()
154 private static void show(FragmentManager fm, int type, RootInfo root, DocumentInfo doc, in show()
183 private static String buildStateKey(RootInfo root, DocumentInfo doc) { in buildStateKey()
252 final RootInfo root = getArguments().getParcelable(EXTRA_ROOT); in onActivityCreated()
411 final RootInfo root = getArguments().getParcelable(EXTRA_ROOT); in onUserModeChanged()
948 final RootInfo root = roots.getRootBlocking(docAuthority, docRootId); in getDocumentView()
DRecentsCreateFragment.java52 import com.android.documentsui.model.RootInfo;
159 final Collection<RootInfo> matchingRoots = mRoots.getMatchingRootsBlocking(mState); in loadInBackground()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
DRootInfo.java43 public class RootInfo implements Durable, Parcelable { class
61 public RootInfo() { in RootInfo() method in RootInfo
126 public static final Creator<RootInfo> CREATOR = new Creator<RootInfo>() {
128 public RootInfo createFromParcel(Parcel in) {
129 final RootInfo root = new RootInfo();
135 public RootInfo[] newArray(int size) {
136 return new RootInfo[size];
140 public static RootInfo fromRootsCursor(String authority, Cursor cursor) { in fromRootsCursor()
141 final RootInfo root = new RootInfo(); in fromRootsCursor()
240 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/ExternalStorageProvider/src/com/android/externalstorage/
DExternalStorageProvider.java80 private static class RootInfo { class in ExternalStorageProvider
97 private ArrayMap<String, RootInfo> mRoots = new ArrayMap<>();
155 final RootInfo root = new RootInfo(); in updateVolumesLocked()
238 RootInfo root; in getFileForDocId()
306 for (RootInfo root : mRoots.values()) { in queryRoots()
485 final RootInfo root = mRoots.valueAt(i);