Home
last modified time | relevance | path

Searched refs:mIconHelper (Results 1 – 8 of 8) sorted by relevance

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DDragAndDropManagerTests.java78 private TestIconHelper mIconHelper; field in DragAndDropManagerTests
118 mIconHelper = TestIconHelper.create(); in setUp()
119 mIconHelper.nextDocumentIcon = new TestDrawable(); in setUp()
157 mIconHelper, in testStartDrag_SetsCorrectClipData()
172 mIconHelper, in testStartDrag_SetsCorrectClipData_NullParent()
186 mIconHelper, in testStartDrag_BuildsCorrectShadow_SingleDoc()
190 mShadowBuilder.icon.assertLastArgument(mIconHelper.nextDocumentIcon); in testStartDrag_BuildsCorrectShadow_SingleDoc()
202 mIconHelper, in testStartDrag_BuildsCorrectShadow_MultipleDocs()
219 mIconHelper, in testCanSpringOpen_ReturnsFalse_RootNotSupportCreate()
234 mIconHelper, in testInArchiveUris_HasCorrectFlagPermission()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DIconHelperTest.java38 private IconHelper mIconHelper; field in IconHelperTest
47 mIconHelper = new IconHelper(mContext, State.MODE_LIST, /* maybeShowBadge= */ true, in setUp()
53 assertThat(mIconHelper.shouldShowBadge(systemUser.getIdentifier())).isFalse(); in testShouldShowBadge_returnFalse_onSystemUser()
58 assertThat(mIconHelper.shouldShowBadge(managedUser.getIdentifier())).isTrue(); in testShouldShowBadge_returnTrue_onManagedUser()
63 mIconHelper = new IconHelper(mContext, State.MODE_LIST, /* maybeShowBadge= */ false, in testShouldShowBadge_returnFalse_onManagedUser_doNotShowBadge()
65 assertThat(mIconHelper.shouldShowBadge(managedUser.getIdentifier())).isFalse(); in testShouldShowBadge_returnFalse_onManagedUser_doNotShowBadge()
70 mIconHelper = new IconHelper(mContext, State.MODE_LIST, /* maybeShowBadge= */ true, in testShouldShowBadge_returnFalse_onManagedUser_withoutManagedUser()
72 assertThat(mIconHelper.shouldShowBadge(managedUser.getIdentifier())).isFalse(); in testShouldShowBadge_returnFalse_onManagedUser_withoutManagedUser()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DGridPhotoHolder.java46 private final IconHelper mIconHelper; field in GridPhotoHolder
62 mIconHelper = iconHelper; in GridPhotoHolder()
102 mIconHelper.shouldShowBadge(mDoc.userId.getIdentifier()) in bindPreviewIcon()
146 mIconHelper.stopLoading(mIconThumb); in bind()
153 mIconHelper.load(mDoc, mIconThumb, mIconMimeLg, null); in bind()
158 if (mIconHelper.shouldShowBadge(mDoc.userId.getIdentifier())) { in bind()
DModelBackedDocumentsAdapter.java52 private final IconHelper mIconHelper; // a transitive dependency of the holders. field in ModelBackedDocumentsAdapter
65 mIconHelper = iconHelper; in ModelBackedDocumentsAdapter()
97 ? new GridPhotoHolder(mEnv.getContext(), parent, mIconHelper) in onCreateViewHolder()
98 : new GridDocumentHolder(mEnv.getContext(), parent, mIconHelper); in onCreateViewHolder()
106 mEnv.getContext(), parent, mIconHelper, mFileTypeLookup); in onCreateViewHolder()
146 holder.bindBriefcaseIcon(mIconHelper.shouldShowBadge(userIdIdentifier)); in onBindViewHolder()
DGridDocumentHolder.java52 final IconHelper mIconHelper; field in GridDocumentHolder
73 mIconHelper = iconHelper; in GridDocumentHolder()
120 mIconHelper.shouldShowBadge(mDoc.userId.getIdentifier()) in bindPreviewIcon()
163 mIconHelper.stopLoading(mIconThumb); in bind()
170 mIconHelper.load(mDoc, mIconThumb, mIconMimeLg, mIconMimeSm); in bind()
DListDocumentHolder.java67 private final IconHelper mIconHelper; field in ListDocumentHolder
90 mIconHelper = iconHelper; in ListDocumentHolder()
141 mIconHelper.shouldShowBadge(mDoc.userId.getIdentifier()) in bindPreviewIcon()
207 mIconHelper.stopLoading(mIconThumb); in bind()
214 mIconHelper.load(mDoc, mIconThumb, mIconMime, null); in bind()
DDragStartListener.java65 private final IconHelper mIconHelper; field in DragStartListener.RuntimeDragStartListener
87 mIconHelper = iconHelper; in RuntimeDragStartListener()
138 mSelectionDetails, mIconHelper, parent); in startDrag()
DDirectoryFragment.java184 private IconHelper mIconHelper; field in DirectoryFragment
447 mIconHelper = new IconHelper(mActivity, MODE_GRID, mState.supportsCrossProfile()); in onActivityCreated()
451 new ModelBackedDocumentsAdapter(mAdapterEnv, mIconHelper, mInjector.fileTypeLookup) in onActivityCreated()
488 mIconHelper, in onActivityCreated()
556 mIconHelper.setThumbnailsEnabled(!svelte); in onActivityCreated()
719 mIconHelper.setViewMode(mode); in updateLayout()
986 mIconHelper.stopLoading(iconThumb); in cancelThumbnailTask()