Home
last modified time | relevance | path

Searched refs:mDirectoryEntries (Results 1 – 3 of 3) sorted by relevance

/development/samples/browseable/DirectorySelection/src/com.example.android.directoryselection/
DDirectoryEntryAdapter.java34 private List<DirectoryEntry> mDirectoryEntries; field in DirectoryEntryAdapter
70 mDirectoryEntries = directoryEntries; in DirectoryEntryAdapter()
82 viewHolder.getFileName().setText(mDirectoryEntries.get(position).fileName); in onBindViewHolder()
83 viewHolder.getMimeType().setText(mDirectoryEntries.get(position).mimeType); in onBindViewHolder()
85 if (DIRECTORY_MIME_TYPE.equals(mDirectoryEntries.get(position).mimeType)) { in onBindViewHolder()
94 return mDirectoryEntries.size(); in getItemCount()
98 mDirectoryEntries = directoryEntries; in setDirectoryEntries()
/development/samples/browseable/ScopedDirectoryAccess/src/com.example.android.scopeddirectoryaccess/
DDirectoryEntryAdapter.java19 private List<DirectoryEntry> mDirectoryEntries; field in DirectoryEntryAdapter
26 mDirectoryEntries = directoryEntries; in DirectoryEntryAdapter()
38 viewHolder.fileName.setText(mDirectoryEntries.get(position).fileName); in onBindViewHolder()
39 viewHolder.mimeType.setText(mDirectoryEntries.get(position).mimeType); in onBindViewHolder()
42 .equals(mDirectoryEntries.get(position).mimeType)) { in onBindViewHolder()
51 return mDirectoryEntries.size(); in getItemCount()
55 mDirectoryEntries = directoryEntries; in setDirectoryEntries()
DScopedDirectoryAccessFragment.java67 private ArrayList<DirectoryEntry> mDirectoryEntries; field in ScopedDirectoryAccessFragment
158 mDirectoryEntries = savedInstanceState.getParcelableArrayList(DIRECTORY_ENTRIES_KEY); in onViewCreated()
160 mAdapter = new DirectoryEntryAdapter(mDirectoryEntries); in onViewCreated()
165 mDirectoryEntries = new ArrayList<>(); in onViewCreated()
182 outState.putParcelableArrayList(DIRECTORY_ENTRIES_KEY, mDirectoryEntries); in onSaveInstanceState()
186 mDirectoryEntries.clear(); in updateDirectoryEntries()
209 mDirectoryEntries.add(entry); in updateDirectoryEntries()
212 if (mDirectoryEntries.isEmpty()) { in updateDirectoryEntries()
217 mAdapter.setDirectoryEntries(mDirectoryEntries); in updateDirectoryEntries()