Searched refs:DocumentsAdapter (Results 1 – 12 of 12) sorted by relevance
69 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()
66 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()
28 private final DocumentsAdapter mAdapter;30 public DocsStableIdProvider(DocumentsAdapter adapter) { in DocsStableIdProvider()
37 final class DirectoryAddonsAdapter extends DocumentsAdapter {42 private final DocumentsAdapter mDelegate;51 DirectoryAddonsAdapter(Environment environment, DocumentsAdapter delegate) { in DirectoryAddonsAdapter()
44 public abstract class DocumentsAdapter extends RecyclerView.Adapter<DocumentHolder> { class
136 private final DocumentsAdapter.Environment mAdapterEnv = new AdapterEnvironment();165 private DocumentsAdapter mAdapter;1211 private final class AdapterEnvironment implements DocumentsAdapter.Environment {
30 import com.android.documentsui.dirlist.DocumentsAdapter.Environment;
45 final class ModelBackedDocumentsAdapter extends DocumentsAdapter {
54 DocumentsAdapter.Environment env = new TestEnvironment(testContext); in setUp()112 assertHolderType(0, DocumentsAdapter.ITEM_TYPE_HEADER_MESSAGE); in testAddsInfoMessage_WithDirectoryChildren()118 assertHolderType(0, DocumentsAdapter.ITEM_TYPE_INFLATED_MESSAGE); in testItemCount_none()128 assertHolderType(0, DocumentsAdapter.ITEM_TYPE_HEADER_MESSAGE); in testAddsInfoMessage_WithNoItem()138 assertHolderType(0, DocumentsAdapter.ITEM_TYPE_HEADER_MESSAGE); in testAddsErrorMessage_WithNoItem()145 private final class TestEnvironment implements DocumentsAdapter.Environment {
48 DocumentsAdapter.Environment env = new TestEnvironment(testContext); in setUp()60 private final class TestEnvironment implements DocumentsAdapter.Environment {
53 import com.android.documentsui.dirlist.DocumentsAdapter;671 mScope.adapter = (DocumentsAdapter) view.getAdapter(); in reset()683 private @Nullable DocumentsAdapter adapter;
36 public class TestDocumentsAdapter extends DocumentsAdapter {