Home
last modified time | relevance | path

Searched refs:modelId (Results 1 – 24 of 24) sorted by relevance

/packages/apps/DocumentsUI/src/com/android/documentsui/
DModel.java180 public @Nullable Cursor getItem(String modelId) { in getItem() argument
181 Integer pos = mPositions.get(modelId); in getItem()
184 Log.d(TAG, "Unabled to find cursor position for modelId: " + modelId); in getItem()
192 "Unabled to move cursor to position " + pos + " for modelId: " + modelId); in getItem()
208 public @Nullable DocumentInfo getDocument(String modelId) { in getDocument() argument
209 final Cursor cursor = getItem(modelId); in getDocument()
220 for (String modelId: selection) { in loadDocuments()
221 doc = loadDocument(modelId, filter); in loadDocuments()
230 for (String modelId: selection) { in hasDocuments()
231 if (loadDocument(modelId, filter) != null) { in hasDocuments()
[all …]
DDocsSelectionHelper.java99 public boolean select(String modelId) { in select() argument
100 return mDelegate.select(modelId); in select()
104 public boolean deselect(String modelId) { in deselect() argument
105 return mDelegate.deselect(modelId); in deselect()
DFocusManager.java204 public void focusDocument(String modelId) { in focusDocument() argument
211 int pos = mScope.adapter.getAdapterPosition(modelId); in focusDocument()
215 mScope.pendingFocusId = modelId; in focusDocument()
588 String modelId = mScope.adapter.getStableId(i); in buildIndex() local
589 Cursor cursor = mScope.model.getItem(modelId); in buildIndex()
590 if (modelId != null && cursor != null) { in buildIndex()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDragStartListener.java114 @Nullable String modelId = mIdFinder.apply(view); in startDrag() local
115 if (modelId == null) { in startDrag()
122 Selection<String> selection = getSelectionToBeCopied(modelId, event); in startDrag()
148 MutableSelection<String> getSelectionToBeCopied(String modelId, MotionEvent event) { in getSelectionToBeCopied() argument
154 && !mSelectionMgr.isSelected(modelId)) { in getSelectionToBeCopied()
155 mSelectionMgr.select(modelId); in getSelectionToBeCopied()
158 if (mSelectionMgr.isSelected(modelId)) { in getSelectionToBeCopied()
161 selection.add(modelId); in getSelectionToBeCopied()
DModelBackedDocumentsAdapter.java128 String modelId = mModelIds.get(position); in onBindViewHolder() local
129 Cursor cursor = mEnv.getModel().getItem(modelId); in onBindViewHolder()
130 holder.bind(cursor, modelId); in onBindViewHolder()
137 boolean selected = mEnv.isSelected(modelId); in onBindViewHolder()
142 holder.setSelected(mEnv.isSelected(modelId), false); in onBindViewHolder()
175 public int getAdapterPosition(String modelId) { in getAdapterPosition() argument
176 return mModelIds.indexOf(modelId); in getAdapterPosition()
DDocumentsAdapter.java54 public abstract int getAdapterPosition(String modelId); in getAdapterPosition() argument
76 String modelId = getStableIds().get(position); in isDirectory() local
77 Cursor cursor = model.getItem(modelId); in isDirectory()
DSelectionMetadata.java67 public void onItemStateChanged(String modelId, boolean selected) { in onItemStateChanged() argument
68 final Cursor cursor = mDocFinder.apply(modelId); in onItemStateChanged()
70 Log.w(TAG, "Model returned null cursor for document: " + modelId in onItemStateChanged()
DGridDirectoryHolder.java93 public void bind(Cursor cursor, String modelId) { in bind() argument
96 this.mModelId = modelId; in bind()
DGridPhotoHolder.java137 public void bind(Cursor cursor, String modelId) { in bind() argument
140 mModelId = modelId; in bind()
DGridDocumentHolder.java155 public void bind(Cursor cursor, String modelId) { in bind() argument
158 mModelId = modelId; in bind()
DDirectoryAddonsAdapter.java257 public int getAdapterPosition(String modelId) {
258 return toViewPosition(mDelegate.getAdapterPosition(modelId));
DListDocumentHolder.java190 public void bind(Cursor cursor, String modelId) { in bind() argument
193 mModelId = modelId; in bind()
DDirectoryFragment.java617 final String modelId = getModelId(v); in onCreateContextMenu() local
618 if (modelId == null) { in onCreateContextMenu()
1158 String modelId = mSelectionMgr.getSelection().iterator().next(); in pasteIntoFolder() local
1159 Cursor dstCursor = mModel.getItem(modelId); in pasteIntoFolder()
1161 Log.w(TAG, "Invalid destination. Can't obtain cursor for modelId: " + modelId); in pasteIntoFolder()
DFocusHandler.java44 void focusDocument(String modelId); in focusDocument() argument
DTransparentDividerDocumentHolder.java48 public void bind(Cursor cursor, String modelId) { in bind() argument
DHeaderMessageDocumentHolder.java84 public void bind(Cursor cursor, String modelId) { in bind() argument
DInflateMessageDocumentHolder.java76 public void bind(Cursor cursor, String modelId) { in bind() argument
DDocumentHolder.java78 public abstract void bind(Cursor cursor, String modelId); in bind() argument
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/dirlist/
DTestFocusHandler.java72 public void focusDocument(String modelId) { in focusDocument() argument
73 focusModelId = modelId; in focusDocument()
90 public void assertFocused(String modelId) { in assertFocused() argument
91 assertEquals(modelId, getFocusModelId()); in assertFocused()
/packages/services/Car/service/src/com/android/car/
DFastPairProvider.java60 int modelId = res.getInteger(R.integer.fastPairModelId); in FastPairProvider() local
61 if (modelId == 0) { in FastPairProvider()
84 modelId); in FastPairProvider()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestRecyclerView.java81 for (String modelId: modelIds) { in setItems()
91 for (String modelId: modelIds) { in create()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DFastPairProviderTest.java83 int modelId = 0xABCDEF; in enabledViaModelIdTest() local
85 when(mMockResources.getInteger(R.integer.fastPairModelId)).thenReturn(modelId); in enabledViaModelIdTest()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DDocumentHolderTest.java47 public void bind(Cursor cursor, String modelId) {} in setUp()
DAccessibilityTest.java71 public void bind(Cursor cursor, String modelId) { in testNullItemDetails_NoActionClick()