Home
last modified time | relevance | path

Searched refs:rootInfo (Results 1 – 10 of 10) sorted by relevance

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/
DRootInfoTest.java33 RootInfo rootInfo = new RootInfo(); in testEquals_sameUser() local
34 rootInfo.userId = UserId.of(100); in testEquals_sameUser()
35 rootInfo.authority = "authority"; in testEquals_sameUser()
36 rootInfo.rootId = "root"; in testEquals_sameUser()
43 assertThat(rootInfo).isEqualTo(rootInfo2); in testEquals_sameUser()
48 RootInfo rootInfo = new RootInfo(); in testNotEquals_differentUser() local
49 rootInfo.userId = UserId.of(100); in testNotEquals_differentUser()
50 rootInfo.authority = "authority"; in testNotEquals_differentUser()
51 rootInfo.rootId = "root"; in testNotEquals_differentUser()
58 assertThat(rootInfo).isNotEqualTo(rootInfo2); in testNotEquals_differentUser()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DStubProvider.java135 final RootInfo rootInfo = new RootInfo(file, getSize(rootId)); in clearCacheAndBuildRoots() local
138 rootInfo.setSearchEnabled(false); in clearCacheAndBuildRoots()
141 mStorage.put(rootInfo.document.documentId, rootInfo.document); in clearCacheAndBuildRoots()
142 mRoots.put(rootId, rootInfo); in clearCacheAndBuildRoots()
234 document.rootInfo.size -= fileSize; in deleteDocument()
477 bytesToRead = (int) Math.min(document.rootInfo.getRemainingCapacity(), in startWrite()
488 document.rootInfo.size += bytesRead; in startWrite()
824 public final RootInfo rootInfo; field in StubProvider.StubDocument
834 this.rootInfo = parent.rootInfo; in StubDocument()
837 private StubDocument(File file, RootInfo rootInfo) { in StubDocument() argument
[all …]
DDocumentsProviderHelper.java367 RootInfo rootInfo = RootInfo.fromRootsCursor(mUserId, mAuthority, cursor); in getRootList() local
368 if (rootInfo != null) { in getRootList()
369 list.add(rootInfo); in getRootList()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DGlobalSearchLoader.java106 protected Uri getQueryUri(RootInfo rootInfo) { in getQueryUri() argument
110 rootInfo.rootId, "" /* query */); in getQueryUri()
114 protected RootCursorWrapper generateResultCursor(RootInfo rootInfo, Cursor oriCursor) { in generateResultCursor() argument
115 return new RootCursorWrapper(rootInfo.userId, authority, rootInfo.rootId, oriCursor, in generateResultCursor()
DRecentsLoader.java97 protected Uri getQueryUri(RootInfo rootInfo) { in getQueryUri() argument
98 return DocumentsContract.buildRecentDocumentsUri(authority, rootInfo.rootId); in getQueryUri()
102 protected RootCursorWrapper generateResultCursor(RootInfo rootInfo, Cursor oriCursor) { in generateResultCursor() argument
103 return new RootCursorWrapper(rootInfo.userId, authority, rootInfo.rootId, oriCursor, in generateResultCursor()
DMultiRootDocumentsLoader.java393 protected abstract Uri getQueryUri(RootInfo rootInfo); in getQueryUri() argument
395 protected abstract RootCursorWrapper generateResultCursor(RootInfo rootInfo, in generateResultCursor() argument
411 final RootInfo rootInfo = rootInfos.get(i); in runInternal() local
414 rootInfo.userId.getContentResolver(getContext()), in runInternal()
416 final Uri uri = getQueryUri(rootInfo); in runInternal()
425 mCursors[i] = generateResultCursor(rootInfo, res[i]); in runInternal()
427 Log.w(TAG, "Failed to load " + authority + ", " + rootInfo.rootId, e); in runInternal()
DAbstractActionHandler.java739 LoadCrossProfileRootCallback(RootInfo rootInfo, UserId selectedUser) { in LoadCrossProfileRootCallback() argument
740 mOriginalRoot = rootInfo; in LoadCrossProfileRootCallback()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DKeyboardAccessibilityNodeProvider.java202 final AccessibilityNodeInfoCompat rootInfo = in createAccessibilityNodeInfo() local
204 ViewCompat.onInitializeAccessibilityNodeInfo(mKeyboardView, rootInfo); in createAccessibilityNodeInfo()
216 rootInfo.addChild(mKeyboardView, index); in createAccessibilityNodeInfo()
218 return rootInfo; in createAccessibilityNodeInfo()
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DGetRootDocumentTask.java45 RootInfo rootInfo, in GetRootDocumentTask() argument
51 mRootInfo = rootInfo; in GetRootDocumentTask()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DFileCopyUiTest.java401 private void assertFilesCopied(String rootLabel, RootInfo rootInfo, in assertFilesCopied() argument
409 DocumentInfo parent = helper.findDocument(rootInfo.documentId, TARGET_FOLDER); in assertFilesCopied()