/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/sidebar/ |
D | RootItem.java | 45 public final RootInfo root; field in RootItem 51 public RootItem(RootInfo root, ActionHandler actionHandler) { in RootItem() argument 52 this(root, actionHandler, "" /* packageName */); in RootItem() 55 public RootItem(RootInfo root, ActionHandler actionHandler, String packageName) { in RootItem() argument 56 super(R.layout.item_root, root.title, getStringId(root)); in RootItem() 57 this.root = root; in RootItem() 62 private static String getStringId(RootInfo root) { in getStringId() argument 66 String authority = (root.authority == null ? "" : root.authority); in getStringId() 67 return String.format(STRING_ID_FORMAT, authority, root.rootId); in getStringId() 73 if (root.supportsEject()) { in bindView() [all …]
|
D | RootsFragment.java | 186 if (!(item instanceof RootItem) || !((RootItem) item).root.supportsCreate()) { in onRightClick() 285 for (final RootInfo root : roots) { in sortLoadResult() 288 if (root.isExternalStorageHome() && !Shared.shouldShowDocumentsRoot(getContext())) { in sortLoadResult() 290 } else if (root.isLibrary() || root.isDownloads()) { in sortLoadResult() 291 item = new RootItem(root, mActionHandler); in sortLoadResult() 293 } else if (root.isStorage()) { in sortLoadResult() 294 item = new RootItem(root, mActionHandler); in sortLoadResult() 297 item = new RootItem(root, mActionHandler, in sortLoadResult() 298 providersAccess.getPackageName(root.authority)); in sortLoadResult() 383 item = new RootAndAppItem(rootItem.root, resolveInfo, mActionHandler); in includeHandlerApps() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/ |
D | ProvidersAccess.java | 70 for (RootInfo root : roots) { in getMatchingRoots() 72 if (VERBOSE) Log.v(tag, "Evaluationg root: " + root); in getMatchingRoots() 74 if (state.action == State.ACTION_CREATE && !root.supportsCreate()) { in getMatchingRoots() 80 && !root.supportsCreate()) { in getMatchingRoots() 86 if (state.action == State.ACTION_OPEN_TREE && !root.supportsChildren()) { in getMatchingRoots() 92 if (state.action == State.ACTION_OPEN_TREE && root.isRecents()) { in getMatchingRoots() 98 if (!state.showAdvanced && root.isAdvanced()) { in getMatchingRoots() 103 if (state.localOnly && !root.isLocalOnly()) { in getMatchingRoots() 108 if (state.directoryCopy && root.isDownloads()) { in getMatchingRoots() 114 if (state.action == State.ACTION_OPEN && root.isEmpty()) { in getMatchingRoots() [all …]
|
D | ProvidersCache.java | 311 final RootInfo root = RootInfo.fromRootsCursor(authority, cursor); in loadRootsForAuthority() local 312 roots.add(root); in loadRootsForAuthority() 346 RootInfo root = forceRefresh ? null : getRootLocked(authority, rootId); in getRootOneshot() local 347 if (root == null) { in getRootOneshot() 350 root = getRootLocked(authority, rootId); in getRootOneshot() 352 return root; in getRootOneshot() 365 for (RootInfo root : mRoots.get(authority)) { in getRootLocked() 366 if (Objects.equals(root.rootId, rootId)) { in getRootLocked() 367 return root; in getRootLocked() 378 public boolean isRecentsRoot(RootInfo root) { in isRecentsRoot() argument [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/ |
D | SearchViewManagerTest.java | 353 RootInfo root = spy(new RootInfo()); in testSupportsMimeTypesSearch_showChips() local 354 when(root.isRecents()).thenReturn(false); in testSupportsMimeTypesSearch_showChips() 355 root.flags = FLAG_SUPPORTS_SEARCH; in testSupportsMimeTypesSearch_showChips() 356 root.queryArgs = QUERY_ARG_MIME_TYPES; in testSupportsMimeTypesSearch_showChips() 357 DocumentStack stack = new DocumentStack(root, new DocumentInfo()); in testSupportsMimeTypesSearch_showChips() 366 RootInfo root = spy(new RootInfo()); in testNotSupportsMimeTypesSearch_notShowChips() local 367 when(root.isRecents()).thenReturn(false); in testNotSupportsMimeTypesSearch_notShowChips() 368 root.flags = FLAG_SUPPORTS_SEARCH; in testNotSupportsMimeTypesSearch_notShowChips() 369 root.queryArgs = TextUtils.join("\n", in testNotSupportsMimeTypesSearch_notShowChips() 372 DocumentStack stack = new DocumentStack(root, new DocumentInfo()); in testNotSupportsMimeTypesSearch_notShowChips() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | ShortcutsUpdater.java | 85 for (RootInfo root : roots) { in getDeviceShortcuts() 86 String id = root.getUri().toString(); in getDeviceShortcuts() 94 if (root.isAdvanced() && root.authority.equals(Providers.AUTHORITY_STORAGE)) { in getDeviceShortcuts() 97 devices.add(0, createShortcut(root, R.drawable.ic_advanced_shortcut)); in getDeviceShortcuts() 99 } else if (root.isAdvanced()) { in getDeviceShortcuts() 101 devices.add(0, createShortcut(root, R.drawable.ic_folder_shortcut)); in getDeviceShortcuts() 129 private ShortcutInfo createShortcut(RootInfo root, @DrawableRes int resId) { in createShortcut() argument 132 intent.setData(root.getUri()); in createShortcut() 134 return new ShortcutInfo.Builder(mContext, root.getUri().toString()) in createShortcut() 135 .setShortLabel(root.title) in createShortcut()
|
D | BaseActivity.java | 378 View root = findViewById(R.id.coordinator_layout); in setContainer() local 379 root.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION in setContainer() 381 root.setOnApplyWindowInsetsListener((v, insets) -> { in setContainer() 382 root.setPadding(insets.getSystemWindowInsetLeft(), in setContainer() 409 public void onRootPicked(RootInfo root) { in onRootPicked() argument 414 if (root.equals(getCurrentRoot()) && mState.stack.size() == 1) { in onRootPicked() 425 root.isRecents() || root.isDownloads() ? View.VISIBLE : View.INVISIBLE); in onRootPicked() 428 mState.stack.changeRoot(root); in onRootPicked() 433 if (mProviders.isRecentsRoot(root)) { in onRootPicked() 437 root, in onRootPicked() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | RootInfo.java | 181 final RootInfo root = new RootInfo(); 182 DurableUtils.readFromParcel(in, root); 183 return root; 193 final RootInfo root = new RootInfo(); in fromRootsCursor() local 194 root.authority = authority; in fromRootsCursor() 195 root.rootId = getCursorString(cursor, Root.COLUMN_ROOT_ID); in fromRootsCursor() 196 root.flags = getCursorInt(cursor, Root.COLUMN_FLAGS); in fromRootsCursor() 197 root.icon = getCursorInt(cursor, Root.COLUMN_ICON); in fromRootsCursor() 198 root.title = getCursorString(cursor, Root.COLUMN_TITLE); in fromRootsCursor() 199 root.summary = getCursorString(cursor, Root.COLUMN_SUMMARY); in fromRootsCursor() [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() 222 for (RootInfo root : matchingRoots) { in updateRoot() 225 if (root.equals(this.mRoot)) { in updateRoot() [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/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/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/DocumentsUI/tests/unit/com/android/documentsui/roots/ |
D | ProvidersAccessTest.java | 138 RootInfo root = new RootInfo(); in testExcludedAuthorities() local 139 root.authority = "authority" + i; in testExcludedAuthorities() 140 roots.add(root); in testExcludedAuthorities() 146 for (RootInfo root: roots) { in testExcludedAuthorities() 147 if (!allowedRoots.contains(root)) { in testExcludedAuthorities() 148 mState.excludedAuthorities.add(root.authority); in testExcludedAuthorities() 166 final RootInfo root = new RootInfo(); in buildForMimeTypes() local 167 root.derivedMimeTypes = mimeTypes; in buildForMimeTypes() 168 return root; in buildForMimeTypes()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
D | ActionHandler.java | 127 public boolean dropOn(DragEvent event, RootInfo root) { in dropOn() argument 128 if (!root.supportsCreate() || root.isLibrary()) { in dropOn() 139 clipData, localState, root, this, mDialogs::showFileOperationStatus); in dropOn() 152 public void openSettings(RootInfo root) { in openSettings() argument 155 intent.setDataAndType(root.getUri(), DocumentsContract.Root.MIME_TYPE_ITEM); in openSettings() 160 public void pasteIntoFolder(RootInfo root) { in pasteIntoFolder() argument 162 root, in pasteIntoFolder() 164 (DocumentInfo doc) -> pasteIntoFolder(root, doc)); in pasteIntoFolder() 167 private void pasteIntoFolder(RootInfo root, @Nullable DocumentInfo doc) { in pasteIntoFolder() argument 168 DocumentStack stack = new DocumentStack(root, doc); in pasteIntoFolder() [all …]
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | DocumentsProviderHelper.java | 112 public Uri createDocument(RootInfo root, String mimeType, String name) { in createDocument() argument 113 return createDocument(root.documentId, mimeType, name); in createDocument() 140 public Uri createFolder(RootInfo root, String name) { in createFolder() argument 141 return createDocument(root, Document.MIME_TYPE_DIR, name); in createFolder() 185 public void assertChildCount(RootInfo root, int expected) throws Exception { in assertChildCount() argument 186 assertChildCount(root.documentId, expected); in assertChildCount() 204 public void assertHasFile(RootInfo root, String name) throws Exception { in assertHasFile() argument 205 assertHasFile(root.documentId, name); in assertHasFile() 223 public void assertHasDirectory(RootInfo root, String name) throws Exception { in assertHasDirectory() argument 224 assertHasDirectory(root.documentId, name); in assertHasDirectory() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/prefs/ |
D | LocalPreferences.java | 38 public static @ViewMode int getViewMode(Context context, RootInfo root, in getViewMode() argument 40 return getPrefs(context).getInt(createKey(root), fallback); in getViewMode() 43 public static void setViewMode(Context context, RootInfo root, @ViewMode int viewMode) { in setViewMode() argument 45 getPrefs(context).edit().putInt(createKey(root), viewMode).apply(); in setViewMode() 52 private static String createKey(RootInfo root) { in createKey() argument 53 return ROOT_VIEW_MODE_PREFIX + root.authority + root.rootId; in createKey()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | TvSettingsActivity.java | 62 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/services/Car/tests/CarDeveloperOptions/ |
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/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/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestProvidersAccess.java | 133 private void add(RootInfo root) { in add() argument 134 if (!roots.containsKey(root.authority)) { in add() 135 roots.put(root.authority, new ArrayList<>()); in add() 137 roots.get(root.authority).add(root); in add() 150 for (RootInfo root : roots.get(authority)) { in getRootOneshot() 151 if (rootId.equals(root.rootId)) { in getRootOneshot() 152 return root; in getRootOneshot()
|
/packages/apps/Camera2/src/com/android/camera/one/ |
D | AbstractOneCamera.java | 70 protected static String makeDebugDir(File root, String folderName) { in makeDebugDir() argument 71 if (root == null) { in makeDebugDir() 74 if (!root.exists() || !root.isDirectory()) { in makeDebugDir() 76 + root.getAbsolutePath()); in makeDebugDir() 96 File destFolder = new File(new File(root, folderName), burstFolderName); in makeDebugDir()
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
D | IndicatorIconController.java | 65 public IndicatorIconController(AppController controller, View root) { in IndicatorIconController() argument 69 mFlashIndicator = (ImageView) root.findViewById(R.id.flash_indicator); in IndicatorIconController() 75 mHdrIndicator = (ImageView) root.findViewById(R.id.hdr_indicator); in IndicatorIconController() 83 mPanoIndicator = (ImageView) root.findViewById(R.id.pano_indicator); in IndicatorIconController() 88 mCountdownTimerIndicator = (ImageView) root.findViewById(R.id.countdown_timer_indicator); in IndicatorIconController() 92 mExposureIndicatorN2 = (ImageView) root.findViewById(R.id.exposure_n2_indicator); in IndicatorIconController() 93 mExposureIndicatorN1 = (ImageView) root.findViewById(R.id.exposure_n1_indicator); in IndicatorIconController() 94 mExposureIndicatorP1 = (ImageView) root.findViewById(R.id.exposure_p1_indicator); in IndicatorIconController() 95 mExposureIndicatorP2 = (ImageView) root.findViewById(R.id.exposure_p2_indicator); in IndicatorIconController()
|
/packages/apps/Gallery2/src/com/android/photos/ |
D | MultiSelectGridFragment.java | 276 View root = getView(); in ensureGrid() local 277 if (root == null) { in ensureGrid() 280 if (root instanceof GridView) { in ensureGrid() 281 mGrid = (GridView) root; in ensureGrid() 283 View empty = root.findViewById(android.R.id.empty); in ensureGrid() 287 mProgressContainer = root.findViewById(R.id.progressContainer); in ensureGrid() 288 mGridContainer = root.findViewById(R.id.gridContainer); in ensureGrid() 289 View rawGridView = root.findViewById(android.R.id.list); in ensureGrid()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/provider/ |
D | OmdbApi.java | 70 JSONObject root = (JSONObject) getContent(getContentUri(movie)); in populateMovie() local 71 updated |= movie.setPosterUri(getPosterUri(root.getString("imdbID"))); in populateMovie() 72 updated |= movie.setSynopsis(root.getString("Plot")); in populateMovie() 84 JSONObject root = (JSONObject) getContent(getContentUri(series)); in populateSeries() local 85 updated |= series.setPosterUri(getPosterUri(root.getString("imdbID"))); in populateSeries() 97 JSONObject root = (JSONObject) getContent(getContentUri(episode)); in populateEpisode() local 98 updated |= episode.setPosterUri(getPosterUri(root.getString("imdbID"))); in populateEpisode()
|