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.java161 public @Nullable Cursor getItem(String modelId) { in getItem() argument
162 Integer pos = mPositions.get(modelId); in getItem()
165 Log.d(TAG, "Unabled to find cursor position for modelId: " + modelId); in getItem()
173 "Unabled to move cursor to position " + pos + " for modelId: " + modelId); in getItem()
189 public @Nullable DocumentInfo getDocument(String modelId) { in getDocument() argument
190 final Cursor cursor = getItem(modelId); in getDocument()
201 for (String modelId: selection) { in loadDocuments()
202 doc = loadDocument(modelId, filter); in loadDocuments()
211 for (String modelId: selection) { in hasDocuments()
212 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.java154 public void bind(Cursor cursor, String modelId) { in bind() argument
157 mModelId = modelId; in bind()
DDirectoryAddonsAdapter.java257 public int getAdapterPosition(String modelId) {
258 return toViewPosition(mDelegate.getAdapterPosition(modelId));
DListDocumentHolder.java198 public void bind(Cursor cursor, String modelId) { in bind() argument
201 mModelId = modelId; in bind()
DFocusHandler.java44 void focusDocument(String modelId); in focusDocument() argument
DTransparentDividerDocumentHolder.java48 public void bind(Cursor cursor, String modelId) { in bind() argument
DDirectoryFragment.java621 final String modelId = getModelId(v); in onCreateContextMenu() local
622 if (modelId == null) { in onCreateContextMenu()
1165 String modelId = mSelectionMgr.getSelection().iterator().next(); in pasteIntoFolder() local
1166 Cursor dstCursor = mModel.getItem(modelId); in pasteIntoFolder()
1168 Log.w(TAG, "Invalid destination. Can't obtain cursor for modelId: " + modelId); in pasteIntoFolder()
DInflateMessageDocumentHolder.java76 public void bind(Cursor cursor, String modelId) { in bind() argument
DHeaderMessageDocumentHolder.java84 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/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/service/src/com/android/car/
DFastPairAdvertiser.java69 FastPairAdvertiser(Context context, int modelId, Callbacks callbacks) { in FastPairAdvertiser() argument
73 modelId); in FastPairAdvertiser()
DFastPairGattServer.java271 FastPairGattServer(Context context, int modelId, String antiSpoof, in FastPairGattServer() argument
286 modelId); in FastPairGattServer()
/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()