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.java179 public @Nullable Cursor getItem(String modelId) { in getItem() argument
180 Integer pos = mPositions.get(modelId); in getItem()
183 Log.d(TAG, "Unabled to find cursor position for modelId: " + modelId); in getItem()
191 "Unabled to move cursor to position " + pos + " for modelId: " + modelId); in getItem()
207 public @Nullable DocumentInfo getDocument(String modelId) { in getDocument() argument
208 final Cursor cursor = getItem(modelId); in getDocument()
219 for (String modelId: selection) { in loadDocuments()
220 doc = loadDocument(modelId, filter); in loadDocuments()
229 for (String modelId: selection) { in hasDocuments()
230 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()
136 boolean selected = mEnv.isSelected(modelId); in onBindViewHolder()
141 holder.setSelected(mEnv.isSelected(modelId), false); in onBindViewHolder()
174 public int getAdapterPosition(String modelId) { in getAdapterPosition() argument
175 return mModelIds.indexOf(modelId); in getAdapterPosition()
DDocumentsAdapter.java53 public abstract int getAdapterPosition(String modelId); in getAdapterPosition() argument
75 String modelId = getStableIds().get(position); in isDirectory() local
76 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.java86 public void bind(Cursor cursor, String modelId) { in bind() argument
89 this.mModelId = modelId; in bind()
DGridPhotoHolder.java125 public void bind(Cursor cursor, String modelId) { in bind() argument
128 mModelId = modelId; in bind()
DGridDocumentHolder.java145 public void bind(Cursor cursor, String modelId) { in bind() argument
148 mModelId = modelId; in bind()
DDirectoryAddonsAdapter.java255 public int getAdapterPosition(String modelId) {
256 return toViewPosition(mDelegate.getAdapterPosition(modelId));
DDirectoryFragment.java451 final String modelId = getModelId(v); in onCreateContextMenu() local
452 if (modelId == null) { in onCreateContextMenu()
967 String modelId = mSelectionMgr.getSelection().iterator().next(); in pasteIntoFolder() local
968 Cursor dstCursor = mModel.getItem(modelId); in pasteIntoFolder()
970 Log.w(TAG, "Invalid destination. Can't obtain cursor for modelId: " + modelId); in pasteIntoFolder()
DListDocumentHolder.java177 public void bind(Cursor cursor, String modelId) { in bind() argument
180 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
DInflateMessageDocumentHolder.java49 public void bind(Cursor cursor, String modelId) { in bind() argument
DHeaderMessageDocumentHolder.java59 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.java79 int modelId = 0xABCDEF; in enabledViaModelIdTest() local
81 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()