Searched defs:root (Results 1 - 25 of 62) sorted by relevance

123

/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
H A DDocumentStackAsserts.java18 public static void assertEqualsTo(DocumentStack stack, RootInfo root, List<DocumentInfo> docs) { argument
19 assertEquals(root, stack.getRoot());
H A DTestActionHandler.java66 public void openRoot(RootInfo root) { argument
81 public void getRootDocument(RootInfo root, int timeout, Consumer<DocumentInfo> callback) { argument
H A DTestProvidersAccess.java70 // Special root for recents
93 private void add(RootInfo root) { argument
94 if (!roots.containsKey(root.authority)) {
95 roots.put(root.authority, new ArrayList<>());
97 roots.get(root.authority).add(root);
110 for (RootInfo root : roots.get(authority)) {
111 if (rootId.equals(root.rootId)) {
112 return root;
H A DTestDocumentsAccess.java48 public DocumentInfo getRootDocument(RootInfo root) { argument
H A DTestDragAndDropManager.java50 public void startDrag(View v, List<DocumentInfo> srcs, RootInfo root, List<Uri> invalidDest, argument
56 public boolean canSpringOpen(RootInfo root, DocumentInfo doc) { argument
72 public boolean drop(ClipData clipData, Object localState, RootInfo root, ActionHandler actions, argument
74 return dropOnRootHandler.accept(Pair.create(clipData, root));
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DSynchronizedHandler.java28 public SynchronizedHandler(GLRoot root) { argument
29 mRoot = Utils.checkNotNull(root);
/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DShortcutsUpdater.java62 // Mark any shortcut that doesn't correspond to a current root as disabled.
80 for (RootInfo root : roots) {
81 String id = root.getUri().toString();
85 // if (!Providers.isSystemProvider(root.authority)) {
87 // devices.add(createShortcut(root, R.drawable.ic_folder_shortcut));
89 if (root.isAdvanced() && root.authority.equals(Providers.AUTHORITY_STORAGE)) {
92 devices.add(0, createShortcut(root, R.drawable.ic_advanced_shortcut));
94 } else if (root.isAdvanced()) {
96 devices.add(0, createShortcut(root,
124 createShortcut(RootInfo root, @DrawableRes int resId) argument
[all...]
H A DDocumentsAccess.java45 @Nullable DocumentInfo getRootDocument(RootInfo root); argument
71 public @Nullable DocumentInfo getRootDocument(RootInfo root) { argument
73 DocumentsContract.buildDocumentUri(root.authority, root.documentId));
H A DDirectoryLoader.java72 RootInfo root,
80 super(context, ProviderExecutor.forAuthority(root.authority));
82 mRoot = root;
69 DirectoryLoader( Features features, Context context, RootInfo root, DocumentInfo doc, Uri uri, SortModel model, Lookup<String, String> fileTypeLookup, DirectoryReloadLock lock, boolean inSearchMode) argument
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
H A DLoadRootTask.java49 if (DEBUG) Log.d(TAG, "Loading root: " + mRootUri);
56 protected void finish(RootInfo root) { argument
57 if (root != null) {
58 if (DEBUG) Log.d(TAG, "Loaded root: " + root);
59 mOwner.onRootPicked(root);
61 Log.w(TAG, "Failed to find root: " + mRootUri);
/packages/apps/Camera2/src/com/android/camera/one/
H A DAbstractOneCamera.java60 * The directory created is [root]/[folderName]/SSSS_YYYYMMDD_HHMMSS_XXX,
64 * @param root the root into which we put a session-specific sub-directory.
65 * @param folderName the sub-folder within 'root' where the data should be
70 protected static String makeDebugDir(File root, String folderName) { argument
71 if (root == null) {
74 if (!root.exists() || !root.isDirectory()) {
76 + root.getAbsolutePath());
96 File destFolder = new File(new File(root, folderNam
[all...]
/packages/apps/Dialer/java/com/android/dialer/searchfragment/list/
H A DSearchAdapter.java44 public ViewHolder onCreateViewHolder(ViewGroup root, @RowType int rowType) { argument
48 LayoutInflater.from(context).inflate(R.layout.search_contact_row, root, false));
51 LayoutInflater.from(context).inflate(R.layout.search_contact_row, root, false));
55 LayoutInflater.from(context).inflate(R.layout.header_layout, root, false));
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
H A DDirectoryState.java68 public void update(RootInfo root, DocumentInfo doc) { argument
69 mRoot = root;
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
H A DResolvedResourcesJob.java112 boolean isEligibleDoc(DocumentInfo doc, RootInfo root) { argument
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
H A DRootItem.java39 * An {@link Item} for each root provided by {@link DocumentsProvider}s.
44 public final RootInfo root; field in class:RootItem
49 public RootItem(RootInfo root, ActionHandler actionHandler) { argument
50 super(R.layout.item_root, getStringId(root));
51 this.root = root;
55 private static String getStringId(RootInfo root) { argument
56 // Empty URI authority is invalid, so we can use empty string if root.authority is null.
59 String authority = (root.authority == null ? "" : root
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DTextureUploader.java35 public TextureUploader(GLRoot root) { argument
36 mGLRoot = root;
/packages/apps/Gallery2/src/com/android/gallery3d/onetimeinitializer/
H A DGalleryWidgetMigrator.java125 File root = Environment.getExternalStorageDirectory();
127 updatePath(new File(root, "DCIM"), entries, dbHelper, oldExtPath);
129 if (!entries.isEmpty()) updatePath(root, entries, dbHelper, oldExtPath);
131 private static void updatePath(File root, HashMap<Integer, Entry> entries, argument
133 File[] files = root.listFiles();
/packages/apps/Messaging/src/com/android/messaging/util/
H A DFileUtil.java74 /** Delete everything below and including root */
75 public static void removeFileOrDirectory(File root) { argument
76 removeFileOrDirectoryExcept(root, null);
79 /** Delete everything below and including root except for the given file */
80 public static void removeFileOrDirectoryExcept(File root, File exclude) { argument
81 if (root.exists()) {
82 if (root.isDirectory()) {
83 for (File file : root.listFiles()) {
88 root.delete();
89 } else if (root
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DShowAdminSupportDetailsDialog.java100 private void initializeDialogViews(View root, ComponentName admin, int userId, argument
118 ((ImageView) root.findViewById(R.id.admin_support_icon)).setImageDrawable(
124 setAdminSupportTitle(root, restriction);
125 setAdminSupportDetails(this, root, new EnforcedAdmin(admin, userId), true);
128 private void setAdminSupportTitle(View root, String restriction) { argument
129 final TextView titleView = (TextView) root.findViewById(R.id.admin_support_dialog_title);
159 public static void setAdminSupportDetails(final Activity activity, View root, argument
182 TextView textView = (TextView) root.findViewById(R.id.admin_support_msg);
188 root.findViewById(R.id.admins_policies_list).setOnClickListener(
/packages/experimental/TestBack/src/foo/bar/testback/
H A DTestBackService.java93 AccessibilityNodeInfo root = source;
95 AccessibilityNodeInfo parent = root.getParent();
98 } else if (parent.equals(root)) {
99 Log.i(LOG_TAG, "Node is own parent:" + root);
101 root = parent;
103 dumpTree(root, new ArraySet<AccessibilityNodeInfo>());
106 private void dumpTree(AccessibilityNodeInfo root, Set<AccessibilityNodeInfo> visited) { argument
107 if (root == null) {
111 if (!visited.add(root)) {
112 Log.i(LOG_TAG, "Cycle detected to node:" + root);
[all...]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/input/
H A DInputTestFragment.java121 private void addButtonsToPanel(LinearLayout root, List<View> buttons) { argument
127 root.addView(panel);
/packages/apps/DocumentsUI/src/com/android/documentsui/prefs/
H A DLocalPreferences.java39 public static @ViewMode int getViewMode(Context context, RootInfo root, argument
41 return getPrefs(context).getInt(createKey(root), fallback);
44 public static void setViewMode(Context context, RootInfo root, @ViewMode int viewMode) { argument
46 getPrefs(context).edit().putInt(createKey(root), viewMode).apply();
53 private static String createKey(RootInfo root) { argument
54 return ROOT_VIEW_MODE_PREFIX + root.authority + root.rootId;
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DWaitFragment.java84 private View getContent(ViewGroup root) { argument
90 view = mInflater.inflate(R.layout.wait_for_manual_sync, root, false);
96 view = mInflater.inflate(R.layout.loading_messages, root, false);
98 view = mInflater.inflate(R.layout.wait_default, root, false);
/packages/experimental/FillService/src/foo/bar/fill/
H A DFillService.java206 ViewNode root = window.getRootViewNode();
207 if (root == null) {
210 ViewNode node = findByPredicate(root, predicate);
218 private static ViewNode findByPredicate(ViewNode root, Predicate<ViewNode> predicate) { argument
219 if (root == null) {
222 if (predicate.test(root)) {
223 return root;
225 final int childCount = root.getChildCount();
227 ViewNode child = root.getChildAt(i);
/packages/providers/CalendarProvider/
H A Dmaketests.py72 root = dom.documentElement variable
74 entries = root.getElementsByTagName("entry")

Completed in 476 milliseconds

123