Home
last modified time | relevance | path

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

/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DListDocumentHolder.java70 private final DocumentInfo mDoc; field in ListDocumentHolder
92 mDoc = new DocumentInfo(); in ListDocumentHolder()
134 if (mDoc.isDirectory()) { in bindPreviewIcon()
141 mIconHelper.shouldShowBadge(mDoc.userId.getIdentifier()) in bindPreviewIcon()
143 : R.string.preview_file, mDoc.displayName)); in bindPreviewIcon()
182 return (mDoc.isDirectory() && !(mAction == State.ACTION_BROWSE)) ? in inSelectRegion()
203 mDoc.updateFromCursor(cursor, in bind()
214 mIconHelper.load(mDoc, mIconThumb, mIconMime, null); in bind()
216 mTitle.setText(mDoc.displayName, TextView.BufferType.SPANNABLE); in bind()
219 if (mDoc.isDirectory()) { in bind()
[all …]
DGridPhotoHolder.java51 private final DocumentInfo mDoc = new DocumentInfo(); field in GridPhotoHolder
102 mIconHelper.shouldShowBadge(mDoc.userId.getIdentifier()) in bindPreviewIcon()
104 : R.string.preview_file, mDoc.displayName)); in bindPreviewIcon()
142 mDoc.updateFromCursor(cursor, in bind()
153 mIconHelper.load(mDoc, mIconThumb, mIconMimeLg, null); in bind()
157 final String docDate = Shared.formatTime(mContext, mDoc.lastModified); in bind()
158 if (mIconHelper.shouldShowBadge(mDoc.userId.getIdentifier())) { in bind()
160 + mDoc.displayName + ", " + docSize + ", " + docDate); in bind()
162 itemView.setContentDescription(mDoc.displayName + ", " + docSize + ", " + docDate); in bind()
DGridDocumentHolder.java57 private final DocumentInfo mDoc = new DocumentInfo(); field in GridDocumentHolder
120 mIconHelper.shouldShowBadge(mDoc.userId.getIdentifier()) in bindPreviewIcon()
122 : R.string.preview_file, mDoc.displayName)); in bindPreviewIcon()
159 mDoc.updateFromCursor(cursor, in bind()
170 mIconHelper.load(mDoc, mIconThumb, mIconMimeLg, mIconMimeSm); in bind()
172 mTitle.setText(mDoc.displayName, TextView.BufferType.SPANNABLE); in bind()
177 if (mDoc.isPartial()) { in bind()
183 if (mDoc.lastModified == -1) { in bind()
186 mDate.setText(Shared.formatTime(mContext, mDoc.lastModified)); in bind()
190 if (mDoc.isDirectory() || docSize == -1) { in bind()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DRefreshTask.java50 private final DocumentInfo mDoc; field in RefreshTask
60 mDoc = doc; in RefreshTask()
68 if (mDoc == null) { in run()
78 if (mDoc.derivedUri == null) { in run()
83 if (!mDoc.derivedUri.equals(mState.stack.peek().derivedUri)) { in run()
88 if (!mState.canInteractWith(mDoc.userId) || mDoc.userId.isQuietModeEnabled(mContext)) { in run()
103 final ContentResolver resolver = mDoc.userId.getContentResolver(mContext); in run()
104 final String authority = mDoc.authority; in run()
109 refreshSupported = client.refresh(mDoc.derivedUri, null, mSignal); in run()
DDirectoryLoader.java74 private DocumentInfo mDoc; field in DirectoryLoader
95 mDoc = state.stack.peek(); in DirectoryLoader()
120 result.doc = mDoc; in loadInBackground()
151 } else if (mDoc == null) { in loadInBackground()
160 if (mDoc != null && mDoc.isInArchive()) { in loadInBackground()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/
DInspectorControllerTest.java104 mDataSupplier.mDoc = TestEnv.FILE_JPG; in setUp()
212 mDataSupplier.mDoc = doc; in testShowInProvider_visible()
236 mDataSupplier.mDoc = null; in testUpdateView_withNullValue()
248 mDataSupplier.mDoc = doc; in testMetadata_GeoHandlerInstalled()
257 mDataSupplier.mDoc = doc; in testMetadata_notDisplayedWhenNotReturned()
265 mDataSupplier.mDoc = TestEnv.FILE_JPG; // this is the default value. For "good measure". in testMetadata_notDisplayedDocWithoutSupportFlag()
275 mDataSupplier.mDoc = doc; in testMetadata_GeoHandlerStartsAction()
424 private @Nullable DocumentInfo mDoc; field in InspectorControllerTest.TestDataSupplier
429 callback.accept(mDoc); in loadDocInfo()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DTestItemDetailsLookup.java29 private @Nullable TestItemDetails mDoc; field in TestItemDetailsLookup
33 return mDoc; in getItemDetails()
43 mDoc = doc; in initAt()
48 mDoc = null; in reset()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/actions/
DShowInProviderAction.java61 if ((mDoc.flags & FLAG_SUPPORTS_SETTINGS) != 0) { in canPerformAction()
70 return mProviders.getPackageName(mDoc.userId, mDoc.derivedUri.getAuthority()); in getPackageName()
DAction.java39 protected DocumentInfo mDoc; field in Action
47 mDoc = doc; in Action()
DClearDefaultAppAction.java64 Intent intent = new Intent(Intent.ACTION_VIEW, mDoc.derivedUri); in getPackageName()