Home
last modified time | relevance | path

Searched refs:DocumentsAdapter (Results 1 – 15 of 15) sorted by relevance

/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/dirlist/
DDirectoryAddonsAdapterTest.java53 DocumentsAdapter.Environment env = new TestEnvironment(testContext, mEnv, mActionHandler); in setUp()
113 assertHolderType(0, DocumentsAdapter.ITEM_TYPE_HEADER_MESSAGE); in testAddsInfoMessage_WithDirectoryChildren()
119 assertHolderType(0, DocumentsAdapter.ITEM_TYPE_INFLATED_MESSAGE); in testItemCount_none()
129 assertHolderType(0, DocumentsAdapter.ITEM_TYPE_HEADER_MESSAGE); in testAddsInfoMessage_WithNoItem()
139 assertHolderType(0, DocumentsAdapter.ITEM_TYPE_HEADER_MESSAGE); in testAddsErrorMessage_WithNoItem()
155 assertHolderType(0, DocumentsAdapter.ITEM_TYPE_HEADER_MESSAGE); in testOpenTreeMessage_shouldBlockChild()
166 assertHolderType(0, DocumentsAdapter.ITEM_TYPE_INFLATED_MESSAGE); in testOpenTreeMessage_normalChild()
182 assertHolderType(0, DocumentsAdapter.ITEM_TYPE_INFLATED_MESSAGE); in testOpenTreeMessage_restrictStorageAccessFalse_blockTreeChild()
DModelBackedDocumentsAdapterTest.java46 DocumentsAdapter.Environment env = new TestEnvironment(testContext, mEnv, mActionHandler); in setUp()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DInputHandlers.java69 case DocumentsAdapter.ITEM_TYPE_HEADER_MESSAGE: in createKeyHandler()
70 case DocumentsAdapter.ITEM_TYPE_INFLATED_MESSAGE: in createKeyHandler()
71 case DocumentsAdapter.ITEM_TYPE_SECTION_BREAK: in createKeyHandler()
73 case DocumentsAdapter.ITEM_TYPE_DOCUMENT: in createKeyHandler()
74 case DocumentsAdapter.ITEM_TYPE_DIRECTORY: in createKeyHandler()
DKeyInputHandler.java66 if (itemType == DocumentsAdapter.ITEM_TYPE_HEADER_MESSAGE in onKey()
67 || itemType == DocumentsAdapter.ITEM_TYPE_INFLATED_MESSAGE in onKey()
68 || itemType == DocumentsAdapter.ITEM_TYPE_SECTION_BREAK) { in onKey()
DDocsStableIdProvider.java28 private final DocumentsAdapter mAdapter;
30 public DocsStableIdProvider(DocumentsAdapter adapter) { in DocsStableIdProvider()
DDirectoryAddonsAdapter.java37 final class DirectoryAddonsAdapter extends DocumentsAdapter {
42 private final DocumentsAdapter mDelegate;
51 DirectoryAddonsAdapter(Environment environment, DocumentsAdapter delegate) { in DirectoryAddonsAdapter()
DDocumentsAdapter.java45 public abstract class DocumentsAdapter extends RecyclerView.Adapter<DocumentHolder> { class
DModelBackedDocumentsAdapter.java45 final class ModelBackedDocumentsAdapter extends DocumentsAdapter {
DDirectoryFragment.java153 private final DocumentsAdapter.Environment mAdapterEnv = new AdapterEnvironment();
187 private DocumentsAdapter mAdapter;
1437 private final class AdapterEnvironment implements DocumentsAdapter.Environment {
DMessage.java37 import com.android.documentsui.dirlist.DocumentsAdapter.Environment;
/packages/apps/DocumentsUI/src/com/android/documentsui/
DFocusManager.java53 import com.android.documentsui.dirlist.DocumentsAdapter;
671 mScope.adapter = (DocumentsAdapter) view.getAdapter(); in reset()
683 private @Nullable DocumentsAdapter adapter;
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/dirlist/
DTestEnvironment.java28 public final class TestEnvironment implements DocumentsAdapter.Environment {
DTestDocumentsAdapter.java36 public class TestDocumentsAdapter extends DocumentsAdapter {
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DInflateMessageDocumentHolderTest.java51 DocumentsAdapter.Environment env = in setUp()
DMessageTest.java63 DocumentsAdapter.Environment env = in setUp()