/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | Model.java | 161 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 …]
|
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() 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()
|
D | DocumentsAdapter.java | 54 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()
|
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 | 93 public void bind(Cursor cursor, String modelId) { in bind() argument 96 this.mModelId = modelId; in bind()
|
D | GridPhotoHolder.java | 137 public void bind(Cursor cursor, String modelId) { in bind() argument 140 mModelId = modelId; in bind()
|
D | GridDocumentHolder.java | 154 public void bind(Cursor cursor, String modelId) { in bind() argument 157 mModelId = modelId; in bind()
|
D | DirectoryAddonsAdapter.java | 257 public int getAdapterPosition(String modelId) { 258 return toViewPosition(mDelegate.getAdapterPosition(modelId));
|
D | ListDocumentHolder.java | 198 public void bind(Cursor cursor, String modelId) { in bind() argument 201 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 | DirectoryFragment.java | 621 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()
|
D | InflateMessageDocumentHolder.java | 76 public void bind(Cursor cursor, String modelId) { in bind() argument
|
D | HeaderMessageDocumentHolder.java | 84 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/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/service/src/com/android/car/ |
D | FastPairAdvertiser.java | 69 FastPairAdvertiser(Context context, int modelId, Callbacks callbacks) { in FastPairAdvertiser() argument 73 modelId); in FastPairAdvertiser()
|
D | FastPairGattServer.java | 271 FastPairGattServer(Context context, int modelId, String antiSpoof, in FastPairGattServer() argument 286 modelId); in FastPairGattServer()
|
/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()
|