/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
H A D | DocumentStackAsserts.java | 18 public static void assertEqualsTo(DocumentStack stack, RootInfo root, List<DocumentInfo> docs) { argument 19 assertEquals(root, stack.getRoot());
|
H A D | TestActionHandler.java | 66 public void openRoot(RootInfo root) { argument 81 public void getRootDocument(RootInfo root, int timeout, Consumer<DocumentInfo> callback) { argument
|
H A D | TestProvidersAccess.java | 70 // 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 D | TestDocumentsAccess.java | 48 public DocumentInfo getRootDocument(RootInfo root) { argument
|
H A D | TestDragAndDropManager.java | 50 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 D | SynchronizedHandler.java | 28 public SynchronizedHandler(GLRoot root) { argument 29 mRoot = Utils.checkNotNull(root);
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
H A D | ShortcutsUpdater.java | 62 // 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 D | DocumentsAccess.java | 45 @Nullable DocumentInfo getRootDocument(RootInfo root); argument 71 public @Nullable DocumentInfo getRootDocument(RootInfo root) { argument 73 DocumentsContract.buildDocumentUri(root.authority, root.documentId));
|
H A D | DirectoryLoader.java | 72 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 D | LoadRootTask.java | 49 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 D | AbstractOneCamera.java | 60 * 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 D | SearchAdapter.java | 44 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 D | DirectoryState.java | 68 public void update(RootInfo root, DocumentInfo doc) { argument 69 mRoot = root;
|
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
H A D | ResolvedResourcesJob.java | 112 boolean isEligibleDoc(DocumentInfo doc, RootInfo root) { argument
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/ |
H A D | RootItem.java | 39 * 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 D | TextureUploader.java | 35 public TextureUploader(GLRoot root) { argument 36 mGLRoot = root;
|
/packages/apps/Gallery2/src/com/android/gallery3d/onetimeinitializer/ |
H A D | GalleryWidgetMigrator.java | 125 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 D | FileUtil.java | 74 /** 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 D | ShowAdminSupportDetailsDialog.java | 100 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 D | TestBackService.java | 93 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 D | InputTestFragment.java | 121 private void addButtonsToPanel(LinearLayout root, List<View> buttons) { argument 127 root.addView(panel);
|
/packages/apps/DocumentsUI/src/com/android/documentsui/prefs/ |
H A D | LocalPreferences.java | 39 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 D | WaitFragment.java | 84 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 D | FillService.java | 206 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 D | maketests.py | 72 root = dom.documentElement
variable 74 entries = root.getElementsByTagName("entry")
|