/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/ |
D | RootItem.java | 50 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 …]
|
D | RootsFragment.java | 199 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/ |
D | pointer.h | 387 …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/ |
D | ProvidersAccess.java | 73 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/Car/libs/car-ui-lib/car-rotary-lib/src/main/java/com/android/car/ui/utils/ |
D | ViewUtils.java | 144 public static boolean hideFocus(@NonNull View root) { in hideFocus() argument 145 FocusParkingView fpv = (FocusParkingView) depthFirstSearch(root, in hideFocus() 217 public static boolean adjustFocus(@NonNull View root, @Nullable View currentFocus) { in adjustFocus() argument 219 return adjustFocus(root, currentLevel, /* cachedFocusedView= */ null, in adjustFocus() 227 public static boolean adjustFocusImmediately(@NonNull View root, @Nullable View currentFocus) { in adjustFocusImmediately() argument 229 return adjustFocus(root, currentLevel, /* cachedFocusedView= */ null, in adjustFocusImmediately() 239 public static boolean initFocus(@NonNull View root, @Nullable View currentFocus) { in initFocus() argument 244 return adjustFocus(root, currentLevel, /* cachedFocusedView= */ null, in initFocus() 255 static boolean adjustFocus(@NonNull View root, @FocusLevel int currentLevel) { in adjustFocus() argument 256 return adjustFocus(root, currentLevel, /* cachedFocusedView= */ null, in adjustFocus() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | RootInfo.java | 192 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 …]
|
D | DocumentStack.java | 68 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/modules/Virtualization/zipfuse/src/ |
D | main.rs | 454 fn check_file(root: &Path, file: &str, content: &[u8]) { in check_file() 455 let path = root.join(file); in check_file() 470 fn check_dir<S: AsRef<str>>(root: &Path, dir: &str, files: &[S], dirs: &[S]) { in check_dir() 471 let dir_path = root.join(dir); in check_dir() 508 |root| { in empty() 509 check_dir::<String>(root, "", &[], &[]); in empty() 521 |root| { in single_file() 522 check_dir(root, "", &["foo"], &[]); in single_file() 523 check_file(root, "foo", b"0123456789"); in single_file() 534 |root| { in single_dir() [all …]
|
/packages/providers/MediaProvider/jni/ |
D | node.cpp | 77 const node* node::LookupAbsolutePath(const node* root, const std::string& absolute_path) { in LookupAbsolutePath() argument 78 if (absolute_path.find(root->GetName()) != 0) { in LookupAbsolutePath() 82 std::vector<std::string> segments = GetPathSegments(root->GetName().size(), absolute_path); in LookupAbsolutePath() 84 std::lock_guard<std::recursive_mutex> guard(*root->lock_); in LookupAbsolutePath() 86 const node* node = root; in LookupAbsolutePath() 96 const node* node::LookupInode(const node* root, ino_t ino) { in LookupInode() argument 97 CHECK(root); in LookupInode() 99 std::lock_guard<std::recursive_mutex> guard(*root->lock_); in LookupInode() 101 if ((root->ino_ == ino) && !root->deleted_ && !(root->handles_.empty())) { in LookupInode() 102 return root; in LookupInode() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | ShortcutsUpdater.java | 82 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()
|
D | AbstractActionHandler.java | 161 public void ejectRoot(RootInfo root, BooleanConsumer listener) { in ejectRoot() argument 164 root.authority, in ejectRoot() 165 root.rootId, in ejectRoot() 166 listener).executeOnExecutor(ProviderExecutor.forAuthority(root.authority)); in ejectRoot() 201 public void getRootDocument(RootInfo root, int timeout, Consumer<DocumentInfo> callback) { in getRootDocument() argument 203 root, in getRootDocument() 209 task.executeOnExecutor(mExecutors.lookup(root.authority)); in getRootDocument() 263 public void openSettings(RootInfo root) { in openSettings() argument 278 public boolean dropOn(DragEvent event, RootInfo root) { in dropOn() argument 283 public void pasteIntoFolder(RootInfo root) { in pasteIntoFolder() argument [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/ |
D | SearchViewManagerTest.java | 429 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/ |
D | GLView.java | 86 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/ |
D | ActionHandler.java | 124 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/ |
D | ProvidersAccessTest.java | 170 RootInfo root = new RootInfo(); in testExcludedAuthorities() local 171 root.userId = UserId.DEFAULT_USER; in testExcludedAuthorities() 172 root.authority = "authority" + i; in testExcludedAuthorities() 173 roots.add(root); in testExcludedAuthorities() 179 for (RootInfo root: roots) { in testExcludedAuthorities() 180 if (!allowedRoots.contains(root)) { in testExcludedAuthorities() 181 mState.excludedAuthorities.add(root.authority); in testExcludedAuthorities() 202 final RootInfo root = new RootInfo(); in buildForMimeTypes() local 203 root.userId = userId; in buildForMimeTypes() 204 root.derivedMimeTypes = mimeTypes; in buildForMimeTypes() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | FileUtil.java | 72 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/Settings/src/com/android/settings/enterprise/ |
D | ActionDisabledByAdminDialogHelper.java | 114 private void initializeDialogViews(View root, EnforcedAdmin enforcedAdmin, int userId, in initializeDialogViews() argument 122 setAdminSupportIcon(root, admin, userId); in initializeDialogViews() 128 setAdminSupportTitle(root, restriction); in initializeDialogViews() 137 setAdminSupportDetails(mActivity, root, new EnforcedAdmin(admin, user)); in initializeDialogViews() 146 void setAdminSupportIcon(View root, ComponentName admin, int userId) { in setAdminSupportIcon() argument 147 ImageView supportIconView = root.requireViewById(R.id.admin_support_icon); in setAdminSupportIcon() 155 void setAdminSupportTitle(View root, String restriction) { in setAdminSupportTitle() argument 156 final TextView titleView = root.findViewById(R.id.admin_support_dialog_title); in setAdminSupportTitle() 164 void setAdminSupportDetails(final Activity activity, final View root, in setAdminSupportDetails() argument 189 final TextView textView = root.findViewById(R.id.admin_support_msg); in setAdminSupportDetails()
|
/packages/modules/Virtualization/microdroid/ |
D | init.rc | 106 exec - root system -- /system/bin/apexd --vm 118 mkdir /data/vendor 0771 root root encryption=Require 119 mkdir /data/vendor_ce 0771 root root encryption=None 120 mkdir /data/vendor_de 0771 root root encryption=None 121 mkdir /data/vendor/hardware 0771 root root 127 mkdir /data/vendor/tombstones 0771 root root 133 mkdir /data/local 0751 root root encryption=Require
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/ |
D | AppPermissionFragment.java | 207 ViewGroup root = (ViewGroup) inflater.inflate(R.layout.app_permission, container, false); in onCreateView() local 212 updateHeader(root.requireViewById(R.id.large_header)); in onCreateView() 214 ((TextView) root.requireViewById(R.id.permission_message)).setText( in onCreateView() 219 TextView footer1Link = root.requireViewById(R.id.footer_link_1); in onCreateView() 224 TextView footer2Link = root.requireViewById(R.id.footer_link_2); in onCreateView() 228 mAllowButton = root.requireViewById(R.id.allow_radio_button); in onCreateView() 229 mAllowAlwaysButton = root.requireViewById(R.id.allow_always_radio_button); in onCreateView() 230 mAllowForegroundButton = root.requireViewById(R.id.allow_foreground_only_radio_button); in onCreateView() 231 mAskOneTimeButton = root.requireViewById(R.id.ask_one_time_radio_button); in onCreateView() 232 mAskButton = root.requireViewById(R.id.ask_radio_button); in onCreateView() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/prefs/ |
D | LocalPreferences.java | 41 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/Camera2/src/com/android/camera/ |
D | ButtonManager.java | 121 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/Settings/ |
D | wrap_alpha.py | 6 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/TvSettings/Settings/src/com/android/tv/settings/ |
D | TvSettingsActivity.java | 76 final ViewGroup root = findViewById(android.R.id.content); in onCreate() local 77 root.getViewTreeObserver().addOnPreDrawListener( in onCreate() 81 root.getViewTreeObserver().removeOnPreDrawListener(this); in onCreate() 82 final Scene scene = new Scene(root); in onCreate() 98 / root.getWidth()); in onCreate() 117 final ViewGroup root = findViewById(android.R.id.content); in finish() local 118 final Scene scene = new Scene(root); in finish() 124 getResources().getDimension(R.dimen.lb_settings_pane_width) / root.getWidth()); in finish()
|
/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
D | HighlightablePreferenceGroupAdapter.java | 76 public void requestHighlight(View root, RecyclerView recyclerView, String key) { in requestHighlight() argument 77 if (root == null || recyclerView == null) { in requestHighlight() 83 clearHighlight(root); in requestHighlight() 86 root.post(() -> { in requestHighlight() 98 public void clearHighlight(View root) { in clearHighlight() argument 99 if (root == null) { in clearHighlight() 102 root.post(() -> { in clearHighlight()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | DocumentsProviderHelper.java | 116 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 …]
|