/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | Model.java | 179 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 …]
|
D | DocsSelectionHelper.java | 99 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()
|
D | FocusManager.java | 204 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/ |
D | DragStartListener.java | 114 @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()
|
D | ModelBackedDocumentsAdapter.java | 128 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()
|
D | DocumentsAdapter.java | 53 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()
|
D | SelectionMetadata.java | 67 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()
|
D | GridDirectoryHolder.java | 86 public void bind(Cursor cursor, String modelId) { in bind() argument 89 this.mModelId = modelId; in bind()
|
D | GridPhotoHolder.java | 125 public void bind(Cursor cursor, String modelId) { in bind() argument 128 mModelId = modelId; in bind()
|
D | GridDocumentHolder.java | 145 public void bind(Cursor cursor, String modelId) { in bind() argument 148 mModelId = modelId; in bind()
|
D | DirectoryAddonsAdapter.java | 255 public int getAdapterPosition(String modelId) { 256 return toViewPosition(mDelegate.getAdapterPosition(modelId));
|
D | DirectoryFragment.java | 451 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()
|
D | ListDocumentHolder.java | 177 public void bind(Cursor cursor, String modelId) { in bind() argument 180 mModelId = modelId; in bind()
|
D | FocusHandler.java | 44 void focusDocument(String modelId); in focusDocument() argument
|
D | TransparentDividerDocumentHolder.java | 48 public void bind(Cursor cursor, String modelId) { in bind() argument
|
D | InflateMessageDocumentHolder.java | 49 public void bind(Cursor cursor, String modelId) { in bind() argument
|
D | HeaderMessageDocumentHolder.java | 59 public void bind(Cursor cursor, String modelId) { in bind() argument
|
D | DocumentHolder.java | 78 public abstract void bind(Cursor cursor, String modelId); in bind() argument
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/dirlist/ |
D | TestFocusHandler.java | 72 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/ |
D | FastPairProvider.java | 60 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/ |
D | TestRecyclerView.java | 81 for (String modelId: modelIds) { in setItems() 91 for (String modelId: modelIds) { in create()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | FastPairProviderTest.java | 79 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/ |
D | DocumentHolderTest.java | 47 public void bind(Cursor cursor, String modelId) {} in setUp()
|
D | AccessibilityTest.java | 71 public void bind(Cursor cursor, String modelId) { in testNullItemDetails_NoActionClick()
|