Searched refs:roots (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
H A DMtpDeviceRecord.java27 public final MtpRoot[] roots; field in class:MtpDeviceRecord
32 MtpRoot[] roots, @Nullable int[] operationsSupported,
37 this.roots = roots;
31 MtpDeviceRecord(int deviceId, String name, @Nullable String deviceKey, boolean opened, MtpRoot[] roots, @Nullable int[] operationsSupported, @Nullable int[] eventsSupported) argument
H A DMtpManager.java254 final ArrayList<MtpRoot> roots = new ArrayList<>();
260 roots.add(new MtpRoot(device.getDeviceId(), info));
262 return roots.toArray(new MtpRoot[roots.size()]);
270 MtpRoot[] roots;
275 roots = getRoots(device.getDeviceId());
278 // If we failed to fetch roots for the device, we still returns device model
279 // with an empty set of roots so that the device is shown DocumentsUI as long as
281 roots = new MtpRoot[0];
289 roots
[all...]
H A DMapper.java88 * @param roots List of root information.
89 * @return If roots are added or removed from the database.
93 String parentDocumentId, int[] operationsSupported, MtpRoot[] roots)
98 final ContentValues[] valuesList = new ContentValues[roots.length];
99 final ContentValues[] extraValuesList = new ContentValues[roots.length];
100 for (int i = 0; i < roots.length; i++) {
108 roots[i]);
92 putStorageDocuments( String parentDocumentId, int[] operationsSupported, MtpRoot[] roots) argument
H A DRootScanner.java71 * Notifies a change of the roots list via ContentResolver.
115 * Runnable to scan roots and update the database information.
155 // Update roots.
164 documentId, device.eventsSupported, device.roots)) {
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
H A DFilesActivityUiTest.java65 bots.roots.assertRootsPresent(
75 bots.roots.assertRootsPresent("Documents");
77 bots.roots.assertRootsAbsent("Documents");
84 bots.roots.openRoot(ROOT_0_ID);
98 bots.roots.openRoot("Downloads");
105 bots.roots.openRoot(ROOT_0_ID);
116 bots.roots.openRoot(ROOT_0_ID);
130 bots.roots.openRoot(ROOT_0_ID);
144 bots.roots.openRoot(ROOT_0_ID);
155 // Tests that pressing tab switches focus between the roots an
[all...]
H A DRootsUiTest.java43 bots.roots.openRoot(ROOT_0_ID);
53 bots.roots.openRoot(ROOT_1_ID);
H A DRootsCacheTest.java133 final List<RootInfo> roots = newArrayList();
135 // Set up some roots
139 roots.add(root);
143 roots.get(0), roots.get(2), roots.get(4));
145 for (RootInfo root: roots) {
154 getMatchingRoots(roots, mState));
H A DSearchViewUiTest.java137 bots.roots.openRoot(ROOT_1_ID);
140 bots.roots.openRoot(ROOT_0_ID);
145 bots.roots.openRoot(ROOT_0_ID);
150 bots.roots.openRoot(ROOT_1_ID);
H A DActivityTest.java80 * By default tests are started with one of the test roots.
99 * Resolves testing roots.
174 public final RootsListBot roots; field in class:ActivityTest.Bots
180 this.roots = new RootsListBot(device, context, TIMEOUT);
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DRootsLoader.java34 public RootsLoader(Context context, RootsCache roots, State state) { argument
36 mRoots = roots;
H A DRootsCache.java60 * Cache of known storage backends and their roots.
64 "content://com.android.documentsui.roots/");
116 if (DEBUG) Log.d(TAG, "Updating roots due to change at " + uri);
122 * Gather roots from all known storage providers.
146 * Gather roots from storage providers belonging to given package name.
153 * Gather roots from storage providers belonging to given authority.
177 * @return {@code true} if cached roots is ready to roll, otherwise
193 * Load roots from authorities that are in stopped state. Normal
208 * Load roots from a stopped authority. Normal {@link UpdateTask} passes
233 * Create task to update roots cach
449 getMatchingRoots(Collection<RootInfo> roots, State state) argument
[all...]
H A DRecentsLoader.java92 public RecentsLoader(Context context, RootsCache roots, State state) { argument
94 mRoots = roots;
117 final Collection<RootInfo> roots = mRoots.getMatchingRootsBlocking(mState);
118 for (RootInfo root : roots) {
H A DRecentsCreateFragment.java96 final RootsCache roots = DocumentsApplication.getRootsCache(context);
102 return new RecentsCreateLoader(context, roots, state);
162 public RecentsCreateLoader(Context context, RootsCache roots, State state) { argument
164 mRoots = roots;
186 // restore. This also filters away roots that don't
H A DRootsFragment.java59 * Display list of known storage backend roots.
103 final RootsCache roots = DocumentsApplication.getRootsCache(context);
109 return new RootsLoader(context, roots, state);
311 * intent will be included in list of roots (in special section at bottom).
313 public RootsAdapter(Context context, Collection<RootInfo> roots, argument
320 for (final RootInfo root : roots) {
354 * in list of roots (in special section at bottom).
H A DFilesActivity.java459 * Builds a stack for the specific Uris. Multi roots are not supported, as it's impossible
478 final Collection<RootInfo> roots =
480 if (roots.isEmpty()) {
485 final RootInfo root = roots.iterator().next();
H A DBaseActivity.java217 // Advanced roots are shown by default without menu option if forced by config or intent.
222 // Menu option is shown for whitelisted intents if advanced roots are not shown by default.
384 final RootsFragment roots = RootsFragment.get(getFragmentManager());
385 if (roots != null) {
386 roots.onCurrentRootChanged();
427 // Exclude roots provided by the calling package.
811 protected RootInfo run(RootInfo... roots) { argument
812 assert(roots.length == 1);
813 mCurrentRoot = roots[0];
H A DDocumentsActivity.java147 // Why? Directory creation isn't supported by some roots (like Downloads).
148 // This allows us to restrict available roots to just those with support.
456 RootsCache roots = DocumentsApplication.getRootsCache(mOwner);
477 final Collection<RootInfo> matchingRoots = roots.getMatchingRootsBlocking(mState);
/frameworks/base/test-runner/src/junit/runner/
H A DClassPathTestCollector.java33 Hashtable collectFilesInRoots(Vector roots) { argument
35 Enumeration e= roots.elements();
/frameworks/base/packages/DocumentsUI/perf-tests/src/com/android/documentsui/
H A DFilesActivityPerfTest.java118 bots.roots.openRoot(STRESS_ROOT_1_ID);
127 bots.roots.openRoot(STRESS_ROOT_0_ID);
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
H A DTestUtil.java123 if (device.roots.length == 0) {
H A DTestMtpManager.java99 device.deviceId, device.name, device.deviceKey, true, device.roots,
114 device.roots, device.operationsSupported, device.eventsSupported));
H A DMtpManagerTest.java121 storageId = record.roots[0].mStorageId;
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/
H A DDataBindingUtil.java178 static <T extends ViewDataBinding> T bind(DataBindingComponent bindingComponent, View[] roots, argument
180 return (T) sMapper.getDataBinder(bindingComponent, roots, layoutId);
H A DViewDataBinding.java891 * Walks the view hierarchy under roots and pulls out tagged Views, includes, and views with
896 * @param roots The root Views of the view hierarchy to walk. This is used with merge tags.
905 protected static Object[] mapBindings(DataBindingComponent bindingComponent, View[] roots, argument
908 for (int i = 0; i < roots.length; i++) {
909 mapBindings(bindingComponent, roots[i], bindings, includes, viewsWithIds, true);
/frameworks/base/core/java/android/widget/
H A DRelativeLayout.java1700 * Temporary data structure used to build the list of roots
1748 final ArrayDeque<Node> roots = findRoots(rules);
1752 while ((node = roots.pollLast()) != null) {
1766 roots.add(dependent);
1778 * Finds the roots of the graph. A root is a node with no dependency and
1791 // Find roots can be invoked several times, so make sure to clear
1826 final ArrayDeque<Node> roots = mRoots;
1827 roots.clear();
1829 // Finds all the roots in the graph: all nodes with no dependencies
1832 if (node.dependencies.size() == 0) roots
[all...]

Completed in 794 milliseconds

12