Home
last modified time | relevance | path

Searched refs:root (Results 1 – 25 of 230) sorted by relevance

12345678910

/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
DRootItem.java50 public final RootInfo root; field in RootItem
57 public RootItem(RootInfo root, ActionHandler actionHandler, boolean maybeShowBadge) { in RootItem() argument
58 this(root, actionHandler, "" /* packageName */, maybeShowBadge); in RootItem()
61 public RootItem(RootInfo root, ActionHandler actionHandler, String packageName, in RootItem() argument
63 super(R.layout.item_root, root.title, getStringId(root), root.userId); in RootItem()
64 this.root = root; in RootItem()
70 private static String getStringId(RootInfo root) { in getStringId() argument
74 String authority = (root.authority == null ? "" : root.authority); in getStringId()
75 return String.format(STRING_ID_FORMAT, authority, root.rootId); in getStringId()
81 if (root.supportsEject()) { in bindView()
[all …]
DRootsFragment.java199 if (!(item instanceof RootItem) || !((RootItem) item).root.supportsCreate()) { in onRightClick()
366 for (final RootInfo root : roots) { in sortLoadResult()
369 if (root.isExternalStorageHome()) { in sortLoadResult()
371 } else if (root.isLibrary() || root.isDownloads()) { in sortLoadResult()
372 item = new RootItem(root, mActionHandler, maybeShowBadge); in sortLoadResult()
374 } else if (root.isStorage()) { in sortLoadResult()
375 item = new RootItem(root, mActionHandler, maybeShowBadge); in sortLoadResult()
378 item = new RootItem(root, mActionHandler, in sortLoadResult()
379 providersAccess.getPackageName(root.userId, root.authority), in sortLoadResult()
489 item = new RootAndAppItem(rootItem.root, resolveInfo, mActionHandler, in includeHandlerApps()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dpointer.h387 …ValueType& Create(ValueType& root, typename ValueType::AllocatorType& allocator, bool* alreadyExis…
389 ValueType* v = &root;
457 ValueType* Get(ValueType& root) const { in Get() argument
459 ValueType* v = &root; in Get()
487 const ValueType* Get(const ValueType& root) const { return Get(const_cast<ValueType&>(root)); } in Get() argument
504 …ValueType& GetWithDefault(ValueType& root, const ValueType& defaultValue, typename ValueType::Allo… in GetWithDefault() argument
506 Value& v = Create(root, allocator, &alreadyExist); in GetWithDefault()
511 …ValueType& GetWithDefault(ValueType& root, const Ch* defaultValue, typename ValueType::AllocatorTy… in GetWithDefault() argument
513 Value& v = Create(root, allocator, &alreadyExist); in GetWithDefault()
519 …ValueType& GetWithDefault(ValueType& root, const std::basic_string<Ch>& defaultValue, typename Val… in GetWithDefault() argument
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DProvidersAccess.java73 for (RootInfo root : roots) { in getMatchingRoots()
75 if (VERBOSE) Log.v(tag, "Evaluationg root: " + root); in getMatchingRoots()
77 if (state.action == State.ACTION_CREATE && !root.supportsCreate()) { in getMatchingRoots()
83 && !root.supportsCreate()) { in getMatchingRoots()
89 if (state.action == State.ACTION_OPEN_TREE && !root.supportsChildren()) { in getMatchingRoots()
95 if (state.action == State.ACTION_OPEN_TREE && root.isRecents()) { in getMatchingRoots()
101 if (state.localOnly && !root.isLocalOnly()) { in getMatchingRoots()
106 if (state.action == State.ACTION_OPEN && root.isEmpty()) { in getMatchingRoots()
111 if (state.action == State.ACTION_GET_CONTENT && root.isEmpty()) { in getMatchingRoots()
116 if (!UserId.CURRENT_USER.equals(root.userId) && !state.supportsCrossProfile()) { in getMatchingRoots()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DRootInfo.java192 final RootInfo root = new RootInfo();
193 DurableUtils.readFromParcel(in, root);
194 return root;
206 public static RootInfo copyRootInfo(RootInfo root) { in copyRootInfo() argument
208 newRoot.userId = root.userId; in copyRootInfo()
209 newRoot.authority = root.authority; in copyRootInfo()
210 newRoot.rootId = root.rootId; in copyRootInfo()
211 newRoot.flags = root.flags; in copyRootInfo()
212 newRoot.icon = root.icon; in copyRootInfo()
213 newRoot.title = root.title; in copyRootInfo()
[all …]
DDocumentStack.java68 public DocumentStack(RootInfo root, DocumentInfo... docs) { in DocumentStack() argument
74 mRoot = root; in DocumentStack()
81 public DocumentStack(RootInfo root, List<DocumentInfo> docs) { in DocumentStack() argument
83 mRoot = root; in DocumentStack()
156 public void changeRoot(RootInfo root) { in changeRoot() argument
158 Log.d(TAG, "Root changed to: " + root); in changeRoot()
161 mRoot = root; in changeRoot()
164 if (root.isRecents()) { in changeRoot()
166 rootRecent.userId = root.userId; in changeRoot()
223 for (RootInfo root : matchingRoots) { in updateRoot()
[all …]
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/utils/
DViewUtils.java170 public static boolean adjustFocus(@NonNull View root, @Nullable View currentFocus) { in adjustFocus() argument
172 return adjustFocus(root, currentLevel, /* cachedFocusedView= */ null, in adjustFocus()
182 public static boolean initFocus(@NonNull View root, @Nullable View currentFocus) { in initFocus() argument
187 return adjustFocus(root, currentLevel, /* cachedFocusedView= */ null, in initFocus()
198 static boolean adjustFocus(@NonNull View root, @FocusLevel int currentLevel) { in adjustFocus() argument
199 return adjustFocus(root, currentLevel, /* cachedFocusedView= */ null, in adjustFocus()
209 public static boolean adjustFocus(@NonNull View root, in adjustFocus() argument
212 return adjustFocus(root, NO_FOCUS, cachedFocusedView, defaultFocusOverridesHistory); in adjustFocus()
222 private static boolean adjustFocus(@NonNull View root, in adjustFocus() argument
233 if (currentLevel < FOCUSED_BY_DEFAULT && focusOnFocusedByDefaultView(root)) { in adjustFocus()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DShortcutsUpdater.java82 for (RootInfo root : roots) { in getDeviceShortcuts()
83 String id = root.getUri().toString(); in getDeviceShortcuts()
91 if (root.isAdvanced() && root.authority.equals(Providers.AUTHORITY_STORAGE)) { in getDeviceShortcuts()
93 devices.add(0, createShortcut(root, R.drawable.ic_advanced_shortcut)); in getDeviceShortcuts()
94 } else if (root.isAdvanced()) { in getDeviceShortcuts()
96 devices.add(0, createShortcut(root, R.drawable.ic_folder_shortcut)); in getDeviceShortcuts()
124 private ShortcutInfo createShortcut(RootInfo root, @DrawableRes int resId) { in createShortcut() argument
127 intent.setData(root.getUri()); in createShortcut()
129 return new ShortcutInfo.Builder(mContext, root.getUri().toString()) in createShortcut()
130 .setShortLabel(root.title) in createShortcut()
DAbstractActionHandler.java159 public void ejectRoot(RootInfo root, BooleanConsumer listener) { in ejectRoot() argument
162 root.authority, in ejectRoot()
163 root.rootId, in ejectRoot()
164 listener).executeOnExecutor(ProviderExecutor.forAuthority(root.authority)); in ejectRoot()
199 public void getRootDocument(RootInfo root, int timeout, Consumer<DocumentInfo> callback) { in getRootDocument() argument
201 root, in getRootDocument()
207 task.executeOnExecutor(mExecutors.lookup(root.authority)); in getRootDocument()
261 public void openSettings(RootInfo root) { in openSettings() argument
276 public boolean dropOn(DragEvent event, RootInfo root) { in dropOn() argument
281 public void pasteIntoFolder(RootInfo root) { in pasteIntoFolder() argument
[all …]
DBaseActivity.java420 View root = findViewById(R.id.coordinator_layout); in setContainer() local
421 root.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION in setContainer()
423 root.setOnApplyWindowInsetsListener((v, insets) -> { in setContainer()
424 root.setPadding(insets.getSystemWindowInsetLeft(), in setContainer()
457 public void onRootPicked(RootInfo root) { in onRootPicked() argument
462 if (root.equals(getCurrentRoot()) && mState.stack.size() <= 1) { in onRootPicked()
473 root.isRecents() || root.isDownloads() ? View.VISIBLE : View.INVISIBLE); in onRootPicked()
476 mState.stack.changeRoot(root); in onRootPicked()
481 if (mProviders.isRecentsRoot(root)) { in onRootPicked()
485 root, in onRootPicked()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/
DSearchViewManagerTest.java429 RootInfo root = spy(new RootInfo()); in testSupportsMimeTypesSearch_showChips() local
430 when(root.isRecents()).thenReturn(false); in testSupportsMimeTypesSearch_showChips()
431 root.flags = FLAG_SUPPORTS_SEARCH; in testSupportsMimeTypesSearch_showChips()
432 root.queryArgs = QUERY_ARG_MIME_TYPES; in testSupportsMimeTypesSearch_showChips()
433 DocumentStack stack = new DocumentStack(root, new DocumentInfo()); in testSupportsMimeTypesSearch_showChips()
442 RootInfo root = spy(new RootInfo()); in testNotSupportsMimeTypesSearch_notShowChips() local
443 when(root.isRecents()).thenReturn(false); in testNotSupportsMimeTypesSearch_notShowChips()
444 root.flags = FLAG_SUPPORTS_SEARCH; in testNotSupportsMimeTypesSearch_notShowChips()
445 root.queryArgs = TextUtils.join("\n", in testNotSupportsMimeTypesSearch_notShowChips()
448 DocumentStack stack = new DocumentStack(root, new DocumentInfo()); in testNotSupportsMimeTypesSearch_notShowChips()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLView.java86 GLRoot root = getGLRoot(); in startAnimation() local
87 if (root == null) throw new IllegalStateException(); in startAnimation()
91 root.registerLaunchedAnimation(mAnimation); in startAnimation()
115 public void attachToRoot(GLRoot root) { in attachToRoot() argument
117 onAttachToRoot(root); in attachToRoot()
206 GLRoot root = getGLRoot(); in invalidate() local
207 if (root != null) root.requestRender(); in invalidate()
219 GLRoot root = getGLRoot(); in requestLayout() local
220 if (root != null) root.requestLayoutContentPane(); in requestLayout()
431 protected void onAttachToRoot(GLRoot root) { in onAttachToRoot() argument
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DActionHandler.java124 public boolean dropOn(DragEvent event, RootInfo root) { in dropOn() argument
125 if (!root.supportsCreate() || root.isLibrary()) { in dropOn()
136 clipData, localState, root, this, mDialogs::showFileOperationStatus); in dropOn()
153 public void openSettings(RootInfo root) { in openSettings() argument
156 intent.setDataAndType(root.getUri(), DocumentsContract.Root.MIME_TYPE_ITEM); in openSettings()
157 root.userId.startActivityAsUser(mActivity, intent); in openSettings()
161 public void pasteIntoFolder(RootInfo root) { in pasteIntoFolder() argument
163 root, in pasteIntoFolder()
165 (DocumentInfo doc) -> pasteIntoFolder(root, doc)); in pasteIntoFolder()
168 private void pasteIntoFolder(RootInfo root, @Nullable DocumentInfo doc) { in pasteIntoFolder() argument
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/roots/
DProvidersAccessTest.java178 RootInfo root = new RootInfo(); in testExcludedAuthorities() local
179 root.userId = UserId.DEFAULT_USER; in testExcludedAuthorities()
180 root.authority = "authority" + i; in testExcludedAuthorities()
181 roots.add(root); in testExcludedAuthorities()
187 for (RootInfo root: roots) { in testExcludedAuthorities()
188 if (!allowedRoots.contains(root)) { in testExcludedAuthorities()
189 mState.excludedAuthorities.add(root.authority); in testExcludedAuthorities()
210 final RootInfo root = new RootInfo(); in buildForMimeTypes() local
211 root.userId = userId; in buildForMimeTypes()
212 root.derivedMimeTypes = mimeTypes; in buildForMimeTypes()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DFileUtil.java72 public static void removeFileOrDirectory(File root) { in removeFileOrDirectory() argument
73 removeFileOrDirectoryExcept(root, null); in removeFileOrDirectory()
77 public static void removeFileOrDirectoryExcept(File root, File exclude) { in removeFileOrDirectoryExcept() argument
78 if (root.exists()) { in removeFileOrDirectoryExcept()
79 if (root.isDirectory()) { in removeFileOrDirectoryExcept()
80 for (File file : root.listFiles()) { in removeFileOrDirectoryExcept()
85 root.delete(); in removeFileOrDirectoryExcept()
86 } else if (root.isFile()) { in removeFileOrDirectoryExcept()
87 root.delete(); in removeFileOrDirectoryExcept()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DAppPermissionFragment.java211 ViewGroup root = (ViewGroup) inflater.inflate(R.layout.app_permission, container, false); in onCreateView() local
216 updateHeader(root.requireViewById(R.id.large_header)); in onCreateView()
218 ((TextView) root.requireViewById(R.id.permission_message)).setText( in onCreateView()
223 TextView footer1Link = root.requireViewById(R.id.footer_link_1); in onCreateView()
228 TextView footer2Link = root.requireViewById(R.id.footer_link_2); in onCreateView()
232 mAllowButton = root.requireViewById(R.id.allow_radio_button); in onCreateView()
233 mAllowAlwaysButton = root.requireViewById(R.id.allow_always_radio_button); in onCreateView()
234 mAllowForegroundButton = root.requireViewById(R.id.allow_foreground_only_radio_button); in onCreateView()
235 mAskOneTimeButton = root.requireViewById(R.id.ask_one_time_radio_button); in onCreateView()
236 mAskButton = root.requireViewById(R.id.ask_radio_button); in onCreateView()
[all …]
/packages/apps/Car/RotaryController/src/com/android/car/rotary/
DRotaryService.java1228 AccessibilityNodeInfo root = window.getRoot(); in handleWindowAddedEvent() local
1229 if (root == null) { in handleWindowAddedEvent()
1242 boolean success = restoreDefaultFocusInRoot(root); in handleWindowAddedEvent()
1244 L.d("Failed to restore default focus in " + root); in handleWindowAddedEvent()
1246 root.recycle(); in handleWindowAddedEvent()
1249 private boolean restoreDefaultFocusInRoot(@NonNull AccessibilityNodeInfo root) { in restoreDefaultFocusInRoot() argument
1250 AccessibilityNodeInfo fpv = mNavigator.findFocusParkingViewInRoot(root); in restoreDefaultFocusInRoot()
1256 L.e("No FocusParkingView in root " + root); in restoreDefaultFocusInRoot()
1259 L.d("Restored focus successfully in root " + root); in restoreDefaultFocusInRoot()
1261 updateFocusedNodeAfterPerformingFocusAction(root); in restoreDefaultFocusInRoot()
[all …]
DNavigator.java255 AccessibilityNodeInfo root = window.getRoot(); in getRoot() local
257 if (root != null) { in getRoot()
258 return root; in getRoot()
279 AccessibilityNodeInfo findFocusedNodeInRoot(@NonNull AccessibilityNodeInfo root) { in findFocusedNodeInRoot() argument
280 AccessibilityNodeInfo focusedNode = findFocusedNodeInRootInternal(root); in findFocusedNodeInRoot()
294 @NonNull AccessibilityNodeInfo root) { in findFocusedNodeInRootInternal()
296 if (!isClientNode(root)) { in findFocusedNodeInRootInternal()
297 AccessibilityNodeInfo focusedNode = root.findFocus(FOCUS_INPUT); in findFocusedNodeInRootInternal()
316 surfaceView = findSurfaceViewInRoot(root); in findFocusedNodeInRootInternal()
319 L.w("Failed to find SurfaceView in client app " + root); in findFocusedNodeInRootInternal()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DButtonManager.java121 public void load(View root) { in load() argument
122 getButtonsReferences(root); in load()
151 private void getButtonsReferences(View root) { in getButtonsReferences() argument
153 = (MultiToggleImageButton) root.findViewById(R.id.camera_toggle_button); in getButtonsReferences()
155 = (MultiToggleImageButton) root.findViewById(R.id.flash_toggle_button); in getButtonsReferences()
157 = (MultiToggleImageButton) root.findViewById(R.id.hdr_plus_toggle_button); in getButtonsReferences()
159 = (MultiToggleImageButton) root.findViewById(R.id.grid_lines_toggle_button); in getButtonsReferences()
161 = (ImageButton) root.findViewById(R.id.cancel_button); in getButtonsReferences()
163 = (ImageButton) root.findViewById(R.id.done_button); in getButtonsReferences()
165 = (ImageButton) root.findViewById(R.id.retake_button); in getButtonsReferences()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/prefs/
DLocalPreferences.java41 public static @ViewMode int getViewMode(Context context, RootInfo root, in getViewMode() argument
43 return getPrefs(context).getInt(createKey(ROOT_VIEW_MODE_PREFIX, root), fallback); in getViewMode()
51 public static void setViewMode(Context context, RootInfo root, @ViewMode int viewMode) { in setViewMode() argument
53 getPrefs(context).edit().putInt(createKey(ROOT_VIEW_MODE_PREFIX, root), viewMode).apply(); in setViewMode()
68 private static String createKey(String prefix, RootInfo root) { in createKey() argument
69 return prefix + root.authority + root.rootId; in createKey()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DTvSettingsActivity.java62 final ViewGroup root = findViewById(android.R.id.content); in onCreate() local
63 root.getViewTreeObserver().addOnPreDrawListener( in onCreate()
67 root.getViewTreeObserver().removeOnPreDrawListener(this); in onCreate()
68 final Scene scene = new Scene(root); in onCreate()
84 / root.getWidth()); in onCreate()
103 final ViewGroup root = findViewById(android.R.id.content); in finish() local
104 final Scene scene = new Scene(root); in finish()
110 getResources().getDimension(R.dimen.lb_settings_pane_width) / root.getWidth()); in finish()
/packages/apps/Car/libs/car-ui-lib/tests/apitest/
Dauto-generate-resources.py78 root = etree.Element('resources')
80 root.addprevious(etree.Comment('This file is AUTO GENERATED, DO NOT EDIT MANUALLY.'))
82 item = etree.SubElement(root, 'public')
86 data = etree.ElementTree(root)
152 root = etree.Element('resources')
154 root.addprevious(etree.Comment(COPYRIGHT_STR))
155 root.addprevious(etree.Comment('THIS FILE IS AUTO GENERATED, DO NOT EDIT MANUALLY.'))
157 overlayable = etree.SubElement(root, 'overlayable')
168 data = etree.ElementTree(root)
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DDocumentsProviderHelper.java116 public Uri createDocument(RootInfo root, String mimeType, String name) { in createDocument() argument
117 return createDocument(root.documentId, mimeType, name); in createDocument()
144 public Uri createFolder(RootInfo root, String name) { in createFolder() argument
145 return createDocument(root, Document.MIME_TYPE_DIR, name); in createFolder()
189 public void assertChildCount(RootInfo root, int expected) throws Exception { in assertChildCount() argument
190 assertChildCount(root.documentId, expected); in assertChildCount()
208 public void assertHasFile(RootInfo root, String name) throws Exception { in assertHasFile() argument
209 assertHasFile(root.documentId, name); in assertHasFile()
227 public void assertHasDirectory(RootInfo root, String name) throws Exception { in assertHasDirectory() argument
228 assertHasDirectory(root.documentId, name); in assertHasDirectory()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/
Dwrap_alpha.py6 for root, dirs, files in os.walk('.'):
7 if "res/drawable-" not in root: continue
14 os.rename(os.path.join(root, before), os.path.join(root, after))
17 for root, dirs, files in os.walk('.'):
18 if "res/drawable-" not in root: continue
/packages/apps/Settings/
Dwrap_alpha.py6 for root, dirs, files in os.walk('.'):
7 if "res/drawable-" not in root: continue
14 os.rename(os.path.join(root, before), os.path.join(root, after))
17 for root, dirs, files in os.walk('.'):
18 if "res/drawable-" not in root: continue

12345678910